Restore e Recover Pluggable Database
Il db "primary" è un container mentre il pluggable database che contiene il catalogo, su un altro server, è "rcatpdb" e il pdb che contiene il darafile 23 è "pdb1".
[oracle@rmancat admin]$ rman target sys/system@primary catalog rcatown/rcatown@rcatpdb
[oracle@rmancat admin]$ rman target sys/system@primary catalog rcatown/rcatown@rcatpdb
RMAN> validate pluggable database pdb1;
Starting validate at 11-MAR-21
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=278 device type=DISK
RMAN-06169: could not read file header for datafile 23 error reason 5
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of validate command at 03/11/2021 16:51:34
RMAN-06056: could not access datafile 23
Collegarsi al container database "primary" e chiudere il pdb.
SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
SQL> alter pluggable database pdb1 CLOSE;
Pluggable database altered.
RMAN> restore pluggable database PDB1;
RMAN> recover pluggable database PDB1;
Collegarsi al container database "primary" e aprire il pdb.
SQL> alter pluggable database pdb1 OPEN;
Pluggable database altered.
Verifica:
RMAN> list failure;
RMAN> validate pluggable database pdb1;