SELECT *FROM V$DATABASE;
SELECT *FROM v$THREAD;
SELECT *FROM GLOBAL_NAME;
SELECT *FROM v$INSTANCE;
sqlplus C#DBA/S3nha@orcl:1521/ALFA
sqlplus C#DBA/S3nha@localhost:1521/ALFA
sqlplus C#DBA/S3nha@10.20.30.40:1521/ALFA
================================================================
$> sqlplus / as sysdba
SQL> SHOW CON_NAME;
CON_NAME
------------------------------
CDB$ROOT
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ -------------------- ----------
1 PDB$SEED READ ONLY NO
2 ALFA READ WRITE NO
3 BETA READ WRITE NO
SELECT CON_ID, NAME, OPEN_MODE FROM V$PDBS;
CON_ID NAME OPEN_MODE
--------------------------------------------------------------------------------
1 PDB$SEED READ ONLY
2 ALFA READ WRITE
SQL> ALTER SESSION SET CONTAINER = ALFA;
SQL> ALTER SESSION SET CONTAINER = BETA;
SQL> ALTER SESSION SET CONTAINER = CDB$ROOT;
Session altered.