Thursday, August 27, 2009

emctl

How to configure Enterprise Manager (EM) Console:



You can verify EM console service is up or not by running below command:

$ emctl status dbconsole

TZ set to US/Pacific

Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0

Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.

https://rwcash.imany.com:1158/em/console/aboutApplication

Oracle Enterprise Manager 10g is running.

------------------------------------------------------------------

Logs are generated in directory /home/oracle/product/10.2.0/db_1/10.50.0.68_ENG10G01/sysman/log

or ps-ef grep dbconsole

in windows you can verify it in service window as -> oracleDBconsole"sid name" service.



*but before run above command you must export ORACLE_SID.

$ export ORACLE_SID=ENG10G01



if in status display as "NOT RUNNING" then you need to start as below:

$ emctl start dbconsole

if you want to stop dbconsole then specify "stop" instead of "start" in above command.



if you find any error in starting EM console you need to follow below step to reconfigure it:

- export/set oracle_sid=YourInstanceName
- emctl stop dbconsole
- emca -deconfig dbcontrol db
- emca -repos recreate (optional)
- emca -config dbcontrol db



Note : before run the emca -config dbcontrol db , you must know the oracle_sid, listenerport, sys, system ,DBSNMP and SYSMAN user’s password. Otherwise login to sqlplus with sysdba and change all users password including sys user also.



You can also configure this service in auto start mode on server reboot.

No comments:

Post a Comment