ORACLE parent latch和children latch
About parent vs child latches. There is no fundamental low level difference between parent and child latches, they are all small regions of memory modified with atomic test-and-set style opcodes.
You see parent (and solitary) latches from x$ksllt where kslltcnm = 0 and child latches have Kslltcnm > 0 (their child number is stored there).
V$LATCH_PARENT shows all latches with kslltcnm 0, V$LATCH_CHILDREN shows all latches with cnm > 0. V$LATCH just summarizes & groups all statistics up using the latch number, it doesn't care about parent vs child latches.
It's up to Oracle, how it uses the child and parent latches, normally when child latches are used, parent latches don't get used much (or at all), since all resources to be protected have been spread between child latches already.
今天看到书中讲LATCH的时候提到了两个视图V$LATCH_CHILDREN和V$LATCH_PARENT ,不太清楚两者的区别,去百度了一下,还没百度到,GOOGLE了才找到一篇相关的文章。
看了上面的讲解,我个人理解就是二者其实没什么区别,完全取决于ORACLE如何使用。
相关文档:
1.使用产品:arcsde 9.3+oracle 10.2.0.1
2.问题描述:用arcmap访问空间数据,操作几分钟,arcmap无反应,数据库服务器端cpu占有率100%,gsrvr.exe进程数10+。
3.解决办法:升级oracle版本从10.2.0.1升级到10.2.0.3或者.2.0.4。
4.原因:据esri工程师所称,oracle10.2.0.1版本存在与arcgis不兼容的无法调节的bug。目前升 ......
Oracle表空间的管理
1.创建表空间
//创建临时表空间
create temporary tablespace test_temp
tempfile 'E:\oracle\product\10.2.0\oradata\testserver\test_temp01.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
&nbs ......
今天安装软件一直在测试链接不能通过,出现ORA-12154: TNS: could not resolve service name,后来才发现是tnsnames.ora中有误。查找网上的资料,记录下来。
要排除客户端与服务器端的连接问题,首先检查客户端配置是否正确(客户端配置必须与数据库服务器端监听配置一致),再根据错误提示解决。下面列出几种常见的连接问题 ......
声明:以下内容转自 http://www.weixiuwang.com/Article/server/tech/200610/22126.html
1. 查询正在执行语句的执行计划(也就是实际语句执行计划)
select * from v$sql_plan where hash_value = (select sql_hash_value from v$session where sid = 1111);
其中id和parent_id表示 ......
今天在对表创建视图的时候,用户提示 ORA-01031用户权限不足
使用system用户对其分配dba等权限,依然无法创建视图。
继续赋予权限
grant select any table to AAA;
授予用户询所有表的权限
grant select any dictionary to AAA;
再次授取用户select任何字典的权限
......