oracle LOCAL=YES/NO on TNS Connections

本文详细解释了在Oracle数据库中,连接字符串中的LOCAL=YES和LOCAL=NO的区别。LOCAL=YES通常代表用户直接连接到数据库的影子进程,而LOCAL=NO则表示通过监听器连接的守护进程,如智能代理等。

Description OF LOCAL=YES on TNS Connections (Doc ID 158281.1)

Problem Description
-------------------
You see a number of processes on server as follows:

oracleSID(DESCRIPTION=(LOCAL=YES)
or as       
oracleSID(DESCRIPTION=(LOCAL=NO)

What do these mean?

Solution Description
--------------------
The LOCAL=YES is more likely to be the User's shadow process connected
to the Database.
While
The LOCAL=NO will be deamons or processes like the Intelligent Agent 
connected to the Database.
  
When you connect as  
sqlplus username/password 
without specifying a TNS connect string (i.e @prod), you would get
 oracle (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=tcp.... 

If you did specify a TNS connect string, then the processes you would 
see would like like this: 
 oracle (DESCRIPTION=(LOCAL=NO)(ADDRESS=(PROTOCOL=tcp.... 

because you would be connecting through sqlnet and the connection has
to be routed through a listener.

To summarise, every dedicated connection to the database will result 
in the creation of an oracle process.Whether or not it is local=YES or
local=NO depends on how you are connecting (SQLNET or not).

 

转载于:https://my.oschina.net/zhiyonghe/blog/2222448

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值