Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005

    Unanswered: Why lock RS doesn't permit lock?

    As the oracle doc says: RS lock allows S lock if they didn't lock the same rows.

    But in oracle 10g I did the test
    session 1elect * from test where 1=0 for update (didn't lock any rows)
    session 2: Lock table test in share mode

    the result is session2 is locked

  2. #2
    Join Date
    Jan 2004
    Croatia, Europe
    Provided Answers: 4
    Why shouldn't it be? There is a lock on a table! No matter no rows are affected - the transaction has begun and it owns that table structure until COMMIT or ROLLBACK is issued.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts