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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[参考文档] ORA-03135 When Connecting to the Database

[复制链接]
跳转到指定楼层
楼主
发表于 2023-5-21 12:58:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
When attempting to connect to the primary database, the following error occurs.

  ERROR
    ORA-03135 connection lost contact

Generating an errorstack trace on the error:

SQL> alter session set events '3135 trace name errorstack level 3';
SQL> connect <username>/<password>


The trace file indicates that we a trying to update the AUDSES$ sequence.
The LGWR process is waiting on the LNS process:

waiting for 'LGWR-LNS wait on channel' blocking sess=0x(nil) seq=59925
wait_time=0 seconds since wait started=0 =0, =0, =0

LNS is waiting:

waiting for 'LNS wait on SENDREQ' blocking sess=0x(nil) seq=446
wait_time=0 seconds since wait started=0 =0, =0, =0


原因:
The LGWR is hung waiting for LNS which in turn is hung waiting for a tcp timeout, the session is waiting on 'log file sync' and eventually fails to connect after a minute. In this case the LGWR is stuck because we fail to update AUDSES$. AUDSES$ is a sequence which is getting updated on connection and is cached for 20 values so only every 20th connection or increment to audses$ will cause an update. If there is a problem to update the seq$, then the client connection will receive ORA-3135.

处理方法:
To implement the solution, please execute the following steps:

1. login to database

2. increase the cache size of AUDSES$ from 20 (default) to 10000

SQL> ALTER SEQUENCE sys.audses$ cache 10000;

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 09:06 , Processed in 0.107825 second(s), 20 queries .

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

© 2001-2020

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