本文主要是介绍TNS-12541: TNS: 无监听程序,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
TNS-12541: TNS: 无监听程序
platform:
windows xp home version +oracle 10.1.0.2.0
我在一台机器安装的客户端和服务器端供测试连接.
系统有防火qiang,我已关闭
步骤如下:
-------------------------------------------------------------------------------
C:\Documents and Settings\lovexueer>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 13-12月-2004 11:3
2:05
Copyright (c) 1991, 2004, Oracle. All rights reserved.
启动tnslsnr: 请稍候...
TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
系统参数文件为c:\oracle\product\10.1.0\db_1\network\admin\listener.ora
写入c:\oracle\product\10.1.0\db_1\network\log\listener.log的日志信息
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.11)(PORT=1521)))
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.3.11)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
ction
启动日期 13-12月-2004 11:32:07
正常运行时间 0 天 0 小时 0 分 2 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
监听程序参数文件 c:\oracle\product\10.1.0\db_1\network\admin\listener.o
ra
监听程序日志文件 c:\oracle\product\10.1.0\db_1\network\log\listener.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.11)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
服务摘要..
服务 "PLSExtProc" 包含 1 个例程。
例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功
-----------------------------------------------------------------------------------------
tnsnames内容如下:
# tnsnames.ora Network Configuration File: c:\oracle\product\10.1.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ONLYTEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.11)(PORT = 5000))
)
(CONNECT_DATA =
(SERVICE_NAME = onlyTest)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
--------------------------------------------------------------------------------------
但是执行tnsping onlytest却不通,报没有监听器,不知为何?
C:\Documents and Settings\lovexueer>tnsping onlytest
TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 13-12月-
2004 11:37:08
Copyright (c) 1997, 2003, Oracle. All rights reserved.
已使用的参数文件:
c:\oracle\product\10.1.0\db_1\network\admin\sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.3.11)(PORT = 5000))) (CONNECT_DATA = (SERVICE_NAME = onlyTest)))
TNS-12541: TNS: 无监听程序
----------------------------------------------------------
不知道为何,那位大虾遇到过,先谢谢了
windows xp home version +oracle 10.1.0.2.0
我在一台机器安装的客户端和服务器端供测试连接.
系统有防火qiang,我已关闭
步骤如下:
-------------------------------------------------------------------------------
C:\Documents and Settings\lovexueer>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 13-12月-2004 11:3
2:05
Copyright (c) 1991, 2004, Oracle. All rights reserved.
启动tnslsnr: 请稍候...
TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
系统参数文件为c:\oracle\product\10.1.0\db_1\network\admin\listener.ora
写入c:\oracle\product\10.1.0\db_1\network\log\listener.log的日志信息
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.11)(PORT=1521)))
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.3.11)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
ction
启动日期 13-12月-2004 11:32:07
正常运行时间 0 天 0 小时 0 分 2 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
监听程序参数文件 c:\oracle\product\10.1.0\db_1\network\admin\listener.o
ra
监听程序日志文件 c:\oracle\product\10.1.0\db_1\network\log\listener.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.11)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
服务摘要..
服务 "PLSExtProc" 包含 1 个例程。
例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功
-----------------------------------------------------------------------------------------
tnsnames内容如下:
# tnsnames.ora Network Configuration File: c:\oracle\product\10.1.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ONLYTEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.11)(PORT = 5000))
)
(CONNECT_DATA =
(SERVICE_NAME = onlyTest)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
--------------------------------------------------------------------------------------
但是执行tnsping onlytest却不通,报没有监听器,不知为何?
C:\Documents and Settings\lovexueer>tnsping onlytest
TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 13-12月-
2004 11:37:08
Copyright (c) 1997, 2003, Oracle. All rights reserved.
已使用的参数文件:
c:\oracle\product\10.1.0\db_1\network\admin\sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.3.11)(PORT = 5000))) (CONNECT_DATA = (SERVICE_NAME = onlyTest)))
TNS-12541: TNS: 无监听程序
----------------------------------------------------------
不知道为何,那位大虾遇到过,先谢谢了
这篇关于TNS-12541: TNS: 无监听程序的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!