Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Is the owner of a table the schema?

Re: Is the owner of a table the schema?

From: Brian Peasland <peasland_at_edcmail.cr.usgs.gov>
Date: Fri, 8 Sep 2000 13:18:01 GMT
Message-ID: <39B8E709.E66C8AE0@edcmail.cr.usgs.gov>

> So, if you create a user, have the user create tables, and then drop
> the user, what hapens to the tables?

If the user has created objects (tables, indexes, etc.) and you issue the following:

  DROP USER username;

Then you'll get an error. You can not drop a user and leave the objects intact. If you wish to drop the user and all of the user's objects in one command, you can issue:  

  DROP USER username CASCADE;

HTH,
Brian

-- 
========================================
Brian Peasland
Raytheons Systems at
  USGS EROS Data Center
These opinions are my own and do not
necessarily reflect the opinions of my 
company!
========================================
Received on Fri Sep 08 2000 - 08:18:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US