RAC 环境,两个节点,在一个节点进行EM 启动无效,使用命令重建不成功,问题继续解决中。
[oracle@rac1 11.2.0]$ emctl start dbconsole
OC4J Configuration issue. /opt/app/oracle/product/11.2.0/oc4j/j2ee/OC4J_DBConsole_rac1_racdb1 not found.[oracle@rac1 11.2.0]$ cd oc4j/j2ee/
[oracle@rac1 j2ee]$ ll
total 36
-rw-r--r-- 1 oracle oinstall 979 Aug 3 17:44 deploy_db_wf.ini
drwxr-xr-x 14 oracle oinstall 4096 Aug 3 17:43 home
drwxr-xr-x 3 oracle oinstall 4096 Aug 3 17:42 oc4j_applications
drwxr-x--- 6 oracle oinstall 4096 Aug 3 17:42 OC4J_DBConsole
drwxr-x--- 10 oracle oinstall 4096 Aug 4 16:24 OC4J_DBConsole_rac1_racdb
drwxr-x--- 10 oracle oinstall 4096 Aug 4 10:33 OC4J_DBConsole_rac2_racdb
drwxr-xr-x 5 oracle oinstall 4096 Aug 3 17:42 OC4J_Workflow_Component_Container
drwxr-xr-x 5 oracle oinstall 4096 Aug 3 17:42 OC4J_Workflow_Management_Container
drwxr-xr-x 2 oracle oinstall 4096 Aug 3 17:43 utilities
[oracle@rac1 j2ee]$ emca -repos recreate
STARTED EMCA at Aug 4, 2011 6:20:29 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: RACDB1
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: y
Aug 4, 2011 6:20:47 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/app/oracle/cfgtoollogs/emca/emca_2011_08_04_18_20_29.log.
Aug 4, 2011 6:20:48 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Database instance unavailable.
Refer to the log file at /opt/app/oracle/cfgtoollogs/emca/emca_2011_08_04_18_20_29.log for more details.
Could not complete the configuration. Refer to the log file at /opt/app/oracle/cfgtoollogs/emca/emca_2011_08_04_18_20_29.log for more details.
[oracle@rac1 j2ee]$ cd /opt/app/oracle/cfgtoollogs/emca/
[oracle@rac1 emca]$ ll
total 88
-rw-r----- 1 oracle oinstall 7623 Aug 4 13:49 emca_2011_08_04_13_49_28.log
-rw-r--r-- 1 oracle oinstall 949 Aug 4 14:46 emca_2011_08_04_14_46_43.log
-rw-r--r-- 1 oracle oinstall 949 Aug 4 14:47 emca_2011_08_04_14_47_24.log
-rw-r--r-- 1 oracle oinstall 1784 Aug 4 16:07 emca_2011_08_04_16_07_22.log
-rw-r--r-- 1 oracle oinstall 15653 Aug 4 16:08 emca_2011_08_04_16_07_40.log
-rw-r----- 1 oracle oinstall 5031 Aug 4 16:09 emca_2011_08_04_16_09_24.log
-rw-r--r-- 1 oracle oinstall 5250 Aug 4 16:32 emca_2011_08_04_16_32_37.log
-rw-r--r-- 1 oracle oinstall 15653 Aug 4 16:56 emca_2011_08_04_16_56_25.log
-rw-r--r-- 1 oracle oinstall 15819 Aug 4 18:20 emca_2011_08_04_18_20_29.log
drwxr-x--- 2 oracle oinstall 4096 Aug 4 16:56 racdb
[oracle@rac1 emca]$ vi emca_2011_08_04_18_20_29.log
[oracle@rac1 emca]$ cd ..
[oracle@rac1 cfgtoollogs]$ cd /opt/app/orcl
-bash: cd: /opt/app/orcl: No such file or directory
[oracle@rac1 cfgtoollogs]$ cd /opt/app/oracle/product/11.2.0/oc4j/j2ee/
[oracle@rac1 j2ee]$ ll
total 36
-rw-r--r-- 1 oracle oinstall 979 Aug 3 17:44 deploy_db_wf.ini
drwxr-xr-x 14 oracle oinstall 4096 Aug 3 17:43 home
drwxr-xr-x 3 oracle oinstall 4096 Aug 3 17:42 oc4j_applications
drwxr-x--- 6 oracle oinstall 4096 Aug 3 17:42 OC4J_DBConsole
drwxr-x--- 10 oracle oinstall 4096 Aug 4 16:24 OC4J_DBConsole_rac1_racdb
drwxr-x--- 10 oracle oinstall 4096 Aug 4 10:33 OC4J_DBConsole_rac2_racdb
drwxr-xr-x 5 oracle oinstall 4096 Aug 3 17:42 OC4J_Workflow_Component_Container
drwxr-xr-x 5 oracle oinstall 4096 Aug 3 17:42 OC4J_Workflow_Management_Container
drwxr-xr-x 2 oracle oinstall 4096 Aug 3 17:43 utilities
[oracle@rac1 j2ee]$ emca -repos recreate
STARTED EMCA at Aug 4, 2011 6:23:05 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: racdb1
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: Y
Aug 4, 2011 6:23:23 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/app/oracle/cfgtoollogs/emca/racdb/emca_2011_08_04_18_23_05.log.
Aug 4, 2011 6:23:43 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Aug 4, 2011 6:29:03 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Aug 4, 2011 6:29:03 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Aug 4, 2011 6:35:36 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 4, 2011 6:35:36 PM
[oracle@rac1 j2ee]$ emca -config dbcontrol db
STARTED EMCA at Aug 5, 2011 8:56:32 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: racdb1
Database Control is already configured for the database racdb1
You have chosen to configure Database Control for managing the database racdb1
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 ORACLE_HOME [ /opt/app/oracle/product/11.2.0 ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Password for SYSMAN user: Email address for notifications (optional): tang@gmail.com
Outgoing Mail (SMTP) server for notifications (optional):
ASM ORACLE_HOME [ /opt/app/oracle/product/11.2.0 ]:
ASM SID [ +ASM ]: +ASM1
ASM port [ 1521 ]:
ASM username [ ASMSNMP ]:
ASM user password:
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /opt/app/oracle/product/11.2.0
Local hostname ................ rac1
Listener ORACLE_HOME ................ /opt/app/oracle/product/11.2.0
Listener port number ................ 1521
Database SID ................ racdb1
Email address for notifications ............... tang@gmail.com
Outgoing Mail (SMTP) server for notifications ...............
ASM ORACLE_HOME ................ /opt/app/oracle/product/11.2.0
ASM SID ................ +ASM1
ASM port ................ 1521
ASM user role ................ SYSDBA
ASM username ................ ASMSNMP
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Aug 5, 2011 8:57:20 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/app/oracle/cfgtoollogs/emca/racdb/emca_2011_08_05_08_56_31.log.
Aug 5, 2011 8:57:21 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5541 is already in use.
Aug 5, 2011 8:57:21 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5521 is already in use.
Aug 5, 2011 8:57:21 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5500 is already in use.
Aug 5, 2011 8:57:21 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Aug 5, 2011 8:58:06 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Aug 5, 2011 9:00:05 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Aug 5, 2011 9:00:30 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Aug 5, 2011 9:00:30 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Aug 5, 2011 9:04:54 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Aug 5, 2011 9:04:54 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Aug 5, 2011 9:05:40 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Aug 5, 2011 9:05:40 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Aug 5, 2011 9:08:48 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Aug 5, 2011 9:08:48 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://rac1:5500/em <<<<<<<<<<<
Aug 5, 2011 9:15:23 AM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************
Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted. The encryption key has been placed in the file: /opt/app/oracle/product/11.2.0/rac1_racdb/sysman/config/emkey.ora. Please ensure this file is backed up as the encrypted data will become unusable if this file is lost.
***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 5, 2011 9:15:23 AM
[oracle@rac1 j2ee]$ ll
total 36
-rw-r--r-- 1 oracle oinstall 979 Aug 3 17:44 deploy_db_wf.ini
drwxr-xr-x 14 oracle oinstall 4096 Aug 3 17:43 home
drwxr-xr-x 3 oracle oinstall 4096 Aug 3 17:42 oc4j_applications
drwxr-x--- 6 oracle oinstall 4096 Aug 3 17:42 OC4J_DBConsole
drwxr-xr-x 10 oracle oinstall 4096 Aug 5 09:00 OC4J_DBConsole_rac1_racdb
drwxr-x--- 10 oracle oinstall 4096 Aug 4 10:33 OC4J_DBConsole_rac2_racdb
drwxr-xr-x 5 oracle oinstall 4096 Aug 3 17:42 OC4J_Workflow_Component_Container
drwxr-xr-x 5 oracle oinstall 4096 Aug 3 17:42 OC4J_Workflow_Management_Container
drwxr-xr-x 2 oracle oinstall 4096 Aug 3 17:43 utilities
[oracle@rac1 j2ee]$ emctl start dbconsole
OC4J Configuration issue. /opt/app/oracle/product/11.2.0/oc4j/j2ee/OC4J_DBConsole_rac1_racdb1 not found.
[oracle@rac1 j2ee]$ export ORACLE_SID=racdb
[oracle@rac1 j2ee]$ emctl start dbconsole
OC4J Configuration issue. /opt/app/oracle/product/11.2.0/oc4j/j2ee/OC4J_DBConsole_rac1_racdb1 not found.
[oracle@rac1 j2ee]$