在本地计算机无法启动OracleDBConsole**(数据库名)服务
如果遇到启动oracle服务时报“在本地计算机无法启动OracleDBConsole服务”或者"在本地计算机无法启动oracleservice服务,请您联系**厂商"等之类的错误,主要原因计算机ip的变化,而企业管理器记录的ip并未发生变化,网上有一些办法提出了解决,这里我根据自己的摸索找了一种办法。
一:修改host文件,C:\WINDOWS\system32\drivers\etc\host文件,配置ip为localhost;
二:修改listener.ora和tnsnames.ora文件,文件在E:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN下,指定HOST=localhost.
例如:# listener.ora Network Configuration File: E:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
LOGGING_LISTENER1 = OFF
SID_LIST_LISTENER1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = itsmdb)
(ORACLE_HOME = E:\oracle\product\10.1.0\Db_1)
(SID_NAME = itsm)
)
)