修改这个文件中前半部分为(注意前面那个SID_DESC不要变,加入另外一个):
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
……省略哈!
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(SID_NAME = orcl)
)
)
保存,然后cmd中输入lsnrctl回车,输入stop回车,然后start回车,然后重新试试看可能连上