關於RAC環境下鎖查詢的測試案例1-2
set
linesize 120
set
pagesize 66
col
c0 for 999
col
c0 heading "INS"
col
c1 for a9
col
c1 heading "OS User"
col
c2 for a9
col
c2 heading "Oracle User"
col
c3 for a15
col
c3 heading "Program Name"
col
b1 for a9
col
b1 heading "Unix PID"
col
b2 for 9999 justify left
col
b2 heading "ORA SID"
col
b3 for 999999 justify left
col
b3 heading "SERIAL#"
col
sql_text for a45
set
space 1
break
on b1 nodup on c0 nodup on c3 nodup on c1 nodup on c2 nodup on b2 nodup on b3
skip 2
select
a.inst_id c0,b.sid b2,c.spid b1, b.program c3, b.username c2,b.serial# b3,
a.sql_text
from gv$sql a, gv$session b, gv$process c
where
a.address = b.sql_address
and b.paddr = c.addr
and a.hash_value = b.sql_hash_value
and a.inst_id=b.inst_id and
a.inst_id=c.inst_id
and a.inst_id like '&inst_id' and b.sid
like '&sid'
order
by c.spid,a.hash_value
/
查詢第一個節點上的業務可能查不到,因為第一個節點上應用處於空閒狀態,可以檢視到第二個節點上的業務應用
Enter
value for inst_id: 1
Enter
value for sid: 2148
old 8:
and a.inst_id like '&inst_id' and b.sid like '&sid'
new 8:
and a.inst_id like '1' and b.sid like '2148'
no
rows selected
SQL>
/
Enter
value for inst_id: 2
Enter
value for sid: 1051
old 8:
and a.inst_id like '&inst_id' and b.sid like '&sid'
new 8:
and a.inst_id like '2' and b.sid like '1051'
INS ORA SID Unix PID Program Name Oracle Us SERIAL# SQL_TEXT
----
------- --------- --------------- --------- -------
---------------------------------------------
2
1051 25066 sqlplus@SERV-TEST
SYS 31100 update system.akdas set
a1=11 where a1=6
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/48010/viewspace-1015840/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 關於RAC環境下鎖查詢的測試案例1-1
- RAC環境中的阻塞 查詢鎖
- RAC環境對並行查詢的支援並行
- 搭建rac+DataGuard的測試環境
- RAC環境網路故障測試
- Django基礎四之測試環境和ORM查詢DjangoORM
- 關於測試環境版本管理(對於衝突檔案)
- 關於 dnmp 環境下,laravel 試用 swoole 遇到的問題Laravel
- RAC環境下dataguard的搭建
- 基於RedHat的RAC環境下修改ip及vipRedhat
- oracle rac 環境檢測Oracle
- 關於aix, linux下的shell環境AILinux
- [鎖機制] 鎖相關查詢
- 查詢RAC環境中例項間資源分配情況
- 鎖表的相關資訊查詢
- oracle11gR2 RAC 環境測試修改節點VIP的測試操作記錄Oracle
- ORACLE RAC 環境下修改IPOracle
- 基於Solr的HBase多條件查詢測試Solr
- Oracle RAC 環境下的連線管理Oracle
- 案例分享:基於Docker環境下的Jenkins搭建及使用DockerJenkins
- 如何搭建良好的軟體測試環境?測試環境對軟體測試起到什麼作用?
- Oracle EBS環境下查詢資料來源(OAF篇)Oracle
- Oracle EBS環境下查詢資料來源(Form篇)OracleORM
- Xcode配置測試環境和線上環境XCode
- RAC和ASM環境下打patchASM
- RAC 環境下修改歸檔模式模式
- RAC環境下配置OGG同步
- 測試實戰分享:關於詞根字典使用者測試的案例研究
- 部署Linux下的man慢查詢中文幫助手冊環境Linux
- oracle 雜湊查詢與巢狀查詢跟表的先後關係測試Oracle巢狀
- RAC環境下的redo日誌組重建
- 介面測試裡的查詢介面要測試嗎
- 關於rac中的鎖簡單學習
- 關於Oracle 9i RAC enqueue等待的一點測試OracleENQ
- kaldi環境搭建 | yesno 測試
- android測試環境搭建Android
- Windows配置Delve的測試環境Windows
- OCM實驗-測試環境的搭建