日期:2014-05-16 浏览次数:20613 次
select 'alter table '||table_name||' move tablespace wzrq ;' from user_all_tables where tablespace_name='GZNS' UNION ALL select 'alter table '||table_name||' move tablespace wzrq ;' from dba_lobs where tablespace_name='GZNS' union all --分区表 select 'ALTER TABLE '|| table_name ||' MOVE PARTITION '||partition_name||' TABLESPACE WZRQ NOLOGGING; ' from dba_tab_partitions where 1=1 and tablespace_name='GZNS' order by table_name ,partition_position --分区索引 select 'alter index '||index_name|| ' rebuild tablespace wzrq;' from user_indexes where index_type='NORMAL' and TABLESPACE_NAME='GZNS' and dropped='NO' union all select 'alter index '||index_name|| ' rebuild tablespace wzrq;' from user_indexes where index_type='NORMAL' and table_owner='WZRQ' and dropped='NO'
alter table KNOWLEDGEITEM move lob(KILOCALTEXT) store as (tablespace WZRQ); alter table MAIL_JOB move lob(MAIL_CONTENT) store as (tablespace WZRQ); alter table FAX_JOB move lob(FAX_CONTENT) store as (tablespace WZRQ);