欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

oarcle使用ipc协议配置方法 博客分类: 数据库oracle

程序员文章站 2024-03-01 10:41:52
...
使用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协议配置方法
            
    
    博客分类: 数据库oracle

OK,登录试下。

oarcle使用ipc协议配置方法
            
    
    博客分类: 数据库oracle
  • oarcle使用ipc协议配置方法
            
    
    博客分类: 数据库oracle
  • 大小: 157.2 KB
  • oarcle使用ipc协议配置方法
            
    
    博客分类: 数据库oracle
  • 大小: 38.8 KB