[[email protected] admin]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin
[[email protected] admin]$ cat listener.ora
SID_LIST_listener=
(SID_LIST=
(SID_DESC=
(SID_NAME=orcl)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
)
)
启动监听
[[email protected] admin]$ lsnrctl start
tns配置
test_db =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.6.160)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = orcl)
)
)
原文:https://www.cnblogs.com/bugbeta/p/10142717.html