oracle是否监听,Oracle 配置监听

[oracle@www ~]$ LANG=en_US netca

Oracle Net Services Configuration:

0935dfebf3d01bebfad4940ed4ae20be.png

50124f15c0205e3424e8f8be20f1f86b.png

23cb190dd40f5f0480fead29c8cc3f81.png

0085d4fdac813a1e6c837048017a2b3b.png

ebfc51a531da4d52cde93f8a2017a082.png

1e4ed389ae079cc15057dc60ea6d1666.png

ca679cd57d0a0985f2a93a5e2dd086f2.png

e985b08aa707a9ab3c0c72919d74def5.png

创建完成监听之后屏幕回显

Configuring Listener:LISTENER

Listener configuration complete.

Oracle Net Listener Startup:

Running Listener Control:

/u01/app/oracle/product/11.2.0/db_home1/bin/lsnrctl start LISTENER

Listener Control complete.

Listener started successfully.

Oracle Net Services configuration successful. The exit code is 0

[oracle@www ~]$

查看监听(修改红色HOST=本机的ip地址)

[oracle@www ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 24-MAR-2018 22:34:02

Copyright (c) 1991, 2011, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=poweroff.cn)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production

Start Date 24-MAR-2018 22:27:07

Uptime 0 days 0 hr. 6 min. 54 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/oracle/product/11.2.0/db_home1/network/admin/listener.ora

Listener Log File /u01/app/oracle/diag/tnslsnr/www/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=poweroff.cn)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Services Summary...

Service "prod.poweroff.cn" has 1 instance(s).

Instance "prod", status READY, has 1 handler(s) for this service...

Service "prodXDB.poweroff.cn" has 1 instance(s).

Instance "prod", status READY, has 1 handler(s) for this service...

The command completed successfully

vim listener.ora配置文件进行修改

[oracle@www ~]$ vim /u01/app/oracle/product/11.2.0/db_home1/network/admin/listener.ora

修改完成之后停止监听[oracle@www ~]$ lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 24-MAR-2018 22:55:12

Copyright (c) 1991, 2011, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.43.15)(PORT=1521)))

The command completed successfully

开启监听并查看HOST配置文件是否修改

[oracle@www ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 24-MAR-2018 22:56:38

Copyright (c) 1991, 2011, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.43.15)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production

Start Date 24-MAR-2018 22:55:17

Uptime 0 days 0 hr. 1 min. 21 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/oracle/product/11.2.0/db_home1/network/admin/listener.ora

Listener Log File /u01/app/oracle/diag/tnslsnr/www/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.43.15)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Services Summary...

Service "prod.poweroff.cn" has 1 instance(s).

Instance "prod", status READY, has 1 handler(s) for this service...

Service "prodXDB.poweroff.cn" has 1 instance(s).

Instance "prod", status READY, has 1 handler(s) for this service...

The command completed successfully

测试一下。

打开pc机的cmd。输入telnet ip地址 1521

e2bcdf26f91c1d7d403d2473791ac48c.png

218844b31e66b16c4fcfebd8ca6b5d42.png

看到上如说明监听配置成功。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值