发布日期:2021-11-22 10:35:48点击次数:次
create pluggable database sc_new file_name_convert=('pdbseed','sc_new ');
克隆PDB
create pluggable database pdb2 from pdb1;
删除PDB
删除PDB之前需要将PDB先关闭,使用drop pluggable database命令,如下:
alter pluggable database sc_new close;
drop pluggable database sc_new including datafiles;
关闭PDB
alter pluggable database testpdb4 close immediate;
拔出PDB
拔出PDB的时候指定xml位置,xml中记录了PDB的信息,例如数据文件目录,DBID,PDB参数等等
alter pluggable database testpdb4 unplug into '/home/oracle/testpdb4.xml';
被拔出的PDB只能被删除,不能做其它操作,例如mount,打开等.
插入PDB
使用create pluggable database指定xml位置来插入PDB
create pluggable database testpdb4 using '/home/oracle/testpdb4.xml' nocopy;
V$SERVICES视图可以显示数据库中的可用服务。
还想了解g更多关于Oracle 19C数据库的问题,可以咨询西安鸥鹏运营机构哦!!
•Oracle授权运营培训机构带大家认识Oracle 19C数据库常用语句2021-11-22