Tuesday, June 16, 2009

Configuring Enterprise Manager manually on linux



Steps:
1. Drop the EM Repository if exists - emca -repos drop
2. Create repository - emca -repos create
3. Configure EM - emca -config dbcontrol db
[oracle@standby ~]$ emca -repos drop
STARTED EMCA at Jul 12, 2008 2:52:08 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: standby
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [Yes(Y)/no (N)]: y
Jul 12, 2008 2:52:25 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle10g/product/10.2.0/db_1/cfgtoollo
gs/emca/standby/emca_2008-07-12_02-52-08-PM.log.
Jul 12, 2008 2:52:25 PM oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
Jul 12, 2008 2:54:10 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager Configuration completed successfully
FINISHED EMCA at Jul 12, 2008 2:54:10 PM

[oracle@standby ~]$ emca -repos create
STARTED EMCA at Jul 12, 2008 2:54:19 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: standby
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [Yes(Y)/no (N)]: y
Jul 12, 2008 2:54:34 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle10g/product/10.2.0/db_1/cfgtoollo
gs/emca/standby/emca_2008-07-12_02-54-18-PM.log.
Jul 12, 2008 2:54:34 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jul 12, 2008 2:57:52 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Enterprise Manager Configuration completed successfully
FINISHED EMCA at Jul 12, 2008 2:57:52 PM

[oracle@standby ~]$ emca -config dbcontrol db
STARTED EMCA at Jul 12, 2008 3:09:32 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: standby
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /oracle10g/product/10.2.0/db_1
Database hostname ................ standby.global.com
Listener port number ...............521
Database SID ................ standby
Email address for notifications...............
Outgoing Mail (SMTP) server for notifications...............
-----------------------------------------------------------------
Do you wish to continue? [Yes(Y)/no (N)]: Y
Jul 12, 2008 3:09:59 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle10g/product/10.2.0/db_1/cfgtoollo
gs/emca/standby/emca_2008-07-12_03-09-32-PM.log.
Jul 12, 2008 3:10:06 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while)...
Jul 12, 2008 3:11:45 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Jul 12, 2008 3:11:45 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://standby.global.com:5502/em <<<<<<<<<<<
Enterprise Manager Configuration completed successfully
FINISHED EMCA at Jul 12, 2008 3:11:45 PM

emca commands:
emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos create
emctl unsecure dbconsole

patch for securing dbcontrol

Download the patch 8350262


No comments:

Post a Comment