Environment variable ORACLE_SID not defined. Please define it.启动EM报错
来源:互联网 发布:java 过滤器返回json 编辑:程序博客网 时间:2024/04/30 07:09
启动EM管理器报错:
C:\Users\diy>emctl start dbconsoleEnvironment variable ORACLE_SID not defined. Please define it.
解决方法:
1.先查询启动的oracle实例
SQL> select instance_name from V$instance;INSTANCE_NAME----------------diy
2.,把查询到的sid执行下面操作(红色为需要输入的内容)
C:\Users\diy>set oracle_sid=diyC:\Users\diy>emca -config dbcontrol db -repos recreateEMCA 开始于 2014-2-12 1:44:45EM Configuration Assistant 10.2.0.1.0 正式版版权所有 (c) 2003, 2005, Oracle。保留所有权利。输入以下信息:数据库 SID: diy已为数据库 diy 配置了 Database Control您已选择配置 Database Control, 以便管理数据库 diy此操作将移去现有配置和默认设置, 并重新执行配置是否继续? [yes(Y)/no(N)]: y监听程序端口号: 1521SYS 用户的口令:DBSNMP 用户的口令:SYSMAN 用户的口令:通知的电子邮件地址 (可选): 465373530@qq.com通知的发件 (SMTP) 服务器 (可选):-----------------------------------------------------------------已指定以下设置数据库 ORACLE_HOME ................ F:\oracle\product\10.2.0\db_1数据库主机名 ................ DIY-PC.zs.gpgc.local监听程序端口号 ................ 1521数据库 SID ................ diy通知的电子邮件地址 ............... 465373530@qq.com通知的发件 (SMTP) 服务器 ...............-----------------------------------------------------------------是否继续? [yes(Y)/no(N)]: y2014-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 Control2014-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 dbconsoleOracle Enterprise Manager 10g Database Control Release 10.2.0.1.0Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.http://DIY-PC.zs.gpgc.local:5500/em/console/aboutApplicationStarting 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
- div 右对齐
- WIZFi210/220 — 智能家居好帮手
- 获取客户端和自己的真实IP地址
- squid集群配置方法
- IOS7状态栏字颜色设置
- Environment variable ORACLE_SID not defined. Please define it.启动EM报错
- 编写类String的构造函数、析构函数和赋值函数
- xmlmapper和xpath的使用
- 在VC中导出excel表格(两种方法)
- 剑桥大学开发出无盲点射频识别系统
- 【RAC】RAC卸载——各部件单个卸载+完整卸载
- 面向对象的5条基本设计原则
- 二叉树中的那些常见的面试题
- Android——扩大ImageButton的点击区域