dodowoman
asked on
how to move one schema objects to another tablespace?
dear experts,
i accidentally created a user with wrong tablespace. after he created some objects, I want to move everything he owned to another tablesapce. is ther a way to do this? thanks.
i accidentally created a user with wrong tablespace. after he created some objects, I want to move everything he owned to another tablesapce. is ther a way to do this? thanks.
alter table your_existing_table_name move tablespace new_tablespace_name;
Also ensure that the user's default tablespace is changed to the new tablespace. Else, all new objects created in future might end up in the wrong TS again.
alter user <username> default tablespace <new_table_space>;
alter user <username> default tablespace <new_table_space>;
ASKER
thanks.
the situation is more complicated than that.
The old_table_space is SHARED by multiple schema. I only want to move one schema to another new_table_space. what should I do? thanks.
the situation is more complicated than that.
The old_table_space is SHARED by multiple schema. I only want to move one schema to another new_table_space. what should I do? thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this question was answered.