View Current PDB Container in Oracle
To take a closer look at the current PDB container, you can follow these steps:
- Connect to an Oracle database: use SQL*Plus, SQL Developer, or similar tools to connect to your Oracle database.
- Switch to the appropriate Container: If you are not in CDB$ROOT, first ensure you are in the correct Container. You can execute the following SQL statement to switch to the CDB$ROOT container:
- Change the session to use the root container.
- Check the current PDB container: Run the following SQL query to view the name of the PDB container currently in read-write mode:
- Retrieve the names and open modes of PDBs that are in the ‘READ WRITE’ state.
This will display the name and open mode of the current PDB being used. Make sure you have enough permissions to query the v$pdbs view.