Environment variable ORACLE_SID not defined. Please define it.

关于dbconsole的启动
首先在CDM的命令窗口下输入:在命令行下输入
emctl start dbconsole

提示报错,ORACLE_SID没有定义

Environment variable ORACLE_SID not defined. Please define it._第1张图片

输入
  set ORACLE_SID=ORCL2  (ORCL是我的实例名,也是服务名)

没有问题,接着继续输入:  emctl start dbconsole
提示: OC4J Configuration issue.D:oracleproduct10.2.0db_1/oc4j/j2ee/OC4J_DBConsole_192.168.1.103_orcl not found.

Environment variable ORACLE_SID not defined. Please define it._第2张图片

解决方案:

需要重新配置dbconsole 的信息

1.在命令行中输入:  emca -config dbcontrol db -repos recreate

Environment variable ORACLE_SID not defined. Please define it._第3张图片

Environment variable ORACLE_SID not defined. Please define it._第4张图片

是否继续? [yes(Y)/no(N)]: y

Environment variable ORACLE_SID not defined. Please define it._第5张图片

如果sid已经成功配置了,则如下:

Environment variable ORACLE_SID not defined. Please define it._第6张图片

配置成功后的URL  : http://localhost:5500/em/

                            http://2013zpp:5500/em/

登陆成功如下:

Environment variable ORACLE_SID not defined. Please define it._第7张图片

登陆成功后:

Environment variable ORACLE_SID not defined. Please define it._第8张图片




你可能感兴趣的:(oracle,解决方案)