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

oarcle使用ipc协议配置方法_第1张图片

OK,登录试下。

oarcle使用ipc协议配置方法_第2张图片
  • oarcle使用ipc协议配置方法_第3张图片
  • 大小: 157.2 KB
  • oarcle使用ipc协议配置方法_第4张图片
  • 大小: 38.8 KB
  • 查看图片附件

你可能感兴趣的:(oarcle使用ipc协议配置方法)