oracle 监听服务重置,通过Net Manager 配置Oracle 11g本地监听服务(listener service)

[Target]

通过ip address 监听orcl服务,而不是通过localhost

[Prerequisite]

Windows Server 2003 32bit with Oracle 11g installed

[Steps]

1. Open Oracle Net Manager

Start->All Programs->Oracle-OraDb11g_home1->Configuration and Migration Tools->Net Manager;

2. Add a listener

In Oracle Net Manager window, choose listeners, click Add Address(pic Oracle Net Manager);

Host: ip address of the machine installed oracle

Port: 1521

Click "Close Button";

Click "Save";

3.Restart oracle listener service

Start->Command Prompt;

Type "lsnrctl";

Type "status";

Type "stop";

Type "start";

Type "status";

We find that listener service for database orcl is not running, so we edit listener.ora to make a workaround.

4.Edit listener.ora (seems like a workaround)

In directory "C:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN",

Edit listener.ora

Origin:

# listener.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = CLRExtProc)

(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)

(PROGRAM = extproc)

(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

)

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

)

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.4)(PORT = 1521))

)

)

ADR_BASE_LISTENER = C:\app\Administrator

After:

# listener.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = CLRExtProc)

(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)

(PROGRAM = extproc)

(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")

)

(SID_DESC =

(SID_NAME = ORCL)

(ORACLE_HOME =C:\app\Administrator\product\11.2.0\dbhome_1)

(GLOBAL_DBNAME = ORCL)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

)

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

)

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.4)(PORT = 1521))

)

)

ADR_BASE_LISTENER = C:\app\Administrator

In DOS type "lsnrtcl";

Type "status";

See changes.

Type "stop";

Type "start";

Type "status";

We find that listener service for orcl is running.

Done.

[Reference]

[1]Oracle中"listener does not currently know of SID given in connect descriptor" :

http://blog.csdn.net/mozart_cai/article/details/8596526

[2]ORA-12505,TNS:listener does not currently know of SID given in connect descriptor :

http://blog.csdn.net/wl_ldy/article/details/8012992

[3]Oracle the network adapter could not establish the connection :

http://www.cnblogs.com/adolfmc/archive/2012/10/07/2713711.html

[4]JDBC 连接 Oracle 11G 问题小记 :

http://denger.iteye.com/blog/770732

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值