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.
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/