denrepo

OracleMultitenant

Open PDBs and keep them open after restart

Opens every PDB, then saves the state so they reopen automatically when the CDB restarts. The first query shows what's currently saved.

Changes data12c+Run on CDB root

Not yet verified. How scripts are tested

This script changes the database. Check the names and values before you run it.
ora-pdb-open.sql
1SELECT con_name, instance_name, state2FROM dba_pdb_saved_states;3 4ALTER PLUGGABLE DATABASE ALL OPEN;5ALTER PLUGGABLE DATABASE ALL SAVE STATE;

Save it as ora-pdb-open.sql and run it with SQL> @ora-pdb-open.

Open in denrepo

More Oracle scripts: Multitenant