Re: Moving a user out of the SYSTEM tablespace
Date: 23 Jun 92 13:17:30 GMT
Message-ID: <50886_at_seismo.CSS.GOV>
In article <1992Jun23.053320.27007_at_ml.csiro.au> peter_at_ml.csiro.au (Peter Campbell) writes:
>I am trying to move a user out of the SYSTEM tablespace by exporting,
>revoking RESOURCE privilege to SYSTEM, dropping everything, changing
>the default tablespace, and importing. Unfortunately despite having no
>quota the user is still able to create things in SYSTEM so everything is
>being recreated there instead of being forced to the new tablespace.
>
>What am I doing wrong?
>
>Peter Campbell peter_at_ml.csiro.au
>CSIRO Marine Labs, Hobart, Australia
Ah, the joys of imp/exp!
To get right to the point, IMP ignores what is currently defined as the user's
default tablespace when and if the same tablespace name is encountered upon
import (Utilities User's Guide pg 2-2). In other words, if you EXPorted a
user' objects and those objects all resided in the SYSTEM tablespace, IMP will
attempt to reload those objects into the SYSTEM tablespace first - regardless
of the default tablespace definition! (This has always been a pet peve of
mine, but that's another article entirely) If a SYSTEM tablespace does not
exist in the target database, then and only then will IMP attempt to use the
default tablespace definition. Of course since every Oracle database that I
have ever had the pleasure to deal with has a SYSTEM tablespace, you can pretty
much punt the IMP/EXP route.
some key problems to consider with this method:
Personally (in version 6.X) I have difficulty understanding why Oracle
prevents you from overriding the default tablespace definition. Now that
editable IMP files are becoming a reality, the problem is minimized. Before
that, the only way we could get around that problem here is courtesy of EMACS.
The joys of Oracle...
Dale Cooper, DBA
CREATE TABLE blahdeeblah2 as select * from blahdeeblah
storage (initial ...) tablespace ...;
Center for Seismic Studies
Arlington, VA
Received on Tue Jun 23 1992 - 15:17:30 CEST