Bo's Oracle Station

查看: 1177|回复: 0

2014-06-23-orcl2.sql

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2014-6-25 22:41:42 | 显示全部楼层 |阅读模式
select  * from v$backup_piece_details;

create tablespace tbs05205_a datafile '+mygroup' size 10M ;

select  * from dba_data_files;


drop tablespace tbs05205_a;

create tablespace tbs05205_c datafile '+data/orcl/datafile/tbs05205_c.dbf' size 10M ;
select  * from dba_data_files;

create tablespace tbs05205_d datafile '+data'  size 10M ;

alter tablespace tbs05205_d  offline;

alter database rename file  '+DATA/orcl/datafile/tbs05205_d.dbf'      to  '+DATA/orcl/datafile/tbs05205_d.268.851028831'  ;

alter tablespace tbs05205_d  online;

select  * from dba_data_files;

alter tablespace tbs05205_c  offline;

alter tablespace tbs05205_c  online;
alter tablespace tbs05205_d  online;


alter tablespace tbs05205_d  offline;

alter tablespace tbs05205_c  online;

alter tablespace tbs05205_d  online;

alter database rename file   '+DATA/orcl/datafile/tbs05205_d.268.851028831'  to '+DATA/orcl/datafile/TBS05205_D.267.851029729';

select  * from dba_data_files;


--------------------------------
create tablespace tbs05205_e  datafile '+data(mytemplate1)'  size 10M ;

create tablespace tbs05205_f  datafile '+data(mytemplate2)'  size 10M ;



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-6 08:36 , Processed in 0.036754 second(s), 24 queries .

快速回复 返回顶部 返回列表