感谢maclean的及时回复,关于RAC EM 我还遇到一个问题,重建em后打开web还是报“oracle不可以用”,重建结果发现双节点的实例写的是数据库unique name ,实际情况我的两个实例是ora11g1和ora11g2;还有重建时让我输入Listener ORACLE_HOME ,这个地方是写grid(crs)的ORACLE_HOME 还是写oracle(数据库)用户的ORACLE_HOME ?
oracle@rac1:~> emca -config dbcontrol db -repos create -cluster
STARTED EMCA at Aug 7, 2012 9:11:08 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database unique name: ora11g
Service name: ora11g
Listener ORACLE_HOME [ /u01/app/11.2.0/grid ]:
Password for SYS user:
Database Control is already configured for the database ora11g
You have chosen to configure Database Control for managing the database ora11g
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
Password for DBSNMP user: 6
Password for SYSMAN user:
Cluster name: rac-cluster
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
ASM ORACLE_HOME [ /u01/app/11.2.0/grid ]:
ASM port [ 1521 ]:
ASM username [ ASMSNMP ]:
ASM user password:
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1
Database instance hostname ................ rac1
Listener ORACLE_HOME ................ /u01/app/11.2.0/grid
Listener port number ................ 1521
Cluster name ................ rac-cluster
Database unique name ................ ora11g
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
ASM ORACLE_HOME ................ /u01/app/11.2.0/grid
ASM port ................ 1521
ASM user role ................ SYSDBA
ASM username ................ ASMSNMP
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Aug 7, 2012 10:27:47 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/ora11g/emca_2012_08_07_21_11_08.log.
Aug 7, 2012 10:32:20 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5540 is already in use.
Aug 7, 2012 10:32:20 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5520 is already in use.
Aug 7, 2012 10:32:20 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 1158 is already in use.
Aug 7, 2012 10:32:20 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Aug 7, 2012 10:36:27 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Aug 8, 2012 1:22:30 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Aug 8, 2012 1:32:27 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Aug 8, 2012 1:44:22 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Aug 8, 2012 1:47:17 AM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
INFO: Propagating /u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_rac1_ora11g to remote nodes ...
Aug 8, 2012 1:49:03 AM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
INFO: Propagating /u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_rac2_ora11g to remote nodes ...
Aug 8, 2012 1:52:31 AM oracle.sysman.emcp.EMAgentConfig deployStateDirs
INFO: Propagating /u01/app/oracle/product/11.2.0/db_1/rac1_ora11g to remote nodes ...
Aug 8, 2012 1:55:08 AM oracle.sysman.emcp.EMAgentConfig deployStateDirs
INFO: Propagating /u01/app/oracle/product/11.2.0/db_1/rac2_ora11g to remote nodes ...
Aug 8, 2012 1:58:18 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Location /u01/app/oracle/product/11.2.0/db_1/EMStagePatches_ora11g is not shared. Software library could not be configured. Provisioning archives will not be deployed. Please configure it manually.
Aug 8, 2012 1:58:18 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Aug 8, 2012 2:06:04 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Aug 8, 2012 2:14:30 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://rac1:1158/em <<<<<<<<<<<
Aug 8, 2012 2:28:44 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /u01/app/oracle/product/11.2.0/db_1/bin/emctl config emkey -remove_from_repos
Aug 8, 2012 2:28:44 AM oracle.sysman.emcp.util.DBControlUtil secureEmkey
INFO: Failed to remove Em Key from Management Repository.
Aug 8, 2012 2:29:19 AM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage
INFO:
**************** Current Configuration ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
---------- ---------- ---------------------
ora11g rac1 rac1
ora11g rac2 rac1
Aug 8, 2012 2:29:19 AM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING: Error starting Database Control on nodes rac2. Please execute the following command(s) on nodes: rac2.
1) Set the environment variable ORACLE_UNQNAME to Database unique name
2) /u01/app/oracle/product/11.2.0/db_1/bin/emctl start dbconsole
Error starting Database Control on nodes rac2. Please execute the following command(s) on nodes: rac2.
1) Set the environment variable ORACLE_UNQNAME to Database unique name
2) /u01/app/oracle/product/11.2.0/db_1/bin/emctl start dbconsole