/*将表的某分区移动到另一个表空间*/
alter table table_name move partition partition_name tablespace tablespace_name;
###### ORACLE storage structure and relationships #########
/*手工分配表空间段的分区(extend)大小*/
alter table kong.test12 allocate extent(size 1m datafile ’$ORACLE_HOME/oradata/undo102.dbf’);
alter table kong.test12 deallocate unused; ---释放表中没有用到的分区
show parameter db;
alter system set db_8k_cache_size=10m; ---配置8k块的内存空间块参数
select * from dba_extents/dba_segments/data_tablespace;
select * from dba_free_space/dba_data_file/data_tablespace;
/*数据对象所占用的字节数*/
select sum(bytes) from dba_extents where onwer=’kong’ and segment_name =’table_name’;
文章来源于领测软件测试网 https://www.ltesting.net/