现在的位置: 首页 > 综合 > 正文

oracle里tablespace offline和datafile offline的区别

2013年09月11日 ⁄ 综合 ⁄ 共 2761字 ⁄ 字号 评论关闭
网上搜了几篇关于tablespace offline datafile offline区别的文章,小总结了一下,记下来,方便以后学习。
==================================================================================
There is a big difference between:
Taking the tablespace offline and Taking the datafiles offline

ALTER TABLESPACE ... OFFLINE
Does a checkpoint on the datafiles
Takes the datafiles offline
(从EM中可以看到tablespace offline有几种选项可供选择normal, temporary,immediate, for recovery,而在datafile中则没有这些选项)

ALTER DATABASE DATAFILE ... OFFLINE
Does not perform. a checkpoint,
So that if the database is open, you may need to perform. media recovery when bringing it online.
That is the reason why:

You cannot do 'alter database datafile ... offline' if you are in noarchivelog (but tablespace offline works)

You cannot do 'alter tablespace ... offline' if database is read-only (but datafile offline works)

抱歉!评论已关闭.