现象:安装EM报错
SEVERE: Error creating the repository
Refer to the log file at /u01/app/oracle/hzhuct/10.2.0.1/db_1/cfgtoollogs/emca/hzh/emca_2013-11-05_03-06-54-PM.log for more details.
Could not complete the configuration. Refer to the log file at /u01/app/oracle/hzhuct/10.2.0.1/db_1/cfgtoollogs/emca/hzh/emca_2013-11-05_03-06-54-PM.log for more details.
排错:
[oracle@kingsql ~]$ cat /u01/app/oracle/hzhuct/10.2.0.1/db_1/cfgtoollogs/emca/hzh/emca_2013-11-05_03-06-54-PM.log
CONFIG: ORA-20001: SYSMAN already exists..
ORA-06512: at line 17
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-20001: SYSMAN already exists..
ORA-06512: at line 17
SYS@hzh> drop user sysman cascade;
User dropped.
再装,还报错
CONFIG: ORA-01921: role name 'MGMT_USER' conflicts with another user or role name
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-01921: role name 'MGMT_USER' conflicts with another user or role name
//因为我看他是按顺序装的,所以还得删除sysman一次
SYS@hzh> drop user sysman cascade;
User dropped.
SYS@hzh> drop role MGMT_USER;
Role dropped.
再创建,还报错,此时血压有点上来了
分析日志
有一句
CONFIG: Spooling to /u01/app/oracle/hzhuct/10.2.0.1/db_1/cfgtoollogs/emca/hzh/emca_repos_create_2013-11-05_03-25-24-PM.log
日志里还有日志!
[oracle@kingsql ~]$ cat /u01/app/oracle/hzhuct/10.2.0.1/db_1/cfgtoollogs/emca/hzh/emca_repos_create_2013-11-05_03-25-24-PM.log
Check if repos user already exists.
old 6: WHERE username=UPPER('&EM_REPOS_USER');
new 6: WHERE username=UPPER('SYSMAN');
old 8: IF ( '&EM_CHECK_TYPE' = 'EXISTS') THEN
new 8: IF ( 'NOT_EXISTS' = 'EXISTS') THEN
old 11: raise_application_error(-20000, '&EM_REPOS_USER does not exists..');
new 11: raise_application_error(-20000, 'SYSMAN does not exists..');
old 14: ELSIF ( '&EM_CHECK_TYPE' = 'NOT_EXISTS' ) THEN
new 14: ELSIF ( 'NOT_EXISTS' = 'NOT_EXISTS' ) THEN
old 17: raise_application_error(-20001, '&EM_REPOS_USER already exists..');
new 17: raise_application_error(-20001, 'SYSMAN already exists..');
old 21: raise_application_error(-20002, 'Invalid Check type &EM_CHECK_TYPE');
new 21: raise_application_error(-20002, 'Invalid Check type NOT_EXISTS');
Create SYSMAN user.
No errors.
Create core schema..
Creating Types
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
Creating Tables
Creating Tables
CREATE PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS FOR MGMT_BLACKOUT_STATE
*
ERROR at line 1:
ORA-00955: name is already used by an existing object
SYS@hzh> drop user sysman cascade;
User dropped.
SYS@hzh> drop role MGMT_USER;
Role dropped.
SYS@hzh> drop PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;
Synonym dropped.
再装,继续报错
BEGIN
*
ERROR at line 1:
ORA-04031: unable to allocate 3888 bytes of shared memory ("shared
pool","unknown object","sga heap(1,0)","kglsim object batch")
【参考http://emuch.net/fanwen/439/58219.html】
SYS@hzh> alter system set shared_pool_size=20M;
Show 一下
System altered.
-------------------------------------------------------------------------
shared_pool_reserved_size big integer 3M
shared_pool_size big integer 20M
-------------------------------------------------------------------------
//大概是10%左右
SYS@hzh> drop user sysman cascade;
User dropped.
SYS@hzh> drop role MGMT_USER;
Role dropped.
SYS@hzh> drop PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;
Synonym dropped.
再装
FINISHED EMCA at Nov 5, 2013 3:50:33 PM
作者:kingsql
转载请注明出处
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28389881/viewspace-775720/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28389881/viewspace-775720/