视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
Oracle双的配置
2020-11-09 11:03:02 责编:小采
文档


以Oracle Net看,数据库服务器可能也是客户端,因为tnsnames.ora可以有服务器的描述。也就是,只有才会一直是服务器

以Oracle Net看,数据库服务器可能也是客户端,因为tnsnames.ora可以有服务器的描述。也就是,只有才会一直是服务器

实例:监听=n:m

㈠ 双的好处:

① 客户端故障转移--CF

② 客户端负载均衡--CLB

㈡ 注意事项:

① 要保证1521端口可用,否则,,OEM将不可用,须emca重配

② 非标端口使用静态注册是个比较好的实践

配置案例:

[oracle@localhost admin]$ cat listener.ora
think =
(DESCRIPTION =
(load_balance = on)
(failover = on)
(ADDRESS_LIST =
(ADDRESS=(PROTOCOL = tcp)(HOST= 192.168.1.113)(PORT= 1521)
(ADDRESS=(PROTOCOL = tcp)(HOST= 192.168.1.113)(PORT= 1522)
)
)
)

SID_LIST_think =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = emrep.us.oracle.com)
(SID_NAME = emrep)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)))

water =
(DESCRIPTION =
(load_balance = on)
(failover = on)
(ADDRESS_LIST =
(ADDRESS=(PROTOCOL = tcp)(HOST= 192.168.1.113)(PORT= 1521))
(ADDRESS=(PROTOCOL = tcp)(HOST= 192.168.1.113)(PORT= 1522))
)
)
)

SID_LIST_water =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = emrep.us.oracle.com)
(SID_NAME = emrep)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)))


[oracle@localhost admin]$ lsnrctl status water

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-DEC-2012 21:47:22

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

Connecting to (DESCRIPTION=(load_balance=on)(failover=on)(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.113)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 10-DEC-2012 20:02:23
Uptime 0 days 1 hr. 44 min. 58 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "emrep.us.oracle.com" has 1 instance(s).
Instance "emrep", status READY, has 1 handler(s) for this service...
Service "emrep_XPT.us.oracle.com" has 1 instance(s).
Instance "emrep", status READY, has 1 handler(s) for this service...
The command completed successfully

如果1521和1522并存,在业务不繁忙时,listener进程只会使用1521

[oracle@localhost admin]$ lsnrctl status water

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-DEC-2012 21:48:45

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

Connecting to (DESCRIPTION=(load_balance=on)(failover=on)(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.113)(PORT=1522)))
STATUS of the LISTENER
------------------------
Alias water
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 10-DEC-2012 21:24:17
Uptime 0 days 0 hr. 24 min. 28 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/water.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.113)(PORT=1522)))
Services Summary...
Service "emrep.us.oracle.com" has 1 instance(s).
Instance "emrep", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

下载本文
显示全文
专题