简体   繁体   中英

Endless Oracle update statement

With SQL Developer on a 11g database, I'm trying to update a record, like this :

update table_test
set field_test = 0
where table_test_id = 64664;

The problem is that query is taking very very long. 8 minutes have elapsed without success.

Has anyone an idea about what could be wrong ?

Probably the record you are trying to update is locked by another session - quite possibly another session of yours? This session will be blocked, and will wait until the other session commits or rolls back its transaction.

  • Is TABLE_TEST_ID the primary key of the table?
  • Are there triggers on the table?
  • Is it possible that some other session has locked this particular row and you're simply waiting on that lock? Do you see anything in the DBA_WAITERS and DBA_BLOCKERS tables?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM