重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2030|回复: 0
打印 上一主题 下一主题

[Oracle] GRID: Dead Connection Connection or DCD and RAC 11.2 and higher

[复制链接]
跳转到指定楼层
楼主
发表于 2018-10-21 21:49:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式


                               
登录/注册后可看大图






Applies to:  Oracle Net Services - Version 11.2.0.1 and later
Information in this document applies to any platform.
GoalEnabling Dead Connection Detection (DCD) for RAC 11.2 or higher



SolutionWhen DCD (SQLNET.EXPIRE_TIME) needs to be enabled, it must be enabled for the "RDBMS Oracle home" when considering using DCD for an 11.2 RAC installation.
The reason is, Scan and Node TNS listeners run from the Grid Oracle home (default), but the bequeath connection is owned by the operating system account for the RDBMS Oracle home.

This means the SQLNET.ORA file for the RDBMS Oracle home must have the parameter set.
Example :
Grid Oracle O/S user "grid"
RDBMS Oracle home O/S user "Oracle"

TNS listeners are running as "grid" user
$ ps -ef |grep tnslsnr
oracle 13858 27102 0 16:22 pts/1 00:00:00 grep tnslsnr
grid 30445 1 0 12:16 ? 00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
grid 31377 1 0 12:20 ? 00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit


Make a SQL*Plus connection
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\sqlplus scott/tiger@test

SQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 28 16:24:30 2010

Copyright (c) 1982, 2010, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL>


And check the Process ID
SQL> select p.spid, s.serial#, s.username, s.module, s.program, s.machine
from v$process p,v$session s where p.addr = s.paddr and s.username = 'SCOTT';

SPID SERIAL# USERNAME
------------------------ ---------- ------------------------------
MODULE
------------------------------------------------
PROGRAM
------------------------------------------------
MACHINE
----------------------------------------------------------------
23394 56998 SCOTT
SQL*Plus
sqlplus.exe
UK-ORACLE\test


Check that process ID and the user is "Oracle"
$ ps -ef |grep 23394
oracle 23394 1 0 16:24 ? 00:00:00 oraclev11gr21 (LOCAL=NO)
oracle 22927 19181 0 16:25 pts/4 00:00:00 grep 23394









分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-27 13:42 , Processed in 0.093062 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表