Link to home
Start Free TrialLog in
Avatar of dodowoman
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.
Avatar of gripe
gripe

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>;
Avatar of dodowoman

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.

ASKER CERTIFIED SOLUTION
Avatar of catchmeifuwant
catchmeifuwant

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
this question was answered.