)..Oracle does not use the term database the same way as MySql..What you may be looking for is a listing of all the Tables you can access..The differences in process and even naming conventions between Oracle and other databases ( especially MySql and SqlServer) are substantial and will lead to confusion when trying to move from one to the other..This is a case where 'Read First..Act After' is very important.
To Paraphrase:"The Help you get is proportional to the Help you give.."
Turkbear is absolutely correct: Oracle's terminology (especially "database") differs from other database vendors' terminology. In MySQL, the "show databases" command displays the equivalent of Oracle's command:
Code:
select username from dba_users;
For non-Oracle database environments, database "users" (aka "logins") and the discrete collection of tables to which those logins may have default access (known as "databases" in the non-Oracle world, but known as "schemas" in the Oracle world) have no mutual dependencies. In the Oracle world, an Oracle "user" by definition has a "schema" by the same name. If you drop an Oracle user, then you also drop the schema ("database" for non-Oracle vendors) by the same name. An Oracle database user and the database schema by the same name are inextricable.
So, to see the list of Oracle users/schemas (roughly equivalent to MySQL "databases"), then you use the SELECT, above.
Using select username from dba_users I get the error message ' table or view does not exist' Does that mean that there are no databases that I am privelaged to?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.