OC4J Configuration issue

连接http://ip:1158/em提示网页不存在,于是登录系统检查

$ emctl start dbconsole
OC4J Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_test_orcl not found.

原来是当时安装oracle后,没有配置em,以下是配置步骤:

[@more@]

$emca -config dbcontrol db -repos create

Database SID: orcl
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):

-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1 hostname ................ XXXXXX
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

Do you wish to continue? [yes(Y)/no(N)]: y
Aug 29, 2012 2:03:51 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/app/10.2.0/db_1/cfgtoollogs/emca/wmtest/emca_2012-08-29_02-01-27-PM.log.
Aug 29, 2012 2:03:52 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Aug 29, 2012 2:07:11 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Aug 29, 2012 2:07:14 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Aug 29, 2012 2:08:52 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Aug 29, 2012 2:08:52 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://hostname:1158/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 29, 2012 2:08:52 PM

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17254424/viewspace-1059298/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/17254424/viewspace-1059298/

你可能感兴趣的:(OC4J Configuration issue)