Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:/>lsnrctl status listener
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 05-8月 -2010 10:56:55
Copyright (c) 1991, 2005, Oracle. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-12541: TNS: 无监听程序
TNS-12560: TNS: 协议适配器错误
TNS-00511: 无监听程序
32-bit Windows Error: 2: No such file or directory
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=china-user)(PORT=1521)))
TNS-12541: TNS: 无监听程序
TNS-12560: TNS: 协议适配器错误
TNS-00511: 无监听程序
32-bit Windows Error: 61: Unknown error
C:/>lsnrctl status listener_bak
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 05-8月 -2010 10:57:04
Copyright (c) 1991, 2005, Oracle. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=china-user)(PORT=1526)))
LISTENER 的 STATUS
------------------------
别名 LISTENER_BAK
版本 TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
启动日期 05-8月 -2010 10:43:17
正常运行时间 0 天 0 小时 13 分 50 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
监听程序参数文件 E:/vmware/winora10g/product/10.2.0/db_1/network/admin/listener.ora
监听程序日志文件 E:/vmware/winora10g/product/10.2.0/db_1/network/log/listener_bak.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=china-user.hs.handsome.com.cn)(PORT=1526)))
服务摘要..
服务 "ORCL" 包含 1 个例程。
例程 "ORCL", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功
C:/>sqlplus system/orcl@orcl
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 8月 5 10:57:19 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12541: TNS: 无监听程序
请输入用户名:
C:/>
C:/>
C:/>sqlplus system/orcl@orcl126
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 8月 5 10:57:28 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
C:/>
listener.ora:
# listener.ora Network Configuration File: E:/vmware/winora10g/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:/vmware/winora10g/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = china-user)(PORT = 1521))
)
)
###############################################################################
LISTENER_BAK =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = china-user)(PORT = 1526))
)
)
SID_LIST_LISTENER_BAK =
(SID_LIST =
(SID_DESC =
(SID_NAME = ORCL)
(ORACLE_HOME = E:/vmware/winora10g/product/10.2.0/db_1)
## (GLOBAL_DBNAME=ORCL)##################
)
)
###############################################################################
####(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))#########
tnsnames.ora:
# tnsnames.ora Network Configuration File: E:/vmware/winora10g/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = china-user)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
ORCL126 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = china-user)(PORT = 1526))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)