I am trying to use a simple "Drop Table" Statement in PL/SQL Developer on some tables, but they won't drop. The tables are quite large, but I've never had this problem before. After over half an hour, this error is returned: ORA-04021: timeout occurred while waiting to lock object . Things that I have tried:
Please try:
to find sid: select * from v$locked_object;
to find serial#: select * from v$session where sid= "sid_from_the_previous_query";
to kill session: alter system kill session 'sid, serial#';
Or if you are just one user just try commit or rollback.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.