Click Select next to Patch File. Browse to select the patch file you want to apply, Click Finish.

Managing Oracle BI Repository Files 16-19 Applying a Repository Patch Use the Administration Tool to apply a patch that contains the differences between two repositories. Note that you can apply patches from a larger multiuser repository to a smaller subset extract repository. In this case, only the changes in the subset are applied from the patch. To apply a patch: 1. In the Administration Tool, open the modified Oracle BI repository in offline mode. In other words, open the repository on which you want to apply the patch.

2. Select File, then select Merge. The Merge Repository Wizard appears.

Figure 16–11 shows the Merge Repository Wizard. Figure 16–11 Merge Repository Wizard: Select Input Files Screen Patch Merge

3. For Merge Type, select Patch Repository Merge.

4. Click Select next to Original Master Repository. Browse to select the original

repository, then click Open. Note that the original repository cannot be the same as the modified currently open repository. 5. Enter the repository password for the original repository.

6. Click Select next to Patch File. Browse to select the patch file you want to apply,

then click Open. 7. Optionally, click Select next to Save Merged Repository as, then enter a file name under which the patched repository will be saved and click Save.

8. Click Finish.

16-20 Metadata Repository Builders Guide for Oracle Business Intelligence Enterprise Edition Using patchrpd to Apply a Patch You can also apply a patch using the patchrpd utility. This feature is especially useful when you want to patch repositories on Linux and UNIX systems where the Administration Tool is not available. Note that unlike the Administration Tool patch feature, patchrpd does not display or resolve conflicts. If a conflict is detected, patchrpd displays a warning and exits. Before running patchrpd, you must first run bi-init.cmd or bi-init.sh on UNIX to launch a command prompt or shell window that is initialized to your Oracle instance. You can find this utility in: ORACLE_INSTANCEbifoundationOracleBIApplicationcoreapplicationsetup Then, run patchrpd from the resulting shell window with the desired options, as follows: patchrpd [-P modified_rpd_password] -C modified_rpd_pathname [-W original_rpd_password] -G original_rpd_pathname -I xml_patch_file_pathname -O output_rpd_pathname [-S schema_location] [-8] Where: modified_rpd_password is the repository password for the modified repository, also called the customer or customized repository. The password argument for the modified repository is optional. If you do not provide a password argument for the modified repository, you are prompted to enter a password when you run the command. To minimize the risk of security breaches, Oracle recommends that you do not provide a password argument either on the command line or in scripts. Note that the password argument is supported for backward compatibility only, and will be removed in a future release. modified_rpd_pathname is the name and location of the modified repository. original rpd_password is the repository password for the original repository. The password argument for the original repository is optional. If you do not provide a password argument for the original repository, you are prompted to enter a password when you run the command. To minimize the risk of security breaches, Oracle recommends that you do not provide a password argument either on the command line or in scripts. Note that the password argument is supported for backward compatibility only, and will be removed in a future release. original_rpd_pathname is the name and location of the original repository. xml_patch_file_pathname is the name and location of the XML patch file you want to apply. output_rpd_pathname is the name and location of the RPD output file you want to generate. schema_location is the name and location of the Oracle BI Server XML schema. If you do not specify a location, patchrpd assumes the schema file is in the default location of ORACLE_HOMEbifoundationserverbinxudml1.xsd. -8 specifies UTF-8 encoding. For example: patchrpd -C customer.rpd -G original.rpd -I patch.xml -O patched.rpd Give password for customer repository: my_modified_rpd_password Give password for original repository: my_original_rpd_password Managing Oracle BI Repository Files 16-21 This example applies a patch called patch.xml to the customer.rpd repository, and then generates an output repository called patched.rpd. Querying and Managing Repository Metadata You can use repository queries to help manage repository metadata in the following ways: ■ Examine and update the internal structure of the repository. For example, you can query for objects in the repository based on name, type such as Logical Column or Presentation Hierarchy, or on a combination of name and type. You can then edit or delete objects that appear in the Results list. You can also create new objects and view parent hierarchies. ■ Query a repository and view reports that show such items as all tables mapped to a logical source, all references to a particular physical column, content filters for logical sources, initialization blocks, and security and user permissions. For example, you might want to run a report before making any physical changes in a database that might affect the repository. You can save the report to a file in comma-separated value CSV or tab-delimited format. ■ You can save a query to run again later, or save the query results to an external file. When you save to an external file, the encoding options are ANSI, Unicode, and UTF-8. This section contains the following topics: ■ Querying the Repository ■ Querying Related Objects Querying the Repository You can query for objects in the repository using the Query Repository tool. You can also construct a filter to filter the results, save a query, run a previously saved query, or create new repository objects. To query a repository: 1. In the Administration Tool, open your repository.

2. Select Tools, then select Query Repository.