diff --git a/README.md b/README.md index d3e47e6..d1d32f1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Oracle Clone Script -This script (`oracle_clone.sh`) performs a clone of an Oracle database using the Rubrik CDM API. +This script (`oracle_clone.sh`) performs a clone of an Oracle database using the Rubrik CDM API. it integrates with the scripting already present at Die Mobiliar for orchestrating Oracle backup and recovery management. ## Usage @@ -13,7 +13,7 @@ This script (`oracle_clone.sh`) performs a clone of an Oracle database using the ## Options -- `-h ` Source DB hostname +- `-h ` Source DB hostname (if source SID is not unique) - `-t ` Recovery point timestamp (`"YYYY-MM-DD HH:MM:SS"`, uses latest if not specified) - `-n ` New database SID for the clone - `-p ` Custom pfile for the clone @@ -55,3 +55,21 @@ RSC_HOST=customername.my.rubrik.com ``` This will clone the `orcl` database from `dbhost01` to `targethost`, using the specified timestamp, new SID `CLONE01`, only include `PDB$SEED`, `PDB1`, and `PDB2`, and use 8 RMAN channels for the operation. + +```bash +./oracle_clone.sh -n CLNONE -a AUDIT_FILE_DEST,/u01/app/oracle/admin/CLNONE/adump \ + -a DB_FILE_NAME_CONVERT,"'SHED','CLNONE'" -a DB_CREATE_FILE_DEST,/u01/app/oracle/oradata/CLNONE/ \ + -a CONTROL_FILES,"'/u01/app/oracle/oradata/CLNONE/control01.ctl, /u01/app/oracle/fast_recovery_area/CLNONE/control02.ctl'" \ + -b PDBXYZ,PDBABC SHED pve-ora19c-3 +``` + +Uses the latest available Point-in-Time of the source `SHED` and clones to a new database `CLNONE` on the target host `pve-ora19c-3`. The Advanced Cloning Options are present: + +``` +AUDIT_FILE_DEST = /u01/app/oracle/admin/CLNONE/adump +DB_FILE_NAME_CONVERT = 'SHED','CLNONE' +DB_CREATE_FILE_DEST = /u01/app/oracle/oradata/CLNONE/ +CONTROL_FILES = '/u01/app/oracle/oradata/CLNONE/control01.ctl, /u01/app/oracle/fast_recovery_area/CLNONE/control02.ctl' +``` + +Additionally, only PDBs `PDBXYZ` and `PDBABC` will be cloned. \ No newline at end of file