Start oracle11g emctl start Dbconsole report the following error
environment variable oracle_unqname not defined. Please set Oracle_unqname to Da
Enter Export ORACLE_UNQNAME=ORCL (instance name) at this time
Re-enter EMCTL start Dbconsole report the following error
Oc4j Configuration issue. /ORACLE/PRODUCT/11.1.0/DB_1/OC4J/J2EE/OC4J_DBCONSOLE_WEISHANLAKE.LAKES_ORCL not found.
At this point the workaround is as follows
1, first delete the EM database command Emca-repos drop
2. Re-establish the EM database command Emca-repos Create
3. Database Control command for the metabase Emca-config Dbcontrol db
Started successfully after configuration
Here are some common commands for EM
Create an EM repository
Emca-repos Create
Rebuilding an EM database
Emca-repos recreate
Delete an EM repository
Emca-repos Drop
Metabase Control for the configuration database
Emca-config Dbcontrol DB
To delete a database control configuration
Emca-deconfig Dbcontrol DB
Reconfigure the port for DB control, the default port at 1158
Emca-reconfig ports
Emca-reconfig Ports-dbcontrol_http_port 1160
Emca-reconfig Ports-agent_port 3940
Start the EM console service after setting the ORACLE_SID environment variable first
Emctl Start Dbconsole
Stop the EM console service after setting the ORACLE_SID environment variable first
Emctl Stop Dbconsole
Check the status of the EM console service after setting the ORACLE_SID environment variable first
Emctl Status Dbconsole
Steps to configure Dbconsole
Emca-repos Create
Emca-config Dbcontrol DB
Emctl Start Dbconsole
Steps to reconfigure Dbconsole
Emca-repos Drop
Emca-repos Create
Emca-config Dbcontrol DB
Emctl Start Dbconsole
Re-install the EM process after the Oracle installation is complete