码迷,mamicode.com
首页 > 数据库 > 详细

oracle监听配置

时间:2017-09-30 15:16:42      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:ip地址   div   host   ora   protoc   文件中   desc   实例名   tcp   

在listener.ora文件中指定监听的实例名和修改ip地址:

查看实例名:[localhost$] echo $ORACLE_SID 

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.193.130)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = /home/oracle/app

SID_LIST_LISTENER =
(SID_LIST =
 (SID_DESC =
  (GLOBAL_DBNAME = orcl)
  (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
  (SID_NAME = orcl)
 )
)  

将服务器的tnsnames.ora的内容拷贝到客户端的tnsnames.ora记得修改ip

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.193.130)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

 

oracle监听配置

标签:ip地址   div   host   ora   protoc   文件中   desc   实例名   tcp   

原文地址:http://www.cnblogs.com/ThatsMyTiger/p/7614714.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!