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

溫馨提示×

溫馨提示×

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

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

oracle10g RAC ora-12545因目標主機或對象不存在的錯誤解決

發布時間:2020-08-11 20:27:33 來源:ITPUB博客 閱讀:392 作者:colin_cwc 欄目:關系型數據庫
由于歷史原因,應用升級需要成本,最近新上了一套oracle 10g RAC (10.2.0.5),測試時,從其他應用服務器,鏈接這套數據庫,使用的是vip鏈接,發現大量報錯,報錯為ora-12545因目標主機或對象不存在。
ORA-12545: Connect failed because target host or object does not exist


查詢網上資料和mos文檔,

導致這個問題的原因
Whe LOCAL_LISTENER is not set at all or is not set correctly, PMON can register both the VIP hostname and the physical hostname with the REMOTE_LISTENER.  This is incorrect in RAC but if it does occur, the client can intermittently be routed to a listener endpoint on either of these addresses.  If the client is unable to resolve the physical hostname or even the vip hostname, the connection will fail with ORA-12545.

由于LOCAL_LISTENER未配置或者配置不爭取,PMON進程使用的是REMOTE_LISTENER注冊vip hostname和物理地址,在rac里面,這是不對的配置,客戶端無法使用這些地址正確路由到監聽服務器。如果客戶端無法正確解析物理地址或者vip的hostname,鏈接就會報 ORA-12545錯誤。


Additionall, if the VIP hostname cannot be resolved, but the VIP numerical address is reachable; then this VIP numerical address should be used as the HOST value for LOCAL_LISTENER instead.


And important first set is to check the output for :  lsnrctl services


You should not see the physical hostname in the handler information for your RAC instances.   Here's an example of an incorrect lsnrctl services output for a 2-node RAC cluster:


lsnrctl services oracle_rac_listener 
Service "oracle.oracle.com" has 2 instance(s). 
Instance "orcl1", status READY, has 2 handler(s) for this service... 
Handler(s): 
"DEDICATED" established:0 refused:0 state:ready 
REMOTE SERVER 
(ADDRESS=(PROTOCOL=TCP)(HOST=myphysicalhost1)(PORT=1521)) 
"DEDICATED" established:326 refused:0 state:ready 
LOCAL SERVER 


Instance "orcl2", status READY, has 1 handler(s) for this service... 
Handler(s): 
"DEDICATED" established:394371 refused:0 state:ready 
REMOTE SERVER 
(ADDRESS=(PROTOCOL=TCP)(HOST=myphysicalhost2)(PORT=1521))
 


Here's an example of what it ought to look like when LOCAL_LISTENER is configured correctly:


lsnrctl services oracle_rac_listener 
Service "oracle.oracle.com" has 2 instance(s). 
Instance "orcl1", status READY, has 2 handler(s) for this service... 
Handler(s): 
"DEDICATED" established:0 refused:0 state:ready 
REMOTE SERVER 
(ADDRESS=(PROTOCOL=TCP)(HOST=myVIP_host1)(PORT=1521)) 
"DEDICATED" established:326 refused:0 state:ready 
LOCAL SERVER 


Instance "orcl2", status READY, has 1 handler(s) for this service... 
Handler(s): 
"DEDICATED" established:394371 refused:0 state:ready 
REMOTE SERVER 
(ADDRESS=(PROTOCOL=TCP)(HOST=myVIP_host2)(PORT=1521))


解決方案:

分別修改兩邊的RAC實例的LOCAL_LISTENER配置。
alter system set LOCAL_LISTENER="(address=(protocol=tcp)(port=1521)(host=))" scope=both sid='INSTANCE_NAME1';
alter system set LOCAL_LISTENER="(address=(protocol=tcp)(port=1521)(host=))" scope=both sid='INSTANCE_NAME2'; 


另外,相關配置REMOTE_LISTENER.
alter system set REMOTE_LISTENER='' scope=both sid='*';

另外parallel_instance_group參數也可以配置不一樣的值

alter system set parallel_instance_group="A" scope=both sid='INSTANCE_NAME1';
alter system set parallel_instance_group="B" scope=both sid='INSTANCE_NAME2'; 

最后,注意的是,修改完后,重啟監聽,如果重啟監聽都不行,重啟一下數據庫或者兩個實例重啟一下。

向AI問一下細節

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

AI

封开县| 武胜县| 定结县| 驻马店市| 中江县| 惠州市| 普宁市| 威海市| 盖州市| 斗六市| 石屏县| 徐州市| 当雄县| 普兰店市| 习水县| 靖江市| 江油市| 历史| 磐安县| 新建县| 康马县| 浦北县| 西安市| 宜川县| 莎车县| 洛川县| 石嘴山市| 竹北市| 富蕴县| 滦平县| 军事| 漾濞| 罗平县| 乳山市| 滁州市| 沈阳市| 和平区| 修文县| 山西省| 武威市| 弋阳县|