Environment variable ORACLE_SID not defined. Please define it.启动EM报错
来源:互联网 发布:织梦cms轮播 编辑:程序博客网 时间:2024/04/30 07:35
原文
启动EM管理器报错:
- C:\Users\diy>emctl start dbconsole
- Environment variable ORACLE_SID not defined. Please define it.
解决方法:
1.先查询启动的oracle实例
- SQL> select instance_name from V$instance;
- INSTANCE_NAME
- ----------------
- diy
2.,把查询到的sid执行下面操作(红色为需要输入的内容)
- <span style="color:#ff0000;">C:\Users\diy>set oracle_sid=diy
- </span>C:\Users\diy>emca -config dbcontrol db -repos recreate
- EMCA 开始于 2014-2-12 1:44:45
- EM Configuration Assistant 10.2.0.1.0 正式版
- 版权所有 (c) 2003, 2005, Oracle。保留所有权利。
- 输入以下信息:
- <span style="color:#ff0000;">数据库 SID: diy
- </span>已为数据库 diy 配置了 Database Control
- 您已选择配置 Database Control, 以便管理数据库 diy
- 此操作将移去现有配置和默认设置, 并重新执行配置
- <span style="color:#ff0000;">是否继续? [yes(Y)/no(N)]: y
- </span>监听程序端口号: 1521
- <span style="color:#ff0000;">SYS 用户的口令:
- DBSNMP 用户的口令:
- SYSMAN 用户的口令:
- </span><span style="color:#000000;">通知的电子邮件地址 (可选): 465373530@qq.com
- 通知的发件 (SMTP) 服务器 (可选):
- </span>-----------------------------------------------------------------
- 已指定以下设置
- 数据库 ORACLE_HOME ................ F:\oracle\product\10.2.0\db_1
- 数据库主机名 ................ DIY-PC.zs.gpgc.local
- 监听程序端口号 ................ 1521
- 数据库 SID ................ diy
- 通知的电子邮件地址 ............... 465373530@qq.com
- 通知的发件 (SMTP) 服务器 ...............
- -----------------------------------------------------------------
- <span style="color:#ff0000;">是否继续? [yes(Y)/no(N)]: y
- </span>2014-2-12 1:46:00 oracle.sysman.emcp.EMConfig perform
- 信息: 正在将此操作记录到 F:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\diy\emca
- _2014-02-12_01-44-45-上午.log。
- 2014-2-12 1:46:10 oracle.sysman.emcp.util.DBControlUtil stopOMS
- 信息: 正在停止 Database Control (此操作可能需要一段时间)...
- 2014-2-12 1:46:10 oracle.sysman.emcp.EMReposConfig dropRepository
- 信息: 正在删除 EM 资料档案库 (此操作可能需要一段时间)...
- 2014-2-12 1:47:23 oracle.sysman.emcp.EMReposConfig invoke
- 信息: 已成功删除资料档案库
- 2014-2-12 1:47:24 oracle.sysman.emcp.EMReposConfig createRepository
- 信息: 正在创建 EM 资料档案库 (此操作可能需要一段时间)...
- 2014-2-12 1:49:10 oracle.sysman.emcp.EMReposConfig invoke
- 信息: 已成功创建资料档案库
- 2014-2-12 1:49:17 oracle.sysman.emcp.util.DBControlUtil startOMS
- 信息: 正在启动 Database Control (此操作可能需要一段时间)...
- 2014-2-12 1:49:57 oracle.sysman.emcp.EMDBPostConfig performConfiguration
- 信息: 已成功启动 Database Control
- 2014-2-12 1:49:57 oracle.sysman.emcp.EMDBPostConfig performConfiguration
- 信息: >>>>>>>>>>> Database Control URL 为 http://DIY-PC.zs.gpgc.local:5500/em <<
- <<<<<<<<<
- 已成功完成 Enterprise Manager 的配置
- EMCA 结束于 2014-2-12 1:49:57
启动EM:
- C:\Users\diy>emctl start dbconsole
- Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
- Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
- http://DIY-PC.zs.gpgc.local:5500/em/console/aboutApplication
- Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsolediy 服
- 务正在启动 ...............
- OracleDBConsolediy 服务已经启动成功。
成功!
--------------------------------------------------------------------------- 题外话 ----------------------------------------------------------------------------
我在执行的过程中还遇到了另一个问题:启动EM成功,可以登录EM,但点击菜单功能的时候弹错:Io异常:Unknownhostspecified
详细解决方法可以查看:http://blog.csdn.net/diyyong/article/details/19113093
0 0
- Environment variable ORACLE_SID not defined. Please define it.启动EM报错
- Environment variable ORACLE_SID not defined. Please define it.启动EM报错
- Environment variable ORACLE_SID not defined. Please define it.
- Oracle:Environment variable ORACLE_SID not defined. Please define it.
- Environment variable ORACLE_SID not defined. Please define it.
- Environment variable ORACLE_SID not defined. Please define it.
- windows不能在本地计算机启动dbconsole//Environment variable ORACLE_SID not defined. Please define it错误//启动OEM时--选择连接到Management Server 后,在O
- Environment variable ORACLE_UNQNAME not defined. Please define it.
- Environment variable ORACLE_SID not defined. Please define it. (oracle 10g 11g数据库创建完成后控制台不可用解决方法)
- linux下启动tomcat报错:The BASEDIR environment variable is not defined correctly解决方法
- mac下启动tomcat报错:The BASEDIR environment variable is not defined correctly
- linux下tomcat启动报错The BASEDIR environment variable is not defined correctly
- Tomcat启动报错,The CATALINA_HOME environment variable is not defined correctly
- tomcat启动一闪而过解决办法报错The CATALINA_HOME environment variable is not defined correctly
- cocostudio打包时提示ANT_ROOT not defined. Please define it in your environment解决方法
- NDK_ROOT not defined. Please define NDK_ROOT in your environment解决方案
- linux启动tomcat报:The BASEDIR environment variable is not defined correctly
- Tomcat启动报The BASEDIR environment variable is not defined correctly
- Android 强大的图片加载库Fresco,Fresco介绍
- 9/6使某个view显示在视图最上面
- The Factor(数论规律题+求质因子)
- Building Block(并查集)
- Android 4.4+ 实现半透明状态栏(Translucent Bars)
- Environment variable ORACLE_SID not defined. Please define it.启动EM报错
- Eclipse+maven+spring
- 项目进度管理的3大技巧
- 分享一个链接
- Linux-2.6 open()打开文件涉及的内核处理和数据结构分析 http://blog.csdn.net/ordeder/article/details/24420637
- 【手势交互】11. SixSense STEM System
- 怎样卸载Mac软件呢
- 深入Java单例模式
- 昨天,今天,明天 沉溺于!