- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-6-4 23:47:31
ODM TEST:
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL>
SQL> oradebug setmypid;
Statement processed.
SQL> oradebug dump systemstate 266;
Statement processed.
SQL> oradebug dump library_cache 10;
Statement processed.
SQL> oradebug tracefile_name
/s01/orabase/diag/rdbms/vprod/VPROD1/trace/VPROD1_ora_6251.trc
SO: 0xb48b2d88, type: 78, owner: 0xbd881fe8, flag: INIT/-/-/0x00 if: 0x3 c: 0x3
proc=0xbd509290, name=LIBRARY OBJECT LOCK, file=kgl.h LINE:8547, pg=0
LibraryObjectLock: Address=0xb48b2d88 Handle=0xb46bdbe0 Mode=N CanBeBrokenCount=1 Incarnation=1 ExecutionCount=6
User=0xbd881fe8 Session=0xbd83a828 ReferenceCount=1 Flags=CNB/[0001] SavepointNum=4fccd55d
LibraryHandle: Address=0xb46bdbe0 Hash=535d1a6c LockMode=N PinMode=0 LoadLockMode=0 Status=VALD
ObjectName: Name=select text from view$ where rowid=:1
FullHashValue=f0cfa2e63e1fda46fbf3cdf9535d1a6c Namespace=SQL AREA(00) Type=CURSOR(00) Identifier=1398610540 OwnerIdn=0
Statistics: InvalidationCount=1 ExecutionCount=31 LoadCount=3 ActiveLocks=2 TotalLockCount=9 TotalPinCount=1
Counters: BrokenCount=1 RevocablePointer=1 KeepDependency=1 BucketInUse=8 HandleInUse=8 HandleReferenceCount=0
Concurrency: DependencyMutex=0xb46bdc90(0, 1, 0, 0) Mutex=0xb46bdd10(0, 71, 0, 0)
Flags=RON/PIN/TIM/PN0/DBN/[10012841]
WaitersLists:
Lock=0xb46bdc70[0xb46bdc70,0xb46bdc70]
Pin=0xb46bdc50[0xb46bdc50,0xb46bdc50]
LoadLock=0xb46bdcc8[0xb46bdcc8,0xb46bdcc8]
Timestamp: Current=06-04-2012 11:33:17
HandleReference: Address=0xb46bdda0 Handle=(nil) Flags=[00]
LibraryObject: Address=0xb46b9680 HeapMask=0000-0001-0001-0000 Flags=EXS[0000] Flags2=[0000] PublicFlags=[0000]
ChildTable: size='16'
Child: id='0' Table=0xb46ba530 Reference=0xb46b9f68 Handle=0xb46b9290
NamespaceDump:
Parent Cursor: sql_id=grwydz59pu6mc parent=0xb46b9720 maxchild=1 plk=y ppn=n
Bucket: #=72300 Mutex=0xb8d61858(0, 14, 0, 6)
LibraryHandle: Address=0xb46bdbe0 Hash=535d1a6c LockMode=N PinMode=0 LoadLockMode=0 Status=VALD
ObjectName: Name=select text from view$ where rowid=:1
FullHashValue=f0cfa2e63e1fda46fbf3cdf9535d1a6c Namespace=SQL AREA(00) Type=CURSOR(00) Identifier=1398610540 OwnerIdn=0
Statistics: InvalidationCount=1 ExecutionCount=31 LoadCount=3 ActiveLocks=2 TotalLockCount=9 TotalPinCount=1
Counters: BrokenCount=1 RevocablePointer=1 KeepDependency=1 BucketInUse=8 HandleInUse=8 HandleReferenceCount=0
Concurrency: DependencyMutex=0xb46bdc90(0, 1, 0, 0) Mutex=0xb46bdd10(29, 72, 0, 6)
Flags=RON/PIN/TIM/PN0/DBN/[10012841]
WaitersLists:
Lock=0xb46bdc70[0xb46bdc70,0xb46bdc70]
Pin=0xb46bdc50[0xb46bdc50,0xb46bdc50]
LoadLock=0xb46bdcc8[0xb46bdcc8,0xb46bdcc8]
Timestamp: Current=06-04-2012 11:33:17
HandleReference: Address=0xb46bdda0 Handle=(nil) Flags=[00]
ReferenceList:
Reference: Address=0xb46b7250 Handle=0xb46b7fb0 Flags=ROD[21]
LibraryObject: Address=0xb46b9680 HeapMask=0000-0001-0001-0000 Flags=EXS[0000] Flags2=[0000] PublicFlags=[0000]
DataBlocks:
Block: #='0' name=KGLH0^535d1a6c pins=0 Change=NONE
Heap=0xb46ba638 Pointer=0xb46b9720 Extent=0xb46b9600 Flags=I/-/P/A/-/-
FreedLocation=0 Alloc=2.460938 Size=3.976562 LoadTime=4295548730
ChildTable: size='16'
Child: id='0' Table=0xb46ba530 Reference=0xb46b9f68 Handle=0xb46b9290
NamespaceDump:
Parent Cursor: sql_id=grwydz59pu6mc parent=0xb46b9720 maxchild=1 plk=y ppn=n
MUTEX 可以被嵌入到多种其他结构中 ,以上我们看到多个 mutex
其中 DependencyMutex=0xb46bdc90(0, 1, 0, 0) 被嵌入在 LibraryHandle中
Mutex=0xb8d61858(0, 14, 0, 6) 被嵌入在 library cache hash bucket中 |
|