oracle????????????????
???????????? ???????[ 2017/3/29 10:28:15 ] ????????????? ????
??????????????????????
????????????е?????У??????????水??????????????????г???????
?????????????????
?????????????????????????????????????????????????????????
???????????????????????????????2????????????е?????????????
????????????????????????????У??????????г???????б????
???????????????λ????
?????????????????????????????????????????????????????????????
????1????dba?????????????
????select username??lockwait??status??machine??program from v$session where sid in
????(select session_id from v$locked_object)
???????????????????????????????????????????????????????????????
????Username????????????????????????
????Lockwait???????????????????????????????
????Status?? ????active?????????
????Machine?? ?????????????????
????Program?? ?????????????????????????ó???
????2????dba???????????????????????????????
????select sql_text from v$sql where hash_value in
????(select sql_hash_value from v$session where sid in
????(select session_id from v$locked_object))
???????????????????
???????????£???????????????????????????????????????й????С??????
????????????????????????????????????????????????????????
??????????Oracle????ù?????????????????????????????????????
????1??????????????????
????sqlplus "/as sysdba" (sys/change_on_install)
????SELECT s.username??l.OBJECT_ID??l.SESSION_ID??s.SERIAL#??
????l.ORACLE_USERNAME??l.OS_USER_NAME??l.PROCESS
????FROM V$LOCKED_OBJECT l??V$SESSION S WHERE l.SESSION_ID=S.SID;
????2??kill???????????????
????alter system kill session ‘sid??serial#’; ??????sid=l.session_id??
????3???????????????
????select pro.spid from v$session ses??v$process pro where ses.sid=XX and ses.paddr=pro.addr;
????????sid????????sid?滻: exit
????ps -ef|grep spid
????????spid???????????????kill?????Oracle????
????from:http://southking.javaeye.com/blog/550832
????select A.SQL_TEXT?? B.USERNAME?? C.OBJECT_ID?? C.SESSION_ID??
????B.SERIAL#?? C.ORACLE_USERNAME??C.OS_USER_NAME??C.Process??
????''''||C.Session_ID||'??'||B.SERIAL#||''''
????from v$sql A?? v$session B?? v$locked_object C
????where A.HASH_VALUE = B.SQL_HASH_VALUE and
????B.SID = C.Session_ID
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11