同一个数据库配置多个listener,不同端口

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)
    )
  )

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值