博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Oracle BEQ方式连接配置
阅读量:6699 次
发布时间:2019-06-25

本文共 2730 字,大约阅读时间需要 9 分钟。

Oracle BEQ方式连接配置

服务端和客户端在同一台机器上,可以使用BEQ连接,BEQ连接可以理解为进程间直接通信,不需要走网络监听,性能更高。

可以参考MOS:How To Connect Using the Bequeath Protocol (BEQ) in 8I (文档 ID 181317.1)

Beq connection can be used between client and server on the same machine.

Connection is not using listener, so no listener configuration is required.
In tnsnames.ora add tns alias:

Under Microsoft Windows operating systems PROGRAM should contain only "

oracle":
(PROGRAM = oracle)
without any path or suffix.
For example, connecting to T816 through BEQ protocol with ORACLE_HOME=
/u08/oracle/product/8.1.6/bin/oracle
can be done using folowing tns alias:
T816-BEQ.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = BEQ)
(PROGRAM = /u08/oracle/product/8.1.6/bin/oracle)
(ARGV0 = oracleT816)
(ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))')
(ENVS = 'ORACLE_HOME=/u08/oracle/product/8.1.6,ORACLE_SID=T816')
)
)
(CONNECT_DATA = (SID = T816))
)
To connect to T816 using Bequeth protocol now use:
sqlplus system/manager@T816-BEQ

例如,我们在10.2.0.5 RAC的实例1上配置BEQ连接测试

1. 在tnsnames.ora 配置文件添加如下内容:

RACBEQ =  (DESCRIPTION =    (ADDRESS =       (PROTOCOL = BEQ)      (PROGRAM = /u01/app/oracle/product/10.2.0.5/dbhome_1/bin/oracle)      (ARGV0 = oraclejyrac1)          (ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))')      (ENVS = 'ORACLE_HOME=/u01/app/oracle/product/10.2.0.5/dbhome_1,ORACLE_SID=jyrac1')    )    (CONNECT_DATA =      (SERVICE_NAME = jyrac)      (INSTANCE_NAME = jyrac1)    )  )

2. tnsping 测试通:

[oracle@oradb27 admin]$ tnsping racbeqTNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 24-JAN-2017 18:05:48Copyright (c) 1997,  2010, Oracle.  All rights reserved.Used parameter files:Used TNSNAMES adapter to resolve the aliasAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = BEQ) (PROGRAM = /u01/app/oracle/product/10.2.0.5/dbhome_1/bin/oracle) (ARGV0 = oraclejyrac1) (ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))') (ENVS = 'ORACLE_HOME=/u01/app/oracle/product/10.2.0.5/dbhome_1,ORACLE_SID=jyrac1')) (CONNECT_DATA = (SERVICE_NAME = jyrac) (INSTANCE_NAME = jyrac1)))OK (30 msec)

3. 本地通过BEQ协议连接到数据库:

[oracle@oradb27 admin]$ sqlplus system/oracle@racbeqSQL*Plus: Release 10.2.0.5.0 - Production on Tue Jan 24 17:37:08 2017Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, OLAP, Data Miningand Real Application Testing optionsSQL> !ps -ef|grep BEQoracle    8102     1  0 17:37 ?        00:00:00 oraclejyrac1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))oracle    8133  8100  0 17:37 pts/3    00:00:00 /bin/bash -c ps -ef|grep BEQSQL>

上面查看进程也可以确定进程确实是通过BEQ协议连接的。

转载地址:http://zhloo.baihongyu.com/

你可能感兴趣的文章
Docker学习笔记——Java及Tomcat Dockerfile
查看>>
PHP中面向对象的图片处理类
查看>>
笔记--相册
查看>>
LINUX添加一块网卡地址配置及问题
查看>>
lastb
查看>>
[置顶] cocos2d-x 手游源码站
查看>>
2016年学习Linux决心书(老男孩教育在线课程班第二期)
查看>>
Linux文件系统
查看>>
37signals为何砍掉中层?个人点评,高素质人才队伍工作,靠的是全体发挥综合能力,而不是靠......
查看>>
jQuery中阻止冒泡
查看>>
touchesEnded不响应
查看>>
从表到里学习JVM实现
查看>>
关于数据库查询优化的思考
查看>>
如何在android studio中设置sdk path?
查看>>
iptables的SNAT和DNAT应用
查看>>
搭建LNMP遇到的问题
查看>>
java String类 常用函数
查看>>
Spring 容器(Spring 的上下文)
查看>>
Windows下C语言连接Oracle数据库
查看>>
Cacti 使用安装详解-企业级实例
查看>>