客户19.3数据库无法在open过程hang住


分析alert日志

2022-10-18T15:04:57.374918+08:00

db_recovery_file_dest_size of 102400 MB is 9.58% used. This is a

user-specified limit on the amount of space that will be used by this

database for recovery-related files, and does not reflect the amount of

space available in the underlying filesystem or ASM diskgroup.

2022-10-18T15:09:55.535116+08:00

ORCLPDB(4):>>> WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK! pid=40

ORCLPDB(4):System State dumped to trace file /data/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_p000_31225.trc

2022-10-18T15:19:33.374783+08:00

ORCLPDB(4):Undo initialization recovery: err:1013 start: 1911760 end: 2790176 diff: 878416 ms (878.4 seconds)

Pdb ORCLPDB hit error 1013 during open read write (1) and will be closed.

这里比较明显,cdb本身open正常,但是其中的ORCLPDB这个pdb无法open,从而显示hang的情况.查询数据库会话情况

SQL> select event,sql_id from v$session where wait_class#<>6;

EVENT                                SQL_ID

---------------------------------------------------------------- -------------

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

EVENT                                SQL_ID

---------------------------------------------------------------- -------------

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

row cache lock                           8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

SQL*Net message to client                    1dhc13tspcmys

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

EVENT                                SQL_ID

---------------------------------------------------------------- -------------

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

cursor: pin S wait on X                      8vyjutx6hg3wh

33 rows selected.

SQL> select sql_text from v$sql where sql_id='8vyjutx6hg3wh';

SQL_TEXT

--------------------------------------------------------------------------------

update /*+ rule */ undo$ set name=:2,file#=:3,block#=:4,status$=:5,user#=:6,undo

sqn=:7,xactsqn=:8,scnbas=:9,scnwrp=:10,inst#=:11,ts#=:12,spare1=:13 where us#=:1

SQL> col machine for a30

SQL> /

   INST_ID    SID PADDR        SQL_ID        EVENT              MACHINE  PROGRAM

---------- ---------- ---------------- ------------- ------------------------------ ------------ ------------------------

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

   INST_ID    SID PADDR        SQL_ID        EVENT              MACHINE  PROGRAM

---------- ---------- ---------------- ------------- ------------------------------ ------------ -----------------------

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   4517 00000001907FEC50 8vyjutx6hg3wh row cache lock         xifenfei     oracle@xifenfei (P000)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

   INST_ID    SID PADDR        SQL_ID        EVENT              MACHINE  PROGRAM

---------- ---------- ---------------- ------------- ------------------------------ ------------ -----------------------

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

     1   5645 000000018095AF40 8vyjutx6hg3wh cursor: pin S wait on X        xifenfei     oracle@xifenfei (P002)

31 rows selected.

SQL> l

   select b.INST_ID,b.sid,b.paddr,b.sql_id,b.event,b.MACHINE,b.PROGRAM from gv$session a,gv$session b

  2* where a.event='cursor: pin S wait on X'  and a.FINAL_BLOCKING_INSTANCE=b.INST_ID and

  3* a.FINAL_BLOCKING_SESSION=b.sid

SQL>

通过上述分析,可以确认是在open pdb的过程中被cursor: pin S wait on X等待事件阻塞,而被阻塞的sql是update /*+ rule */ undo$ set …………,基于这样的情况.大概率可以确认是由于bug导致.通过查询mos,确认和Bug 30931981 – Open Reset Logs Hangs With ‘row cache lock’ and ‘cursor: pin s wait for x’ Waits (Doc ID 30931981.8)类似.


不过由于客户的版本是19.3,没有对应的小patch发布.通过对相关恢复事务和恢复方式进行处理,在没有对数据库版本进行任何调整的情况下,顺利打开数据库以最快的速度恢复业务

