测试,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;
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;
相关文章推荐
- ORACLE表空间添加数据文件注意事项
- 读写文件速度测试的注意事项
- socket tcp 发送大数据或文件注意事项
- <php>添加数据注意事项
- iOS审核被拒,回复中添加附加文件注意事项
- RAC环境下误操作将数据文件添加到本地存储
- 以后添加基础数据的时候,要注意的事项
- 【读书笔记】iOS-本地文件和数据安全注意事项
- 使用Spring的Property文件存储测试数据 - 添加测试数据
- mysql 数据库表记录与外部文件的导入导出及其中注意事项
- js文件中数据的定义注意事项
- Scripts:报告物理数据库增长情况(注意脚本是看你数据库添加数据文件的时间哦)dba_db_growth.sql
- mac平台下用Xcode开发cocos2d-x3.6版本项目添加资源文件的注意事项
- 【SAS BASE】通过DATA步导入数据注意事项(适用于text、ASCII、sequential、flat文件)
- 开发的时候真机测试添加设备注意事项
- 在ThinkPHP的common.php文件里添加公共函数的注意事项
- 测试在阿里云服务器上是否可以在指定文件后添加数据生成新文件
- Discuz! 中导出数据为 CSV 格式文件需要注意的事项
- rac 中添加添加database和 instance 的注意事项
- buildroot 文件系统添加telnet, ssh, 以及制作注意事项