Click Browse next to the Connection Pool field to select the connection If you selected Use database specific SQL, then in the Database pane, Optional Click Test to test the data source connectivity for the SQL Click OK to return to the Initialization Blo

18-12 Metadata Repository Builders Guide for Oracle Business Intelligence Enterprise Edition 2. In the Variable Manager dialog, double-click the initialization block you want to edit. You can edit Repository initialization blocks, or Session initialization blocks.

3. Click Edit Data Source next to the Connection Pool field.

4. From the Data Source Type list, select one of the following types.

■ Database: For repository and session variables. ■ LDAP Server: For session variables. ■ Custom Authenticator: For session variables. See Oracle Fusion Middleware Security Guide for Oracle Business Intelligence Enterprise Edition for more information.

5. If you selected Database for your data source type, perform one of the following

steps: ■ Select Default initialization string or Use database specific SQL, and then perform the following steps:

a. Click Browse next to the Connection Pool field to select the connection

pool associated with the database where the target information is located. If you do not select a connection pool before typing the initialization string, you receive a message prompting you to select the connection pool. b. In the Select Connection Pool dialog, select the connection pool and click Select . You must select a connection pool before typing an initialization string. By default, the first connection pool under the database object in the Phys- ical layer is not available for selection. This behavior ensures that you can- not use the same connection pool for initialization blocks that you use for queries. See About Connection Pools for Initialization Blocks for more information You can change this behavior so that the first connection pool is available for selection by selecting Allow first Connection Pool for Init Blocks in the Options dialog, although this is not recommended. See Setting Prefer- ences for more information.

c. If you selected Use database specific SQL, then in the Database pane,

expand and select the database. Then, enter its associated string. Otherwise, in the Default initialization string box, type the SQL initial- ization string needed to populate the variables. See Examples of Initial- ization Strings for examples.

d. Optional Click Test to test the data source connectivity for the SQL

statement.

e. Click OK to return to the Initialization Block dialog.

■ Select Use OBI EE Server, and then perform the following steps: a. In the box, enter the SQL initialization string needed to populate the variables. The string you enter here is processed by the Oracle BI Server, and there- fore as long as it is supported by the Oracle BI Server, the string will work with different data sources. For example, an initialization block might use the function pi, which is specific to SQL Server. However, if you select Use OBI EE Server, the query is rewritten by the Oracle BI Server for the appropriate database. In Using Variables in the Oracle BI Repository 18-13 other words, if you change the SQL Server back-end database to Oracle, the query will still work. See Examples of Initialization Strings for additional examples.

b. Click OK to return to the Initialization Block dialog.