您的位置:首页 > 其它

测试,RAC添加数据文件时注意事项

2014-09-25 14:53 239 查看
今天做了一下RAC添加数据文件小测试,发现一个严重的问题,记录一下:
SQL> createtablespace test datafile 'test01.dbf' size 20M;       

 
Tablespace created.
 
SQL> altertablespace test add datafile size 20M;
 
Tablespace altered.
SQL> selectfile_name from dba_data_files where tablespace_name='TEST';

 
FILE_NAME
--------------------------------------------------------------------------------
/u01/app/oracle/product/10.2.0/db_1/dbs/test01.dbf
+DATA/yjods/datafile/test.268.858007953

之前都没有注意过,下面针对创建数据文件的命令做一下总结吧

问题总结:
RAC添加数据文件时使用以下命令是没有问题的:
alter tablespacetest add datafile size 20M;
altertablespace test add datafile '+DATA '
size 20M;
altertablespace test add datafile '+DATA/yjods/datafile/test03 '
size 20M;
 
但是不能都使用以下命令:
alter tablespace test add datafile 'test03.dbf' size20M;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: