oracle load banlance 配置與測試方法
oracle load banlance 配置與測試方法
client 端設定方法:
rac_test =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 138.30.0.201)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 138.30.0.202)(PORT = 1521))
(LOAD_BALANCE= yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME =racdb)
)
)
server端設定方法:
引數設定
節點1 local_listener='LISTENERS_RAC1' listeners_rac1 在tnsnames.ora中配置見節點1 tnsnames.ora
或者直接寫ip地址有以下格式
(ADDRESS=(PROTOCOL=TCP)(HOST=138.30.0.201)(PORT=1521))
命令如下:
alter system set local_listener='LISTENERS_RAC1' scope=both sid='racdb1';
或者
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=138.30.0.201)(PORT=1521))' scope=both sid='racdb1';
節點2 local_listener='LISTENERS_RAC2' listeners_rac2在tnsnames.ora中配置見節點2 tnsnames.ora
或者直接寫ip地址有以下格式
(ADDRESS=(PROTOCOL=TCP)(HOST=138.30.0.202)(PORT=1521))
命令如下:
alter system set local_listener='LISTENERS_RAC2' scope=both sid='racdb2';
或者
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=138.30.0.202)(PORT=1521))' scope=both sid='racdb2';
remote_listeners='LISTENERS_RACDB' 會自動預設設定好
tnsnames.ora設定
tnsnames.ora in RAC ORACLE_HOME
節點1
LISTENERS_RACDB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
)
LISTENERS_RAC1 =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
)
節點2
LISTENERS_RACDB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
)
LISTENERS_RAC2 =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
)
測試方法:
sqlplus ""
select instance_name from v$instance;
exit;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-626244/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RAC Load Balance , Fail Over測試OracleAI
- 測試mysql--load dataMySql
- initialize方法與load方法比較
- 測試流程與測試人員配置的一點感想
- Cmocka 單元測試配置與使用Mock
- Oracle Job學習與測試Oracle
- Oracle privilege學習與測試Oracle
- Oracle Roles學習與測試Oracle
- Oracle Audit 學習與測試Oracle
- db2 load 自增測試DB2
- 理解Load Average做好壓力測試
- 解決Spring Boot測試方法Failed to load ApplicationContext問題Spring BootAIAPPContext
- GoldenGate的安裝、配置與測試Go
- 敏捷測試的方法與實踐敏捷測試
- oracle死鎖測試與解決Oracle
- Oracle批次插入測試資料的方法Oracle
- 如何配置Oracle RAC Load Balance 及FailOverOracleAI
- 軟體測試方法的分析與研究
- vue正式環境與測試環境壓包配置方法(vue-cli 2.0)Vue
- 測試方法
- 如何實現介面異常場景測試?測試方法探索與測試工具實現
- oracle備份與恢復測試(五)Oracle
- oracle sql_not exists與null的測試OracleSQLNull
- Oracle DB Links學習與測試Oracle
- Oracle約束的學習與測試Oracle
- Oracle Audit學習與測試 參考文件Oracle
- 介面測試方法
- Web測試方法Web
- JUnit測試方法
- 測試oracle sqlldrOracleSQL
- ORACLE 測試題:Oracle
- oracle swingbench 壓力測試軟體安裝配置Oracle
- Oracle SCN相關問題學習與測試Oracle
- [zt] Oracle RAC的Failover設定與測試OracleAI
- 安裝與配置MySQL,phpmyAdmin;安裝與測試PHPLIB (轉)MySqlPHP
- oracle xtts資料庫遷移方法測試之一OracleTTS資料庫
- ORACLE EBS 安裝後的簡單基本測試方法Oracle
- CTS測試與GTS測試區別