Oracle 10.2.0.5 RAC 通過emca 配置 DB Control
Connected.
SQL> select username from DBA_USERS where username = 'SYSMAN';
------------------------------
SYSMAN
------------------------------
MACRODB_DATA
MACRODB_TEMP
SYSAUX
SYSTEM
TEMP
TEST
UNDOTBS1
UNDOTBS2
USERS
- cd to RDBMS ORACLE_HOME/sysman/admin/emdrep/bin (for a DB Control Repository)
or
cd to the OMS ORACLE_HOME/sysman/admin/emdrep/bin (for a Grid Control Repository) - Issue the following command$ ./RepManager repository_host repository_port repository_SID* repository_host is the machine name where the Management Repository database is located
-sys_password password_for_sys_account -action drop
* repository_port is the Management Repository database listener port address, usually 1521 or 1526
* repository_SID is the Management Repository database system identifier
* password_for_sys_account is the password of the SYS user for the database. For example, change_on_install.
* -action drop indicates that you want to drop the Management Repository.
Note: Dropping a Grid Control or DB Control repository quiesces and unquiesces the database.
本例是刪除已存在的DB Control Repository:
進入目錄$ORACLE_HOME/sysman/admin/emdrep/bin
[oracle@rac1 ~]$ cd $ORACLE_HOME/sysman/admin/emdrep/bin
執行RepManager:
[oracle@rac1 bin]$ ./RepManager rac1 1521 RACDB1 -sys_password oracle -action drop
Enter repository user name : sysman
Enter repository user password :
Getting temporary tablespace from database...
Found temporary tablespace: TEMP
Checking SYS Credentials ... OK.
Dropping the repository..
Quiescing DB ... Done.
Checking for Repos User ... Exists.
Repos User exists..
Clearing EM Contexts ... OK.
Dropping EM users ...
Done.
Dropping Repos User ... ^[aDone.
Dropping Roles/Synonymns/Tablespaces ... Done.
Unquiescing DB ... Done.
Dropped Repository Successfully.
設定好環境變數:$ORACLE_HOME、$ORACLE_SID
檢視cluster name,$ORA_CRS_HOME/bin/cemutlo -n
[oracle@rac1 ~]$ $ORA_CRS_HOME/bin/cemutlo -n
crs
Run emca in interactive mode:
[oracle@rac1 bin]$ emca -config dbcontrol db -repos create -cluster
STARTED EMCA at Nov 28, 2012 3:05:42 PM
EM Configuration Assistant, Version 10.2.0.5.0 Production
Copyright (c) 2003, 2009, Oracle. All rights reserved.
Enter the following information:
Database unique name: RACDB
Listener port number: 1521
Cluster name: crs
Password for SYS user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
ASM ORACLE_HOME [ /opt/ora10g/product/10.2.0/db_1 ]:
ASM port [ 1521 ]:
ASM user role [ SYSDBA ]:
ASM username [ SYS ]:
ASM user password:
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /opt/ora10g/product/10.2.0/db_1
Database instance hostname ................ rac1
Listener port number ................ 1521
Cluster name ................ crs
Database unique name ................ RACDB
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
ASM ORACLE_HOME ................ /opt/ora10g/product/10.2.0/db_1
ASM port ................ 1521
ASM user role ................ SYSDBA
ASM username ................ SYS
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Nov 28, 2012 3:26:58 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/ora10g/product/10.2.0/db_1/cfgtoollogs/emca/RACDB/emca_2012-11-28_03-05-42-PM.log.
Nov 28, 2012 3:27:08 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Nov 28, 2012 3:37:51 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Nov 28, 2012 3:38:13 PM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
INFO: Propagating /opt/ora10g/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_rac1_RACDB1 to remote nodes ...
Nov 28, 2012 3:38:16 PM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
INFO: Propagating /opt/ora10g/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_rac2_RACDB2 to remote nodes ...
Nov 28, 2012 3:38:38 PM oracle.sysman.emcp.EMAgentConfig deployStateDirs
INFO: Propagating /opt/ora10g/product/10.2.0/db_1/rac1_RACDB1 to remote nodes ...
Nov 28, 2012 3:38:55 PM oracle.sysman.emcp.EMAgentConfig deployStateDirs
INFO: Propagating /opt/ora10g/product/10.2.0/db_1/rac2_RACDB2 to remote nodes ...
Nov 28, 2012 3:38:59 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Nov 28, 2012 3:42:44 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Nov 28, 2012 3:48:29 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Nov 28, 2012 3:48:29 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://rac1:5501/em <<<<<<<<<<<
Nov 28, 2012 3:49:10 PM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage
INFO:
**************** Current Configuration ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
---------- ---------- ---------------------
RACDB1 rac1 rac1
RACDB2 rac2 rac1
Enterprise Manager configuration completed successfully
FINISHED EMCA at Nov 28, 2012 3:49:11 PM
或者
Run emca in silent mode:
It is also possible to run emca in silent mode, providing a response file with all the parameters needed:
lent -respfile /u01/app/oracle/admin/EM102/scripts/emca_configandrep.rsp
with content of file /u01/app/oracle/admin/EM102/scripts/emca_configandrep.rsp as follow:
CLUSTER_NAME=mycrsname
-- if CLUSTER_NAME is not specified, it will be the default cluster name
(usually crs). To check the name of the cluster:
1. cd to the crs $ORACLE_HOME/bin
2. Issue the command ./cemutlo -n
For additional information on the cluster name please consult the note:
Note 378037.1 - How To Install Oracle 10g Grid Agent On Rac
DB_UNIQUE_NAME=EM102
SERVICE_NAME=EM102
SYS_PWD=oracle
SYSMAN_PWD=oracle
DBSNMP_PWD=oracle
PORT=1521
This emca command will:
- create the DB Control repository in the RAC database
- configure the DB Control on the local node and deploy the DB Control on all nodes of the cluster
- start the DB Control on the local node (dbconsole and agent)
- start all the agents on all the other nodes of the cluster
To check the configuration files, log files, targets.xml, contents of upload or recv directories
[oracle@rac1 emd]$ emctl config agent listtargets
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.5.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
[rac1:1831, oracle_emd]
[rac1, host]
[crs, cluster]
[RACDB_RACDB1, oracle_database]
[RACDB, rac_database]
[LISTENER_RAC1_rac1, oracle_listener]
[+ASM1_rac1, osm_instance]
To check the DB Control configuration on the cluster:
[oracle@rac1 emd]$ emca -displayConfig dbcontrol -cluster
STARTED EMCA at Nov 28, 2012 5:16:10 PM
EM Configuration Assistant, Version 10.2.0.5.0 Production
Copyright (c) 2003, 2009, Oracle. All rights reserved.
Enter the following information:
Database unique name: RACDB
Do you wish to continue? [yes(Y)/no(N)]: Y
Nov 28, 2012 5:16:23 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/ora10g/product/10.2.0/db_1/cfgtoollogs/emca/RACDB/emca_2012-11-28_05-16-10-PM.log.
Nov 28, 2012 5:16:31 PM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage
INFO:
**************** Current Configuration ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
---------- ---------- ---------------------
RACDB1 rac1 rac1
RACDB2 rac2 rac1
Enterprise Manager configuration completed successfully
FINISHED EMCA at Nov 28, 2012 5:16:31 PM
To check emca log files:
As displayed to the standard output, emca log files are create in $ORACLE_HOME/cfgtoollogs/emca/EM102.
The log files are only created on the local node (the node from which emca has been run).
The log file for DBControl configuration/setup and deployment is emca_
The log file for DB Control repository creation is emca_repos_create_
For more information on emca log files, please refer to:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-750166/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 10.2.0.5 emca配置報錯-ssl Open wallet failed, ret = 28750OracleAI
- 如何通過emca來修改Database Control HTTP 埠DatabaseHTTP
- 配置oracle11g EM db controlOracle
- Oracle 11gR2 RAC Database使用emca配置叢集dbconsoleOracleDatabase
- oracle 10.2.0.4 的emca配置錯誤Oracle
- oracle 10.2.0.4 rac 升級到oracle 10.2.0.5 rac步驟Oracle
- 使用emca命令列配置EM並通過瀏覽器訪問EM示例命令列瀏覽器
- Oracle 11g RAC 配置單例項 DataGuard(通過 DUPLICATE 方式)Oracle單例
- 安裝Oracle 10.2.0.5 RAC for AIX6(五)OracleAI
- 安裝Oracle 10.2.0.5 RAC for AIX6(四)OracleAI
- 安裝Oracle 10.2.0.5 RAC for AIX6(三)OracleAI
- 安裝Oracle 10.2.0.5 RAC for AIX6(二)OracleAI
- 安裝Oracle 10.2.0.5 RAC for AIX6(一)OracleAI
- Oracle control 配置Oracle
- 關於oracle RAC 通過udev繫結磁碟Oracledev
- Oracle 10G重建EM DB ControlOracle 10g
- oracle 10 rac 升級 10.2.0.1升級到10.2.0.5Oracle
- Oracle RAC vs DB2 PureScaleOracleDB2
- ORACLE通過透明閘道器連線DB2OracleDB2
- oracle單例項通過dataguard遷移到RAC 轉Oracle單例
- Oracle10.2.0.1RAC 升級 Oracle10.2.0.5案例分享 -DATABASE篇OracleDatabase
- Oracle10.2.0.1RAC 升級 Oracle10.2.0.5案例分享 -CRS篇Oracle
- Oracle RAC 10.2.0.5升級到11.2.0.4遇到的問題Oracle
- [RAC] Oracle11g RAC禁止DB自動啟動Oracle
- 如何create,drop,rewrite oracle db control_轉摘Oracle
- Linux系統 Oracle 10gR2(10.2.0.5)RAC安裝LinuxOracle 10g
- Oracle10g RAC for Linux配置全過程(zt)OracleLinux
- 通過ORACLE VM virtualbox環境安裝oracle 11G RAC(ASM)OracleASM
- ORACLE 10.2.0.5 RAC OCR&vote disk 磁碟遷移 DG Rebalance測試Oracle
- emca -deconfig/config dbcontrol db (三) for windowsWindows
- 通過 rman duplicate 配置Oracle 11g Active DataguardOracle
- RAC資料庫升級到10.2.0.5資料庫
- Other two network issues in the installation of Oracle RAC DBOracle
- oracle RAC手動配置互信Oracle
- Oracle10g 10.2.0.5 RAC一次恢復ORC、votedisk實戰Oracle
- oracle通過透明閘道器連線mysql的配置OracleMySql
- oracle rac vip 漂移過程Oracle
- EMCA命令