Configuring em for oracle10grac was originally a very simple task, but it took a long time to record it and forget it. First, the following error is reported: [oracle @ node1admin] $ emca-configdbcontroldbSTARTEDEMCAatAug17, 20149: 06: 47 AMEMConfigurationAssistant, Version10.2.0.5.0Production
Configuring em for oracle10grac was originally a very simple task, but it took a long time to record it and forget it. First, the following error is reported: [oracle @ node1 admin] $ emca-config dbcontrol dbSTARTED EMCA at Aug 17,201 4 9:06:47 AMEM Configuration Assistant, Version 10.2.0.5.0 Production
Configuring em for oracle10grac was originally a very simple task, but it took a long time to record it and forget it.
First, the following error is reported:
[oracle@node1 admin]$ emca -config dbcontrol dbSTARTED EMCA at Aug 17, 2014 9:06:47 AMEM Configuration Assistant, Version 10.2.0.5.0 ProductionCopyright (c) 2003, 2009, Oracle. All rights reserved.Enter the following information:Database SID: racdb1Listener port number: 1521Password for SYS user: Password for DBSNMP user: Aug 17, 2014 9:06:57 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineWARNING: ORA-28000: the account is lockedPassword for SYSMAN user: Aug 17, 2014 9:07:02 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineWARNING: ORA-28000: the account is lockedEmail address for notifications (optional): Outgoing Mail (SMTP) server for notifications (optional): ASM ORACLE_HOME [ /u01/app/oracle/product/11.2.0/db ]: ASM SID [ +ASM ]: ASM port [ 1521 ]: ASM user role [ SYSDBA ]: ASM username [ SYS ]: ASM user password: ASM user password: -----------------------------------------------------------------You have specified the following settingsDatabase ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbLocal hostname ................ node1Listener port number ................ 1521Database SID ................ racdb1Email address for notifications ............... Outgoing Mail (SMTP) server for notifications ............... ASM ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbASM SID ................ +ASMASM port ................ 1521ASM user role ................ SYSDBAASM username ................ SYS-----------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: yAug 17, 2014 9:12:22 AM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/product/11.2.0/db/cfgtoollogs/emca/racdb/emca_2014-08-17_09-06-47-AM.log.Aug 17, 2014 9:12:34 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsoleINFO: Securing Database Control (this may take a while) ...Aug 17, 2014 9:13:01 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsoleINFO: Database Control secured successfully.Aug 17, 2014 9:13:01 AM oracle.sysman.emcp.util.DBControlUtil startOMSINFO: Starting Database Control (this may take a while) ...Aug 17, 2014 9:17:40 AM oracle.sysman.emcp.util.PlatformInterface executeCommandWARNING: Error executing /u01/app/oracle/product/11.2.0/db/bin/emctl start dbconsole Aug 17, 2014 9:17:40 AM oracle.sysman.emcp.EMConfig performSEVERE: Error starting Database ControlRefer to the log file at /u01/app/oracle/product/11.2.0/db/cfgtoollogs/emca/racdb/emca_2014-08-17_09-06-47-AM.log for more details.Could not complete the configuration. Refer to the log file at /u01/app/oracle/product/11.2.0/db/cfgtoollogs/emca/racdb/emca_2014-08-17_09-06-47-AM.log for more details.
[root@node1 ~]# cat /u01/app/oracle/product/11.2.0/db/cfgtoollogs/emca/racdb/emca_2014-08-17_09-06-47-AM.log
Aug 17, 2014 9:17:40 AM oracle.sysman.emcp.EMConfig performCONFIG: Stack Trace: oracle.sysman.emcp.exception.EMConfigException: Error starting Database Controlat oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:649)at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:227)at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:196)at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:184)at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:494)at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1161)at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:478)at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:426)
Online data query is an oracle bug.
Oracle explains this:
In Enterprise Manager Database Control with Oracle Database 10.2.0.4 and 10.2.0.5, the root certificate used to secure communications via the Secure Socket Layer (SSL) protocol will expire on 31-Dec-2010 00:00:00. the certificate expiration will cause errors if you attempt to configure Database Control on or after 31-Dec-2010. existing Database Control operations are not affected by this issue.
If you plan to configure Database Control with either of these Oracle Database releases, Oracle strongrong recommends that you apply Patch 8350262 to your Oracle Home installations before you configure Database Control. configuration of Database Control is typically done when you create or upgrade Oracle Database, or if you run Enterprise Manager Configuration Assistant (EMCA) in standalone mode.
View: Enterprise Manager Database Control Configuration-Recovering From Errors Due to CA Expiry on Oracle Database 10.2.0.4 or 10.2.0.5 [Video] [ID 1222603.1]
Solution:
If the patch has been applied before the instance is created, no error will be reported. If the patch is created after the instance is created, run the following command:
For a single instance:
1. Install Patch 8350262 using Opatch
2. Set the ORACLE_HOME and ORACLE_SID environment variables and run /KillDBConsole. (skip this step on windows)
3. Re-secure Database Control with the following command:
/Bin/emctl secure dbconsole-reset
4. Re-start Database Control with the following command:
/Bin/emctl start dbconsole
For RAC:
1. Use Opatch to install Patch 8350262 and install Patch on a node.
2. Run the following command on all nodes: Set the ORACLE_HOME and ORACLE_SID environment variables and run /KillDBConsole. (skip this step on windows)
3. Re-secure Database Control on the first cluster node with the following command:
/Bin/emctl secure dbconsole-reset
4. Re-secure Database Control on the remaining cluster nodes with the following command. Note that the-reset switch is not supported ded with this command:
/Bin/emctl secure dbconsole
5. Re-start Database Control by executing the following command on each node in the cluster:
/Bin/emctl start dbconsole
After patching, clear and create em, and report various errors, but manually delete various data:
Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, OLAP, Data Miningand Real Application Testing optionsSQL> DROP public synonym SETEMVIEWUSERCONTEXT;Synonym dropped.SQL> DROP PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;Synonym dropped.SQL> drop role MGMT_USER;Role dropped.SQL> DROP USER MGMT_VIEW CASCADE;DROP USER MGMT_VIEW CASCADE *ERROR at line 1:ORA-01918: user 'MGMT_VIEW' does not existSQL> DROP USER SYSMAN CASCADE;User dropped.SQL> exit
The em is created successfully,
[Oracle @ node1 ~] $ Emca-config dbcontrol db-repos createSTARTED EMCA at Aug 17,201 4 2:58:04 PMEM Configuration Assistant, Version 10.2.0.5.0 ProductionCopyright (c) 2003,200 9, Oracle. all rights reserved. enter the following information: Database SID: racdb1Listener port number: 1521 Password for SYS user: Password for DBSNMP user: Password for SYSMAN user: Email address for communications (optional): Outgoing Mail (SMTP) server for communications (optional): ASM ORACLE_HOME [/u01/app/oracle/product/11.2.0/db]: asm sid [+ ASM]: + ASM1ASM port [1521]: ASM user role [SYSDBA]: ASM username [SYS]: ASM user password: --------------------------------------------------------------- You have specified the following settingsDatabase ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbLocal hostname ................ Node1Listener port number ................ 1521 Database SID ................ racdb1Email address for communications ............... outgoing Mail (SMTP) server for communications ............... ASM ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbASM SID ................ + ASM1ASM port ................ 1521ASM user role ................ SYSDBAASM username ................ SYS ----------------------------------------------------------------------- Do you wish to continue? [Yes (Y)/no (N)]: yAug 17,201 4 2:58:32 oracle. sysman. emcp. EMConfig implements minfo: This operation is being logged at/u01/app/oracle/product/11.2.0/db/export toollogs/emca/racdb/emca_2014-08-17_02-58-04-PM.log.Aug 17,201 4 2:58:34 PM oracle. sysman. emcp. EMReposConfig createRepositoryINFO: Creating the EM repository (this may take a while )... aug 17,201 4 3:02:14 oracle. sysman. emcp. EMReposConfig invokeINFO: Repository successfully createdAug 17,201 4 3:02:24 oracle. sysman. emcp. util. DBControlUtil secureDBConsoleINFO: Securing Database Control (this may take a while )... aug 17,201 4 3:02:50 oracle. sysman. emcp. util. DBControlUtil secureDBConsoleINFO: Database Control secured successfully. aug 17,201 4 3:02:50 oracle. sysman. emcp. util. DBControlUtil startOMSINFO: Starting Database Control (this may take a while )... aug 17,201 4 3:04:27 oracle. sysman. emcp. EMDBPostConfig initialize mconfigurationinfo: Database Control started successfullyAug 17,201 4 3:04:27 oracle. sysman. emcp. EMDBPostConfig extends mconfigurationinfo: >>>>>>>>>>> The Database Control URL is https://node1:1158/em <
After logging on to the system, you will find that it is not the rac em and reconfigure it.
[oracle@node1 dbs]$ cd /u01/app/crs_home/bin[oracle@node1 bin]$ ./cemutlo -ncrs[oracle@node1 bin]$ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.5.0 - Production on Sun Aug 17 17:18:28 2014Copyright (c) 1982, 2010, Oracle. All Rights Reserved.Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, OLAP, Data Miningand Real Application Testing optionsSQL> show parameter nameNAME TYPE VALUE------------------------------------ ----------- ------------------------------db_file_name_convert stringdb_name string racdbdb_unique_name string racdbglobal_names boolean TRUEinstance_name string racdb1lock_name_space stringlog_file_name_convert stringservice_names string service1, SYS$ADMIN.TARGET_QUE UE.RACDB.EPOINT.COM, service2, racdb.epoint.comSQL>
[Oracle @ node1 dbs] $ emca-config dbcontrol db-repos create-clusterSTARTED EMCA at Aug 17,201 4 5:02:15 PMEM Configuration Assistant, Version 10.2.0.5.0 ProductionCopyright (c) 2003,200 9, Oracle. all rights reserved. enter the following information: Database unique name: racdbDatabase Control is already configured for the database racdbYou have chosen to configure Database Control for managing Database racdbThis will remove the existing configuration and the default settings and perform a fresh configurationDo you wish to continue? [Yes (Y)/no (N)]: yListener port number: 1521 Cluster name: crsPassword for SYS user: Password for DBSNMP user: Password for SYSMAN user: email address for communications (optional): Outgoing Mail (SMTP) server for communications (optional): ASM ORACLE_HOME [/u01/app/oracle/product/11.2.0/db]: ASM port [1521]: ASM user role [SYSDBA]: ASM username [SYS]: ASM user password :---------------------- ----------------------------------------- You have specified the following settingsDatabase ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbDatabase instance hostname ................ node1Listener port number ................ 1521 Cluster name ................ crsDatabase unique name ................ racdbEmail address for communications ............... outgoing Mail (SMTP) server fo R Communications ............... ASM ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbASM port ................ 1521ASM user role ................ SYSDBAASM username ................ SYS ------------------------------------------------------------------- Do you wish to continue? [Yes (Y)/no (N)]: yAug 17,201 4 5:02:38 oracle. sysman. emcp. EMConfig implements minfo: This operation is being logged at/u01/app/oracle/product/11.2.0/db/export toollogs/emca/racdb/emca_2014-08-17_05-02-15-PM.log.Aug 17,201 4 5:02:40 PM oracle. sysman. emcp. util. DBControlUtil stopOMSINFO: Stopping Database Control (this may take a while )... aug 17,201 4 5:02:44 oracle. sysman. emcp. EMReposConfig createRepositoryINFO: Creating the EM repository (this may take a while )... aug 17,201 4 5:05:22 oracle. sysman. emcp. EMReposConfig invokeINFO: Repository successfully createdAug 17,201 4 5:05:27 oracle. sysman. emcp. EMDBCConfig instantiateOC4JConfigFilesINFO: Propagating/u01/app/oracle/product/11.2.0/db/Solaris/j2ee/OC4J_DBConsole_node1_racdb1 to remote nodes... aug 17,201 4 5:05:28 oracle. sysman. emcp. EMDBCConfig instantiateOC4JConfigFilesINFO: Propagating/u01/app/oracle/product/11.2.0/db/Solaris/j2ee/OC4J_DBConsole_node2_racdb2 to remote nodes... aug 17,201 4 5:05:28 oracle. sysman. emcp. EMDBCConfig copyAndPropagateOC4JDirINFO: Propagating/u01/app/oracle/product/11.2.0/db/Solaris/j2ee/isqlplus_node1 to remote nodes... aug 17,201 4 5:05:29 oracle. sysman. emcp. EMDBCConfig copyAndPropagateOC4JDirINFO: Propagating/u01/app/oracle/product/11.2.0/db/Solaris/j2ee/isqlplus_node2 to remote nodes... aug 17,201 4 5:05:34 oracle. sysman. emcp. EMAgentConfig deployStateDirsINFO: Propagating/u01/app/oracle/product/11.2.0/db/node1_racdb1 to remote nodes... aug 17,201 4 5:05:37 oracle. sysman. emcp. EMAgentConfig deployStateDirsINFO: Propagating/u01/app/oracle/product/11.2.0/db/node2_racdb2 to remote nodes... aug 17,201 4 5:05:38 oracle. sysman. emcp. util. DBControlUtil secureDBConsoleINFO: Securing Database Control (this may take a while )... aug 17,201 4 5:06:30 oracle. sysman. emcp. util. DBControlUtil startOMSINFO: Starting Database Control (this may take a while )... aug 17,201 4 5:08:26 oracle. sysman. emcp. EMDBPostConfig initialize mconfigurationinfo: Database Control started successfullyAug 17,201 4 5:08:26 oracle. sysman. emcp. EMDBPostConfig extends mconfigurationinfo: >>>>>>>>>>> The Database Control URL is https://node1:1158/em <
Other questions:
If drop repos is particularly slow, you can try the following statement: alter system unquiesce;