Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: sql command to list all databases in the oracle server
Martijn wrote:
> DA Morgan wrote:
> > Wouldn't this show more then the "schema-owners". > I looked it up in the (oracle 10) documentation : "A schema is a > collection of database objects. A schema is owned by a database user > and has the same name as that user." > > I think the above query will show all users in the database. Probably a > lot of them are not schema-owners. > > So ... if you are looking for schema's (ofcourse identified by > username) you better could use the following query? > select distinct username from dba_objects; > > anyway ...... everybody have a wonderfull 2007 > > Best regards, > > Martijn Bos >
Then do this instead:
SELECT DISTINCT owner
FROM dba_objects
ORDER BY 1;
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Sat Dec 30 2006 - 14:33:48 CST