OEM11g grid control重新配置时SYSMAN无法创建后手工删除

OMS配置不成功,重新安装时,报以下错误:

配置阶段期间, 安装程序将无法在指定的数据库中创建 SYSMAN_MDS 方案。指定的数据库已配置了管理资料档案库。请指定其他数据库详细资料, 或在 Oracle Management Service 的 Oracle 主目录中通过运行以下命令来删除 SYSMAN_MDS 方案:

/sysman/admin/emdrep/bin/RepManager  -action dropall -dbUser -dbPassword -dbRole -reposName  -reposPassword -mwHome -mwOraHome -oracleHome

 

Solution:

按照提示进行以下操作:

1、进入/sysman/admin/emdrep/bin目录

2、设置ORACLE_HOME和相应的ORACLE_SID

D:\app\orcl\product\11.2.0\dbhome_1\sysman\admin\emdrep\bin>set ORACLE_HOME=D:\app\orcl\product\11.2.0\dbhome_1

D:\app\orcl\product\11.2.0\dbhome_1\sysman\admin\emdrep\bin>set ORACLE_SID=orcl

3、运行命令:

emdrep\bin>RepManager.bat xxx.xxx.x.x 1521 orcl -action drop

然后按照提示输入相应的信息,可成功删除sysman方案

Enter SYS user's password :

Enter repository user name : sysman
Getting temporary tablespace from database...
Found temporary tablespace: TEMP
Checking SYS Credentials ... rem error switch
OK.
rem error switch
Dropping the repository..
Checking for Repos User ... Exists.
Repos User exists..
Clearing EM Contexts ... OK.
Dropping EM users ...
Done.
Dropping Repos User ... Done.
Dropping Roles/Synonymns/Tablespaces ... Done.
Dropped Repository Successfully.

5.2 常见错误和故障
1. 数据库的状态是Pending
可能原因是:没有配置dbsnmp用户的密码 2. 系统的状态是Pending
可在agent上执行:
bash-3.2$ ./emctl upload agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.   Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved. ---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet.. 
如果报以上错误,则说明agent不能uplaod文件到OMS服务器 $ emctl stop agent
- delete all files in $AGENT_HOME/sysman/emd/upload  - delete all files in $AGENT_HOME/sysman/emd/state
$ emctl clearstate agent (this should delete all state files but sometimes it is not enough, but I experienced that it is better to use this command after deletion of the files) $ emctl secure agent (and specify the password on demand) $ emctl start agent 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27677524/viewspace-756391/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/27677524/viewspace-756391/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值