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


    进入oracle安装目录product11.2.0dbhome_1NETWORKADMIN,修改listener.ora和tnsnames.ora,修改host

    我的网络IP为192.168.6.24

     

    listener.ora

    # listener.ora Network Configuration File: D:	oolsoracleproduct11.2.0dbhome_1NETWORKADMINlistener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = D:	oolsoracleproduct11.2.0dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:D:	oolsoracleproduct11.2.0dbhome_1inoraclr11.dll")
        )
        (SID_DESC = 
            (GLOBAL_DBNAME = ORCL) 
            (ORACLE_HOME = D:	oolsoracleproduct11.2.0dbhome_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:	oolsoracle

    tnsnames.ora

    # tnsnames.ora Network Configuration File: D:	oolsoracleproduct11.2.0dbhome_1
    etworkadmin	nsnames.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)
        )
      )

     然后,重启以下服务

  • 相关阅读:
    tab选项卡可自动播放
    鼠标跟随效果
    初识html5
    浅谈权限设计
    css表格撑大问题解决
    通用数据权限管理系统设计
    样式兼容IE7
    RBAC用户角色权限设计
    大话权限设计
    一个简易实用的web权限管理模块的应用与实现
  • 原文地址:https://www.cnblogs.com/lingluo2017/p/10368995.html
Copyright © 2020-2023  润新知