Common SQL commands on Oracle DB

0
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;

0 0 vote
Article Rating

I am a Cloud Solutions Engineer working with a leading cloud solutions company. I have more than 5 years’ experience in the Tech ecosystem. I began my career as a software developer. I am a tech enthusiast, an autodidact whose interests includes Data Management, Cloud Native Development, Mobile and Bots Development, Integration, Low Code Development, AI, Analytics just to say the least.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments