`

oarcle使用ipc协议配置方法

 
阅读更多
使用ipc协议连接oracle,前提客户端与oracle server要在一台机器上。

When a process is on the same machine as the server, use the IPC protocol for connectivity instead of TCP. Inner Process Communication
on the same machine does not have the overhead of packet building and deciphering that TCP has.

一下是我本机window 7 32 bit;oracle 11g r2 的配置,我本地配置了多个oracle,我以ETL实例为例子。
1)配置listener.ora
# listener.ora Network Configuration File: 
C:\app\Administrator\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 = C:\app\Administrator\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
  )

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

ADR_BASE_LISTENER = C:\app\Administrator

2)配置tnsnames.ora
# tnsnames.ora Network Configuration File: 
C:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

ETL_IPC =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = ETL))
    )
    (CONNECT_DATA =
      (SID = ETL)
      (PRESENTATION = RO)
    )
  )



查看listener 状态
使用windows命令:lsnrctl -status



OK,登录试下。


  • 大小: 157.2 KB
  • 大小: 38.8 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics