open和mount状态调整空间数据文件位置和名称

open状态调整空间数据文件位置和名称
SQL> create tablespace he datafile'/home/oracle/he.dbf' size 10m autoextend on;
SQL> alter tablespace he offline normal;
SQL> !
[oracle@ly003 ~]$ mv he.dbf /u01/app/oracle/oradata/VDEDU/he.dbf
[oracle@ly003 ~]$ sqlplus / as sysdba
SQL> alter tablespace he rename datafile '/home/oracle/he.dbf'to'/u01/app/oracle/oradata/VDEDU/he.dbf';
SQL> alter tablespace he online;
SQL> alter tablespace he rename to her;
mount状态调整空间数据文件位置和名称
SQL> create tablespace eh datafile '/home/oracle/eh.dbf'size 10m autoextend on;
SQL> shutdown immediate
SQL> !
[oracle@ly003 ~]$ mv eh.dbf /u01/app/oracle/oradata/VDEDU/eh.dbf
[oracle@ly003 ~]$ sqlplus / as sysdba
SQL> startup mount
SQL> alter database open;

猜你喜欢

转载自blog.csdn.net/xiyang87/article/details/80653752
今日推荐