Obtain a list of available schema's

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
h.hasenack
Posts: 48
Joined: Tue 20 Jan 2009 12:35

Obtain a list of available schema's

Post by h.hasenack » Tue 22 Jun 2010 12:38

I have managed to present the user wit a list of aliases provided by OCI.
Now, after the user has selected a certain database I want to present the user with a list of schema names.

How can I accomplish this, or is it impossible because of e.g. oracle security rules?

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Thu 24 Jun 2010 14:52

Hello

To get list of schemas you should execute the query: select * from DBA_USERS. Without connection to Oracle you cannot get list of schemas because this list depends on user permissions.

Post Reply