Connection Pool,

Setting Up Connection Pools


The connection pool is an object in the Physical layer that describes access to the data source. It contains information about the connection between the Oracle BI Server and that data source.
The Physical layer in the Administration Tool contains at least one connection pool for each database. When you create the physical layer by importing a schema for a data source, the connection pool is created automatically. You can configure multiple connection pools for a database. Connection pools allow multiple concurrent data source requests (queries) to share a single database connection, reducing the overhead of connecting to a database.
NOTE:  It is recommended that you create a dedicated connection pool for initialization blocks. For additional information, refer to Creating or Changing Connection Pools.
For each connection pool, you must specify the maximum number of concurrent connections allowed. After this limit is reached, the Oracle BI Server routes all other connection requests to another connection pool or, if no other connection pools exist, the connection request waits until a connection becomes available.
Increasing the allowed number of concurrent connections can potentially increase the load on the underlying database accessed by the connection pool. Test and consult with your DBA to make sure the data source can handle the number of connections specified in the connection pool. Also, if the data sources have a charge back system based on the number of connections, you might want to limit the number of concurrent connections to keep the charge-back costs down.
In addition to the potential load and costs associated with the database resources, the Oracle BI Server allocates shared memory for each connection upon server startup. This raises the number of connections and increases Oracle BI Server memory usage.
Table 7 contains a brief description of preconfigured connection pools.
Table 7. Preconfigured Connection Pools
Connection Name
Description
BBB Data Warehouse
Enterprise visibility to the Oracle Business Analytics Warehouse.
Oracle's Siebel operational applications (Oracle BI customers only).
BBB OLTP
Enterprise visibility to Oracle's Siebel transactional database.
Oracle's Siebel operational applications (Oracle BI customers only).
BBB XLS Data
DSN is the same as the connection pool name. Data is stored in C:\Data\Applications\BBB\BBB.
Oracle's Siebel operational applications (Oracle BI customers only).
ERM OLTP
Oracle's Siebel Workforce Analytics connection to Oracle's Siebel transactional database.
(Workforce Oracle BI customers only.)
Externalized Metadata Strings
Connection to Oracle's Siebel operational application database to load the translations of Metadata Strings.
Financial Services customers and all customers deploying Oracle BI in a language other than English.
NOTE:  This connection pool is configured to be the same as the Oracle's Siebel transactional database.
Forecasting Oracle Business Analytics Warehouse
Connection to the Oracle Business Analytics Warehouse.
(Forecasting Oracle BI customers only.)
Forecasting Siebel OLTP
Connection to Oracle's Siebel transactional database.
(Real-time Forecasting Oracle BI customers only.)
Incentive Compensation Siebel OLTP
Database connection to Oracle's Siebel transactional database.
(Incentive Compensation Oracle BI customers only.)
Pharma Data Warehouse
Connection to the Pharmaceutical data warehouse.
(Pharmaceutical industry-specific customers only.)
Real-time OLTP
Connection to Oracle's Siebel transactional database.
Real-time Oracle BI (all customers).
SIA Data Warehouse
Connection for Oracle's Siebel Industry Applications data warehouse.
(For Oracle's Siebel Industry Applications customers only.)
Oracle BI Usage
Usage Tracking Writer Connection Pool connects to the database where you store the usage statistics of the Oracle BI Server. (Optional for all customers.)
NOTE:  Using this requires that the Oracle BI Scheduler Server be set up to load the usage statistics into the database.
Oracle Business Intelligence Warehouse
Database connection to the Oracle Business Analytics Warehouse. (Oracle BI applications customers only.)
Siebel OLTP
NOTE:  There are two connection pools to Oracle's Siebel transactional database. Both should be configured properly.
OLTP DbAuth connects to Oracle's Siebel transactional database for Authentication and Authorization. The user name and password is preconfigured to USER and PASSWORD and should be left as such if you want to use database logons to authenticate users.
(All customers.)
UQ Siebel OLTP
Connection to Oracle's Siebel transactional database. Oracle's Siebel Universal (Queuing customers only.)
Usage Accelerator Datawarehouse
Database connection to the Oracle Business Analytics Warehouse. (Oracle BI applications customers only.)
This section includes the following topics:

Creating or Changing Connection Pools


You must create a database object before you create a connection pool. Typically, the database object and connection pool are created automatically when you import the physical schema. You create or change a connection pool in the Physical layer of the Administration Tool.
CAUTION:  It is strongly recommend that customers use OCI for connecting to Oracle. ODBC should only be used to import from Oracle.
This section contains the following topics:

About Connection Pools for Initialization Blocks

It is recommended that you create a dedicated connection pool for initialization blocks. This connection pool should not be used for queries.
Additionally, it is recommended that you isolate the connections pools for different types of initialization blocks. This also makes sure that authentication and login-specific initialization blocks do not slow down the login process. The following types should have separate connection pools:
  • All Authentication and login-specific initialization blocks such as language, externalized strings, and group assignments.
  • All initialization blocks that set session variables.
  • All initialization blocks that set repository variables. These initialization blocks should always be run using the system Administrator user login.
    Be aware of the number of these initialization blocks, their scheduled refresh rate, and when they are scheduled to run. Typically, it would take an extreme case for this scenario to affect resources. For example, refresh rates set in minutes, greater than 15 initialization blocks that refresh concurrently, and a situation in which either of these scenarios could occur during prime user access time frames. To avoid straining the available resources, you might want to disable query logging for the default Oracle BI Administrator.
Initialization blocks should be designed so that the maximum number of Oracle BI Server variables may be assigned by each block. For example, if you have five variables, it is more efficient and less resource intensive to construct a single initialization block containing all five variables. When using one initialization block, the values will be resolved with one call to the back end tables using the initialization string. Constructing five initialization blocks, one for each variable, would result in five calls to the back end tables for assignment.

Setting Up General Properties For Connection Pools

Use this section to complete the General tab.
To set up general properties for connection pools
  1. In the Physical layer of the Administration Tool, right-click a database and choose New Object > Connection Pool, or double-click an existing connection pool.
    The following is an illustration of the General tab in the Connection Pool dialog box.

    Click for full size image
  2. In the Connection Pool dialog box, click the General tab, and then complete the fields using information in Table 8.
    Properties that are specific to a multidimensional data sources can be found in Table 9.
Table 8. Connection Pool General Properties
Field or Button
Description
Call interface
The application program interface (API) with which to access the data source. Some databases may be accessed using native APIs, some use ODBC, and some work both ways. If the call interface is XML, the XML tab is available but options that do not apply to XML data sources are not available.
Data source name
The drop-down list shows the User and System DSNs configured on your system. A data source name that is configured to access the database to which you want to connect. The data source name needs to contain valid logon information for a data source. If the information is invalid, the database logon specified in the DSN will fail.
Enable connection pooling
Allows a single database connection to remain open for the specified time for use by future query requests. Connection pooling saves the overhead of opening and closing a new connection for every query. If you do not select this option, each query sent to the database opens a new connection.
Execute on Connect
Allows the Oracle BI Administrator to specify a command to be executed each time a connection is made to the database. The command may be any command accepted by the database. For example, it could be used to turn on quoted identifiers. In a mainframe environment, it could be used to set the secondary authorization ID when connecting to DB2 to force a security exit to a mainframe security package such as RACF. This allows mainframe environments to maintain security in one central location.
Execute queries asynchronously
Indicates whether the data source supports asynchronous queries.
Isolation level
For ODBC and DB2 gateways, the value sets the transaction isolation level on each connection to the back-end database. The isolation level setting controls the default transaction locking behavior for all statements issued by a connection. Only one of the options can be set at a time. It remains set for that connection until it is explicitly changed.
The following is a list of the options:
Committed Read. Specifies that shared locks are held while the data is read to avoid dirty reads. However, the data can be changed before the end of the transaction, resulting in non repeatable reads or phantom data.
Dirty Read. Implements dirty read (isolation level 0 locking). When this option is set, it is possible to read uncommitted or dirty data, change values in the data, and have rows appear or disappear in the data set before the end of the transaction. This is the least restrictive of the isolation levels.
Repeatable Read. Places locks on all data that is used in a query, preventing other users from updating the data. However, new phantom rows can be inserted into the data set by another user and are included in later reads in the current transaction.
Serializable. Places a range lock on the data set, preventing other users from updating or inserting rows into the data set until the transaction is complete. This is the most restrictive of the four isolation levels. Because concurrency is lower, use this option only if necessary.
Maximum connections
The maximum number of connections allowed for this connection pool. The default is 10. This value should be determined by the database make and model and the configuration of the hardware box on which the database runs as well as the number of concurrent users who require access.
NOTE:  For deployments with Intelligence Dashboard pages, consider estimating this value at 10% to 20% of the number of simultaneous users multiplied by the number of requests on a dashboard. This number may be adjusted based on usage. The total number of all connections in the repository should be less than 800. To estimate the maximum connections needed for a connection pool dedicated to an initialization block, you might use the number of users concurrently logged on during initialization block execution.
Name
The name for the connection pool. If you do not type a name, the Administration Tool generates a name. For multidimensional and XML data sources, this is prefilled.
Parameters supported
If the database features table supports parameters and the connection pool check box property for parameter support is unchecked, special code executes that allows the Oracle BI Server to push filters (or calculations) with parameters to the database. The Oracle BI Server does this by simulating parameter support within the gateway/adapter layer by sending extra SQLPrepare calls to the database.
Permissions
Assigns permissions for individual users or groups to access the connection pool. You can also set up a privileged group of users to have its own connection pool.
Require fully qualified table names
Select this check box, if the database requires it.
When this option is selected, all requests sent from the connection pool use fully qualified names to query the underlying database. The fully qualified names are based on the physical object names in the repository. If you are querying the same tables from which the physical layer metadata was imported, you can safely check the option. If you have migrated your repository from one physical database to another physical database that has different database and schema names, the fully qualified names would be invalid in the newly migrated database. In this case, if you do not select this option, the queries will succeed against the new database objects.
For some data sources, fully qualified names might be safer because they guarantee that the queries are directed to the desired tables in the desired database. For example, if the RDBMS supports a master database concept, a query against a table named foo first looks for that table in the master database, and then looks for it in the specified database. If the table named foo exists in the master database, that table is queried, not the table named foo in the specified database.
Shared logon
Select the Shared logon check box if you want all users whose queries use the connection pool to access the underlying database using the same user name and password.
If this option is selected, then all connections to the database that use the connection pool will use the user name and password specified in the connection pool, even if the user has specified a database user name and password in the DSN (or in user configuration).
If this option is not selected, connections through the connection pool use the database user ID and password specified in the DSN or in the user profile.
Timeout (Minutes)
Specifies the amount of time, in minutes, that a connection to the data source will remain open after a request completes. During this time, new requests use this connection rather than open a new one (up to the number specified for the maximum connections). The time is reset after each completed connection request.
If you set the timeout to 0, connection pooling is disabled; that is, each connection to the data source terminates immediately when the request completes. Any new connections either use another connection pool or open a new connection.
Use Multithreaded Connections
When the check box is select ed, Oracle BI Server terminates idle physical queries (threads). When not selected, one thread is tied to one database connection (number of threads = maximum connections). Even if threads are idle, they consume memory.
The parameter DB_GATEWAY_THREAD_RANGE in the Server section of NQSConfig.ini establishes when Oracle BI Server terminates idle threads. The lower number in the range is the number of threads that are kept open before Oracle BI Server takes action. If the number of open threads exceeds the low point in the range, Oracle BI Server terminates idle threads. For example, if DB_GATEWAY_THREAD_RANGE is set to 40-200 and 75 threads are open, Oracle BI Server terminates any idle threads.

Setting Up Additional Connection Pool Properties for an XML Data Source


Use the XML tab of the Connection Pool dialog box to set additional properties for an XML data source.
CAUTION:  The XML tab of the Connection Pool dialog box provides the same functionality as the XML tab of the Physical Table dialog box. However, when you set the properties in the XML tab of the Physical Table dialog box you will override the corresponding settings in the Connection Pool dialog box.
To set up connection pool properties for an XML data source
  1. Right-click the XML database, select New Object > Connection Pool.
  2. In the Connection Pool dialog box, click the XML tab.
  3. Complete the fields, using Table 10 as a guide.
Table 10. XML Connection Pool Properties
Property
Description
Connection method
Search script
Used for XML Server data source.
Connection properties
Maximum connections
Default is 10.
Connection properties
URL loading time out
Used for XML data source. Time-out interval for queries. The default is 15 minutes.
If you specified a URL to access the data source, set the URL loading time-out as follows:
  • Select a value from the drop-down list (Infinite, Days, Hours, Minutes or Seconds).
  • Specify a whole number as the numeric portion of the interval.
Connection properties
URL refresh interval
Used for XML data source. The refresh interval is analogous to setting cache persistence for database tables. The URL refresh interval is the time interval after which the XML data source will be queried again directly rather than using results in cache. The default setting is infinite, meaning the XML data source will never be refreshed.
If you specified a URL to access the data source, set the URL refresh interval.
  • Select a value from the drop-down list (Infinite, Days, Hours, Minutes or Seconds).
  • Specify a whole number as the numeric portion of the interval.
Query input supplements
Header file/Trailer file
Used for XML Server data source.
Query output format
Choose only XML for an XML data source.
Other choices are available for an XML Server data source.
XPath expression
An XPath expression is a simple XSLT transformation rule that fits into one line. It is not essential, given the support of XSLT, but it is supported for convenience. A sample entry might be */BOOK[not(PRICE>'200')].
  • For an XML Server data source, you cannot specify an XPath expression on the XML tab of the Physical Table object.
XSLT file
An XSLT file contains formatting rules written according to the XSLT standard. It defines how an XML file may be transformed. The current implementation of the XML gateway does not support all XML files, only those that resemble a tabular form, with repeating second level elements. To increase the versatility of the XML gateway, customers can specify an XSLT file to preprocess an XML file to a form that the Oracle BI Server supports. Specifying the XSLT file in the connection pool applies it to all the XML physical tables in the connection pool.
  • For an XML data source, you can specify an XSLT file on a per-table basis on the XML tab of the Physical Table object. This overrides what you specified in the connection pool.
  • For an XML Server data source, you cannot specify an XSLT file on the XML tab of the Physical Table object.
To specify query output format settings
  1. (Optional) For an XSLT file, type the path to and name of the XSLT file in the XSLT File field, or use the Browse button.
  2. (Optional) For an XPath expression, type the XPath expression in the XPath Expression field, for example, //XML, or use the Browse button.

Setting Up Write-Back Properties




Use this section to complete the Write Back tab in the Connection Pool dialog box.
To set up write-back properties for connection pools
  1. In the Physical layer of the Administration Tool, right-click a database and select New Object > Connection Pool, or double-click an existing connection pool.
  2. In the Connection Pool dialog box, click the Write Back tab.
  3. In the Write Back tab, complete the fields using Table 11 as a guide.
Table 11. Field Descriptions for Write Back Tab
Field
Description
Bulk Insert
Buffer Size (KB)
Used for limiting the number of bytes each time data is inserted in a database table.
Bulk Insert
Transaction Boundary
Controls the batch size for an insert in a database table.
Temporary table
Database Name
Database where the temporary table will be created. This property applies only to IBM OS/390 because IBM OS/390 requires database name qualifier to be part of the CREATE TABLE statement. If left blank, OS/390 will default the target database to a system database for which the users may not have Create Table privileges.
Temporary table
Owner
Table owner name used to qualify a temporary table name in a SQL statement, for example to create the table owner.tablename. If left blank, the user name specified in the writeable connection pool is used to qualify the table name and the Shared Logon field on the General tab should also be set.
Temporary table
Prefix
When the Oracle BI Server creates a temporary table, these are the first two characters in the temporary table name. The default value is TT.
Temporary table
Tablespace Name
Tablespace where the temporary table will be created. This property applies to OS/390 only as OS/390 requires tablespace name qualifier to be part of the CREATE TABLE statement. If left blank, OS/390 will default the target database to a system database for which the users may not have Create Table privileges.
Unicode Database Type
Select this check box when working with columns of an explicit Unicode data type, such as NCHAR, in an Unicode database. This makes sure that the binding is correct and data will be inserted correctly. Different database vendors provide different character data types and different levels of Unicode support. Use the following general guidelines to determine when to set this check box:
  • On a database where CHAR data type supports Unicode and there is no separate NCHAR data type, do not select this check box.
  • On a database where NCHAR data type is available, it is recommended to select this check box.
  • On a database where CHAR and NCHAR data type are configured to support Unicode, selecting this check box is optional.
NOTE:  Unicode and non-Unicode datatypes cannot coexist in a single non-Unicode database. For example, mixing the CHAR and NCHAR data types in a single non-Unicode database environment is not supported.