可以,试试它
把一个用户下所有的表移动到另一个表空间
select 'alter table '||table_name||' move tablespace xxx;' from user_tables;
你可以把这个语句下的脚本导到一个文件,一起执行!
这个是上面脚本的查询结果,你执行一下就行了!
alter table JTSJ move tablespace xxx;
alter table MIN5MODE_HISTORY move tablespace xxx;
alter table TEST move tablespace xxx;
alter table TEST_CLUSTER move tablespace xxx;
alter table TEST_WPY move tablespace xxx;
alter table UNIT move tablespace xxx;
alter table WPY123 move tablespace xxx;
alter table WPYINFO move tablespace xxx;
alter table YDPINFO move tablespace xxx;
把一个用户下所有的表移动到另一个表空间
select 'alter table '||table_name||' move tablespace xxx;' from user_tables;
你可以把这个语句下的脚本导到一个文件,一起执行!
这个是上面脚本的查询结果,你执行一下就行了!
alter table JTSJ move tablespace xxx;
alter table MIN5MODE_HISTORY move tablespace xxx;
alter table TEST move tablespace xxx;
alter table TEST_CLUSTER move tablespace xxx;
alter table TEST_WPY move tablespace xxx;
alter table UNIT move tablespace xxx;
alter table WPY123 move tablespace xxx;
alter table WPYINFO move tablespace xxx;
alter table YDPINFO move tablespace xxx;