2012年11月22日

oracle 表空间迁移,移动表空间

摘要: 需求,将当前用户下所有的表以及数据移动到新的表空间里总共5步:1:创建新的表空间create tablespace ylpw datafile '/u01/oracle/oradata/ora10g/ylpw.dbf' size 150m autoextend on next 20m permanent online; 2:生成移动表到新的表空间的脚本select 'alter table '||table_name||' move tablespace ylpw ;' from user_tables;3:生成移动索引到新表空间的脚本 sele 阅读全文

posted @ 2012-11-22 15:47 站在云端 阅读(621) 评论(0) 推荐(0) 编辑

导航