martedì 6 novembre 2012

Oracle Database: Start EM console for multiple instances on the same server

Today I had to manually start Enterprise Manager console for an instance running on a server which has already other instances running.

The command to start EM Console is:

emctl start dbconsole

full path of the command is:

/u01/app/oracle/product/11.2.0/db_1/bin/emctl start dbconsole


This start EM for instance referred in ORACLE_SID variable.

In case of multiple instances running on same server you can start EM console by assigning ORACLE_SID variable according to the EM you need to start.

For example if we need to start EM console for "TEST1" instance we set ORACLE_SID:

[oracle@orcl ~]# ORACLE_SID=TEST1

[oracle@orcl ~]# emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation.  All rights reserved.
https://orcl:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ........................ started.
---------------------------------Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/orcl_TEST1/sysman/log


Same thing if we need to start EM for "TEST2" instance:


[oracle@orcl ~]# ORACLE_SID=TEST2

[oracle@orcl ~]# emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation.  All rights reserved.
https://orcl:5500/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ........................ started.
---------------------------------Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/orcl_TEST2/sysman/log



Thats'all!!

Nessun commento:

Posta un commento