运行oracle 12.2.0.1.0
我们在测试环境中有一个运行oracle的应用程序。尝试连接到SQLPlus时出现以下错误:
E:\> sqlplus ifsapp/password@ifstpdb
SQL*Plus: Release 12.2.0.1.0 Production on Tue Oct 22 08:32:26 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name:
服务器的tnsping返回有效结果和“ OK”状态:
E:\>tnsping ifstcdb
TNS Ping Utility for 64-bit Windows: Version 12.2.0.1.0 - Production on 22-OCT-2019 08:30:16
Copyright (c) 1997, 2016, Oracle. All rights reserved.
Used parameter files:
E:\app\oracle\product\12.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = fully.qualified.servername)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = IFSTCDB)))
OK (0 msec)
但是,lsnrctl返回错误“ CLRExtProc”:
E:\>lsnrctl status IFSTCDB
LSNRCTL for 64-bit Windows: Version 12.2.0.1.0 - Production on 22-OCT-2019 08:24:40
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=fully.qualified.servername)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=IFSTCDB)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 12.2.0.1.0 - Production
Start Date 22-OCT-2019 08:24:33
Uptime 0 days 0 hr. 0 min. 7 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\app\oracle\product\12.2.0\dbhome_1\network\admin\listener.ora
Listener Log File E:\app\oracle\diag\tnslsnr\UMGSVRIDT01\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=UMGSVRIDT01.WORLD.BIZ)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully.
我是SQL专家,但不是Oracle专家。我大概可以通过-我还没有重新启动数据库,但是我确实重新启动了侦听器。服务器名称已在tnsnames.ora中正确注册。服务器也已经重新启动(尽管是昨天),但没有成功。
有什么想法吗?