增加参数TABLESPACES=目标表空间

解决方案 »

  1.   

    alter table xxx move tablespace xxx;
    select 'alter table '||table_name||' move tablespace xxx;' from user_Tables;
    执行去吧
      

  2.   

    看你的意思好像要使每个用户对应一个表空间,如果是这样现修改用户的default tablespace然后再移动用户所属的表,使用楼上的方法可以不过最好spool一下:
    set feedback off
    set heading off
    spool c:/move_table.sql
    select 'alter table '||table_name||' move tablespace xxx;' from user_Tables;
    spool off
    set feedback on
    set heading on
    这样会生成一个脚本,然后执行这个脚本就可以了。
      

  3.   

    每个表的Index都要重建,工作量太大了吧
      

  4.   

    pool c:\move_table.sql
    select 'alter table '||table_name||' move tablespace xxx;' from user_Tables;
    spool offsqlplus执行脚本
    SQL> @c:\move_table.sql;
      

  5.   

    sorry,少写了个s
    spool c:\move_table.sql
    select 'alter table '||table_name||' move tablespace xxx;' from user_Tables;
    spool offsqlplus执行脚本
    SQL> @c:\move_table.sql;
      

  6.   

    请问用什么方法重建每个表的Index好?