例子:
alter tablespace temp add tempflie ‘d:\temp1.dbf’ size 100m reuse:
说明:
The way the database interprets filename
also depends on whether you specify it with theSIZE
andREUSE
clauses.
-
If you specify
filename
only, or with theREUSE
clause but without theSIZE
clause, then the file mustalready exist. -
If you specify
filename
withSIZE
but withoutREUSE
, then the file must be a new file. -
If you specify
filename
with bothSIZE
andREUSE
, then the file can be either new or existing. If the file exists, then it is reused with the new size. If it does not exist, then the database ignores theREUSE
keyword and creates a new file of the specified size.
注释:
filename
指的就是例子中的 ‘d:\temp1.dbf’ 。
参考:
http://docs.oracle.com/cd/E11882_01/server.112/e41084/clauses004.htm#CJADEBBF
解决办法:异地冷恢复时 如果发现v$datafile里的有些用户用的数据文件没有备份
alterdatabase语句中有reuse选项?那执行该语句后,数据文件到底是属于哪个表空间的?