檢視ORACLE中鎖定物件
SQL> update a set id=100;
3 rows updated
SQL> SELECT SID FROM V$MYSTAT WHERE ROWNUM=1;
SID
----------
154
SQL>
SQL> select * from v$access
2 where sid=154
3 ;
SID OWNER OBJECT TYPE
---------- ---------------------------------------------------------------- -------------------------------------------------------------------------------- ------------------------
154 SYS STANDARD PACKAGE
154 SYS X$KGLOB TABLE
154 ROME V$ACCESS CURSOR
154 SYS PENDING_SUB_SESSIONS$ CURSOR
154 SYS X$KGLLK TABLE
154 SYS PENDING_SESSIONS$ CURSOR
154 SYS DBMS_TRANSACTION PACKAGE
154 PUBLIC SYS NON-EXISTENT
154 SYS X$KGLDP TABLE
154 SYS X$KSUSE TABLE
154 SYS GV$ACCESS VIEW
154 SYS V$ACCESS VIEW
154 SYS PENDING_TRANS$ TABLE
154 SYS SYS NON-EXISTENT
154 SYS V_$ACCESS VIEW
154 PUBLIC V$ACCESS SYNONYM
154 SYS DBMS_APPLICATION_INFO PACKAGE
17 rows selected
SQL> SELECT A.OWNER,
2 A.OBJECT_NAME,
3 B.XIDUSN,
4 B.XIDSLOT,
5 B.XIDSQN,
6 B.SESSION_ID,
7 B.ORACLE_USERNAME,
8 B.OS_USER_NAME,
9 B.PROCESS,
10 B.LOCKED_MODE,
11 C.MACHINE,
12 C.STATUS,
13 C.SERVER,
14 C.SID,
15 C.SERIAL#,
16 C.PROGRAM
17 FROM ALL_OBJECTS A,
18 V$LOCKED_OBJECT B,
19 V$SESSION C
20 WHERE ( A.OBJECT_ID = B.OBJECT_ID )
21 AND (B.PROCESS = C.PROCESS )
22 ORDER BY 1,2;
OWNER OBJECT_NAME XIDUSN XIDSLOT XIDSQN SESSION_ID ORACLE_USERNAME OS_USER_NAME PROCESS LOCKED_MODE MACHINE STATUS SERVER SID SERIAL# PROGRAM
------------------------------ ------------------------------ ---------- ---------- ---------- ---------- ------------------------------ ------------------------------ ------------ ----------- ---------------------------------------------------------------- -------- --------- ---------- ---------- ----------------------------------------------------------------
ROME A 5 22 7490 154 ROME DP07Administrator 368:3936 3 WORKGROUPNAMEDP07 INACTIVE DEDICATED 138 430 plsqldev.exe
ROME A 5 22 7490 154 ROME DP07Administrator 368:3936 3 WORKGROUPNAMEDP07 INACTIVE DEDICATED 139 9 plsqldev.exe
ROME A 5 22 7490 154 ROME DP07Administrator 368:3936 3 WORKGROUPNAMEDP07 INACTIVE DEDICATED 158 320 plsqldev.exe
ROME A 5 22 7490 154 ROME DP07Administrator 368:3936 3 WORKGROUPNAMEDP07 ACTIVE DEDICATED 154 30 plsqldev.exe
ROME A 5 22 7490 154 ROME DP07Administrator 368:3936 3 WORKGROUPNAMEDP07 INACTIVE DEDICATED 140 329 plsqldev.exe
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/756652/viewspace-242393/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle檢視被鎖物件及解鎖方法Oracle物件
- 檢視處理Oracle中被鎖物件的SQLOracle物件SQL
- oracle 檢視鎖表和解鎖Oracle
- 檢視長時間鎖定物件的程式,並kill掉物件
- oracle檢視鎖表程式Oracle
- oracle檢視被鎖的表和解鎖Oracle
- 檢視Oracle鎖並且釋放鎖Oracle
- oracle 檢視死鎖語句Oracle
- 檢視oracle鎖相關資訊Oracle
- java中synchronized鎖定物件問題Javasynchronized物件
- 檢視鎖定的session資訊指令碼Session指令碼
- 檢視oracle被鎖的表是誰鎖的Oracle
- 檢視oracle死鎖程式並結束死鎖Oracle
- 檢視DB buffer 中的物件物件
- Oracle檢視物件佔用空間Oracle物件
- oracle死鎖的檢視及kill方法Oracle
- 檢視資料庫中的物件資料庫物件
- oracle檢視建立物件的DDL語句Oracle物件
- 11、Oracle中的檢視Oracle
- oracle 中實體化檢視站點指令碼設定Oracle指令碼
- mysql鎖以及鎖資訊檢視MySql
- PG物件檢視物件
- 從檢視看Oracle物件依賴機制Oracle物件
- Oracle死鎖的檢視以及解決辦法Oracle
- oracle 監控 DML DDL 鎖 的4個檢視Oracle
- Oracle中效能檢視V$SYSSTATOracle
- ORACLE中的物化檢視建立Oracle
- Oracle OCP(27):使用資料字典檢視管理物件Oracle物件
- sqlserver鎖表、解鎖、檢視銷表SQLServer
- ORACLE死鎖檢測Oracle
- oracle 中查詢被鎖的物件,並殺死死鎖程式的方法Oracle物件
- 檢視MySQL鎖定情況MySql
- Oracle檢視錶、儲存過程、觸發器、函式等物件定義語句Oracle儲存過程觸發器函式物件
- PLSQL Developer中鎖定Window List視窗辦法SQLDeveloper
- MySQL資料庫檢視:檢視定義、建立檢視、修改檢視MySql資料庫
- Oracle檢視物件空間使用情況show_spaceOracle物件
- 檢視ORACLE的使用者對錶的鎖的使用Oracle
- 檢視、修改oracle字符集,檢視oracle版本Oracle