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;

猜你喜欢

转载自www.cnblogs.com/xingxingdiandian/p/9167501.html
今日推荐