Windows 无法为新数据库实例启动 DBConsole

标签 windows oracle oracle11g

<分区>

我收到这个错误:

Windows could not start the OracleDBConsoleOracleInstance2 on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the system vendor, and refer to service-specific error code 1

我在 Windows 7 上安装了 Oracle 11g,并成功创建了我的第一个数据库实例 (oracleInstance1),并配置了监听器和服务。我可以使用 DBconsole URL 访问此数据库:https://localhost:1158/em

我看到服务已启动:

  • OracleDBConsoleOracleInstance1
  • OracleOraDb11g_home1TNSListener
  • OracleServiceOracleInstance1

接下来,我创建了第二个数据库实例 (oracleInstance2) 并为此数据库配置了一项新服务。我正在使用与我打算在任何时间点使用一个数据库实例相同的监听器。

但是,我在配置期间收到此警告消息:

Enterprise manager configuration succeeded with the following warning - Error starting Database Control. Please execute the following command(s).
  1. Set the environment variable ORACLE_UNQNAME to Database unique name.
  2. C:\Oracle\product\11.2.0\dbhome_1\bin\emctl.bat start dbconsole

为了启动新的数据库控制台,我停止了之前运行的 DBConsole OracleDBConsoleOracle1 并启动了新的 DBConsole OracleDBConsoleOracle2 并得到了上述错误。

当我尝试使用 emctl dbconsole start 手动启动 dbconsole 时,它​​改为启动 OracleDBConsoleOracle1。

我更改了环境变量 ORACLE_SID=oracle2ORACLE_UNQNAME=oracle2

我在这里错过了什么?

最佳答案

您确定您的环境变量应用正确吗?如果您在 DOS 窗口中设置它们,那么它们只会在那里可见,您需要在 Windows 的“环境变量”屏幕中设置它们。

关于Windows 无法为新数据库实例启动 DBConsole,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13180956/

相关文章:

oracle - 启动服务时出错。找不到OracleMTSRecoveryService

oracle - 使 J2EE 应用程序避免更新数据库

oracle - 在 BLOB 上使用 DBMS_LOB.SUBSTR 导致 ORA-06502

windows - 从以系统身份运行的 Powershell 设置用户环境变量

windows - C++/CLI 中的错误,除非使用 Pthread 创建委托(delegate)实例,否则无法获取函数地址

oracle - 将 Varchar2 形式的返回值 default(4000) 更改为 (10char)?

python - 从使用绑定(bind)变量的数据库查询创建 Pandas 数据框

windows - Python 3.6,用于 64 位 Windows 上 11g 客户端的 cx_oracle

windows - 如何更改windows系统默认的最大化窗口大小?

c++ - 32/64 位 Windows/Linux 应用程序