Home » RDBMS Server » Server Administration » move tables out of system
move tables out of system [message #59212] Tue, 04 November 2003 19:54 Go to next message
Sam
Messages: 255
Registered: April 2000
Senior Member
how can i move tables belonging to a particular user from system tablespace to another TS ,who was by mistake assigned system as the default tablespace?
will that free up any space and any changes in HWM?
Re: move tables out of system [message #59214 is a reply to message #59212] Tue, 04 November 2003 20:56 Go to previous messageGo to next message
Daljit Singh
Messages: 290
Registered: October 2003
Location: Texas
Senior Member
Hi,

U can use ALTER TABLE MOVE command, Export /Import utility and CREATE TABLE AS command to move ur table from one TS to another.

Out of them ALTER TABLE MOVE command, Export /Import utility will reset the HWM.
Re: move tables out of system [message #59216 is a reply to message #59214] Tue, 04 November 2003 23:03 Go to previous messageGo to next message
Sam
Messages: 255
Registered: April 2000
Senior Member
i got nearly 300 tables and 400 indexes.
can anyone suggest which is the best method so that i dont have to recreate all the objects depending n these tables?
Re: move tables out of system [message #59218 is a reply to message #59212] Tue, 04 November 2003 23:44 Go to previous messageGo to next message
Daljit Singh
Messages: 290
Registered: October 2003
Location: Texas
Senior Member
Hi,

So u want to say that u have around 300 tables in ur system TS and now u want to move all of them to some another tablspace. First of all tell me why u have created this no. of tables in system tablespace. It's really not a good approach.

Well now first of all i want to know that r these tables belong to same schema or not?

If these tables r in same schema then just expor the whole schema and import it where ever u want. If not then u have to use table option in exp utility properly.
Re: move tables out of system [message #59220 is a reply to message #59212] Wed, 05 November 2003 00:11 Go to previous messageGo to next message
Sam
Messages: 255
Registered: April 2000
Senior Member
it was done ex_DBA, so i am trying to rectify that.
thanx for ur help Dalgit
Re: move tables out of system [message #59231 is a reply to message #59216] Wed, 05 November 2003 06:52 Go to previous messageGo to next message
Mike
Messages: 417
Registered: September 1998
Senior Member
alter table move / alter index rebuild is the best and fastest methode

Have a look at:
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_32a.htm#2085303
Going through this right now [message #59236 is a reply to message #59212] Wed, 05 November 2003 13:16 Go to previous message
Mark K
Messages: 18
Registered: October 2003
Junior Member
I'm in the process of a big restructuring job, move objects from one tablespace to another, consolidating, dropping, adding....

Best solution for moving tables between tablespaces: ALTER TABLE ... MOVE...

For indexes:
ALTER INDEX REBUILD ... TABLESPACE .... (and might as well as COMPUTE STATISTICS while you're doing this -- low overhead)

-- Mark K.
Previous Topic: index compress
Next Topic: Moving TEMP tablespace
Goto Forum:
  


Current Time: Fri Sep 20 08:41:09 CDT 2024