listener.ora tnsnames.ora
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了listener.ora tnsnames.ora相关的知识,希望对你有一定的参考价值。
cd $ORACLE_HOME/network/admin/listener.ora,添加
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = orcl)
(ORACLE_HOME = $ORACLE_NAME)
(PROGRAM = extproc)
)
SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = $ORACLE_NAME) #查看 echo $ORACLE_NAME
(SID_NAME = ORCL) #查看 echo $ORACLE_SID
)
)
cd $ORACLE_HOME/network/admin/listener.ora,添加
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ip地址)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME =db) #查看SERVICE_NAME : sqlplu / as sysdba
#SQL> show parameter service
)
)
最后保存修改,重启监听: lsnrctl stop lsnrctl start
(总结)Oracle监听服务lsnrctl参数及查询状态详解:http://blog.sina.com.cn/s/blog_5e3455e70101bl01.html
以上是关于listener.ora tnsnames.ora的主要内容,如果未能解决你的问题,请参考以下文章