當計算機名稱修改時,如何解決oracle11g監聽問題
阿新 • • 發佈:2019-02-14
1.要將listener.ora中的 (DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(ORACLE_HOME = home路徑)
(SID_NAME = 資料庫全域性名稱)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
) host值填寫為修改後的計算機名稱或者localhost
2.將tnsnames.ora中的host值修改為localhost
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
重啟監聽服務,訪問資料庫,如果報’ora12514 監聽程式當前無法識別‘ 錯誤
3.在listener.ora中找到(SID_LIST =)在裡面加入(SID_DESC =
(GLOBAL_DBNAME = 資料庫全域性名稱)(ORACLE_HOME = home路徑)
(SID_NAME = 資料庫全域性名稱)
) 注意紅色標記部分!