客戶端負載均衡配置
一、伺服器端配置:
#主機RAC1的listener.ora配置
rac1-> more listener.ora
# listener.ora.rac1 Network Configuration File: /u01/oracle/product/10.2.0/db_1/
network/admin/listener.ora.rac1
# Generated by Oracle configuration tools.
LISTENER_RAC1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.88)(PORT = 1521)(IP = FIRST))
)
)
#主機RAC2的listener.ora配置
rac2-> more listener.ora
# listener.ora.rac2 Network Configuration File: /u01/oracle/product/10.2.0/db_1/network/admin/listener.ora.rac2
# Generated by Oracle configuration tools.
LISTENER_RAC2 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.89)(PORT = 1521)(IP = FIRST))
)
)
備註:192.168.1.88和192.168.1.89是主機地址;
#RAC1 tnsname.ora配置:
rac1-> more tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/oracle/product/10.2.0/db_1/netwo
rk/admin/tnsnames.ora
# Generated by Oracle configuration tools.
LISTENERS_DEVDB0 =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))
DEVDB2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
(INSTANCE_NAME = devdb2)
)
)
DEVDB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
(INSTANCE_NAME = devdb1)
)
)
DEVDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
)
)
LISTENERS_DEVDB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521))
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
#RAC2 tnsname.ora配置:
rac2-> more tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
DEVDB2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
(INSTANCE_NAME = devdb2)
)
)
DEVDB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
(INSTANCE_NAME = devdb1)
)
)
DEVDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
)
)
LISTENERS_DEVDB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521))
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
客戶端TNSNAMES的配置:
# tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
DEVDB2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.88)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
(INSTANCE_NAME = devdb2)
)
)
DEVDB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.89)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
(INSTANCE_NAME = devdb1)
)
)
DEVDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.88)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.89)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
)
)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8334342/viewspace-607492/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RAC 客戶端負載均衡配置Oracle客戶端負載
- gRPC負載均衡(客戶端負載均衡)RPC負載客戶端
- SpringCloud客戶端負載均衡——RibbonSpringGCCloud客戶端負載
- SpringCloud 客戶端負載均衡:RibbonSpringGCCloud客戶端負載
- Spring Cloud Ribbon 客戶端負載均衡SpringCloud客戶端負載
- ③SpringCloud 實戰:使用 Ribbon 客戶端負載均衡SpringGCCloud客戶端負載
- 微服務架構如何實現客戶端負載均衡微服務架構客戶端負載
- 【SpringCloud】(六):Ribbon實現客戶端負載均衡SpringGCCloud客戶端負載
- openGauss JDBC客戶端負載均衡與讀寫分離JDBC客戶端負載
- SpringCloud系列之客戶端負載均衡Netflix RibbonSpringGCCloud客戶端負載
- RocketMQ 客戶端負載均衡機制詳解及最佳實踐MQ客戶端負載
- (23)go-micro微服務客戶端開發(使用負載均衡)Go微服務客戶端負載
- mysqlslap 負載模擬客戶端MySql負載客戶端
- spring cloud 上雲的情況下,Ribbon 客戶端負載均衡 與 ALB 服務端負載均衡的選擇SpringCloud客戶端負載服務端
- Spring cloud客戶端負載均衡與ribbon的設計思路SpringCloud客戶端負載
- Spring Cloud入門教程-Ribbon實現客戶端負載均衡SpringCloud客戶端負載
- Flume負載均衡配置負載
- apache 負載均衡配置Apache負載
- 配置IIS的負載均衡負載
- nginx配置+uwsgi+負載均衡配置Nginx負載
- 使用Nginx配置TCP負載均衡NginxTCP負載
- Nginx負載均衡配置說明Nginx負載
- 兩種負載均衡的配置。負載
- Spring RestTemplate作為負載平衡器客戶端SpringREST負載客戶端
- Nginx/Httpd負載均衡tomcat配置Nginxhttpd負載Tomcat
- IdentityServer4 負載均衡配置IDEServer負載
- 負載均衡之Haproxy配置詳解負載
- java B2B2C原始碼電子商務平臺 -----客戶端負載均衡策略Java原始碼客戶端負載
- SpringCloud(第 006 篇)電影微服務,使用 Ribbon 在客戶端進行負載均衡SpringGCCloud微服務客戶端負載
- SpringCloud微服務系列(4): 服務發現與消費及客戶端負載均衡RibbonSpringGCCloud微服務客戶端負載
- 負載均衡負載
- 【kafka】-分割槽-消費端負載均衡Kafka負載
- gRPC負載均衡(自定義負載均衡策略)RPC負載
- 如何配置WSUS客戶端客戶端
- 使用nginx配置多個phpfastcgi負載均衡NginxPHPAST負載
- 配置 RAC 負載均衡與故障轉移負載
- Tomcat5.5.12配置負載均衡Tomcat負載
- DNS負載均衡的配置與特點DNS負載