创建表空间时是不是只能指定一个datafile

[复制链接]
查看11 | 回复9 | 2011-11-1 16:26:29 | 显示全部楼层 |阅读模式
我是新手 问一下大家 创建表空间里能指定两个以上的数据文件吗
回复

使用道具 举报

千问 | 2011-11-1 16:26:29 | 显示全部楼层
不需要,一个就好
回复

使用道具 举报

千问 | 2011-11-1 16:26:29 | 显示全部楼层
可以指定.....
回复

使用道具 举报

千问 | 2011-11-1 16:26:29 | 显示全部楼层
这种玩意看看SQL reference比在这问还快点....
回复

使用道具 举报

千问 | 2011-11-1 16:26:29 | 显示全部楼层
可以, 查下语法。。。
一个文件一般不超过8G
回复

使用道具 举报

千问 | 2011-11-1 16:26:29 | 显示全部楼层
原帖由 wxhoracle 于 2011-5-6 16:58 发表
可以, 查下语法。。。
一个文件一般不超过8G

我们很多都是32g的
回复

使用道具 举报

千问 | 2011-11-1 16:26:29 | 显示全部楼层
可以指定的
CREATE TABLESPACE D_TEST_01 DATAFILE
'/data/oradata/D_TEST_01.dbf' SIZE 30M AUTOEXTEND OFF,
'/data/oradata/D_TEST_02.dbf' SIZE 30M AUTOEXTEND OFF
LOGGING
ONLINE
PERMANENT
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
FLASHBACK ON;
一个表空间对应对应多个数据文件,但是一个数据文件只能对应于一个表空间
表空间与数据文件----------》一对多的关系
回复

使用道具 举报

千问 | 2011-11-1 16:26:29 | 显示全部楼层
KEYI!

KEYI SHISHI BIGFILE原帖由 xifenfei 于 2011-5-6 17:06 发表

我们很多都是32g的

回复

使用道具 举报

千问 | 2011-11-1 16:26:29 | 显示全部楼层
显然可以啊
回复

使用道具 举报

千问 | 2011-11-1 16:26:29 | 显示全部楼层
可以多个的,给你一个示例
create tablespace test_space
nologging
datafile 'E:/tablespace/space/test_space01.dbf' size 30G,
'E:/tablespace/space/test_space02.dbf' size 30G,
'E:/tablespace/space/test_space03.dbf' size 30G,
'E:/tablespace/space/test_space04.dbf' size 30G,
'E:/tablespace/space/test_space05.dbf' size 30G,
'E:/tablespace/space/test_space06.dbf' size 30G,
'E:/tablespace/space/test_space07.dbf' size 30G,
'E:/tablespace/space/test_space08.dbf' size 30G,
'E:/tablespace/space/test_space09.dbf' size 30G,
'E:/tablespace/space/test_space10.dbf' size 30G,
'E:/tablespace/space/test_space11.dbf' size 30G,
'E:/tablespace/space/test_space12.dbf' size 30G,
'E:/tablespace/space/test_space13.dbf' size 30G,
'E:/tablespace/space/test_space14.dbf' size 30G,
'E:/tablespace/space/test_space15.dbf' size 30G,
'E:/tablespace/space/test_space16.dbf' size 30G,
'E:/tablespace/space/test_space17.dbf' size 30G,
'E:/tablespace/space/test_space18.dbf' size 30G,
'E:/tablespace/space/test_space19.dbf' size 30G,
'E:/tablespace/space/test_space20.dbf' size 30G,
'E:/tablespace/space/test_space21.dbf' size 30G,
'E:/tablespace/space/test_space22.dbf' size 30G,
'E:/tablespace/space/test_space23.dbf' size 30G,
'E:/tablespace/space/test_space24.dbf' size 30G,
'E:/tablespace/space/test_space25.dbf' size 30G,
'E:/tablespace/space/test_space26.dbf' size 30G,
'E:/tablespace/space/test_space27.dbf' size 30G,
'E:/tablespace/space/test_space28.dbf' size 30G,
'E:/tablespace/space/test_space29.dbf' size 30G,
'E:/tablespace/space/test_space30.dbf' size 30G,
'E:/tablespace/space/test_space31.dbf' size 30G,
'E:/tablespace/space/test_space32.dbf' size 30G,
'E:/tablespace/space/test_space33.dbf' size 30G,
'E:/tablespace/space/test_space34.dbf' size 30G,
'E:/tablespace/space/test_space35.dbf' size 30G,
'E:/tablespace/space/test_space36.dbf' size 30G,
'E:/tablespace/space/test_space37.dbf' size 30G,
'E:/tablespace/space/test_space38.dbf' size 30G,
'E:/tablespace/space/test_space39.dbf' size 30G,
'E:/tablespace/space/test_space40.dbf' size 30G;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行