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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: sql help

Re: sql help

From: Jon Walthour <jonw_at_fuse.net>
Date: Sat, 21 Jul 2001 09:47:31 -0700
Message-ID: <F001.00350BDF.20010721091527@fatcity.com>

Srinivas:

Try this:

break on "TYPE"

SELECT 'TABLE' AS "TYPE"
       , table_name AS object_name
    FROM sys.dba_tables
   WHERE owner = 'SCOTT'
UNION
SELECT 'INDEX'
       , index_name
    FROM sys.dba_indexes
   WHERE owner = 'SCOTT'
UNION
SELECT 'CLUSTER'
       , cluster_name
    FROM sys.dba_clusters
   WHERE owner = 'SCOTT'
ORDER BY 1
       , 2;

Jon Walthour
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Saturday, July 21, 2001 11:45 AM

> hi dba's
>
> how to find out a users all objects+the tablespaces
> in which they reside.
>
> i tried using the flwng way:
>
>
> select tablespacename,table_name from dba_tables
> where obj in (select obj_nm from dba_objects where
> obj_type ='table' and owner='xyz')
> union
>
> select for indexes
>
> union
>
> select for clusters
> ;
>
> can anybody tell me any alternative statement for the
> above.
>
> thnx in adv.
>
> srinivas
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: kommareddy sreenivasa
> INET: kommacnu_at_yahoo.com
>
> 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: ListGuru_at_fatcity.com (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).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jon Walthour
  INET: jonw_at_fuse.net

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: ListGuru_at_fatcity.com (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).
Received on Sat Jul 21 2001 - 11:47:31 CDT

Original text of this message

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