oracle 12.2 pdb sqlplus 连接正常, sqldeveloper plsql 连接 hang住

oracle 12.2 pdb sqlplus 连接正常, sqldeveloper plsql 连接 hang住
 
select event.count(*) from v$session where  wait_class#<>6  group by event ; 
event                                 count(*)
--------------------------------------------------
cursor:mutex S                         2    
cursor:mutex X                         31  

 

原因: _cursor_obsolete_threshold 12.2 以前默认值为1024 , 12.2 后的默认值为8192  参考文档(2298504.1  )
 
set linesize 200
col parameter for a35
col "session value" for a15
col "instance value" for a15
col KSPPDESC for a50
SELECT a.ksppinm "parameter",b.ksppstvl "session value",c.ksppstvl "instance value",a.KSPPDESC 
    FROM x$ksppi a, x$ksppcv b, x$ksppsv c 
    WHERE a.indx = b.indx AND a.indx = c.indx AND a.ksppinm LIKE '_cursor_obsolete_threshold';

 

解决办法:     
   1.   修改 _cursor_obsolete_threshold 修改1024 或100
        再 重启数据库
 
Alter system set "_cursor_obsolete_threshold"=1024 scope=spfile            
 
2. 临时解决方案:   
    
alter system flush   shared_pool  ;
alter system flush   shared_pool  ;

 

3.  通过SQLID 找到内存区域,并清理,(参考文档  2542447.1)
 
 SQL> select address,hash_value,version_count from v$sqlarea where sql_id='a9x5sbz88kmfh';
​
ADDRESS HASH_VALUE VERSION_COUNT
---------------- ---------- -------------
000000006BFFAC00 3498659280 2
​
SQL> exec dbms_shared_pool.purge('<address,hash_value>','C');
Ex:
SQL> exec dbms_shared_pool.purge('000000006BFFAC00,3498659280','C');
​
PL/SQL procedure successfully completed.

 


 
 
 
 
 
 
 
 
 
 
       
 
 
 
           
 

转载于:https://www.cnblogs.com/cqdba/p/10980155.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值