- 以将用户所有的表所在的表空间移动到system表空间为例
- 用SQLPLUS登录到oracle数据库系统
- spool move_table.sql
- select 'alter table '||table_name||' move tablespace system ;' from user_tables;
- spool off
- spool rebuild_index.sql
- select 'alter index '||index_name||' rebuild tablespace system;' from user_indexes;
- spool off
- @move_table.sql
- @rebuild_index.sql
Oracle 9I及以上移动表空间
最新推荐文章于 2024-06-14 09:36:57 发布