标签:
Block:
show parameter db_block_size select block_size from dba_tablespaces where tablespace_name=‘SYSTEM‘;
Extent:
Segment: 表和索引是分开的segment
Tablespace:
CREATE TABLESPACE name DATAFILE ‘/path/to/datafile.dbf‘ SIZE 100M EXTENT MANAGEMENT local SEGMENT SPACE MANAGEMENT auto;
CREATE TEMPORARY TABLESPACE name TEMPFILE ‘/path/to/datafile.dbf‘ SIZE 100M;
CREATE UNDO TABLESPACE name DATAFILE ‘/path/to/datafile.dbf‘ SIZE 100M;
COL FILE_NAME FORMAT A50 SET LINESIZE 1000 SELECT FILE_NAME,TABLESPACE_NAME,AUTOEXTENSIBLE,BYTES FROM DBA_DATA_FILES WHERE TABLESPACE_NAME=‘tablesapcename‘ORDER BY SUBSTR(FILE_NAME,-12);
SELECT FILE_NAME, AUTOEXTENSIBLE,BYTES FROM DBA_TEMP_FILES WHERE TABLESPACE_NAME=‘tablesapcename‘ ORDER BY SUBSTR(FILE_NAME,-12);
SELECT TABLESPACE_NAME,FILE_NAME, AUTOEXTENSIBLE,BYTES FROM DBA_DATA_FILES;
SELECT TABLESPACE_NAME,FILE_NAME, AUTOEXTENSIBLE,BYTES FROM DBA_TEMP_FILES;
SELECT TABLESPACE_NAME,CONTENTS FROM DBA_TABLESPACES;
CREATE USER username IDENTIFIED BY passwd DEFAULT TABLESPACE name TEMPORARY TABLESPACE name;
标签:
原文地址:http://www.cnblogs.com/alexweng/p/4402052.html