我需要一些帮助。
我们在 windows 2008R2 机器上安装了 Oracle 10.2.0.5.0。
问题是我们的 IT 部门更改了该机器的域。我尝试编辑我们的 tnsnames.ora 和 listner.ora 文件并重新启动侦听器服务。
我可以使用 sqldeveloper 远程连接到数据库,但是如果我尝试通过我们使用 BDE 的遗留应用程序连接,我会收到 ORA-03114:未连接到 ORACLE。
除此之外,当我尝试执行 imp 命令或尝试使用框上的 sqlplus 命令登录时,我收到以下错误。
ORA-12514: TNS: 侦听器当前不知道连接描述符中请求的服务
所以我相信我在这里错过了一些东西。我也试过这个 http://www.oralytics.com/2011/03/changing-domain-of-oracle-database.html 但是我收到了一条试图删除回购的警告,并收到了一个错误试图创建它。
lsnctl状态
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 文件中是否正确输入了域名。