When you issue "ALTER TABLESPACE xxx READ ONLY",what will oracle do?

empo007發表於2007-02-11

- acquire AT lock exclusive
- set datafile not modifyable
- Wait on any active TX to commit
(If a TX touches the tablespace at this time it gets ORA-372)
- Finish off updating TS to read only
- Release AT lock

AT lock是tablespace的enqueue,目的是序列化對錶空間的併發操作

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/85922/viewspace-899155/,如需轉載,請註明出處,否則將追究法律責任。

相關文章