Janet,
#1.
While logged on as the User, spool the output of the following statement to
a file, then run the file. You'll probably have to run it several times to
successively drop "child" tables before dropping their "parents". Ignore
the errors and keep running it until you can re-execute the statement below
and get "no rows selected".
Select 'Drop ' ||
Object_Type || ' '
Object_Name || ';'
From User_Objects
;
#2.
I believe that running Export as System and using the Owner parameter will
export the User definition, as well as its objects, but I can't remember
that I've done it for a long while, so I may be wrong - try it and see.
Jack
--------------------------------
Jack C. Applewhite
Database Administrator/Developer
OCP Oracle8 DBA
iNetProfit, Inc.
Austin, Texas
www.iNetProfit.com
[EMAIL PROTECTED]
(512)327-9068
-----Original Message-----
Sent: Thursday, May 10, 2001 3:02 PM
To: Multiple recipients of list ORACLE-L
Hi,
As you know, drop user ... cascade drops all the
schema's object and the user, anybody knows a handy
way to drop only the objects but keep the user?
Also, when I export a schema from db1 and try to
import into db2. Since the schema does NOT exist on
db2, I got error "user not exist", so I have to create
that user first before importing. Is there any way to
import both the missing user and that user's objects?
Thank you.
Janet
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jack C. Applewhite
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).