Maintaining Versions of the Metadata

12-10 Oracle Fusion Middleware Integrators Guide for Oracle Business Intelligence Enterprise Edition

12.3.5 Moving from Test to Production Environments

When you move from test to production environments, you typically need to update connection pool settings for your data sources. You can use the Oracle BI Server XML API to programmatically update these settings in the repository. To accomplish this task, you first need to open your test repository in the Administration Tool, manually update the connection pool settings for your data sources, and then save the repository under a different name. Next, you can compare the new repository with the original repository using the Administration Tool and then create an XML patch file that contains the changes. Finally, you can use biserverxmlexec or biserverxmlcli to execute the changes against a test repository. Example 12–1 provides step-by-step information about how to perform these tasks using an example scenario. See Moving Oracle Business Intelligence Components to a Production System in Oracle Fusion Middleware Administrators Guide for more information about moving from test to production environments in Oracle Business Intelligence. Example 12–1 Updating Connection Pool Test Values to Production Values This example shows how to programmatically update test values for two example connection pools to production values. The following table shows example values for the two example data sources, in both test and production environments. To programmatically update connection pool test values to production values: 1. Open the test repository for example, SampleApp_test.rpd in the Administration Tool. 2. In the Physical layer, open the connection pool for the relational source that needs to be changed.

3. Update the values for Data Source Name, User Name, and Password to the

production values. Then, click OK. 4. Open the connection pool for the XML source that needs to be changed.

5. Update the value for Data Source Name to the production value. Then, click OK.

6. Select File, then select Save As. Then, save the repository under a new name for

example, SampleApp_prod.rpd.

7. Select File, then select Compare.

8. Select the original repository file SampleApp_test.rpd to compare to the currently open repository file SampleApp_prod.rpd. Environment Data Source Type Data Source Name User Name Password Test Relational orcl_test user_test password_test XML VALUEOFORACLE_ HOMEXML_dataForecast na na Production Relational orcl_prod user_prod password_prod XML VALUEOFORACLE_ HOMEfcast_dataForecast na na About the Oracle BI Server XML API 12-11 Note that the Compare repositories dialog lists the two connection pools you modified, as shown in Figure 12–4 . Figure 12–4 Compare Repositories Dialog

9. Click Create Patch, enter the name of the patch file you want to create for

example, SampleApp_diff.xml, and click Save. The resulting XML patch file might appear as follows: ?xml version=1.0 encoding=UTF-8 ? Repository xmlns:xsi=http:www.w3.org2001XMLSchema-instance DECLARE ConnectionPool name=SampleApp_XML parentName=quot;1 - Sample App Xml Dataquot; parentId=3023:84 parentUid=2160747198 id=3029:1158 uid=2160747199 password=D7EDED84BC624A917F5B462A4DCA05CDCE256EEEEEDC97D5AC4D07C3A079829F timeout=300 maxConnDiff=10 maxConn=10 dataSource=VALUEOFBI_EE_HOMEfcast_dataForecast type=Default reqQualifedTableName=false isSharedLogin=false isConcurrentQueriesInConnection=false isCloseAfterEveryRequest=true xmlRefreshInterval=4294967295 outputType=xml bulkInsertBufferSize=0 transactionBoundary=0 xmlaUseSession=false multiThreaded=false supportParams=false isSiebelJDBSecured=false DescriptionDescription ConnectionPool ConnectionPool name=SampleApp_Relational parentName=quot;1 - Sample App Dataquot; parentId=3023:85 parentUid=2160747204 id=3029:1159 uid=2160747205 user=user_prod password=D7EDED84BC624A917F5B462A4DCA05CDCE256EEEEEDC97D5A1 50C61FBEB9092AF80FAEC9819DD51771A41425D03FB466B55BB9F03BCF6439 timeout=4294967295 maxConnDiff=10 maxConn=10 dataSource=orcl_prod type=OCI10G reqQualifedTableName=false isSharedLogin=true isConcurrentQueriesInConnection=false isCloseAfterEveryRequest=false outputType=xml bulkInsertBufferSize=131072 tempTablePrefix=TT transactionBoundary=1000 xmlaUseSession=false isSiebelJDBSecured=false DescriptionDescription