配置OEM
[oracle@m1 ~]$ emca -config dbcontrol db
STARTED EMCA at Oct 23, 2013 11:55:28 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database SID:
mes1
Listener port number:
1521
Listener ORACLE_HOME [ /u01/oracle/11.2.0/db_1 ]:
Password for SYS user:
Password for DBSNMP user:
Oct 23, 2013 11:56:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-28000: the account is locked
Password for SYSMAN user:
Oct 23, 2013 11:56:53 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-28000: the account is locked
Email address for notifications (optional): 1251@163.com
Outgoing Mail (SMTP) server for notifications (optional):
ASM ORACLE_HOME [ /u01/oracle/11.2.0/db_1 ]:
ASM SID [ +ASM ]: -----》
+ASM1
ASM port [ 1521 ]:
ASM username [ ASMSNMP ]:
ASM user password: -----》
oracle
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /u01/oracle/11.2.0/db_1
Local hostname ................ m1
Listener ORACLE_HOME ................ /u01/oracle/11.2.0/db_1
Listener port number ................ 1521
Database SID ................ mes1
Email address for notifications ............... 1251@163.com
Outgoing Mail (SMTP) server for notifications ...............
ASM ORACLE_HOME ................ /u01/oracle/11.2.0/db_1
ASM SID ................
+ASM
ASM port ................ 1521
ASM user role ................ SYSDBA
ASM username ................ ASMSNMP
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Oct 23, 2013 11:58:17 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/oracle/cfgtoollogs/emca/mes/emca_2013_10_23_11_55_28.log.
Oct 23, 2013 11:58:28 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Oct 23, 2013 12:00:45 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Oct 23, 2013 12:00:45 PM oracle.sysman.emcp.ParamsManager getLocalListener
WARNING: Error retrieving listener for m1
Oct 23, 2013 12:00:46 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Oct 23, 2013 12:00:56 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Oct 23, 2013 12:00:56 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Oct 23, 2013 12:01:24 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Oct 23, 2013 12:01:24 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://m1:1158/em <<<<<<<<<<<
Oct 23, 2013 12:01:27 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************
Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted. The encryey has been placed in the file: /u01/oracle/11.2.0/db_1/m1_mes/sysman/config/emkey.ora. Ensure this file is backedthe encrypted data will become unusable if this file is lost.
***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Oct 23, 2013 12:01:27 PM
[oracle@m1 ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://m1:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/oracle/11.2.0/db_1/m1_mes/sysman/log