Oracle
IT 更改電腦域名後的 Oracle 10g 偵聽器問題
我需要一些幫助。
我們在 Windows 2008R2 機器上安裝了 Oracle 10.2.0.5.0。
問題是我們的 IT 部門更改了該機器的域。我嘗試編輯我們的 tnsnames.ora 和 listner.ora 文件並重新啟動偵聽器服務。
我可以使用 sqldeveloper 遠端連接到數據庫,但如果我嘗試通過一個使用 BDE 的遺留應用程序連接,我會得到 ORA-03114:未連接到 ORACLE。
除此之外,當我嘗試執行 imp 命令或嘗試使用框上的 sqlplus 命令登錄時,我收到以下錯誤。
ORA-12514: TNS:listener 目前不知道連接描述符中請求的服務
所以我相信我在這裡錯過了一些東西。我也試過這個 http://www.oralytics.com/2011/03/changeing-domain-of-oracle-database.html 但我收到一個警告試圖刪除回購,並收到一個錯誤嘗試創建它。
lsnrctl 狀態
LSNRCTL for 32-bit Windows: Version 10.2.0.5.0 - Production on 24-JAN-2018 10:48 :20 Copyright (c) 1991, 2010, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for 32-bit Windows: Version 10.2.0.5.0 - Produ ction Start Date 24-JAN-2018 10:39:51 Uptime 0 days 0 hr. 8 min. 29 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o ra Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MYCOMPUTERNAME.myNewDomain)(POR T=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "orcl.myNewDomain" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB.myNewDomain" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orcl_XPT.myNewDomain" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... The command completed successfully
listner.ORA 文件
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = C:\oracle\product\10.2.0\db_1) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = MYCOMPUTERNAME.myNewDomain)(PORT = 1521)) ) )
TNSNAMES.ora
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = MYCOMPUTERNAME.MYNEWDOMAIN)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) )
更新:添加了我的 SQLNET.ORA 文件 # sqlnet.ora 網路配置文件:C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora # 由 Oracle 配置工俱生成。
# This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT) NAMES.DEFAULT_DOMAIN = MYCOMPUTERNAME.MYCOMPUTERDOMAIN
我很感激你能給我的任何幫助。
以下參數在 SQLNET.ora 文件中的條目是什麼?
names.default_domain = 世界
如果它不包含您的 myNewDomain 域名,請修改它。我希望它能解決您的域名錯誤配置。或者請您的系統管理員檢查 /etc/hosts 文件中的域名是否正確輸入。