91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Oracle 12c應用如何實現連接VIP輪訓負載均衡的

發布時間:2020-04-16 16:31:42 來源:億速云 閱讀:317 作者:三月 欄目:關系型數據庫

下文給大家帶來Oracle 12c應用如何實現連接VIP輪訓負載均衡的,希望能夠給大家在實際運用中帶來一定的幫助,負載均衡涉及的東西比較多,理論也不多,網上有很多書籍,今天我們就用億速云在行業內累計的經驗來做一個解答。

目前很多生產數據庫都是兩節點RAC,應用連接的數據庫通常會連接SCAN IP或者VIP,這里做一個小實驗,如果我們使用VIP連接,

應該怎樣配置我們的客戶端,負載均衡是否是嚴格意義上的輪訓機制,只有通過自己的測試才能得到準備的答案。

Oracle 12c應用如何實現連接VIP輪訓負載均衡的

  1. tnsnames.ora配置

<rac01:orcl1:/u01/app/oracle/product/12.1.0/dbhome_1/network/admin>$less tnsnames.ora 

# tnsnames.ora Network Configuration File: /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/tnsnames.ora

# Generated by Oracle configuration tools.


orcl =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = orcl)

    )

  )


vip =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.203)(PORT = 1521))

    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.204)(PORT = 1521))

    (LOAD_BALANCE = yes) 

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = orcl)

    )

  )


2.測試腳本如下

<rac01:orcl1:/u01/app/oracle/product/12.1.0/dbhome_1/network/admin>$

<rac01:orcl1:/u01/app/oracle/product/12.1.0/dbhome_1/network/admin>$less load_balance.sh 

#!/bin/bash  

for i in {1..100}  

do  

echo $i

sqlplus -S system/oracle@vip <<EOF

select instance_name from v\$instance;

select count(*) from t1;

EOF

sleep 1  

done  

exit 0 


3.開始測試,觀察

<rac01:orcl1:/u01/app/oracle/product/12.1.0/dbhome_1/network/admin>$sh load_balance.sh 

1


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


2


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


3


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


4


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


5


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


6


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


7


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


8


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


9


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


10


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


11


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


12


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


13


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


14


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


15


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


16


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


17


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


18


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


19


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


20


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


21


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


22


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


23


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


24


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


25


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


26


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


27


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


28


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


29


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


30


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


31


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


32


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


33


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


34


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


35


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


36


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


37


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


38


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


39


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


40


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


41


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


42


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


43


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


44


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


45


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


46


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


47


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


48


INSTANCE_NAME

----------------

orcl2



  COUNT(*)

----------

   2910624


49


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624


50


INSTANCE_N

....省略...............


  COUNT(*)

----------

   2910624


100


INSTANCE_NAME

----------------

orcl1



  COUNT(*)

----------

   2910624

看了以上關于Oracle 12c應用如何實現連接VIP輪訓負載均衡的,如果大家還有什么地方需要了解的可以在億速云行業資訊里查找自己感興趣的或者找我們的專業技術工程師解答的,億速云技術工程師在行業內擁有十幾年的經驗了。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

龙井市| 岳阳市| 肥东县| 余江县| 江门市| 平南县| 湟中县| 资阳市| 兴宁市| 孝昌县| 台安县| 汽车| 贵定县| 鄢陵县| 兴和县| 江油市| 鱼台县| 视频| 金寨县| 琼海市| 焉耆| 英德市| 唐海县| 高邮市| 聊城市| 垫江县| 稻城县| 阿克陶县| 清河县| 沁源县| 秦皇岛市| 专栏| 陆河县| 双辽市| 广宗县| 嘉峪关市| 曲水县| 怀集县| 兴安盟| 临桂县| 曲阳县|