19819599151532804185/full Transport 12c
19819599151532804185/full Transport 12c
19819599151532804185/full Transport 12c
Mike Dietrich
Master Product Manager
Database Upgrade
Oracle Corporation
$> whoami
6 years
RDBMS Core & Mission Critical Support
5.5 years
Technology Presales for DataGuard, Upgrades
Mike Dietrich
Master Product Manager
>7 years
ST Upgrade Development Team
MikeDietrichDE
http://blogs.oracle.com/UPGRADE
50%
50%
Reference
Projects
+ x%
Workshops
Worldwide
Development
Work
Supported Versions
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
Oracle 11.2
2013
2012
Jan 2012
Jul 2010
Oracle 11.1
2011
Jan 2009
2010
Oracle 10.2
2009
2008
2007
Oracle 10.1
today
Jul 2013
Aug 2012
Aug 2015
Jan 2015
May 2017
Oracle 12.1
Jun 2018
Dec 2020
Jun 2021
Oracle 12.2
(GA: xxx 2016)
Premier Support
Sustaining Support
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
http://blogs.oracle.com/UPGRADE
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
Proper Preparation
The Road to Success
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
Migration
Very large database
Cross platform with limited
amount of downtime
Copyright 2014 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
Options
Realistic options
Data Pump
Transportable Tablespaces
Full Transportable Export/Import
Plus:
Oracle Golden Gate
Oracle Streams
RMAN Incremental Rolled Forward Backups
Copyright 2014 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
25%
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
Network Bandwidth
Net Data
Volume
Theoretical
11 MB/sec
40 GB/hour
1 Gbit Ethernet
110 MB/sec
400 GB/hour
10 Gbit Ethernet
1100 MB/sec
4000 GB/hour
Infiniband IB 4xQDR
4000 MB/sec
14400 GB/hour
Interface
Real World
<30 GB/hour
<300 GB/hour
<3000 GB/hour
<11000 GB/hour
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
10
TRANSPORT_DATAFILES=
TRANSPORT_TABLESPACES=TS1,TS2
Self Contained?
Read Only
75TB
Read Write
75TB
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
11
Pro
Con
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
12
V$TRANSPORTABLE_PLATFORM
RMAN
Linux IA (32-bit)
Linux IA (64-bit)
Linux x86 64-bit
CONVERT
FILE
COPY
DBMS_FILE_
TRANSFER
FILE
COPY
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
13
Takes approximately the same amount of time as a backup and requires staging space
Multiple channels can be used
Example: RMAN> CONVERT TABLESPACE users,example
TO PLATFORM 'Linux IA (32-bit)'
FORMAT='/stage/transport_linux/%U';
DBMS_FILE_TRANSFER converts implicitly and does not require staging but is generally
slower
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
14
VIEWS
Read Only
SCOTT
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
SCOTT
PRIVS
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
15
Possible options
Data Pump
expdp/impdp CONTENT=METADATA_ONLY
DBMS_METADATA
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
16
Transportable Tablespaces
TTS
STANDBY
PHYS
TTS
STANDBY
PHYS
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
17
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
18
Size
Solution:
RMAN Incremental Backups
Complexity
Solution:
Full Transportable Export/Import
Can be combined
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
19
TRANSPORT_DATAFILES=
TRANSPORT_TABLESPACES=TS1,TS2
Downtime!!!
SOURCE Database 11.2.0.4
VIEWS
VIEWS
Read Only
SCOTT
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Data Pump
SCOTT
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
20
VIEWS
VIEWS
Read Only
SCOTT
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Data Pump
SCOTT
HUGO
SYSTEM
SYSAUX
UNDO
CODE
PRIVS
TEMP
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
21
VIEWS
VIEWS
Read Only
SCOTT
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Data Pump
SCOTT
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
22
Let's do it
Full Transportable Export/Import
using RMAN Incremental Rolled Foward Backups
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
23
Overview - Phases
Phase 7 - Cleanup
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
24
Key scripts:
25
Faster
Requires staging space for CONVERT
xttdriver.pl -p and -c
DBMS_FILE_TRANSFER
Backup
Slower
Does not require staging space
CONVERT happens implicitly
xttdriver.pl -S and -G
Convert
Restore &
Convert
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
26
Oracle Database
Release
Default
Time Zone
Version
10.2.0.3 11.1.0.7
DST V4
11.2.0.1
11.2.0.2 - 11.2.0.4
12.1.0.1, 12.1.0.2
Most recent time zone file:
DST V11
DST V14
DST V18
DST V24
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
27
Configure:
xtt.properties
## Tablespaces to transport
## ========================
tablespaces=TS1,TS2
## Source database platform ID
## ===========================
platformid=13
## Source system file locations
## ============================
## Location where datafile copies are created
## during the "-p prepare" step.
dfcopydir=/oracle/DQ1/rman_stage
## backupformat
## -----------## Location where incremental backups are created.
backupformat=/oracle/DQ1/rman_stage
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
28
ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USING FILE '<name>' REUSE;
/home/oracle/xtt
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
29
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
30
Not necessary if your staging location is available to the destination host (NFS etc)
xtt.properties: dfcopydir = stageondest
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
31
Copy
/home/oracle/xtt
rmanconvert.cmd
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
32
i
i
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
33
Not necessary if your staging location is available to the destination host (NFS etc)
xtt.properties: backupformat = stageondest
i
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
34
Convert the inc backups and merge them into tablespace files on storageondest
[oracle@dest]$ $ORACLE_HOME/perl/bin/perl xttdriver.pl r
xttplan.txt
Copy
/home/oracle/xtt
tsbkupmap.txt
iC
iC
Staging
iC
iC
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
35
SCN
xttplan.txt
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
36
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
37
Read Only
Read Only
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
38
i
Read Only
Read Only
i
Staging
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
39
Convert final inc backups and merge them into tablespace files
[oracle@dest]$ $ORACLE_HOME/perl/bin/perl xttdriver.pl r
xttplan.txt
Copy
/home/oracle/xtt
tsbkupmap.txt
iC
iC
Read Only
Read Only
Staging
iC
iC
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
40
Read Only
Database Link
Read Only
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
41
Read Only
Database Link
Read Only
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
42
Read Only
RMAN>
Read Only
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
43
Phase 7 - Cleanup
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
44
Yes, we made it
It looks a bit complicated at first sight but once you tried it, it is very straight forward
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
45
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Minimal Downtime Migration with Full Transportable
46