Check name of Oracle Database

Find name of Oracle Database

Check database name from v$database view

SQL> select name from V$database;

NAME
---------
XE

Check parameter db_name from SQLPLUS

SQL> show parameter db_name

NAME       TYPE       VALUE
---------- ---------- -----------
db_name    string     XE

Check if you are using Container database , which database you are connected currently

SQL> show con_name

CON_NAME
------------------------------
PDB1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.