登录提示:无监听程序的解决思路
看了一下F:\oracle\product\10.2.0\db_2\NETWORK\ADMIN
无下面两个文件
tnsnames
listener
再看了一下服务
CMD->SERVICES.MSC
ORACLE本来应该有三个服务的,少了一个监听服务!
现在从另外一台机器上拷贝过来下面两个文件:
tnsnames
listener
再将里面的内容进行改一下,
现在tnsnames文件下内容为:
COGNOS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = cognos)
)
)
现在listener文件下内容为:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = F:\oracle\product\10.2.0\db_2)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = F:\oracle\product\10.2.0\db_2)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
然后再在CMD窗口中输入:lsnrctl start
提示启动成功!
再看看服务窗口,该服务启动了!
用PL/SQL登录进去,一切OK!
看了一下F:\oracle\product\10.2.0\db_2\NETWORK\ADMIN
无下面两个文件
tnsnames
listener
再看了一下服务
CMD->SERVICES.MSC
ORACLE本来应该有三个服务的,少了一个监听服务!
现在从另外一台机器上拷贝过来下面两个文件:
tnsnames
listener
再将里面的内容进行改一下,
现在tnsnames文件下内容为:
COGNOS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = cognos)
)
)
现在listener文件下内容为:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = F:\oracle\product\10.2.0\db_2)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = F:\oracle\product\10.2.0\db_2)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
然后再在CMD窗口中输入:lsnrctl start
提示启动成功!
再看看服务窗口,该服务启动了!
用PL/SQL登录进去,一切OK!