oracle查看修改表空间属性状态

oracle表空间有四种状态ONLINE,READ WRITE,READ ONLY和OFFLINE,READ WRITE和READ ONLY是ONLINE的特殊情况。

查询表空间状态:

sql> select tablespace_name,status from dba_tablespaces;

修改表空间状态:

sql> alter tablespace tablespace_name offline/online/read only/read write;

===
管得最少,就是最好的政府。 —— 大卫·梭罗

Leave a Reply

Your email address will not be published. Required fields are marked *