在 Oracle 10g, we may often encounter OEM can not normally use, but the causes are different, the final most issues can be resolved by emca this command to the detailed description can view the online help, following a some commonly used commands and examples of the steps.
Create a database of EM
emca-repos create
EM reconstruction of a database
emca-repos recreate
Delete a database EM
emca-repos drop
Database Control configuration database
emca-config dbcontrol db
Remove the Database Control configuration database
emca-deconfig dbcontrol db
Reconfigure the db control of the port, the default port 1158
emca-reconfig ports
emca-reconfig ports-dbcontrol_http_port 1160
emca-reconfig ports-agent_port 3940
After the first set the ORACLE_SID environment variable to start EM console services
emctl start dbconsole
After the first set the ORACLE_SID environment variable, stop EM console services
emctl stop dbconsole
After the first set the ORACLE_SID environment variable, see EM console status of the service
emctl status dbconsole
Steps to configure dbconsole
emca-repos create
emca-config dbcontrol db
emctl start dbconsole
The steps to reconfigure dbconsole
emca-repos drop
emca-repos create
emca-config dbcontrol db
emctl start dbconsole