How to Connect to CDB as SYSDBA?

sqlplus sys/oracle@orclcdb as sysdba;
Alternative:
sqlplus system/oracle -> this will login to pdb
alter session set container=cdb$root ->this will change it to cdb

How to Connect to PDB

sqlplus system/oracle -> this will login to pdb

How to Check If You Are in PDB or CDB

show con_name ->if this shows cdb$root then you are at cdb otherwise you are at pdb

Clear Command Line Screen

Just type “clear” to clear your command line screen. When you take screenshots, this will look useful because you can delete the SQL commands that give you an error before taking the perfect correct and simple screenshot that your instructor always wanted.