Re: How to change table's owner and tablespace?
From: Vikram Goel <vgoel>
Date: 1995/11/02
Message-ID: <1995Nov2.134930.9498_at_schbbs.mot.com>#1/1
Date: 1995/11/02
Message-ID: <1995Nov2.134930.9498_at_schbbs.mot.com>#1/1
Eddie,
Refer to my reply to Hagen Finley ( titled 'IS THERE A SQL COMMAND TO CHANGE TABLE' doc# 'news:1995Nov2.015750.20768_at_schbbs.mot.com). The same technique will work for you, any differences are noted.
- As table owner grant all on the table to newuser.
- As newuser issue the following command: CREATE TABLE <table_name> <give table tablespace and storage parameters) as select * from olduser.<table_name>; Note: for the exact syntax check the SQL language manual .
If you want to use export/import, you can do so, however befor importing create the table in the specified tablespace, then import using fromuser/touser, and the parm 'CREATE= N'.
Hope it helps.
Vikram Goel
Sr. DBA
MOTOROLA - Byonton Beach, FL
Email: vgoel_at_emi.net