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

oracle报错:The Network Adapter could not establish the connection的解决

时间:2019-02-13 12:24:44      阅读:374      评论:0      收藏:0      [点我收藏+]

标签:alt   目录   mamicode   ice   acl   dll   cti   server   too   

进入oracle安装目录\product\11.2.0\dbhome_1\NETWORK\ADMIN,修改listener.ora和tnsnames.ora,修改host

我的网络IP为192.168.6.24

 技术图片

listener.ora

# listener.ora Network Configuration File: D:\tools\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = D:\tools\oracle\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:D:\tools\oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
    (SID_DESC = 
        (GLOBAL_DBNAME = ORCL) 
        (ORACLE_HOME = D:\tools\oracle\product\11.2.0\dbhome_1) 
        (SID_NAME = ORCL) 
    )
  )
     
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.6.24)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = D:\tools\oracle

tnsnames.ora

# tnsnames.ora Network Configuration File: D:\tools\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

LISTENER_ORCL =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.6.24)(PORT = 1521))


ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
    )
  )

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

 然后,重启以下服务

技术图片

 

oracle报错:The Network Adapter could not establish the connection的解决

标签:alt   目录   mamicode   ice   acl   dll   cti   server   too   

原文地址:https://www.cnblogs.com/lingluo2017/p/10368995.html

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