Transferring Metadata using WLST

14-26 Oracle Fusion Middleware Administrators Guide By default, the table lists all metadata labels created in the selected partition that are more than one year old and that are not deployed or associated with a sandbox. 4. By default, labels associated with sandboxes and deployed applications are not shown. To display those labels, select Sandboxes or Deployment or both. Note the following: ■ You cannot delete a label associated with a sandbox. ■ If you select Deployment, the labels that are associated with MAR deployments are displayed. 5. To filter the labels displayed by name, enter the filter criteria in the box above Name. The characters are case sensitive. You can use the following wildcards: ■ Percent : Matches any number of characters ■ Underscore _: Matches a single character ■ Backslash \: Used as an escape character for the wildcards For example, the string postDeployLabel returns any label beginning with postDeployLabel. As a result, it displays labels associated with a deployed MAR. 6. To filter the labels by those older than a particular time, select the time in Older Than. For example, if you specify 2 months, the labels older than 2 months are returned. 7. Select the label and click Delete Selected. 8. In the confirmation box, click OK. If you want to purge all unused labels, for a particular deployed application: 1. Select Deployment. 2. Filter by name, using the string postDeployLabel_application_name. 3. Select all but the latest which is in use to delete. The most recent label---the one that is currently being used---is listed first. 4. Click Delete Selected. 14.3.12.4.2 Purging Metadata Labels Using WLST You can purge metadata labels that match the given pattern or age, using the WLST command purgeMetadataLabels. The command purges the labels that match the criteria specified, but it does not delete the metadata documents that were specified by the labels. For example, to purge all metadata labels that match the specified namePattern and that are older than 30 minutes: purgeMetadataLabelsrepository=mds-myRepos, partition=partition1, namePattern=prod, olderThanInMin=30 Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root. For more help, use helpdomainRuntime Executing operation: purgeMetadataLabels. The following metadata labels were purged: repository=mds-soa,parititon=partition1,namePattern=prod,olderThanInMin=30: Managing the Metadata Repository 14-27

14.3.12.5 Deleting Metadata Labels

To delete a specified metadata label, you use the WLST command deleteMetadataLabel. For example, to delete a label named prod1 for the application my_mds_app, use the following command: deleteMetadataLabelapplication=my_mds_app, server=server1, name=prod1 If the application has more than one version, you must use the applicationVersion parameter to specify the version. To find the labels associated with an application, use the listMetadataLabels command, as described in Section 14.3.12.2 .

14.4 Managing Metadata Repository Schemas

The following topics describe how to manage the metadata repository schemas: ■ Changing Metadata Repository Schema Passwords ■ Changing the Character Set of the Metadata Repository

14.4.1 Changing Metadata Repository Schema Passwords

The schema passwords are stored in the database. For example, to change the password of the schema OFM_MDS: 1. Connect to the database using SQLPlus. Connect as a user with SYSDBA privileges. 2. Issue the following command: SQL ALTER USER schema IDENTIFIED BY new_password; For example, to change the OFM_ MDS password to abc123: SQL ALTER USER OFM_MDS IDENTIFIED BY abc123; 3. If you change the MDS Repository schema password, you must change the password for the corresponding MDS Repository data source, using Oracle WebLogic Server Administration Console: a. From Domain Structure, expand Services, then Data Sources. b. Click the data source that is related to the MDS Repository. c. Click the Configuration tab, then the Connection Pool tab. d. For Password, enter the new password. e. Click Save. f. Restart the Managed Servers that consume the data source.

14.4.2 Changing the Character Set of the Metadata Repository

For information about changing the character set of metadata repository that is stored in an Oracle Database, see Oracle Database Globalization Support Guide: http:www.oracle.comtechnetworkdatabaseenterprise-editiondo cumentationindex.html Oracle recommends using Unicode for all new system deployments. Deploying your systems in Unicode offers many advantages in usability, compatibility, and