Common SQL commands on Oracle DB

select instance_name, con_id, version from v$instance;
select name, con_id, db_unique_name from v$database;
select dbid, con_id, name from v$pdbs;
alter session set container = CDB$ROOT; //You cannot run this command on ATP/ADW shared on Exadata (ADB is a pluggable database)
show parameter db_name;

Author: Labanish

I am in the field of IT, currently working as a cloud architect. I have experience living and working abroad, spent some years in Romania, then relocated to the UK for work. In my spare time, you will find me biking or hiking, exploring new cities or watching my favorite sport, F1. The views expressed here are mine and do not associate to any organization. Laban.

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 )

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

%d bloggers like this: