Professional Documents
Culture Documents
(https://dbaclass.com) Search.....
(h ttps://dbaclass.com
Downtime CLO UD 16
(h ttps://dbaclass.com
/article-category
/clou d/)
5521 views 3 min , 24 sec read 3
53
DATABASE
(h ttps://dbaclass.com
In oracle 12c, transportable tablespace feature has been enhanced a
/article-category
lot. We can do cross platform migration using this feature with zero /database/)
downtime. This method uses both RMAN and datapump utility .
DATABASE SCRIPTS 40
The first step will take a full backup of the script, when the tablespaces (h ttps://dbaclass.com
are online and restore the same in target . For next few iterations /article-category
incremental will be applied till we reach cut over period(actual /database-scripts/)
downtime period). During the final cutover phase, We have keep the 9
Database-W iki
tablespaces read only and take the final incremental with metadata (h ttps://dbaclass.com
exp. This is the only time for which downtime is required during /article-category
migration. For all these activities oracle provided few configuration /database-w iki/)
1 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
18
GO LDENGATE
PREPARATION PHASE:
(h ttps://dbaclass.com
1. Download the rman-xttconvert_2.0 (https://dbaclass.com/wp-content /article-category
/uploads/2016/08/rman-xttconvert_2.0.zip) file : ( Doc ID 2005729.1 /golden gate/)
(https://support.oracle.com/epmos/faces 3
HADO O P
/DocumentDisplay?_afrLoop=538724284348245&id=2005729.1& (h ttps://dbaclass.com
_adf.ctrl-state=bnz93tplx_130)) /article-category
/h adoop/)
2. Unzip the rman xtts_convert.zip in source db server.
38
HO W TO
(h ttps://dbaclass.com
/export/home/oracle/DBA_LAB/ /article-category
/h ow -to/)
-rw-r–r– 1 oracle oinstall 52 May 22 2015
60
xttstartupnomount.sql O RACLE 12C
(h ttps://dbaclass.com
-rw-r–r– 1 oracle oinstall 11549 May 22 2015 /article-category
xttprep.tmpl /oracle-12c/)
-rw-r–r– 1 oracle oinstall 91722 May 22 2015 4
O RACLE 18C
xttdriver.pl (h ttps://dbaclass.com
-rw-r–r– 1 oracle oinstall 71 May 22 2015 /article-category
/oracle-18c/)
xttdbopen.sql
-rw-r–r– 1 oracle oinstall 1390 May 22 2015 O RACLE RAC 35
xttcnvrtbkupdest.sql (h ttps://dbaclass.com
-rw-r–r– 1 oracle oinstall 7789 May 22 2015 /article-category
/oracle-rac/)
xtt.properties
O RACLE SECURITY 12
(h ttps://dbaclass.com
3. Update the xtt.properties file with below parameters. /article-category
/oracle-secu rity/)
26
PERFO RMANCE
# cat xtt.properties TUNING
2 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
tablespaces=WEBMDATA,WEBMINDX (h ttps://dbaclass.com
/article-category
platformid=2
/performan ce-
backupformat=/export/home/oracle/DBA_LAB/SOURCEDUMP tu n in g/)
stageondest=/b2cdev2/TEST_TAR
12
SHELL SCRIPT
storageondest=/b2cst1/oradata/BSSTEST
(h ttps://dbaclass.com
/article-category
/sh ell-script/)
Where
TRO UBLESHO O TING142
tablespaces – Mention the tablespaces need to be migrated. (h ttps://dbaclass.com
/article-category
platformid ( we can get the value by using select platform_id from
/trou blesh ooting/)
v$database;)
2
W EBLO GIC
backupformat – Location on source where where full backup and
(h ttps://dbaclass.com
incrmental rman backup will be stored. /article-category
/w eblogic/)
stageondest – Location on TARGET ,where the rman and dumpfiles will
be copied
storageondest– Location on TARGET, where datafiles will be created for Upgrade database
the tablespaces. from 11g to 12c
man u ally
(h ttps://dbaclass.com
/article/u pgrade-
5. Copy all the files including the updated xtt.properties file to target database-from-11g-
server. to-12c-man u ally/)
42000 12
cd /export/home/oracle/DBA_LAB/
3 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
1. Take fullrman backup of the source database.(use below script) /article/h ow -to-run -
sql-tu n in g-advisor-
$ORACLE_HOME/perl/bin/perl xttdriver.pl –backup for-a-sql_id/)
29269 4
in stall oracle
golden gate 12c on
lin u x 7
(h ttps://dbaclass.com
/article/in stall-oracle-
golden gate-12c-on -
lin u x-7/)
25247 0
O RA-04036: PGA
memory u sed by th e
in stan ce exceeds
PGA_AGGREGATE_LIMIT
(h ttps://dbaclass.com
/article/ora-04036-
pga-memory-u sed-
by-th e-in stan ce-
exceeds-
pga_aggregate_limit/)
20732 0
O RA-39142:
in compatible version
n u mber 4.1 in du mp
file
(h ttps://dbaclass.com
/article/ora-39142-
in compatible-
version -n u mber-4-1-
in -du mp-file/)
4 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
17614 2
$ORACLE_HOME/perl/bin/perl xttdriver.pl --backup
Prerequ isite ch eck
-------------------------------------------------------------------- “Ch eckActiveFilesAn dExecu tables”
Parsing properties
--------------------------------------------------------------------
failed
(h ttps://dbaclass.com
-------------------------------------------------------------------- /article/prerequisite-
Done parsing properties
--------------------------------------------------------------------
ch eck-
ch eckactivefilesan dexecu tables-
-------------------------------------------------------------------- failed/)
Checking properties
-------------------------------------------------------------------- 17416 3
--------------------------------------------------------------------
Done checking properties How to en able and
-------------------------------------------------------------------- disable flash back in
oracle database
--------------------------------------------------------------------
Starting prepare phase (h ttps://dbaclass.com
-------------------------------------------------------------------- /article/h ow -to-
Prepare source for Tablespaces: en able-an d-disable-
'WEBMDATA' /b2cdev2/TEST_TAR
xttpreparesrc.sql for 'WEBMDATA' started at Wed Aug 17 18:21:04 2016 flash back-in -oracle-
xttpreparesrc.sql for ended at Wed Aug 17 18:21:05 2016 database/)
Prepare source for Tablespaces:
'WEBMINDX' /b2cdev2/TEST_TAR 16586 6
xttpreparesrc.sql for 'WEBMINDX' started at Wed Aug 17 18:26:08 2016
xttpreparesrc.sql for ended at Wed Aug 17 18:26:09 2016
How to recover
Prepare source for Tablespaces:
'' /b2cdev2/TEST_TAR stan dby database
xttpreparesrc.sql for '' started at Wed Aug 17 18:27:11 2016 w h en arch ive logs
xttpreparesrc.sql for ended at Wed Aug 17 18:27:12 2016
are missin g in
Prepare source for Tablespaces:
'' /b2cdev2/TEST_TAR primary
xttpreparesrc.sql for '' started at Wed Aug 17 18:27:14 2016 (h ttps://dbaclass.com
xttpreparesrc.sql for ended at Wed Aug 17 18:27:15 2016
/article/h ow -to-
Prepare source for Tablespaces:
'' /b2cdev2/TEST_TAR recover-stan dby-
xttpreparesrc.sql for '' started at Wed Aug 17 18:27:17 2016 database-w h en-
xttpreparesrc.sql for ended at Wed Aug 17 18:27:18 2016
arch ive-logs-are-
Prepare source for Tablespaces:
'' /b2cdev2/TEST_TAR missin g-in -primary/)
xttpreparesrc.sql for '' started at Wed Aug 17 18:27:20 2016
16411 6
xttpreparesrc.sql for ended at Wed Aug 17 18:27:20 2016
Prepare source for Tablespaces:
'' /b2cdev2/TEST_TAR
xttpreparesrc.sql for '' started at Wed Aug 17 18:27:23 2016
xttpreparesrc.sql for ended at Wed Aug 17 18:27:23 2016
Tags
Prepare source for Tablespaces:
'' /b2cdev2/TEST_TAR
xttpreparesrc.sql for '' started at Wed Aug 17 18:27:26 2016 12c
(Https://dbaclass.com
/article-tag/12c/)
Arch ive
(Https://dbaclass.com
5 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
/article-tag/arch ive/)
2. Move the created rman backup set to target location Arch ivelog
to stageondest=/b2cdev2/TEST_TAR (Https://dbaclass.com
/article-
scp *bkp oracle@target-host:/b2cdev2/TEST_TAR/ tag/arch ivelog/)
Database
$ORACLE_HOME/perl/bin/perl xttdriver.pl --restore (Https://dbaclass.com
/article-
-------------------------------------------------------------------- tag/database/)
Parsing properties
--------------------------------------------------------------------
Datagu ard
--------------------------------------------------------------------
(Https://dbaclass.com
Done parsing properties
-------------------------------------------------------------------- /article-
tag/datagu ard/)
--------------------------------------------------------------------
Checking properties
-------------------------------------------------------------------- Datapatch
(Https://dbaclass.com
--------------------------------------------------------------------
Done checking properties
/article-
-------------------------------------------------------------------- tag/datapatch /)
--------------------------------------------------------------------
Start restore/recover Datapu mp
-------------------------------------------------------------------- (Https://dbaclass.com
/article-
--------------------------------------------------------------------
End of restore/recover phase tag/datapu mp/)
--------------------------------------------------------------------
DISKGRO UP
(Https://dbaclass.com
6 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
/article-
tag/diskgrou p/)
Now we did a complete restore of the full backup. Now next phase is
ROLLING FORWARD . EMCTL
(Https://dbaclass.com
ROLLING FORWARD PHASE: /article-tag/emctl/)
Golden gate
(Https://dbaclass.com
/article-
tag/golden gate/)
Impdp
(Https://dbaclass.com
/article-tag/impdp/)
In stallation
(Https://dbaclass.com
/article-
tag/in stallation/)
LISTENER
(Https://dbaclass.com
/article-tag/listener/)
Mu ltiten an t
(Https://dbaclass.com
/article-
tag/mu ltiten an t/)
O EM
(Https://dbaclass.com
/article-tag/oem/)
O GG-
(Https://dbaclass.com
7 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
/article-tag/ogg/)
--------------------------------------------------------------------
O racle 12.2.
Checking properties
-------------------------------------------------------------------- (Https://dbaclass.com
/article-tag/oracle-
--------------------------------------------------------------------
12-2/)
Done checking properties
--------------------------------------------------------------------
O racle 12c
--------------------------------------------------------------------
Backup incremental (Https://dbaclass.com
-------------------------------------------------------------------- /article-
Prepare newscn for Tablespaces: 'WEBMDATA' tag/oracle-12c/)
Prepare newscn for Tablespaces: 'WEBMINDX'
Prepare newscn for Tablespaces: ''
Prepare newscn for Tablespaces: '' Partition
Prepare newscn for Tablespaces: ''
(Https://dbaclass.com
Prepare newscn for Tablespaces: ''
Prepare newscn for Tablespaces: '' /article-
Prepare newscn for Tablespaces: '' tag/partition /)
rman target / cmdfile /export/home/oracle/DBA_LAB/rmanincr.cmd
8 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
Secu rity
(Https://dbaclass.com
2. Copy the below files from source to target: /article-tag/security/)
Tablespace
(Https://dbaclass.com
/article-
9 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
tag/tablespace/)
Temp
(Https://dbaclass.com
/article-tag/temp/)
Un do
(Https://dbaclass.com
/article-tag/u n do/)
Upgrade
(Https://dbaclass.com
/article-
tag/u pgrade/)
10 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
Once we reach the final cut over time ( where we will get downtime)
then we will take the final incremental.
11 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
--------------------------------------------------------------------
Parsing properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Done parsing properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Checking properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Done checking properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Backup incremental
--------------------------------------------------------------------
Prepare newscn for Tablespaces: 'WEBMDATA'
Prepare newscn for Tablespaces: 'WEBMINDX'
Prepare newscn for Tablespaces: ''
Prepare newscn for Tablespaces: ''
Prepare newscn for Tablespaces: ''
Prepare newscn for Tablespaces: ''
12 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
--------------------------------------------------------------------
Done backing up incrementals
--------------------------------------------------------------------
13 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
--------------------------------------------------------------------
Done parsing properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Checking properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Done checking properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Start restore/recover
--------------------------------------------------------------------
--------------------------------------------------------------------
End of restore/recover phase
--------------------------------------------------------------------
--------------------------------------------------------------------
Start creating dumpfile
--------------------------------------------------------------------
--------------------------------------------------------------------
End of creating dumpfile
--------------------------------------------------------------------
--------------------------------------------------------------------
Generating plugin
--------------------------------------------------------------------
--------------------------------------------------------------------
Done generating plugin file /b2cdev2/TEST_TAR/xttplugin.txt
--------------------------------------------------------------------
14 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
cat “imp_ts.par”
dumpfile=impdp14442_745.dmp
logfile=imp_log.log
directory=dpump_tts
transport_datafiles=’/b2cst1/oradata/BSSTEST
/webmdata01.dbf’,’/b2cst1/oradata/BSSTEST
/webmindx01.dbf’,’/b2cst1/oradata/BSSTEST
/webmdata02.dbf’
impdp parfile=”imp_ts.par”
15 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
#impdp parfile="imp_ts.par"
Username: / as sysdba
Source:
16 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
OBJECT_TYPE COUNT(*)
----------------------- ----------
on target:
OBJECT_TYPE COUNT(*)
----------------------- ----------
INDEX 139
TABLE 67
TRIGGER 9
LOB 33
17 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
Username: / as sysdba
Now compile all the objects in target using utlrp.sql and check the
object count:
OBJECT_TYPE COUNT(*)
----------------------- ----------
INDEX 139
PROCEDURE 18
TABLE 67
TRIGGER 9
TYPE 3
FUNCTION 2
VIEW 1
LOB 33
SEQUENCE 8
We can see all objects were migrated successfully. With this the
migration activity has been completed . And only downtime window
18 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
ORACLE 12C (HTTPS://DBACLASS.COM/ARTICLE-CATEGORY
/ORACLE-12C/)
About Admin
View all posts by Admin → (https://dbaclass.com/author
/admin/)
Related Articles
19 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
PLATFORM-MIGRATION-USING-TRANSPORTABLE-TABLESPACE-12C-WITH-
ZERO-DOWNTIME/#COMMENT-3976)
Misleadin g title. Th is process h as dow n time, bu t th e title
says Zero Dow n time.
REPLY (HTTPS://DBACLASS.COM/ARTICLE/CROSS-PLATFORM-MIGRATION-
USING-TRANSPORTABLE-TABLESPACE-12C-WITH-ZERO-DOWNTIME
/?REPLYTOCOM=3976#RESPOND)
Admin (https://dbaclass.com/members/admin/)
OCTOBER 30, 2017 AT 7:57 PM (HTTPS://DBACLASS.COM/ARTICLE/CROSS-
PLATFORM-MIGRATION-USING-TRANSPORTABLE-TABLESPACE-12C-WITH-
ZERO-DOWNTIME/#COMMENT-4055)
Hi Dave,
REPLY (HTTPS://DBACLASS.COM/ARTICLE/CROSS-PLATFORM-
MIGRATION-USING-TRANSPORTABLE-TABLESPACE-12C-WITH-ZERO-
DOWNTIME/?REPLYTOCOM=4055#RESPOND)
20 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
Pramod
AUGUST 15, 2018 AT 5:11 PM (HTTPS://DBACLASS.COM/ARTICLE/CROSS-
PLATFORM-MIGRATION-USING-TRANSPORTABLE-TABLESPACE-12C-WITH-
ZERO-DOWNTIME/#COMMENT-14212)
Can th is be applied on migration w ith differen t en dian for-
mat in Mu ltiten an t Arch itectu re? W e h ave Sin gle Ten an t
database in Con tain er an d w e w an ted to migrate to Lin u x
w ith on ly PDB migration . Can you let me kn ow if th at is pos-
sible by u sin g th ese scripts? From O racle Su pport site w e got
to kn ow for Mu ltiTen an t can t be u sed. Bu t w e w an ted to see
if th at is Possible
REPLY (HTTPS://DBACLASS.COM/ARTICLE/CROSS-PLATFORM-MIGRATION-
USING-TRANSPORTABLE-TABLESPACE-12C-WITH-ZERO-DOWNTIME
/?REPLYTOCOM=14212#RESPOND)
Leave a Reply
You r email address w ill n ot be pu blish ed. Requ ired fields are marked *
Name *
Email *
Website
21 of 22 28-05-2019, 15:11
Cross platform migration using transportable tablespace 12c with zero d... https://dbaclass.com/article/cross-platform-migration-using-transportable...
Post Comment
22 of 22 28-05-2019, 15:11