首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

批改Table所属的Tablespace

2013-07-04 
修改Table所属的Tablespacealter table table1 move tablespace test2 然后rebuild table1上的indexes.se

修改Table所属的Tablespace

alter table table1 move tablespace test2;
然后rebuild table1上的indexes.

select 'alter table '||T.owner||'.'  || table_name || ' move tablespace OWNER_TAB;'  from ALL_tables T WHERE T.owner = 'OWNER'; select 'alter index '||T.owner||'.' || T.index_name || ' rebuild tablespace OWNER_IDX;'  from ALL_INDEXES T WHERE T.owner = 'OWNER';

?

?

?

热点排行