oracle自动插入一定大小的数据:
create tablespace TABLESPACE datafile 'E:\TABLESPACE.dbf' size 10g autoextend on next 5g maxsize 500g;
create table table(n number,
id char(2000),
id1 char(2000),
id2 char(2000),
id3 char(2000),
id4 char(2000),
id5 char(2000),
id6 char(2000),
id7 char(2000),
id8 char(2000)) tablespace TABLESPACE;
declare
i number;
begin
i := 1;
while i>0 loop
insert into table values(i,TO_CHAR('1.89'+i),TO_CHAR('1.809'+i),TO_CHAR('1.8009'+i),TO_CHAR('1.80009'+i),TO_CHAR('1.819'+i),TO_CHAR('1.8129'+i),TO_CHAR('1.8019'+i),TO_CHAR('1.80129'+i),TO_CHAR('1.800129'+i));
commit;
i := i+1;
end loop;
end;
以上粘贴完成后需要输入/,然后按回车开始执行
如果是创建大的表空间可以使用create bigfile tablespace TABLESPACE datafile 'E:\TABLESPACE.dbf' size 10g autoextend on next 5g maxsize 500g;