H3nd said:
I'm new in oracle...How can I tell which database am I in ?
These are two phrases that, when used together, tend to raise a flag of concern for me.
There are two very different definitions for "database" in the Database Universe:
In the Oracle World, "database" refers to all of the objects (e.g., tables, indexes, et cetera) owned by all of the Oracle user/schemas (e.g., "SYS", "SYSTEM", "DBSNMP", "OUTLN", "<your login>", "<my login>", et cetera) that make up a single Oracle installation.
In the Non-Oracle World, "database" is roughly equivalent to an Oracle user/schema, for example, for a single Oracle instance/installation, there may be 30 Oracle user/logins/schemas. That would mean if the same "logical" structure existed in a Sybase, SQL Server, DB2, MySQL, EnterpriseDB, et cetera installation, then the installation would contain 30 "databases".
So, when you say, "...what command if I wanna know how many tables in that database and what tables ?" which meaning of "database" should I infer?...1) The tables for an entire Oracle database instance, or 2) the tables for an individual schema/user in the database instance?
The replies above have tended to interpret your meaning of "database" using the Oracle definition, but I suspect/infer that you are using the non-Oracle definition of "database", correct?
Let us know.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via
www.dasages.com]