Reputation: 3616
I have a database but I don't know it's name, and I'm wondering how I can know it using iSQL Plus. So if anyone could please advise.
Upvotes: 1
Views: 514
Reputation: 51980
Once connected to your RDBMS, you can issue the following command to query the database name:
select ora_database_name from dual;
On my system:
SQL> select ora_database_name from dual;
ORA_DATABASE_NAME
--------------------------------------------------------------------------------
XE
Upvotes: 2