應用程式連線Oracle rac的URL寫法

2021-06-02 09:25:18 字數 1968 閱讀 7656

oracle rac 集群示意圖

是高可用性的一種,也是oracle資料庫支援網格計算環境的核心技術。

應用程式連線oracle rac的url寫法一例 :

jdbc:oracle:thin:@(description =(address_list = (address = (protocol = tcp)(host = dc1.bpsb.com.cn)(port = 1521))(address = (protocol = tcp)(host = dc2.bpsb.com.cn)(port = 1521))(load_balance = yes)(failover = on))(connect_data =(service_name = bpscrac)))

這是網路上的一段oracle rac的url連線以及客戶端tnsnames.ora的示例----與oracle rac相關的連線配置寫法例項:(位址--

1. 應用程式連線oracle rac的url寫法

jdbc:oracle:thin:@(description =(address = (protocol = tcp)(host = 192.168.30.52)(port = 1521))(address = (protocol = tcp)(host = 192.168.30.51)(port = 1521))(load_balance = yes)(failover = yes)(connect_data =(server = dedicated)(service_name = kms)(failover_mode=(type = select)(method = basic)(retires = 180)(delay = 15))))

2. 客戶端連線oracle rac時的tnsnames.ora寫法

zjgldb2 =

(description =

(address = (protocol = tcp)(host = 192.168.30.52)(port = 1521))

(connect_data =

(server = dedicated)

(service_name = kms)

(instance_name = kms2)))

zjgldb1 =

(description =

(address = (protocol = tcp)(host = 192.168.30.51)(port = 1521))

(connect_data =

(server = dedicated)

(service_name = kms)

(instance_name = kms1)))

listeners_kms =

(address_list =

(address = (protocol = tcp)(host = 192.168.30.51)(port = 1521))

(address = (protocol = tcp)(host = 192.168.30.52)(port = 1521))

) kms =

(description =

(address = (protocol = tcp)(host = 192.168.30.51)(port = 1521))

(address = (protocol = tcp)(host = 192.168.30.52)(port = 1521))

(load_balance = yes)

(failover = yes)

(connect_data =

(server = dedicated)

(service_name = kms)

(failover_mode =

(type = select)

(method = basic)

(retries = 180)

(delay = 5)))

)

ios應用程式和應用程式委託

其實說白了,就是乙個類將自己不願意實現的方法以協議的方式定義,同時在這個類中包含有乙個型別為id 泛型類 的例項變數,如果另乙個類實現了這個協議,那麼另外的這個類就可以作為第乙個類的委託物件,前乙個類將自己不願意實現的類委託給後乙個類。因為第乙個類擁有第二個類的引用,所有第乙個類的例項可以直接呼叫第...

應用程式和資料庫連線

資料庫 資料庫的定義有好多,我們可以把他理解為是乙個存放資料的倉庫,而這些資料之間有存在聯絡。資料庫模式 根據資料庫的結構可以講資料庫分為三個模式 層次資料庫,網狀資料庫,和關聯式資料庫。前兩種資料模式沒有涉及,我只說關聯式資料庫。關聯式資料庫 乙個資料庫可以有n多表,這些表跟表之間通過某個字段可以...

python啟動應用程式和終止應用程式

每天上班,工作需要,電腦上需要每天開機啟動一些軟體,下班時候,需要關掉一些軟體。乙個乙個開啟和關閉貌似是很繁瑣的,於是乎,這個指令碼產生了。系統環境 win7 32位 python 2.7.9 你還需要安裝pywin32。pip install pywin32 啟動應用程式指令碼 coding ut...