Upgrade - Xplatform - Mig
Upgrade - Xplatform - Mig
using RMAN
Arup Nanda
Longtime Oracle Technologist
What to expect
• Cross-platform migration
• Without using GoldenGate
• Minimal downtime allowed
Data Guard
1234 4321
Left to Right Right to Left
1 2 3 4 1 2 3 4
Data Guard?
• Data Guard Support for Heterogeneous Primary and Physical
Standbys in Same Data Guard Configuration (Doc ID 413484.1)
PLATFORM_ID PLATFORM_NAME PLATFORM_IDs supported within the same
Release name Data Guard configuration when using Data
Guard Redo Apply (Physical Standby)
2 Solaris[tm] OE (64-bit) 2
Solaris Operating System (SPARC) (64- 6 - See Support Note: 1982638.1 and Note:
bit) 414043.1
3
HP-UX (64-bit)
3 4 - Oracle 10g onward, see Support Note:
HP-UX PA-RISC
395982.1 and Note:414043.1
Transportable Tablespace
Must be read
f1.dbf f1.dbf
only.
Backup
Recovery
Merged Backup
Database
Full Backup
Incr.
Recovery Scenario
Current
Modified
BCT File
• Incremental backup still goes through the files to see which
blocks changed
• Adds to time and performance
• Enter – Block Change Tracking
Immediate Recovery
Database Use the image copy
Full Backup as main datafile
Incr.
f1.dbf f1.dbf
Endian Conversion
plugin
TS1 TS1
Image Copy
Incremental backup apply
Steps
.Export Metadata
• Export all metadata from source system
expdp ... dumpfile=metadata_full.dmp full=y
content=metadata_only
exclude=user,role,role_grant,profile
exclude=table_statistics exclude=index_statistics
NAS
.Backup Incremental
• Backup incremental:
backup incremental
from scn <MIN-CKPT-NO>
tablespace 'TS1'
format '/incbk1/%U';
• The name doesn’t matter; the location does.
D-Day
Outage Starts
11 Final Incremental
• Take a final incremental backup
• Apply it to the Image Copy at the target system
• Now the Image copy is up to date.
17 DB Links
• DB links point to different hosts
• The may not be open for firewalls
• Check and adjust as needed
19 Gather Stats
• Optimizer stats are not present, yet
• Options:
1. Gather fresh stats
2. Reinstate stats from the source
NAS
RMAN Duplicate
Database
NAS SAN
Valuable Tips
• Convert endian format at the target; not the source
– Doesn’t affect the source’s CPU
• Maximize parallelism in RMAN convert operation
• Importing statistics as a part of full export takes about 10X longer
– Better off re-gathering stats
• Watch out for DB link invalidations due to new source host
– Firewalls may need to be adjusted, ports need to be open
• Don’t skip sequence adjustment