[oracle@xxx bin]$ ./emctl config oms -list_repos_details
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Repository Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=db-scan)(PORT=1521)))(LOAD_BALANCE=ON)(CONNECT_DATA=(SERVICE_NAME=DBCLOUD)))
Repository User : SYSMAN
-- Used to rollback :
emctl config oms -store_repos_details -repos_conndesc "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=dbcloud-scan)(PORT=1521)))(LOAD_BALANCE=ON)(CONNECT_DATA=(SERVICE_NAME=DBCLOUD)))" -repos_user SYSMAN -repos_pwd passwordxxxx
2. modifiy repos configuration .
emctl config oms -store_repos_details -repos_conndesc "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.22.137.181)(PORT=1521)))(LOAD_BALANCE=ON)(CONNECT_DATA=(SERVICE_NAME=DBCLOUD)))" -repos_user SYSMAN -repos_pwd passwordxxxx
[oracle@xxx bin]$ ./emctl config oms -store_repos_details -repos_conndesc "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.22.130.181)(PORT=1521)))(LOAD_BALANCE=ON)(CONNECT_DATA=(SERVICE_NAME=DBCLOUD)))" -repos_user SYSMAN -repos_pwd passwordxxxx
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Successfully updated datasources and stored repository details in Credential Store.
If there are multiple OMSs in this environment, run this store_repos_details command on all of them.
And finally, restart all the OMSs using 'emctl stop oms -all' and 'emctl start oms'.
3. restart OMS .
emctl stop oms -all
emctl start oms
4. modify minitoring configuration .
sysman login -> Setup -> Manage Cloud Control -> Repository -> OMS and Repository -> Target Setup -> Monitoring Configuration ->
https://martincarstenbach.wordpress.com/2011/10/17/move-the-em12c-repository-database/
http://www.aamirharoon.com/oem-cc-12c/important-steps-before-upgrading-omr-database-to-12c-pdb/
http://blog.csdn.net/mikixiyou/article/details/9465169?locationNum=8