停止空想

老张的空中之家

存档于 ‘数据库’ 分类

AIX 上 ora-600 [unable to load XDB library] 解决方法一则

作者:admin 发表时间:一月 - 31 - 2009
转自 http://blog.chinaunix.net/u1/58716/showart_687519.html   

Google 了下 ORA-600 [unable to load XDB library],大部分结果是要正确设置 LD_LIBRARY_PATH 和 LIBPATH 环境变量,metalink 文档号 351650.1 中提到(225897.1 中也有环境变量的设置方法):

阅读全文 »

Popularity: 24% [?]

类别:Oracle

library cache lock/pin 等待事件的处理(转)

作者:admin 发表时间:一月 - 4 - 2009

转自 http://tolywang.itpub.net/post/48/70906

概述

造成数据库性能下降或挂起的原因很多,”library cache pin”等待是其中之一.当数据库性能严重下降或挂起时,我们通过查询v$session_wait,发现大量的”library cache pin”等待,查询的SQL语句如下:

#su – oracle

$svrmgrl

svrmgr>connect internal

svrmgr>select sid,event,p1,p2,p3 from v$session_wait where wait_time=0;

SID EVENT P1 P2 P3

———- ————————- ———- ———- ————–

9 library cache pin 15417016 10090832 20

154 library cache pin 15417016 11224168 20

341 library cache pin 15417016 11449936 20

349 library cache pin 15417016 16489792 20

390 library cache pin 15417016 11992536 20

160 library cache pin 15417016 6166600 20

20 library cache pin 15417016 10868760 20

阅读全文 »

Popularity: 25% [?]

类别:Oracle

library cache lock/pin 概念

作者:admin 发表时间:十二月 - 30 - 2008

转自晶晶小妹  http://space.itpub.net/13095417/viewspace-201617

第一小结  library cache 的内存结构

ITPUB个人空间)K2};z3F wE
Library cache
的作用,最主要的就是存储已解析的SQL声明,避免硬解析。我们可以通过一个视图V$librarycache来了解Library cache点中率,已此来评估SQL声明的解析情况。应时时注意此视图中点中率情况,好及时发现并解决问题。

D[/b;`fd126162 一、Library cache中所存储的信息:
b’e'x(\E)S126162 1. 按对象类型分类:ITPUB个人空间.g0^7`n;s*QL
共享游标(SQL and PL/SQL objects)、数据库对象(tables, indexes, and so on
H;BI Q”bud!Otx-r126162 2. 按存在时间分类:ITPUB个人空间v ~ H| L;Hm McC
存贮对象:如表、索引、视图等(老化后 磁盘上还有 所以叫永久存储 并不是永久存储在LIBRARY 中)ITPUB个人空间.\Ff�j F ?
瞬时对象:如游标(老化后就没有了)(简单了解在Library cache中数据库对象的信息是什么)

阅读全文 »

Popularity: 26% [?]

类别:Oracle