1.打开Oracle安装的目录,修改listener.ora内容,地址如下,这里是我自己安装的地址
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\TOOL\Oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
)
)
2.添加内容
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\TOOL\Oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
)
# 下面是添加的内容代码,ORACLE_HOME指向自己的安装目录
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\TOOL\Oracle\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)
)
3.保存文件,打开服务 ,重新启动监听服务OracleDb11g_home1TNSListener, 通过工具连接Oracle,显示连接成功!!!