惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
Engineering at Meta
Engineering at Meta
Forbes - Security
Forbes - Security
MongoDB | Blog
MongoDB | Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
About on SuperTechFans
量子位
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
雷峰网
雷峰网
腾讯CDC
P
Proofpoint News Feed
S
Schneier on Security
S
Secure Thoughts
V
Visual Studio Blog
Help Net Security
Help Net Security
The Hacker News
The Hacker News
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Privacy International News Feed
SecWiki News
SecWiki News
S
SegmentFault 最新的问题
T
Threatpost
小众软件
小众软件
MyScale Blog
MyScale Blog
F
Fortinet All Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
T
Tailwind CSS Blog
I
Intezer
C
CERT Recently Published Vulnerability Notes
U
Unit 42
V
V2EX
Cyberwarzone
Cyberwarzone
Recorded Future
Recorded Future
O
OpenAI News
Project Zero
Project Zero
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
Know Your Adversary
Know Your Adversary
C
Cybersecurity and Infrastructure Security Agency CISA
Scott Helme
Scott Helme
V2EX - 技术
V2EX - 技术
博客园 - 叶小钗
S
Securelist
A
Arctic Wolf
The Cloudflare Blog
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
博客园 - Franky

博客园 - 孙晓东

perl多线程理解 ORA-00020: No more process state objects available故障一例 SOA架构设计经验分享—架构、职责、数据一致性 利用增量备份恢复因归档丢失造成的DG gap ORACLE之ASM概念 Oracle Dataguard的原理与基本配置 oracle之报错:ORA-00054: 资源正忙,要求指定 NOWAIT linux挂载windows上的共享文件夹 oracle操作之传输表空间 dba诊断之IO 用SecureCRT在windows和CentOS间上传下载文件 Centos6.5下设置静态IP oracle 11g dataguard创建的简单方法 linux下mysql安装、目录结构、配置 oracle11G在linux环境下的卸载操作 Ubuntu 14.04(32位)安装Oracle 11g(32位)全过程 linux系统下设置oracle开机自动启动 Redhat6.5 安装64位oracle11.2.0.1 异机恢复perform restores
dba诊断之lock
孙晓东 · 2015-07-23 · via 博客园 - 孙晓东

--产生锁的详细信息

select a.session_id, c.SERIAL#,d.spid, os_user_name, b.object_name,locked_mode,   

c.sql_id,c.PREV_SQL_ID,e.SQL_FULLTEXT,f.SQL_FULLTEXT,

g.START_TIME,c.blocking_session,

c.schemaname,c.machine,c.program,c.logon_time

from v$locked_object a

inner join dba_objects b on a.object_id = b.object_id

inner join v$session c on a.session_id = c.sid

inner join v$process d on c.paddr = d.addr

left join v$sql e on c.sql_id=e.SQL_ID

left join v$sql f on c.PREV_SQL_ID=f.sql_id 

left join v$transaction g on c.SADDR=g.ses_addr 

 --锁情况

 select * from v$lock where type = 'TX' or type = 'TM' order by sid, type;

--会话阻塞 

 select sid, blocking_session from v$session where blocking_session is not null;

  --会话阻塞等待 select in_wait,in_wait_secs,pid,sid,sess_serial#, blocker_pid,blocker_sid,blocker_sess_serial#

from v$wait_chains where blocker_is_valid= 'TRUE'

--查看会话占用IO

select * from v$sess_io

 -- kill session

 alter system kill session '3,1133' immediate;

orakill oracle_sid psid