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

This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply