1. Start dbconsole
[Oracle @ devrfel501 ~] $ Emctl start dbconsole
If the message is displayed, the command is displayed, which indicates that the configuration is not configured or the configuration is not created./opt/Oracle/product/10.2.0/Solaris/J2EE/oc4j_dbconsol.
2. Configure dbconsole
[Oracle @ devrfel501 ~] $ Emca-config dbcontrol DB
Started emca at APR 21,200 9 2:21:41 AM
Em configuration assistant, version 10.2.0.1.0 Production
Copyright (c) 2003,200 5, Oracle. All rights reserved.
Enter the following information:
Database Sid: orcl
Listener port number: 1521
Password for sys User:
Password for Dbsnmp User:
Password for sysman User:
Email Address for communications (optional ):
Outgoing mail (SMTP) server for communications (optional ):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ....../opt/Oracle/product/10.2.0
Database hostname ...... devrfel501
Listener port number... 1521
Database Sid ...... orcl
Email Address for communications ...............
Outgoing mail (SMTP) server for communications ...............
-----------------------------------------------------------------
Do you wish to continue? [Yes (y)/NO (n)]: Y
APR 21,200 9 2:23:52 am oracle. sysman. emcp. emconfig perform
Info: this operation is being logged at/opt/Oracle/product/10.2.0/export toollogs/emca/orcl/emca_2009-04-21_02-21-41-AM.log.
APR 21,200 9 2:24:14 am oracle. sysman. emcp. util. dbcontrolutil securedbconsole
Info: securing Database Control (this may take a while )...
APR 21,200 9 2:24:35 am oracle. sysman. emcp. util. dbcontrolutil securedbconsole
Info: Database Control secured successfully.
APR 21,200 9 2:24:35 am oracle. sysman. emcp. util. dbcontrolutil startoms
Info: Starting Database Control (this may take a while )...
APR 21,200 9 2:26:15 am oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Info: Database Control started successfully
APR 21,200 9 2:26:15 am oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Info: >>>>>>>>>>> the Database Control URL is https: // devrfel501: 5502/EM <
Enterprise Manager Configuration completed successfully
Finished emca at APR 21,200 9 2:26:15 AM
3. view the dbconsole status and access address
[Oracle @ devrfel501 ~] $ Emctl status dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996,200 7 Oracle Corporation. All rights reserved.
Https: // devrfel501: 5502/EM/console/aboutapplication # access address
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory/opt/Oracle/product/10.2.0/devrfel501_orcl/sysman/log
4. Delete the Database Control Configuration of the database.
Oracle @ devrfel501 ~] $ Emca-deconfig dbcontrol DB
5. Common command syntax:
Emca-repos create creates an EM Database
Emca-repos recreate re-creates an EM Database
Emca-repos drop delete an EM Database
Emca-config dbcontrol dB configure Database Control of the database
Emca-deconfig dbcontrol dB deletes the Database Control Configuration of a Database
Emca-reconfig ports reconfigure dB control and Agent ports
Emctl start console to start the EM console service. You need to set the oracle_sid environment variable before use.
Emctl stop console to stop the EM console service. You need to set the oracle_sid environment variable before use.
Note: You can check the $ ORACLE_HOME/install/portlist. ini file to find the port currently in use by dbcontrol. The default port is dbcontrol http port 1158 and Agent port 3938. To reconfigure the port, run the following command:
Emca-reconfig ports-dbcontrol_http_port 1159
Emca-reconfig ports-agent_port 3939
Use the command line tool emctl to start/stop the console service and view the service status.