1、启动pdb到受限制模式(在pdb里面操作)
alter session set container=pdb;
alter pluggable database pdb close immediate;
alter pluggable database pdb open restricted;
--或者
shutdown immediate
startup open restrict
2、进入pdb里面对pdb进行初始化
alter session set container=pdb;
select * from global_name;
alter pluggable database pdb rename global_name to pdb1;
3、正常关闭和启动pdb
alter pluggable database close immediate;
alter pluggable database open;
--或者
shutdown immediate
startup open;
注意事项:
1、必须进入目标PDB中才可以对其进行重命名,否则报错“ORA-65046: operation not allowed from outside a pluggable database”。