oracle open hang 等待cursor: pin S wait on X---惜分飞相关推荐

  1. 并行insert出现library cache lock与cursor: pin S wait on X等待问题记录

    一. 故障现象与紧急处理 开发反馈凌晨5点左右应用出现大量报错 ORA-04021: timeout occurred while waiting to lock object,并且集中出现在inse ...

  2. 遭遇cursor:pin x等待事件定位阻塞会话诊断过程

    环境描述:DB:10.2.0.4.0 /OS:AIX 5.3 (64bit) 问题描述: 1.会话A执行如下命令被挂起 SQL> exec dbms_shared_pool.purge('070 ...

  3. cursor:pin S wait on X故障诊分析

    1.    故障概述 7:15,二节点出现大量的"cursor: pin S wait on X"等待事件,数据库性能下降,持续到7:19分恢复正常,持续时间4分钟左右. 下面是详 ...

  4. [20190320]测试相同语句遇到导致cursor pin S的情况.txt

    [20190320]测试相同语句遇到导致cursor pin S的情况.txt --//前面测试链接:http://blog.itpub.net/267265/viewspace-2636342/ - ...

  5. EM12C监控遇到 ‘cursor: pin S wait on X’ waits.

    最近安装了EM12C,对上有ERP应用的所有库进行监控.EM12C相对之前的grid control还是改进比较大的.安装也蛮简单. 今早一来发现一库有大量的并发,如下图,图1-1: 点上图,图1-1 ...

  6. oracle常见等待事件,必看干货 | Oracle 常见的等待事件说明(下)

    原标题:必看干货 | Oracle 常见的等待事件说明(下) [上期回顾]干货 | Oracle 常见等待事件说明(上)( 点击可查看) 16.Library cache pin 这个等待事件和 li ...

  7. oracle中“ORA-00060: 等待资源时检测到死锁” 或存储过程编译卡死 解决方法

    oracle中"ORA-00060: 等待资源时检测到死锁" 或存储过程编译卡死 解决方法 参考文章: (1)oracle中"ORA-00060: 等待资源时检测到死锁& ...

  8. oracle gc chain,ORACLE GC 类等待事件汇总分析

    ORACLE GC 类等待事件汇总分析 作者简介: ---------------------------------------------------------------------- @ 孙 ...

  9. Oracle 下 unpin 的cursor 才能被移除

    最近南方的雨下的很烦人. 暴雨,一下就是一天,不过平时我也不怎么出门,所以也就无所谓了. 在家看看电影,做做测试,在补补觉,周末2天也就过去了. 刚才owind 让我做了个测试. 正在使用的curso ...

最新文章

  1. 修改及查看mysql数据库的字符集
  2. apply筛选 pandas_更快的pandas.apply搜索方法
  3. centos配置occi环境变量_拓展学习-golang的下载、安装和环境配置教程
  4. Python 三元表达式、列表推导式、生成器表达式
  5. linux下安装opencv4.4.0
  6. tinymce引入后未显示_继金博大后再弃一子!大商接连关闭在郑亏损店面,未来或布局高端购物中心...
  7. python函数递归 字符串反转
  8. 和情商高的人聊天是什么样的体验?
  9. RH413-Linux系统下umask测试
  10. 接管任意微软账户并获$5万赏金的故事
  11. Spring好处—总结
  12. 移动端设备管理平台 atx server2实践
  13. windows11条件下将yafu路径添加到环境变量
  14. php实现高并发解决方案
  15. mysql5717开发设置怎么调回来_mysql5.7.17安装配置图文教程
  16. 2022数据库系统工程师 下午 真题答案
  17. 如何连接ftp服务器
  18. Android Studio 1.3RC版 build加速
  19. 如何在多台电脑间同步
  20. python名词,单词和名词相似性Python NLTK

热门文章

  1. python将英语中的复数名词变成单数名词
  2. 使用MVC模式实现一个超简单的网上书店系统
  3. AIX中常用的SMIT 的使用
  4. redis的map和zset写入50万个数据的测试结果
  5. 最简洁wordpress中文主题模板
  6. CDISC SDTM HO domain学习笔记
  7. shell while true
  8. 免费无账号直接使用openAI的chatGPT
  9. 传统学术研究中有哪些现实问题可望用区块链来解决?
  10. ipxe无盘服务器,ipxe uefi pxe HTTP启动文件及启动菜单的个人体会