1.编辑listener.ora监听文件
# vi /oracle/10g/network/admin/listener.ora
2.修改如下内容,红色字体部分为新增内容:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/10g)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl10g) # SID
(ORACLE_HOME = /oracle/10g) # oracle_home
(SID_NAME = orcl10g) # SID
)
)
# vi /oracle/10g/network/admin/listener.ora
2.修改如下内容,红色字体部分为新增内容:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/10g)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl10g) # SID
(ORACLE_HOME = /oracle/10g) # oracle_home
(SID_NAME = orcl10g) # SID
)
)