| |

VerySource

 Forgot password?
 Register
Search
View: 1183|Reply: 3

Oracle, how to unlock a table

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-31 22:00:02
| Show all posts |Read mode
Oracle, how to unlock a table
Reply

Use magic Report

0

Threads

71

Posts

50.00

Credits

Newbie

Rank: 1

Credits
50.00

 China

Post time: 2020-3-11 21:15:01
| Show all posts
select b.sql_text text, a.sid sid, a.serial # sria #, a.username username, c.type type, a.machine machine
from v $ session a, v $ sqltext b, v $ access c
where c.object = upper ('&1')
and c.type in ('TABLE', 'PACKAGE', 'PROCEDURE', 'FUNCTION', 'PACKAGE BODY')
and a.sid = c.sid
and b.address = a.sql_address
and b.hash_value = a.sql_hash_value
order by a.sid, a.serial #, b.piece;

Enter the table name and see what session is in the lock table, kill
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-12 20:45:01
| Show all posts
Thank you
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-24 11:30:01
| Show all posts
Agree on the first floor.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list