3,删除相关的用户
- $ sqlplus / as sysdba
- SQL*Plus: Release 10.2.0.1.0 - Production on Sat Dec 22 12:35:14 2012
- Copyright (c) 1982, 2005, Oracle. All rights reserved.
- Connected to:
- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
- With the Partitioning, OLAP and Data Mining options
- SQL> dropuser sysman cascade;
- User dropped.
- SQL> drop role MGMT_USER;
- Role dropped.
- SQL> dropuser MGMT_VIEW cascade;
- User dropped.
- SQL> droppublic synonym MGMT_TARGET_BLACKOUTS;
- Synonym dropped.
- SQL> droppublic synonym SETEMVIEWUSERCONTEXT;
- Synonym dropped.
4,再次测试DB CONSOLE
- $ emca -config dbcontrol db -repos create
- STARTED EMCA atDec 22, 2012 12:38:06 PM
- EM Configuration Assistant, Version 10.2.0.1.0 Production
- Copyright (c) 2003, 2005, Oracle. All rights reserved.
- Enter the following information:
- Database SID: htz
- Listener port number: 1521
- Passwordfor SYS user:
- Passwordfor DBSNMP user:
- Passwordfor SYSMAN user:
- Email address for notifications (optional):
- Outgoing Mail (SMTP) server for notifications (optional):
- -----------------------------------------------------------------
- You have specified the following settings
- Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1
- Database hostname ................ 10rac1
- Listener port number ................ 1521
- Database SID ................ htz
- Email address for notifications ...............
- Outgoing Mail (SMTP) server for notifications ...............
- -----------------------------------------------------------------
- Do you wish tocontinue? [yes(Y)/no(N)]: Y
- Dec 22, 2012 12:38:18 PM oracle.sysman.emcp.EMConfig perform
- INFO: This operation is being logged at /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/emca/htz/emca_2012-12-22_12-38-06-PM.log.
- Dec 22, 2012 12:38:18 PM oracle.sysman.emcp.EMReposConfig createRepository
- INFO: Creating the EM repository (this may take a while) ...
- Dec 22, 2012 12:39:55 PM oracle.sysman.emcp.EMReposConfig invoke
- INFO: Repository successfully created
- Dec 22, 2012 12:39:57 PM oracle.sysman.emcp.util.DBControlUtil startOMS
- INFO: Starting Database Control (this may take a while) ...
- Dec 22, 2012 12:41:31 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
- INFO: Database Control started successfully
- Dec 22, 2012 12:41:31 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
- INFO: >>>>>>>>>>> The Database Control URL is http://10rac1:1158/em <<<<<<<<<<<
- Enterprise Manager configuration completed successfully
- FINISHED EMCA atDec 22, 2012 12:41:31 PM
- $
5,测试是否成功
- $ emctl status dbconsole
- Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
- Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
- http://10rac1:1158/em/console/aboutApplication
- Oracle Enterprise Manager 10g is running.
- ------------------------------------------------------------------
- Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/10rac1_htz/sysman/log
6,通过http访问,一切正常

