Beruflich Dokumente
Kultur Dokumente
Multitenet
Sai Kommaraju
Senior Advanced Support Engineer
Oracle SSE
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal 21
Multitenant Enhancements in 18c
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal 22
Refreshable PDB SnapClone
SnapClone
Dev / Test
Master Dev/Test version no longer in CRM CRMDev1 CRMDev2
sync
• PDB Refresh
– Incremental refresh of clone with latest data
TIME
Production
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal
Refreshable PDB Switchover
CDB1
CDB2
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal
Refreshable PDB Switchover
Server2
CDB2
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal
Point-in-Time Recovery with SnapshotCarousel
Carousel stores archive logs along with corresponding snapshot clones
Archive Logs
• ”Flashback” to Thursday 10:17am:
1. Restore Thursday midnight’s snapshot
2. Roll forward to 10:17am from archivelog
– PDB will be “transactionally consistent” as of this time
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal
Point-in-Time Cloning with Snapshot Carousel
• Snapshot Carousel enables hot clone to a specific point in time (or SCN)
– Restore most recent snapshot from carousel
– Roll forward to required point in time by performing recovery from corresponding archive log
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal 27
Usable backups of non –CDBs and relocated PDBs
If you are creating a PDB by cloning a non-CDB, and if you want the ability to recover the new
PDB using backups of the source non-CDB, then you must execute
DBMS_PDB.EXPORTRMANBACKUP before cloning. When the source database is opened in
read-write mode, execute the procedure as the last step before cloning. This procedure
captures all backup metadata in the data dictionary.
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal
RMAN duplication of a PDB to another CDB
To duplicate a PDB to an existing CDB:
• Ensure that the required prerequisites are met i.e for active database duplication and duplicating a PDB to an existing
CDB
• Review the limitations of duplicating a PDB to an existing CDB
• Choose a strategy for naming duplicate database files
• Create the directories that store the duplicate database files on the destination CDB
• Establish Oracle net connectivity between the source CDB and the destination CDB
• Start RMAN and make the following connections:
Connect AS TARGET to the root of the source CDB as a common user with the SYSDBA or SYSBACKUP privilege.
Connect AS AUXILIARY to the root of the destination CDB as a common user with the SYSDBA or SYSBACKUP
privilege.
• Ensure that the destination CDB is open in read-write mode.
• Configure RMAN channels, if necessary
The primary task of duplication is performed by RMAN channels. Configuring additional channels improves the
duplication performance.
• Duplicate the PDB by using the DUPLICATE PLUGGABLE DATABASE command.
• To use a different name for the PDB in the destination (duplicate) database,
use the PLUGGABLE DATABASE mypdb AS pdb_dup TO cdb_sales syntax.
• Delete the foreign archived redo log files that were restored to the
location specified by the remote_recovery_file_dest initialization
parameter as part of the duplication.
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal
RMAN duplication of a PDB to another CDB
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential –Internal