Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle handles the basic operation of locking table

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Query lock table

Select object_name,machine,s.sid,s.serial# from v$locked_object lmt dbathing objects o, v$session swhere l.object_id = o.object_id and l.session_id=s.sid

Kill table (in-program kill)

Alter system kill session '543 and 9206'

If you can't kill, you can check this to get the spid (give the acquired spid to the authorized network administrator, and he will be killed by you. This belongs to out-of-program killing. After killing this PL/SQL, you will log in again.

Select a.spidrec b.sidrecoveryb.serialauthorauthorb.username from v$process arewlegsession b where a.addr=b.paddr and b.statuswriting KILLED`

Query the spid of sid to verify whether the above query is correct

Select b.spidrecovera.osuserjour b.program from v$session a where a.paddr=b.addr and a.sid=543 vested process b

These are all the relevant knowledge points of this introduction. Thank you for your study and support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report