oracle 解决本机ip数据源连接不上的问题

切换到:

D:\orcale\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora

原文件代码

# listener.ora Network Configuration File: D:\orcale\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:\orcale\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:D:\orcale\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
  )

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

ADR_BASE_LISTENER = D:\orcale



修改文件代码

# listener.ora Network Configuration File: D:\orcale\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:\orcale\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:D:\orcale\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
	(SID_DESC =    
            (GLOBAL_DBNAME = ORCL)    
            (ORACLE_HOME = D:\orcale\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.11.12)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = D:\orcale



你可能感兴趣的:(oracle)