码迷,mamicode.com
首页 > 数据库 > 详细

Create Oracle Enterprise Manager repository data after restore a database from another server

时间:2014-10-28 07:03:56      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:os   for   strong   on   bs   ad   as   sql   res   

1. Set password for SYS in password file:

orapwd file=$ORACLE_HOME/dbs/orapw<ORACLE_SID>

2. Drop repos data copied from the original database ( you may need to unlock sysman user first ):

emca -deconfig dbcontrol db -repos drop

3. If emca cannot drop user sysman, drop it manually in sqlplus:

DROP USER sysman CASCADE;

4. Create the repos data:

emca -config dbcontrol db -repos create

Create Oracle Enterprise Manager repository data after restore a database from another server

标签:os   for   strong   on   bs   ad   as   sql   res   

原文地址:http://www.cnblogs.com/amonw/p/4055682.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!