JDBC 如何配置RAC 的Load Balance ?
How to Implement Load Balancing With RAC Configured System Using JDBC
: | 247135.1 |
PURPOSE
-------
This document discusses how to implement load balancing from a JDBC application
that connects to a RAC configured system.
SCOPE & APPLICATION
-------------------
This material is intended for developers or analysts.
How to Implement Load Balancing With RAC Configured System Using JDBC
---------------------------------------------------------------------
Here are the steps to follow in configuring load balancing and connecting
with a JDBC program:
1. Verify that from the same system that you are running your JDBC program that
load balancing is working from sqlplus.
If you do not have sqlplus on the same system that you will be running your
JDBC program from, download the "Instant Client" that contains sqlplus from :
Here are some notes that will help you get the setup working:
Configuration of Load Balancing and Transparent Application Failover
Understanding and Troubleshooting Instance Load Balancing
Client Load Balancing and Failover Using Description and Address_List
The following note provides a script. for automating the testing of load
balancing from sqlplus (just ignore the oc4j references):
How to setup Fast Connection Failover within OAS 10.1.3 oc4j instances
Use your connect string if you use this script.
2. Now modify the connection string (host:port:sid) in your JDBC program
with the full name-value pair syntax as used in step (1) ...
url="jdbc:oracle:thin:@(DESCRIPTION=
(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=host2)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service_name)))"
or
url="jdbc:oracle:thin:@(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=cluster_alias) (PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service_name)))"
conn = DriverManager.getConnection(url, user_name, password);
You can use the TestFailover program in the following note:
How to Implement Connect Failover Using JDBC Thin
with your connect string as a starting example.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-600650/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何配置Oracle RAC Load Balance 及FailOverOracleAI
- Oracle RAC Load BalanceOracle
- rac failover and load_balanceAI
- [zt] Oracle RAC Load Balance [final]Oracle
- Oracle RAC Load Balance , Fail Over測試OracleAI
- 9i jdbc thin drive不支援Load balanceJDBC
- rac failover and load_balance簡單使用AI
- PostgreSQL DBA(127) - Develop(JDBC failover&load balance)SQLdevJDBCAI
- RAC的兩大應用特性FAILOVER和LOAD_BALANCE總結AI
- LOAD_BALANCE&TAF總結
- Oracle LOAD_BALANCE&TAF總結Oracle
- gslb(global server load balance)技術的一點理解Server
- REMOTE_LISTENER對LOAD_BALANCE的影響(二)REM
- REMOTE_LISTENER對LOAD_BALANCE的影響(一)REM
- PostgreSQL DBA(128) - pgAdmin(Load balance with HAProxy)SQL
- 彈性負載均衡(Elastic Load Balance,ELB)負載AST
- [zt] JDBC連線Oracle RAC的連線串配置JDBCOracle
- 伺服器負載均衡(Server Load Balance,SLB)伺服器負載Server
- RAC+Dataguard環境中JDBC Failover配置JDBCAI
- jdbc 連線 oracle racJDBCOracle
- Jdbc thin not suppot Rac TAFJDBC
- jdbc連rac範例JDBC
- Server Data Synchronization Via Linux rsync、rsync+inotify Between Load Balance ServerServerLinux
- 雲端計算教程學習入門影片課件:Load Balance講解
- 客戶端設定了load balance , Server端就不用remote_listener了吧?客戶端ServerREM
- 從零手寫實現 nginx-31-load balance 負載均衡介紹Nginx負載
- JDBC 相關配置JDBC
- derby 的配置及jdbc連線JDBC
- Oracle9i, 10g, 11g 負載均衡(load balance)和Fail OverOracle負載AI
- jdbc連線oracle rac資料庫的寫法JDBCOracle資料庫
- Oracle 11gR2 RAC的JDBC連線串OracleJDBC
- 在JDBC連線池中啟動Oracle RAC的TAFJDBCOracle
- 解決Mybatis連線Sql server 出現 Cannot load JDBC driver class 'com.mysql.jdbc.Driver '的問題MyBatisServerJDBCMySql
- 配置RAC中的VIP
- java B2B2C Springcloud電子商城系統--------負載均衡(Load Balance)JavaSpringGCCloud負載
- mongodb分片balanceMongoDB
- 如何解讀Oracle的LOAD PROFILEOracle
- tomcat 配置JDBC連線池TomcatJDBC