listener.ora怎么配置多IP监听
答案:2 悬赏:10 手机版
解决时间 2021-02-28 01:14
- 提问者网友:不要迷恋哥
- 2021-02-27 14:14
listener.ora怎么配置多IP监听
最佳答案
- 五星知识达人网友:上分大魔王
- 2021-02-27 14:50
C:\Users\Administrator>lsnrctl status listener
...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.9.15)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
...
C:\Users\Administrator>lsnrctl status listener1
...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=seya-PC)(PORT=1522)))
监听程序不支持服务
命令执行成功
SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.9.15)(PORT=1521)))' scope=both;
系统已更改。
SQL> alter system set remote_listener='(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=seya-PC)(PORT=1522)))' scope=both;
系统已更改。
SQL> alter system register;
C:\Users\Administrator>sqlplus scott/tiger@192.168.9.15:1521/orcl
C:\Users\Administrator>sqlplus scott/tiger@seya-pc:1522/orcl
...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.9.15)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
...
C:\Users\Administrator>lsnrctl status listener1
...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=seya-PC)(PORT=1522)))
监听程序不支持服务
命令执行成功
SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.9.15)(PORT=1521)))' scope=both;
系统已更改。
SQL> alter system set remote_listener='(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=seya-PC)(PORT=1522)))' scope=both;
系统已更改。
SQL> alter system register;
C:\Users\Administrator>sqlplus scott/tiger@192.168.9.15:1521/orcl
C:\Users\Administrator>sqlplus scott/tiger@seya-pc:1522/orcl
全部回答
- 1楼网友:七十二街
- 2021-02-27 15:33
1、比较方便和直观的是使用netca工具,里面有监听配置;
2、直接修改listener.ora文件,目录位于:安装目录/network/admin/listener.ora
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