Executing XML Against the Oracle BI Server

About the Oracle BI Server XML API 12-9 Aliases Alias name=F1 Revenue Aliases Columns RefPresentationColumn uid=72927 id=4010:1707 qualifiedName= quot;Sample Smallquot;..quot;Facts Revenuequot;. quot;Revenuequot; RefPresentationColumn qualifiedName=quot;Sample Smallquot;. .quot;Facts Revenuequot;.quot;Billed Qtyquot; Columns PresentationTable PresentationColumn name=Billed Qty parentName=quot;Sample Smallquot;. .quot;Facts Revenuequot; parentId=4008:2143 parentUid=73625 hasDispName=false overrideLogicalName=true Description [CDATA[This presentation column was added using the XML metadata API.]] Description RefLogicalColumn uid=946 id=2006:106 qualifiedName=quot;Sample Smallquot;.quot;F0 Rev Base Measuresquot;.quot;2-01 Billed Qty Sum Allquot; PresentationColumn DECLARE Repository Finally, run the biserverxmlexec utility to execute Change.rpdx to update the original RPD file. Figure 12–3 shows what the updated repository looks like in the Administration Tool. Figure 12–3 Updated Repository with New Presentation Column in the Administration Tool 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