Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to change tablespace assigned to tables ?
Roby escribió:
> =
> I need to change the tablespace assigned to tables, but dropping the ta=
ble
> I loose contraints, indexes, and triggers.
You can export it, drop it and import it:
1.- Export the table and drop it.
2.- change the table owner's default tablespace and revoke him quotas in
others tablespaces.
3.- Import the index creation commands to a text file (with the option
indexfile of impot)
4.- Import the table but not the indexes.
5.- Change the user's default tablespace to the one where the indexes
will be located and revoke quotas in the rest.
6.- Execute the file where the index creation commands were dumped to.
7.- Restore user's quotas and default tablespace.
=
> I have more the 150 tables then I want to know if there's another way t=
o do
> it.
=
> Regards,
> =
> Roby
> =
> Roberto.Scanavino_at_rsisistemi.it
Hope this help.
-- =
Julio Negueruela
DBA Servicio Informático
Universidad de La Rioja - Spain Telf: 941-299179 Fax: 941- 299180
![]() |
![]() |