EM结构简单分析 :
EMCA可以想象为一个小的WEB应用,数据库使用了sysman的表单,在手册上对应的是emca命令中的repository,Web层存放在$ORACLE_HOME目录下的相应目录,修改配置对应emca中的config命令。基本上所有问题都在这两个部分之中。
EM故障定位和解决:
1、Web层错误,如sysman密码和数据库sysman密码不一致等等问题
解决办法:删除Web层配置重新创建:
$ emca -deconfig dbcontrol db –cluster <删除本地文件目录的配置文件> $ emca -config dbcontrol db –cluster <创建本地文件目录的配置文件> Enter the following information: Database unique name: xxxx Service name: xxxxx Listener port number: 1521 Listener ORACLE_HOME [ /oracle/grid/11.2.0/grid ]: Password for SYS user: 数据库密码sysdba> Password for DBSNMP user: DBSNMP Password for SYSMAN user: SYSMAN Cluster name: xxxxx-cluster Email address for notifications (optional): Outgoing Mail (SMTP) server for notifications (optional): ASM ORACLE_HOME [ /oracle/grid/11.2.0/grid ]: ASM port [ 1521 ]: ASM username [ ASMSNMP ]: sys <备注:可通过grid用户查找gv$pwfile_users,是否包含该用户,我们系统中只有sys用户,该用户的密码管理是通过本地文件$ORACLE_HOME/dbs/orapw+ASM文件来管理的> ASM user password: |
2、数据库层错误解决方法:
emca -config dbcontrol db -repos recreate –cluster |
3、如果无法确定是哪个层面上出现错误,最简单的方法是数据库drop user sysman cascade,删除该用户的所有表单,然后重新创建
SQL>drop user sysman cascade SQL>create user sysman identitited by sysman default tablespace SYSAUX temporary tablespace temp; 然后赋予sysman权限,通过脚本创建相应的EM $ORACLE_HOME/sysman/admin/emdrep/sql/emreposcre $ORACLE_HOME SYSMAN sysdba TEMP on |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/354732/viewspace-1102104/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/354732/viewspace-1102104/