alter tablespace/database语句中的reuse选项

例子:

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选项?那执行该语句后,数据文件到底是属于哪个表空间的?

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值