操作Tablespace 的三種方式offline 、online、read only

前提,用戶必須要有alter  tablespace或者manage tablespace的權限

 

  offline方式

1.       system tablespaceundo tablespacetemporary  tablespace不能offline

2.       alter tablespace  tablespace_name  offline有三種參數:normal(缺省)、temporaryimmediate

normal datafile檢查無誤後,再做checkpoint,然後再offline。如果tablespace沒有datafile,則直接關閉,並且有一個write 錯誤。

alter tablespace tablespace_name offline normal;  其中normal可以省略。

 

temporary:即使檢測到tablespacedatafilewrite error(內存裏面與磁盤數據不一致),直接做checkpoint,再offline 所以當把tablespace offline online時,需要media recovery(介質恢復)

 

immediate:不檢測datafile也不對其進行checkpoint,直接offline。當把tablespace offline online時,也需要media recovery(介質恢復)。

 

 

未完待續。。。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章