[20190415]11g下那些latch是共享的.txt
[20190415]11g下那些latch是共享的.txt
http://andreynikolaev.wordpress.com/2010/11/23/shared-latches-by-oracle-version/
--//oracle并没有文档准确说明那些latch是支持共享,作者的链接通过使用orderbug手工调用kslgetsl()函数(10g)或者kslgetsl_w()函
--//数(11g),确定那些latch支持共享模式.我仅仅重复测试看看.
1.环境:
SYS@book> @ ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
2.建立测试脚本:
--//drop table shared_latches purge;
create table shared_latches(
version varchar2(50), /* Oracle version */
latch# number, /* latch# */
name varchar2(200), /* ltach name */
shared varchar2(1) /* if 'Y' then latch is shared */
);
--//建立表shared_latches.
spool list_shared_latches.sh
select 'sqlplus /nolog @is_latch_shared 0x'||addr||' '||latch#||' "'||translate(name,'''',' ')||'"'
from v$latch_parent;
spool off
--//获得latch list.仅仅测试latch parent就ok了.适当编辑整理脚本.
$ cat is_latch_shared.sql
/*
This file is part of demos for "Contemporary Latch Internals" seminar v.24.08.2010
Copyright: (c) Andrey S. Nikolaev (Andrey.Nikolaev@rdtex.ru) RDTEX
http://AndreyNikolaev.wordpress.com
for 32bit Oracle 10g and above
*/
connect / as sysdba
set verify off
WHENEVER SQLERROR EXIT;
set pagesize 0
alter session set max_dump_file_size=0;
/*
before 11g shared latch get function was named kslgetsl()
in 11g - kslgetsl_w()
*/
col shared_latch_function new_value shared_latch_function
var db_v varchar2(100);
var db_comp varchar2(100);
begin dbms_utility.db_version(:db_v,:db_comp); end;
/
select decode(sign(replace(:db_v,'.','')-110000),1,'kslgetsl_w', 'kslgetsl') shared_latch_function from dual;
--//11g use kslgetsl_w,other use kslgetsl.
oradebug setmypid
/* try to get latch as shared in S mode */
oradebug call &shared_latch_function &1 1 2 3 8
/* if ORA-00600: [545] was raised in previous statement then latch was exclusive. The error terminates the script */
/* free the latch */
oradebug call kslfre &1
/* if we are here, the latch was shared */
insert into shared_latches(version,latch#,name,shared) select version,latch#,name,'Y' from v$latch,v$instance where latch#=&2;
commit;
exit
--//说明:作者利用oradebug调用报错,后面的插入语句不会执行,来完整获得那些shared latch的列表.
3.执行:
$ . list_shared_latches.sh
--//略.
4.结果:
VERSION LATCH# NAME S
---------- ---------- ---------------------------------------- -
11.2.0.4.0 6 test shared non-parent l0 Y
11.2.0.4.0 14 session idle bit Y
11.2.0.4.0 15 client/application info Y
11.2.0.4.0 21 ksim group membership cache Y
11.2.0.4.0 24 parameter table management Y
11.2.0.4.0 49 resmgr group change latch Y
11.2.0.4.0 50 channel handle pool latch Y
11.2.0.4.0 51 channel operations parent latch Y
11.2.0.4.0 52 message pool operations parent latch Y
11.2.0.4.0 75 sixteenth spare latch - S non-parent Y
11.2.0.4.0 76 seventeenth spare latch - S non-parent Y
11.2.0.4.0 77 eighteenth spare latch - S non-parent Y
11.2.0.4.0 78 nineteenth spare latch - S non-parent Y
11.2.0.4.0 79 twentieth spare latch - S non-parent Y
11.2.0.4.0 80 twenty-first spare latch - S par Y
11.2.0.4.0 81 twenty-second spare latch - S par Y
11.2.0.4.0 82 twenty-third spare latch - S par Y
11.2.0.4.0 83 twenty-fourth spare latch - S par Y
11.2.0.4.0 84 twenty-fifth spare latch - S par Y
11.2.0.4.0 92 SGA mapping latch Y
11.2.0.4.0 93 active service list Y
11.2.0.4.0 102 storage server table manipulation latch Y
11.2.0.4.0 144 name-service namespace bucket Y
11.2.0.4.0 149 gcs remastering latch Y
11.2.0.4.0 150 gcs partitioned table hash Y
11.2.0.4.0 151 gcs pcm hashed value bucket hash Y
11.2.0.4.0 155 recovery domain hash list Y
11.2.0.4.0 160 gcr global ctx Y
11.2.0.4.0 164 Memory Management Latch Y
11.2.0.4.0 171 kcbtsemkid latch Y
11.2.0.4.0 173 buffer pool Y
11.2.0.4.0 177 cache buffers chains Y
11.2.0.4.0 183 tablespace key chain Y
11.2.0.4.0 189 object queue header operation Y
11.2.0.4.0 215 gc element Y
11.2.0.4.0 275 MinActiveScn Latch Y
11.2.0.4.0 280 In memory undo latch Y
11.2.0.4.0 281 KTF sga latch Y
11.2.0.4.0 283 Change Notification Hash table latch Y
11.2.0.4.0 286 change notification client cache latch Y
11.2.0.4.0 289 lob segment hash table latch Y
11.2.0.4.0 290 lob segment query latch Y
11.2.0.4.0 291 lob segment dispenser latch Y
11.2.0.4.0 296 space background SGA latch Y
11.2.0.4.0 301 kssmov protection latch Y
11.2.0.4.0 305 domain validation update latch Y
11.2.0.4.0 306 kdlx hb parent latch Y
11.2.0.4.0 308 Dedup Write Append Table Latch Y
11.2.0.4.0 317 global KZLD latch for mem in SGA Y
11.2.0.4.0 318 Read Only Database Account Status Y
11.2.0.4.0 320 Policy Refresh Latch Y
11.2.0.4.0 321 Policy Hash Table Latch Y
11.2.0.4.0 322 OLS label cache Y
11.2.0.4.0 323 instance information Y
11.2.0.4.0 324 policy information Y
11.2.0.4.0 325 global ctx hash table latch Y
11.2.0.4.0 326 Role grants to users Y
11.2.0.4.0 327 Role graph Y
11.2.0.4.0 328 Security Class Hashtable Y
11.2.0.4.0 331 third Audit Vault latch Y
11.2.0.4.0 332 fourth Audit Vault latch Y
11.2.0.4.0 344 resmgr:active threads Y
11.2.0.4.0 349 resmgr:plan CPU method Y
11.2.0.4.0 355 Shared B-Tree Y
11.2.0.4.0 356 Memory Queue Y
11.2.0.4.0 357 Memory Queue Subscriber Y
11.2.0.4.0 369 ODM-NFS:Global file structure Y
11.2.0.4.0 373 SGA heap creation lock Y
11.2.0.4.0 375 SGA pool creation lock Y
11.2.0.4.0 378 SGA blob lock Y
11.2.0.4.0 380 kgb latch Y
11.2.0.4.0 382 SGA table lock Y
11.2.0.4.0 383 Event Group Locks Y
11.2.0.4.0 385 Sage HT Latch Y
11.2.0.4.0 409 JOX SGA heap latch Y
11.2.0.4.0 410 JOX JIT latch Y
11.2.0.4.0 425 hash table dml freq tracking latch Y
11.2.0.4.0 426 hash table column usage latch Y
11.2.0.4.0 433 compile environment latch Y
11.2.0.4.0 436 Result Cache: RC Latch Y
11.2.0.4.0 464 KWQP Prop Status Y
11.2.0.4.0 465 KWQS pqueue ctx latch Y
11.2.0.4.0 466 KWQS pqsubs latch Y
11.2.0.4.0 467 AQ Propagation Scheduling Proc Table Y
11.2.0.4.0 468 AQ Propagation Scheduling System Load Y
11.2.0.4.0 471 rules engine rule set statistics Y
11.2.0.4.0 472 rules engine rule statistics Y
11.2.0.4.0 477 kwqbsn:qsga Y
11.2.0.4.0 479 bufq statistics Y
11.2.0.4.0 481 queue sender's info. latch Y
11.2.0.4.0 482 bq:time manger info latch Y
11.2.0.4.0 486 KWQMN job cache list latch Y
11.2.0.4.0 487 KWQMN to-be-Stopped Buffer list Latch Y
11.2.0.4.0 504 XDB NFS Stateful SGA Latch Y
11.2.0.4.0 505 qmne Export Table Latch Y
11.2.0.4.0 507 XDB Byte Lock SGA Latch Y
11.2.0.4.0 508 XDB Mcache SGA Latch Y
11.2.0.4.0 565 WCR: sync Y
11.2.0.4.0 566 WCR: processes HT Y
11.2.0.4.0 578 JS Sh mem access Y
11.2.0.4.0 579 PL/SQL warning settings Y
101 rows selected.
--//我导入作者的测试结果在链接https://andreynikolaev.wordpress.com/上可以找到.
--//https://andreynikolaev.wordpress.com/summary-tables/shared_latches-ctl/,作者没有做11.2.0.4测试.
--//11.2.0.3结果如下:
SYS@book> select count(*) from scott.shared_latches where version='11.2.0.3.0';
COUNT(*)
----------
93
[20190415]11g下那些latch是共享的.txt的更多相关文章
- [20190415]10g下那些latch是共享的.txt
[20190415]10g下那些latch是共享的.txt http://andreynikolaev.wordpress.com/2010/11/23/shared-latches-by-oracl ...
- [20190416]11g下那些latch是Exclusive的.txt
[20190416]11g下那些latch是Exclusive的.txt --//昨天测试了11g下那些latch是共享的,链接:--//是否反过来剩下的都是Exclusive的.继续测试: 1.环境 ...
- Oracle 11g 新特性 -- 自适应游标共享(Adaptive Cursor Sharing: ACS) 说明(转载)
一.自适应游标共享(Adaptive Cursor Sharing) 说明 1.1 ACS概述绑定变量使Oracle DB 可以为多条SQL 语句共享单个游标,以减少分析SQL 语句所使用的共享内存量 ...
- [20180928]如何能在11g下执行.txt
[20180928]如何能在11g下执行.txt --//链接问的问题: http://www.itpub.net/thread-2105467-1-1.html create table test( ...
- Mac、Linux下两个Emacs共享一个配置文件
Mac.Linux下两个Emacs共享一个配置文件 有些嵌入式的实验需要在Linux进行,就安装了RHEL6.4的虚拟机,下载并编译了Emacs. 在Linux的.emacs文件中加入以下语句,即可引 ...
- 阿里云服务器win2003下iis整合tomcat共享80端口
阿里云服务器win2003下iis整合tomcat共享80端口 很多机器都用tomcat跟IIS部署不同网站.最近买了阿里云的服务器.于是也想玩一下.网上百度了很多方法.但是都有缺陷说的不是很清楚.通 ...
- [20190319]shared pool latch与library cache latch的简单探究.txt
[20190319]shared pool latch与library cache latch的简单探究.txt --//昨天看Oracle DBA手记3:数据库性能优化与内部原理解析.pdf 电子书 ...
- [20190416]完善shared latch测试脚本2.txt
[20190416]完善shared latch测试脚本2.txt --//昨天测试shared latch,链接:http://blog.itpub.net/267265/viewspace-264 ...
- [20190214]11g Query Result Cache RC Latches补充.txt
[20190214]11g Query Result Cache RC Latches补充.txt --//上午测试链接:http://blog.itpub.net/267265/viewspace- ...
随机推荐
- 微信小程序请求API接口PHPSESSID变化的解决方式
微信小程序开发,请求服务器API的方法使用的是微信官方提供的wx.request()方法.在开发中发现,每一个请求都会生成一个独立的PHPSESSID,如下图示: 搜索后得知,这是由于wx.reque ...
- java 随机数产生 常用类及方法
1.Random类 Random():创建一个新的随机数生成器. new一个Random类的对象: Random r = new Random(); 利用该对象产生一个随机整数:常用nextInt,不 ...
- github pages代码高亮highlighter
github pages 一直想添加代码高亮 highlighter ,基于 jekyll 3.0 的 rouge 终于搞定了: 下载代码高亮库 在 cmd 中输入: rougify style mo ...
- Python内置函数(49)——pow
英文文档: pow(x, y[, z]) Return x to the power y; if z is present, return x to the power y, modulo z (co ...
- RTMP、HTTP-FLV、HLS,你了解常见的三大直播协议吗
随着直播行业大火,游戏.乐秀.教育.发布会等直播类产品层出不穷,能够满足各方人员的需求.在直播中,总能在其中找到适合自己的产品内容.喜欢玩游戏的可以看游戏直播,想学点工作技能的,也可以观看大牛现场授课 ...
- Java集合类的那点通俗的认知
文/沉默王二 开门见山地说吧,Java提供了一套完整的集合类(也可以叫做容器类)来管理一组长度可变的对象(也就是集合的元素),其中常见的类型包括List.Set.Queue和Map.从我个人的编程经验 ...
- asp.net core 系列 12 选项 TOptions
一.概述 本章讲的选项模式是对Configuration配置的功能扩展. 讲这篇时有个专用名词叫“选项类(TOptions)” .该选项类作用是指:把选项类中的属性与配置来源中的键关联起来.举个例,假 ...
- mybatis中的动态SQL
在实际开发中,数据库的查询很难一蹴而就,我们往往要根据各种不同的场景拼接出不同的SQL语句,这无疑是一项复杂的工作,我们在使用mybatis时,mybatis给我们提供了动态SQL,可以让我们根据具体 ...
- shell实战之tomcat看门狗
1.脚本简介 tomcat看门狗,在tomcat进程异常退出时会自动拉起tomcat进程并记录tomcat运行的日志. 函数说明: log_info:打印日志的函数,入参为需要在日志中打印的msg s ...
- Config Server高可用
一 简介构建高可用的Config Server集群,包括Config Server的高可用,以及依赖Git仓库的高可用. 二 Git仓库的高可用由于配置的内容都存储在Git仓库中,所以要想实现Conf ...