Databases Supported by MDS

14-10 Oracle Fusion Middleware Administrators Guide

14.3.2.1.2 Registering a Database-Based MDS Repository Using WLST To register a

database-based MDS Repository using the command line, you use the WLST registerMetadataDBRepository command. For example, to register the MDS Repository mds-repos1, use the following command: registerMetadataDBRepositoryname=mds-repos1, dbVendor=ORACLE, host=hostname, port=1521, dbName=ora11, user=username, password=password, targetServers=server1

14.3.2.2 Adding or Removing Servers Targeted to the MDS Repository

When you register an MDS Repository using Fusion Middleware Control, the repository is targeted to the Administration Server. You can target the repository to additional servers or remove servers as targets. To target the MDS Repository to additional servers: 1. From the navigation pane, expand the farm, then Metadata Repositories. 2. Select the repository. The repository home page is displayed, as shown in the following figure: 3. In the Targeted Servers section, click Add. The Target the Repository dialog box is displayed. 4. Select the server or cluster and click Target. You can expand the cluster to see the servers in the cluster. However, if you select a cluster, the repository is targeted to all servers in the cluster. 5. When the operation completes, click Close. The server is now listed in the Targeted Servers section. To remove a server as a target for the repository: Managing the Metadata Repository 14-11 1. From the navigation pane, expand the farm, then Metadata Repositories. 2. Select the repository. The repository home page is displayed. 3. In the Targeted Servers section, select the target server and click Remove. The Untarget the Repository dialog box is displayed. 4. Select the server or cluster and click Untarget. You can expand the cluster to see the servers in the cluster. However, if you select a cluster, the repository will be untargeted from all servers in the cluster. 5. When the operation completes, click Close.

14.3.2.3 Deregistering a Database-Based MDS Repository

Deregistration does not result in loss of data stored in the repository. However, any applications using a deregistered repository will not function after the repository is deregistered. You must ensure that no application is using the repository before you deregister it. You can deregister a database-based MDS Repository using Fusion Middleware Control or WLST, as described in the following topics: ■ Deregistering a Database-Based MDS Repository Using Fusion Middleware Control ■ Deregistering a Database-Based MDS Repository Using WLST

14.3.2.3.1 Deregistering a Database-Based MDS Repository Using Fusion Middleware Control

To deregister an MDS 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. Alternatively, you can navigate to the Register Metadata Repositories page by choosing Administration, then RegisterDeregister from the Metadata Repository menu when you are viewing a metadata repository home page. 4. Select the repository from the table. 5. Click Deregister. 6. Click Yes in the Confirmation dialog box. 14.3.2.3.2 Deregistering a Database-Based MDS Repository Using WLST To deregister a database-based MDS Repository using the command line, you use the WLST deregisterMetadataDBRepository command. For example, to deregister the MDS Repository mds-repos1, use the following command: deregisterMetadataDBRepositoryname=mds-repos1

14.3.3 Registering and Deregistering a File-Based MDS Repository

The following topics describe how to register and deregister a file-based metadata repository: ■ Creating and Registering a File-Based 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.