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

Home -> Community -> Usenet -> c.d.o.misc -> Re: HELP NEWBIE: listing of users objects with sql

Re: HELP NEWBIE: listing of users objects with sql

From: Peter Schneider <peter.schneider_at_okay.net>
Date: Wed, 08 Apr 1998 19:40:50 GMT
Message-ID: <352bd21c.3709472@news.ipf.net>


On Wed, 08 Apr 1998 13:17:31 -0600, dgc_at_usa.net wrote:

>Trying to do the following:
> Create a script that reports on all objects owned by a specific user.
>The username is a parameter. The report includes object_type, object_name
>, when it was created and status.
>
>I would be really thankful if someone could help me.
>
>
>dgc_at_usa.net

Hi,

try this:

SELECT owner, object_name, object_type, status, created   FROM dba_objects
 WHERE owner LIKE upper('&owner')
 ORDER BY owner, status, object_type, object_name

You must run it from an account with dba privileges (e.g. system) in order to see what objects other users own.

HTH,
Peter

--
Peter Schneider
peter.schneider_at_okay.net Received on Wed Apr 08 1998 - 14:40:50 CDT

Original text of this message

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