alter database rename file ’$ORACLE_HOME/oradata/system01.dbf’ to ’$ORACLE_HOME/oradata/system02.dbf’;
drop tablespace userdata including contents and datafiles;---drop tablespce
/*resize tablespace,autoextend datafile space*/
alter database datafile ’$ORACLE_HOME/oradata/undo102.dbf’ autoextend on next 10m maxsize 500M;
/*resize datafile*/
alter database datafile ’$ORACLE_HOME/oradata/undo102.dbf’ resize 50m;
/*给表空间扩展空间*/
alter tablespace userdata add datafile ’$ORACLE_HOME/oradata/undo102.dbf’ size 10m;
/*将表空间设置成OMF状态*/
alter system set db_create_file_dest=’$ORACLE_HOME/oradata’;
create tablespace userdata;---use OMF status to create tablespace;
drop tablespace userdata;---user OMF status to drop tablespace;
select * from dba_tablespace/v$tablespace/dba_data_files;
文章来源于领测软件测试网 https://www.ltesting.net/