Automatically start PDB when Oracle database starts (pluggable database)

Elaborate

When the Oracle database starts startup, you also need to manually start the executed PDB.

alter pluggable database pdborcl open;-open the specified PDB

solution

This method is to use a trigger to automatically trigger the start of the PDB database. No need to do it manually.

  1. First use the "sqlplus / as sysdba" command to log in to the database.
  2. Copy and execute the trigger statement below.The bottom'/' cannot be ignored and must be carried
CREATE OR REPLACE TRIGGER open_pdbs
	AFTER STARTUP ON DATABASE
	BEGIN
	EXECUTE IMMEDIATE 'ALTER PLUGGABLE DATABASE ALL OPEN';
	END open_pdbs;
/

Guess you like

Origin blog.csdn.net/jiazhiwei5201314/article/details/109046399