第三步,open数据库,检查一下。
[Oracle@db-172-17-2-8 bdump]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Tue Feb 19 16:49:51 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter database open;
Database altered.
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
+VG1/sdb/system01.dbf
+VG1/sdb/undotbs01.dbf
+VG1/sdb/sysaux01.dbf
+VG2/sdb/datafile/users.284.807814141
+VG2/sdb/datafile/users.285.807814137
+VG1/sdb/ofcardquery01.dbf
6 rows selected.
SQL>
从结果中,我们可以看到users表空间的两个数据文件已经移动vg2中了。再到ASM实例下rm掉原来的users表空间所属的文件,就最终完成了这个迁移工作。
我将数据库启动到mounted状态下进行的,在open下,我想也是可以的,不妨你也测试一下!
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
