首页 > Linux操作系统 > Linux操作系统 > rac 环境重建 em
********************************************************************************************************
[oracle@dbs ~]$ emctl status dbconsole
TZ
set to PRC
OC4J Configuration issue.
/home/oracle/product/10.2.0/db/oc4j/j2ee/OC4J_DBConsole_dbs_racdb2 not
found.
[oracle@dbs ~]$ cd /home/oracle/product/10.2.0/db/oc4j/j2ee/
[oracle@dbs
j2ee]$ ls
deploy_db.ini isqlplus isqlplus_dbs
OC4J_DBConsole OC4J_DBConsole_dbs_racdb1
home
isqlplus_dbp oc4j_applications OC4J_DBConsole_dbp_racdb2
[oracle@dbs j2ee]$ emca -deconfig dbcontrol db -repos drop
-cluster
STARTED EMCA at Nov 25, 2010 9:08:38 AM
EM Configuration
Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005,
Oracle. All rights reserved.
Enter the following information:
Database
unique name: racdb
Listener port number: 1521
Password for SYS
user:
Password for SYSMAN user:
Password for SYSMAN user:
Do
you wish to continue? [yes(Y)/no(N)]: y
Nov 25, 2010 9:08:59 AM
oracle.sysman.emcp.EMConfig perform
INFO: This operation is being
logged at
/home/oracle/product/10.2.0/db/cfgtoollogs/emca/racdb/emca_2010-11-25_09-08-38-AM.log.
Nov
25, 2010 9:09:02 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO:
Stopping Database Control (this may take a while) ...
Nov 25, 2010
9:09:18 AM oracle.sysman.emcp.EMReposConfig stopDBMSJobs
WARNING:
Error initializing SQL connection. SQL operations cannot be performed
Nov
25, 2010 9:09:18 AM oracle.sysman.emcp.EMReposConfig invoke
WARNING:
Unable to remove DBMS jobs.
Nov 25, 2010 9:09:18 AM
oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM
repository (this may take a while) ...
Nov 25, 2010 9:15:04 AM
oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully
dropped
Enterprise Manager configuration completed successfully
FINISHED
EMCA at Nov 25, 2010 9:15:06 AM
************************************************************************************
[oracle@dbs j2ee]$ emca -config dbcontrol db -repos create
-cluster
STARTED EMCA at Nov 25, 2010 9:16:58 AM
EM
Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c)
2003, 2005, Oracle. All rights reserved.
Enter the following
information:
Database unique name: racdb
Listener port number:
1521
Cluster name: racdb
Password for SYS user:
Password for
DBSNMP user:
Password for SYSMAN user:
Password for SYSMAN
user: Email address for notifications (optional):
Outgoing Mail
(SMTP) server for notifications (optional):
ASM ORACLE_HOME [
/home/oracle/product/10.2.0/db ]:
ASM port [ 1521 ]:
ASM user
role [ SYSDBA ]:
ASM username [ SYS ]:
ASM user password:
-----------------------------------------------------------------
You
have specified the following settings
Database ORACLE_HOME
................ /home/oracle/product/10.2.0/db
Database instance
hostname ................ dbs
Listener port number ................
1521
Cluster name ................ racdb
Database unique name
................ racdb
Email address for notifications
...............
Outgoing Mail (SMTP) server for notifications
...............
ASM ORACLE_HOME ................
/home/oracle/product/10.2.0/db
ASM port ................ 1521
ASM
user role ................ SYSDBA
ASM username ................ SYS
-----------------------------------------------------------------
Do
you wish to continue? [yes(Y)/no(N)]: y
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16313359/viewspace-682333/ ,如需转载,请注明出处,否则将追究法律责任。