Re: table space drop/create
Date: 12 Apr 2002 00:37:10 -0700
Message-ID: <a20d28ee.0204112337.971f1_at_posting.google.com>
Jay Collins <jcollin_at_exis.net> wrote in message news:<Pine.LNX.4.33.0204111005300.7882-100000_at_tarpon.exis.net>...
> I have user named sqqadmin who owns a tablespace called goldprod. Can
> anyone give me a example (or step by step) how to drop this table space,
> recreate it with the same sizes/files it had before and make sure the
> sqqadmin user still has accesss to it?
users do not OWN a tablespace. They only can have quota on a
tablespace
You need to do the following
- get the tablespace definitions from dba_tablespaces and
dba_data_files
- or alternatively perform a full database export with rows=n and
import the (empty) dumpfile with show=y log=<any filename> full=y.
<any filename> will contain the create tablespace statement
- drop tablespace goldprod including contents cascade constraints - create tablespace goldprod as determined above - alter user sqqadmin quota <n>|unlimited on goldprod.
That is all.
-- Regards Sybrand Bakker, Senior Oracle DBAReceived on Fri Apr 12 2002 - 09:37:10 CEST