配置触发器使PDB随数据库启动而启动

一、启动所有PDB

create or replace trigger open_pdbs

after startup on database

begin

execute immediate ‘alter pluggable database all open’;

end open_pdbs;

/

配置触发器使PDB随数据库启动而启动_第1张图片

配置触发器使PDB随数据库启动而启动_第2张图片 

二、只启动指定PDB

create or replace trigger open_pdbs

after startup on database

begin

execute immediate ‘alter pluggable database pdb1 open’;

end open_pdbs;

/

 

你可能感兴趣的:(配置触发器使PDB随数据库启动而启动)