meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| oracle:database:cloning_pdb_between_servers_using_nfs_share [15/04/2025 08:08] – mdl | oracle:database:cloning_pdb_between_servers_using_nfs_share [26/10/2025 10:52] (Version actuelle) – mdl | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== Cloning a PDB between servers using NFS share ====== | ||
| + | |||
| + | |||
| * Create a Copy of Source PDB | * Create a Copy of Source PDB | ||
| Ligne 56: | Ligne 59: | ||
| </ | </ | ||
| + | * Create PDB on Target Server | ||
| <code PLSQL> | <code PLSQL> | ||
| + | # Set Oracle environment | ||
| + | . oraenv <<< | ||
| + | sqlplus / as sysdba | ||
| + | |||
| + | create pluggable database PDB2 using '/ | ||
| + | exit | ||
| </ | </ | ||
| + | * Restore PDB datafiles on Target Server | ||
| <code PLSQL> | <code PLSQL> | ||
| + | rman target / | ||
| + | run { | ||
| + | allocate channel c1 type disk; | ||
| + | allocate channel c2 type disk; | ||
| + | allocate channel c3 type disk; | ||
| + | allocate channel c4 type disk; | ||
| + | backup as copy pluggable database PDB2 format ' | ||
| + | } | ||
| + | |||
| + | switch pluggable database PDB2 to copy; | ||
| + | exit | ||
| </ | </ | ||
| + | * Clean Up Source CDB | ||
| <code PLSQL> | <code PLSQL> | ||
| + | # Drop the PDB copy | ||
| + | drop pluggable database PDB2_COPY including datafiles; | ||
| + | # Verify PDBs | ||
| + | show pdbs | ||
| + | exit | ||
| </ | </ | ||
| + | * Clean Up data files on the NFS | ||
| + | <code BASH> | ||
| + | # Remove the datafiles on the NFS | ||
| + | cd /NFS/ORACLE | ||
| - | <code PLSQL> | + | rm -rf / |
| </ | </ | ||