Understanding MDS Operations Understanding the MDS Repository

14-12 Oracle Fusion Middleware Administrators Guide ■ Deregistering a File-Based MDS Repository

14.3.3.1 Creating and Registering a File-Based MDS Repository

You can create a file-based MDS Repository and register it with an Oracle WebLogic Server domain using Fusion Middleware Control. To create and register a file-based repository using Fusion Middleware Control: 1. From the navigation pane, expand the farm, then WebLogic Domain. 2. Select the domain. 3. From the WebLogic Domain menu, choose Metadata Repositories. The Metadata Repositories page is displayed. 4. In the File-Based Repository section, click Register. The Register Metadata Repository page is displayed. 5. Enter the following information: ■ For Name, enter a name. For example, enter repos1. The prefix mds- is added to the name and a repository with the name mds-repos1 is registered. If you enter a name that begins with mds-, a repository with the given name is registered. ■ For Directory, specify the directory. The Administration Server and Managed Servers that run the applications that use this repository must have write access to the directory. Note the following: – If the specified path exists on the file system, the metadata file repository is registered; all the subdirectories under this path are automatically loaded as partitions of this file-based repository. – If the path specified does not exist, a directory with this name is created on the file system during the registration. Because there are no partitions created yet, there are no subdirectories to load. – If the specified path is invalid and cannot be created for some reason, such as permission denied, an error is displayed and the registration fails. – If the specified path exists, but as a file not a directory, an error is not displayed and the registration succeeds. 6. Click OK. The repository is created and registered and is displayed on the Metadata Repositories page. You can now create and delete partitions. Those changes are reflected in the directory on the file system. You can also create a file-based repository using system MBeans. For information about using the System MBean Browser, see Section 14.3.5 .

14.3.3.2 Deregistering a File-Based MDS Repository

You can deregister a file-based MDS Repository using Fusion Middleware Control. To deregister a file-based repository using Fusion Middleware Control: 1. From the navigation pane, expand the farm, then WebLogic Domain. Managing the Metadata Repository 14-13 2. Select the domain. 3. From the WebLogic Domain menu, choose Metadata Repositories. The Metadata Repositories page is displayed. 4. In the File-Based Repository section, select the repository and click Deregister. 5. Click OK in the Confirmation dialog box. If the file-based repository is valid, it is removed from the repository list. Otherwise, an error is displayed. You can also deregister a file-based repository using system MBeans. For information about using the System MBean Browser, see Section 14.3.5 .

14.3.4 Changing the System Data Source

You can change the system data source to reassociate an application to a new repository. You can change the database or the schema that contains the data source. To do so, you can use Oracle WebLogic Server Administration Console or Fusion Middleware Control. To use Fusion Middleware Control: 1. From the navigation pane, expand the farm, then WebLogic Domain. 2. Select the domain. 3. From the WebLogic Domain menu, choose JDBC Data Sources. The JDBC Data Sources page is displayed. 4. Select the data source you want to change and click Edit. The Edit JDBC Data Source page is displayed. 5. Select the Connection Properties tab. 6. To change the database, modify the Database URL field. For example: jdbc:oracle:thin:hostname.domainname.com:1522orcl 7. For Password, enter the password for the database. 8. To change the schema, modify the Properties section, changing the value for user. 9. If the database is a DB2 database, add the property sendStreamAsBlob, with a value of true. 10. Click Apply. 11. Restart the servers that use this data source.

14.3.5 Using System MBeans to Manage an MDS Repository

Although most procedures in this chapter discuss using Fusion Middleware Control or WLST to manage the MDS Repository, you can also use system MBeans: 1. In Fusion Middleware Control, from the navigation pane, navigate to the domain and select it. From the WebLogic Domain menu, choose System MBean Browser. The System MBean Browser page is displayed. 2. In the pages navigation pane, expand Application Defined MBeans, then expand oracle.mds.lcm. Expand the domain, then MDSDomainRuntime, and then select MDSDomainRuntime. 3. In the Application Defined MBeans pane, select the Operations tab. 14-14 Oracle Fusion Middleware Administrators Guide 4. Click one of the operations, such as registerMetadataFileRepository. The Operations page is displayed. 5. In the Value column, enter values for the operation. 6. Click Invoke.

14.3.6 Viewing Information About an MDS Repository

You can view information about an MDS Repository using Fusion Middleware Control or system MBeans, as described in the following topics: ■ Viewing Information About an MDS Repository Using Fusion Middleware Control ■ Viewing Information About an MDS Repository Using System MBeans

14.3.6.1 Viewing Information About an MDS Repository Using Fusion Middleware Control

To view information about an MDS Repository using Fusion Middleware Control: 1. From the navigation pane, expand the farm and then expand Metadata Repositories. 2. Select the repository. The following figure shows the home page for an MDS Repository: