昨晚上启动plsql时,出现了无法解析指定的连接标识符的问题,然后在d:\app\hp\product\11.2.0\dbhome_1中找到了listener.ora文件,然后对文件进行了修改,内容如下:
# listener.ora Network Configuration File: D:\app\hp\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\hp\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\hp\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = D:\app\hp\product\11.2.0\dbhome_1)
(SID_NAME=ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
ADR_BASE_LISTENER = D:\app\hp
改完之后再启动plsql,就出现了无监听程序,服务也启动了,但我发现在服务中,tns虽然启动了,但是刷新之后仍是停止状态,无法启动。所以重新配置了net configuration assistance,再次重启tns服务,问题就解决了。