This article tells about configuring Oracle Enterprise Manager, OEM.
In order to manually configure your Enterprise Manager, connect to database instance, you must complete these tasks:
Verify that the user you are authenticating to the Solaris or Linux system has the Oracle Environment variables set correctly.
env | grep ORACLE*
[oracle@SERVERNAME ~]$ env | grep ORACLE*
ORACLE_SID=XXXXXX
ORACLE_BASE=/app/apps/oracle
ORACLE_HOME=/app/apps/oracle/product/10.2.0/db_1
If the above environment variables are set correctly, we are ready to continue. If the variables are not set correctly, we should modify the users profile to include them before continuing. If we prefer to continue without modifying your profile, you will need to export the variable for this Terminal Session as well as any future sessions.
After verifying that the environment variables are set correctly, we have one more step to verify before configuring the database control repository: make sure that your netservices files are configured correctly.
To verify, you need to check your tnsnames.ora, listener.ora and sqlnet.ora files to verify that XXXXXX is listed.
Creating and Configuring the Database Control Repository
To create and configure your database control repository, run the following commands in your terminal session:
[oracle@SERVERNAME ~]$ emca -repos create
This command will prompt you for your Database SID, Listener port number, Password for your SYS user, and the Password for your SYSMAN user. All of this information should be known prior to running the command. The password for the SYS and SYSMAN users were configured during the database install.
[oracle@SERVERNAME ~]$ emca -repos create
STARTED EMCA at
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: XXXXXX
Listener port number: 1521
Password for SYS user: xxxxxxxx
Password for SYSMAN user: xxxxxxxx
Do you wish to continue? [yes(Y)/no(N)]: y
oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/product/10.2/db_1/cfgtoollogs/emca/XXXXXX/emca_-PM.log.
oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) …
Once your repository is created, you must configure your database control as follows:
[oracle@SERVERNAME ~]$ emca –config dbcontrol db
This command will again prompt you for your Database SID, Listener port number, Password for SYS, DBSNMP, and SYSMAN users. It will also ask you for data to configure email for notifications from the EM.
Starting the Console
Now that you have created your repository and database control, you are ready to start the console. To start the console, initiate the following command at your terminal console:
[oracle@SERVERNAME ~]$ emctl start dbconsole
By launching a browser and going (http://SERVERNAME.DOMAIN.com:5500/em) to this page, I will now be prompted to login to OEM with the Oracle database instance of XXXXXX.
Automatically start and stop the DB-Console:
$ emctl start dbconsole
$ emctl stop dbconsole
$ emctl status dbconsole
You now have a working repository and database control to access OEM for XXXXXX instance.
Vikas Rajput (http://vikasrajput.wordpress.com)
Like this:
Be the first to like this post.