Create Tablespace 命令

建立表空间命令。

CREATE
BIGFILE

-- 只能使用一个物理文件的表空间,最大包含 4G 块

SMALLFILE

-- 传统表空间,最多可以有 1022 年文件组成,每个可以包含 4M 块

-- 使用当前默认表空间类型

 

<permanent_tablespace_clause>

-- 永久表空间

<temporary_tablespace_clause>

-- 临时表空间

<undo_tablespace_clause>

-- 撤销表空间

;

permanent_tablespace_clause

TABLESPACE tablespace
DATAFILE

   file_specification [,...]

 
 
MINIMUM EXTENT integer [ K | M ]
BLOCKSIZE integer [ K ]
<login_clause>
FORCE LOGGING
DEFAULT

[ <table_compress> ]

<storage_clause>

ONLINE
OFFLINE
<extent_management_clause>
<segment_management_clause>
<flashback_mode_clause>

   ...

 

temporary_tablespace_clause

TEMPORARY TABLESPACE tablespace
TEMPFILE

   file_specification [,...]

 

 

tablespace_group_clause

TABLESPACE GROUP
tablespace_group_name
''

undo_tablespace_clause

UNFO TABLESPACE tablespace
DATAFILE

   <file_specification> [,...]

 

 

tablespace_retention_clause

RETENTION
GUARANTEE
NOGUARANTEE

extent_management_clause

EXTEND MANAG
LOCAL
AUTOALLOCATE
UNIFORM

[ SIZE <size_clause> ]

 

segment_management_clause

SEGMENT SPACE MANAGEMENT
MANUAL
AUTO

flashback_mode_clause

BLASHBACK
ON
OFF

size_clause

integer
K
M
G
T
 

 

 

关键词 描述