『ORACLE』表空间创建和数据文件的添加(11g)

创建多数据文件的表空间
Create TABLESPACE TS_TAB
 DATAFILE '/oracle/app/oradata/orcl/ecq_01.dbf'  SIZE 2147483648
  AUTOEXTEND ON NEXT 52428800 MAXSIZE 32767M,
          '/oracle/app/oradata/orcl/ecq_02.dbf'  SIZE 5368709120
  AUTOEXTEND ON NEXT 8192 MAXSIZE 32767M,
          '/oracle/app/oradata/orcl/ecq_03.dbf'  SIZE 5368709120
  AUTOEXTEND ON NEXT 8192 MAXSIZE 32767M,
          '/oracle/app/oradata/orcl/ecq_04.dbf'  SIZE 5368709120
  AUTOEXTEND ON NEXT 8192 MAXSIZE 32767M,
          '/oracle/app/oradata/orcl/ecq_05.dbf'  SIZE 5368709120
  AUTOEXTEND ON NEXT 8192 MAXSIZE 32767M
  LOGGING ONLINE PERMANENT BLOCKSIZE 8192
  EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT NOCOMPRESS SEGMENT SPACE MANAGEMENT AUTO;
 
  
表空间增加数据文件
Alter TABLESPACE TS_TAB ADD
 DATAFILE '/oracle/app/oradata/orcl/ecq_06.dbf'  SIZE 5368709120
  AUTOEXTEND ON NEXT 8192 MAXSIZE 32767M;


你可能感兴趣的:(日常管理)