如何启动 oracle EM

可能出现的错误如下,没有ORACLE_SID的 环境变量, 可能网络地址和环境发生变化,比如主机名修改等.

oracle@Martin:~/product/10.2/db_1/bin> ./emctl start dbconsole
TZ set to PRC
EM Configuration issue. /opt/oracle/product/10.2/db_1/localhost_orcl not found.

oracle@Martin:~/product/10.2/db_1/bin> ./emctl start dbconsole
TZ set to PRC
OC4J Configuration issue. /opt/oracle/product/10.2/db_1/oc4j/j2ee/OC4J_DBConsole_localhost_orcl not found.


修正方式:

oracle@Martin:~/product/10.2/db_1/oc4j/j2ee> cp -R OC4J_DBConsole_Martin.bmc.com_orcl OC4J_DBConsole_localhost_orcl

oracle@Martin:~/product/10.2/db_1> cp -R Martin.bmc.com_orcl/ localhost_orcl

oracle@Martin:~/product/10.2/db_1> bin/emctl start dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://Martin.bmc.com:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ………………………. started.
——————————————————————
Logs are generated in directory /opt/oracle/product/10.2/db_1/localhost_orcl/sysman/log

启动了后访问:

http://localhost:1158/em/

手工启动Oracle实例的方法

1) sqlplus

sqlplus /nolog

connect sys/manager as sysdba

startup

2) rcoracle

需要修改如下几个文件:/etc/oraInst.loc? /etc/oratab /? /etc/sysconfig/oracle /opt/oracle/product/10.2/db_1/bin/dbstart /usr/sbin/rcoracle 修改这些文件中的路径等信息知道 rcoracle start 命令不出错为止。

 

 

原文: http://www.linuxlaptop.cn/index.php/archives/299

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值