Home » RDBMS Server » Enterprise Manager » Problem when recreate OEM repository (Oracle 10g R2, Linux)
Problem when recreate OEM repository [message #522785] Tue, 13 September 2011 23:04 Go to next message
ntt85
Messages: 34
Registered: July 2011
Location: vietnam
Member

After my server rebooted, I can not start OEM, so I recreate OEM repository. Howerver:
[oracle@IVR01 root]$ emca -config dbcontrol db -repos recreate

STARTED EMCA at Sep 14, 2011 9:34:18 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: mfdbs
Database Control is already configured for the database mfdbs
You have chosen to configure Database Control for managing the database mfdbs
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: y
Listener port number: 1521
Password for SYS user:  
Password for DBSNMP user: [oracle@IVR01 root]$ 
[oracle@IVR01 root]$ emca -config dbcontrol db -repos recreate

STARTED EMCA at Sep 14, 2011 9:35:45 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: mfdbs
Database Control is already configured for the database mfdbs
You have chosen to configure Database Control for managing the database mfdbs
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: y
Listener port number: 1521
Password for SYS user:  
Password for DBSNMP user:  
Password for SYSMAN user:  
Email address for notifications (optional): 
Outgoing Mail (SMTP) server for notifications (optional): 
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /opt/oracle/102

Database hostname ................ IVR01.server
Listener port number ................ 1521
Database SID ................ mfdbs
Email address for notifications ............... 
Outgoing Mail (SMTP) server for notifications ............... 

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Sep 14, 2011 9:38:17 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/102/cfgtoollogs/emca/mfdbs/emca_2011-09-14_09-35-39-AM.log.
Sep 14, 2011 9:39:58 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5540 is already in use.
Sep 14, 2011 9:39:58 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5520 is already in use.
Sep 14, 2011 9:39:59 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 1158 is already in use.
Sep 14, 2011 9:39:59 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Sep 14, 2011 9:42:54 AM oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
Sep 14, 2011 9:46:56 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Sep 14, 2011 9:46:58 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Sep 14, 2011 9:56:09 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Sep 14, 2011 9:56:10 AM oracle.sysman.emcp.EMDBCConfig copyOC4JDir
WARNING: Error copying OC4J config files from /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole to /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole_IVR01.server_mfdbs
Sep 14, 2011 9:56:10 AM oracle.sysman.emcp.EMDBCConfig copyOC4JDir
WARNING: Error copying OC4J config files from /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole to /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole_IVR01.server_mfdbs
Sep 14, 2011 9:56:10 AM oracle.sysman.emcp.EMDBCConfig copyOC4JDir
WARNING: Error copying OC4J config files from /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole to /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole_IVR01.server_mfdbs
Sep 14, 2011 9:56:10 AM oracle.sysman.emcp.util.FileUtil modifyPortValuesInXML
SEVERE: Error writing file /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole_IVR01.server_mfdbs/config/jms.xml
Sep 14, 2011 9:56:10 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Error instantiating OC4J configuration files
Refer to the log file at /opt/oracle/102/cfgtoollogs/emca/mfdbs/emca_2011-09-14_09-35-39-AM.log for more details.
Could not complete the configuration. Refer to the log file at /opt/oracle/102/cfgtoollogs/emca/mfdbs/emca_2011-09-14_09-35-39-AM.log for more details.


I checked listener, status, environment,.. are ok.
Anyone can help me? Thanks a lot.
Re: Problem when recreate OEM repository [message #522786 is a reply to message #522785] Tue, 13 September 2011 23:11 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
id
env | sort

COPY commands above & results then PASTE all back here
Re: Problem when recreate OEM repository [message #522788 is a reply to message #522785] Tue, 13 September 2011 23:40 Go to previous message
ntt85
Messages: 34
Registered: July 2011
Location: vietnam
Member

[oracle@IVR01 root]$ id
uid=501(oracle) gid=502(oinstall) groups=501(dba),502(oinstall),503(asmdba),504(asmadmin)
[oracle@IVR01 root]$ env | sort
_=/bin/env
CLASSPATH=/opt/oracle/102/jlib:/opt/oracle/102/rdbms/jlib
CVS_RSH=ssh
G_BROKEN_FILENAMES=1
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=IVR01
INPUTRC=/etc/inputrc
JAVA_HOME=/opt/jdk1.6.0_22
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/opt/oracle/102/lib:/lib:/usr/lib/oracle
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
MAIL=/var/spool/mail/root
ORACLE_BASE=/opt/oracle
ORACLE_HOME=/opt/oracle/102
ORACLE_SID=mfdbs
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:
/sbin:/bin:/usr/sbin:/usr/bin:/opt/jdk1.6.0_22/bin:/root/bin:/opt/oracle/102/bin
PWD=/root
SHELL=/bin/bash
SHLVL=2
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_CLIENT=172.16.16.14 2249 22
SSH_CONNECTION=172.16.16.14 2249 172.16.16.113 22
SSH_TTY=/dev/pts/1
TERM=xterm
TZ=Asia/Jakarta
USER=oracle

[Updated on: Wed, 14 September 2011 00:52] by Moderator

Report message to a moderator

Previous Topic: Oracle Intelligent Agent Error
Next Topic: OEM Grid - Current Logon Counts - Where is this info coming from
Goto Forum:
  


Current Time: Thu Mar 28 20:11:19 CDT 2024