In OEM 11g, emctl status dbconsole shows error,
[oracle@sptr ~]$ emctl status dbconsole
Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.
[oracle@sptr ~]$ export ORACLE_UNQNAME=cloudapp
[oracle@sptr ~]$ emctl status dbconsole
OC4J Configuration issue. /u01/sptrprd1/app/oracle/product/11.2.0.4/dbhome_1/oc4j/j2ee/OC4J_DBConsole_sptr.com_cloudapp not found.
##re-configure emctl
[oracle@sptr ~]$ emca -config dbcontrol db
STARTED EMCA at Dec 30, 2014 10:40:54 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database SID: cloudapp
Listener port number: 1521
Listener ORACLE_HOME [ /u01/sptrprd1/app/oracle/product/11.2.0.4/dbhome_1 ]:
Password for SYS user:
Password for DBSNMP user:
Dec 30, 2014 10:41:18 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-28000: the account is locked
Password for SYSMAN user:
Dec 30, 2014 10:41:26 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-28000: the account is locked
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /u01/sptrprd1/app/oracle/product/11.2.0.4/dbhome_1
Local hostname ................ sptr.com
Listener ORACLE_HOME ................ /u01/sptrprd1/app/oracle/product/11.2.0.4/dbhome_1
Listener port number ................ 1521
Database SID ................ cloudapp
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Dec 30, 2014 10:41:45 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/sptrprd1/app/oracle/cfgtoollogs/emca/SPTR/emca_2014_12_30_22_40_53.log.
Dec 30, 2014 10:42:00 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Dec 30, 2014 10:43:34 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Dec 30, 2014 10:43:37 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Dec 30, 2014 10:44:06 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Dec 30, 2014 10:44:06 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Dec 30, 2014 10:45:34 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Dec 30, 2014 10:45:34 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is <<<<<<<<<<<
Dec 30, 2014 10:45:39 PM 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: /u01/sptrprd1/app/oracle/product/11.2.0.4/dbhome_1/sptr.com_SPTR/sysman/config/emkey.ora. 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 Dec 30, 2014 10:45:39 PM
##verify result, agent is running now
[oracle@sptr ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/sptrprd1/app/oracle/product/11.2.0.4/dbhome_1/sptr.com_SPTR/sysman/log
阅读(724) | 评论(0) | 转发(0) |