Documente Academic
Documente Profesional
Documente Cultură
Document1401921.1
PowerViewisOff
Dashboard
Knowledge
ServiceRequests
Patches&Updates
GiveFeedback...
YouhavebeendirectedtothisdocumentbasedonanIDmatch.
(0)
Praveen(Available)
ContactUs
Help
1401921.1
Alternatively,clickheretosearchonthisphrase.
CrossPlatformDatabaseMigration(acrosssameendian)usingRMANTransportableDatabase(DocID1401921.1)
InthisDocument
Hide
ToBottom
DocumentDetails
Purpose
Type:
Status:
LastMajor
Update:
LastUpdate:
Details
References
APPLIESTO:
OracleDatabaseEnterpriseEditionVersion10.2.0.4to11.2.0.3[Release10.2to11.2]
Informationinthisdocumentappliestoanyplatform.
REFERENCE
PUBLISHED
27Nov2013
10Dec2014
RelatedProducts
PURPOSE
InformationCenters
+WecanuseRMAN"TransportableDatabase"conversionforperformingcrossplatformdatabasemigrationbetweentwo
operatingsystemplatformsbelongingtothesameendianformat.
IndexofOracleDatabase
InformationCenters
[1568043.2]
UseV$TRANSPORTABLE_PLATFORMviewtochecktheendianessofsourceandtargetdatabaseplatforms.
InformationCenter:Overview
ofDatabaseSecurityProducts
[1548952.2]
+Ifyouneedtomigratedatabaseacrossendianplatformsi.e.fromalittleendianplatformtobigendianplatformorviceversa,
wecannotuseRMAN"TransportableDatabase"conversion.Inthiscase,youwouldbeusingtransportabletablespacesalong
withRMANdatafileconversion.
InformationCenter:Overview
DatabaseServer/Client
Installationand
Upgrade/Migration
[1351022.2]
+Also,notethatforcertainplatformmigration,weneednotuseRMANconvert(eitherusing"TransportableDatabase"or
"TransportableTablespaces")atall.Fortheseplatforms,youcandirectlyperformRMANduplication(activeorbackupbased)or
RMANrestore/recoverwithoutanyconversion:
Document1079563.1RMANDUPLICATE/RESTORE/RECOVERMixedPlatformSupport
OracleDatabaseEnterprise
Edition
DocumentReferences
RMAN
DUPLICATE/RESTORE/RECOVER
MixedPlatformSupport
[1079563.1]
DETAILS
ForexplainingRMAN"TransportableDatabase"methodology,wewillmigratea11.2.0.3databaserunningonLinuxx8664bit
(littleendian)platfromtoSolarisOperatingSystemx8632bit(littleendian)platform
DataGuardSupportfor
HeterogeneousPrimaryand
PhysicalStandbysinSameData
GuardConfiguration[413484.1]
1.ExecuteDBMS_TDB.CHECK_EXTERNALfunctiontoidentifyanyexternaltables,directories,orBFILEs.RMANcannotautomate
thetransportofthesefiles,soyoumustcopythefilesmanuallyandrecreatethedatabasedirectories.
SQL>setserveroutputon;
SQL>declarexboolean;beginx:=dbms_tdb.check_external;end;
2/
Thefollowingdirectoriesexistinthedatabase:
SYS.ORACLE_OCM_CONFIG_DIR,SYS.DATA_PUMP_DIR
PL/SQLproceduresuccessfullycompleted.
Asperoutputabove,wehave2directoriesdefinedinthedatabase.Checktheoperatingsystempathforthesedirectoriesusing
belowquery.Ensurethatthesamepathisavailableonthetargetsystemforthesedirectoriestobeusableorrenamethe
directorypathsafterconversion.
SQL>selectDIRECTORY_NAME,DIRECTORY_PATHfromDBA_DIRECTORIES;
DIRECTORY_NAMEDIRECTORY_PATH
DATA_PUMP_DIR/orasoft/admin/ora11gR2/dpdump/
ORACLE_OCM_CONFIG_DIR/orasoft/rdbms/11.2.0.3/ccr/state
RecentlyViewed
CrossPlatformDatabase
Migration(acrosssame
endian)usingRMAN
TransportableDatabase
[1401921.1]
SettingListenerPasswords
WithanOracle10gorNewer
Listener[260986.1]
pre10gR1:HowtoPassword
ProtecttheListener
[92602.1]
ASMConceptsQuick
Overview[1086199.1]
ConfiguringDBFSonOracle
ExadataDatabaseMachine
[1054431.1]
ShowMore
2.StartthesourcedatabaseinREADONLYmode:
SQL>shutdownimmediate;
SQL>startupmount;
SQL>alterdatabaseopenreadonly;
3.ExecuteDBMS_TDB.CHECK_DBfunction.Thischeckensuresthatnoconditionswouldpreventthetransportofthedatabase,
suchasincorrectcompatibilitysettings,indoubtoractivetransactions,orincompatibleendianformatsbetweenthesource
platformanddestinationplatform.AnyconditionreportedbyCHECK_DBmustberesolvedbeforeproceeding
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=543011074522199&id=1401921.1&_adf.ctrlstate=913zanwrn_64
1/4
09/01/2015
Document1401921.1
SQL>setserveroutputon
SQL>
SQL>DECLAREdb_readyBOOLEAN;
2BEGIN
3db_ready:=DBMS_TDB.CHECK_DB('SolarisOperatingSystem(x86)',DBMS_TDB.SKIP_NONE);
4END;
5/
PL/SQLproceduresuccessfullycompleted.
4.TransportableDatabaseusingRMANCOVERTDATABASEcommandcanbeperformedonthesourcesystemortargetsystem.
It'sdefaultbehavioristoperformdatafileconversiononalldatafilesinthedatabase.However,onlydatafilesthatcontainundo
datarequireconversionincludingalldatafilesbelogingtoSYSTEMtablespaceandallUNDOtablespaces.
Toskipdatafileconversionfordatafilesthatdonotcontainundodata,youmustperformatargetplatformconversionasshown
inthisdocument.
Getalistofdatafilesthatrequireconversionandonesthatdon't
SQL>selectFILE_NAME"DatafilesrequiringConversion"fromDBA_DATA_FILES
2whereTABLESPACE_NAMEin(selectdistinctTABLESPACE_NAMEfromDBA_ROLLBACK_SEGS);
DatafilesrequiringConversion
/oradata/ora11gR2/system01.dbf
/oradata/ora11gR2/undotbs01.dbf
SQL>selectFILE_NAME"FilesNOTrequiringConversion"fromDBA_DATA_FILES
2whereTABLESPACE_NAMENOTin(selectdistinctTABLESPACE_NAMEfromDBA_ROLLBACK_SEGS);
FilesNOTrequiringConversion
/oradata/ora11gR2/sysaux01.dbf
/oradata/ora11gR2/users01.dbf
5.Nowweneedtomovealltheabovefiles(theoneswhichneedconversionandoneswhichdonot)tothetargetsystem.For
datafileswhichdonotrequireconversion,theycandirectlybemovedtotheirfinaldestinationonthetargetsystem.Fordatafiles
whichneedconversion,needtobemovedtoastaginglocationonthetargetsystemwherewewillrunCONVERTonthemduring
whichtheywillbeplacedintheirfinaldestination.
Tominimizetimeformigration,weneedtoevaluatehowdatafilecopying(tothetargetsystem)anddatafileconversioncanbe
mergedintoasinglestep.OnemethodwouldbetoNFSmountthesourcesystemdirectory(containingthedatafiles)onthe
targetsystem.Thus,whendatafileconversionisrunontargetsystem,thedatafileswillbeplacedintheirfinallocation
eliminatingtheextrastepoftransferringthedatafilestothetargetsystem.
Thismethodwillworkifyouareperformingmigrationforbelowcases:
a)Sourcedatabaseusesfilesystem,Targetdatabaseusesfilesystem
b)Sourcedatabaseusesfilesystem,TargetdatabaseusesASM
IfsourcedatabaseusesASM,weneedtouseBACKUPASCOPYcommandinRMAN(thisneedstoberunwhenthedatabasein
inMOUNTmodeorOPENreadonly)tomovethedatafilesfromASMtoafilesystemlocationonthesourceandthenNFSmount
thatlocationonthetargetsystem.
AlternativelyifsourcedatabaseusesSANstorage,checkwithyoursystemadministratorifitispossibletomountthesourcesan
diskgroupsdirectlyonthetargetserverinreadonlymode.
Inthisexample,oursourceLinuxx8664bitusesfilesystemwhereasourtargetSolarisx8632bitwilluseASM.WewillNFS
mountthesourcesystemdirectorywhichcontainsthedatafilesi.e.'/oradata'tothetargetSolarissystem
NFSmountingisoutsidethescopeofthisarticlebuthereishowitisdone
Onsource,putbelowlinein/etc/exports:
/oradataoraSolaris10(ro)
RestartNFS:
#/etc/init.d/nfsstop
#/etc/init.d/nfsstart
Ontarget,performtheNFSmount:
#mountovers=3Fnfs192.168.114.10:/oradata/oradata
6.Wenowneedtomovetheinitializationparameterfilefromsourcetotargetsystem.Ifsourcedatabaseisusingspfile,create
pfilefromitandmoveittothetarget:
SQL>createpfile='/oradata/ora11gR2/initSol11g.ora'fromspfile
Onthetargetsystem,movethispfileto$ORACLE_HOME/dbslocationandmakesuitablechangestoreflectmountpoints
availableonthetargetsystemandanyotherchangesyoumightwanttomake.youmightwanttospecificallychangethese
parameters:audit_file_dest,control_files,db_name,db_recovery_file_dest,diagnostic_dest
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=543011074522199&id=1401921.1&_adf.ctrlstate=913zanwrn_64
2/4
09/01/2015
Document1401921.1
STARTUPNOMOUNTtheinstanceonthetargetsystemusingthemodifiedpfile:
SQL>startupnomountpfile='/orasoft/rdbms/11.2.0.3/dbs/initSol11g.ora'
7.Now,starttheconversionprocessinRMANontargetsystemforthedatafilesthatweidentifiedinStep4i.e.oneswhich
containUNDOdata:
RMAN>CONVERTFROMPLATFORM'Linuxx8664bit'
2>PARALLELISM2
3>DATAFILE'/oradata/ora11gR2/system01.dbf'FORMAT'+DATA'
4>DATAFILE'/oradata/ora11gR2/undotbs01.dbf'FORMAT'+DATA';
Startingconversionattargetat08NOV11
usingtargetdatabasecontrolfileinsteadofrecoverycatalog
allocatedchannel:ORA_DISK_1
channelORA_DISK_1:SID=62devicetype=DISK
allocatedchannel:ORA_DISK_2
channelORA_DISK_2:SID=12devicetype=DISK
channelORA_DISK_1:startingdatafileconversion
inputfilename=/oradata/ora11gR2/system01.dbf
channelORA_DISK_2:startingdatafileconversion
inputfilename=/oradata/ora11gR2/undotbs01.dbf
converteddatafile=+DATA/sol11g/datafile/undotbs1.256.766638629
channelORA_DISK_2:datafileconversioncomplete,elapsedtime:00:02:53
converteddatafile=+DATA/sol11g/datafile/system.257.766638629
channelORA_DISK_1:datafileconversioncomplete,elapsedtime:00:04:23
Finishedconversionattargetat08NOV11
YoucanincreasePARALLELISMvalueiftherearemanyfileswhichneedtobeconvertedsothatmorechannelsareallocated.If
thetargetdatabasewillnotuseASM,specifythefilesystempathintheFORMATclausewherethedatafilewillfinallyreside.
8.Now,copyrestofthedatafiles(whichdonotcontainundoandhencedonotrequireconversion)totheASMdiskgroupusing
RMANwithoutconversion.
NotethattocopyfilesintoASMwehaveagainusedCONVERTcommand(withoutFROMPLATFORMclause).WhenCONVERT
DATAFILEisusedwithoutspecifyingasourceordestinationplatform,wedonotperformanykindofconversion.Thisis
specificallyusedtomovefilesintoASMfromfilesytem.
IfthetargetdatabasewillnotuseASM,thisstepisnotneeded.InsteaduseOScpcommandtocopythesedatafiledirectlytothe
directorywhereyouwantthemtoreside.
RMAN>CONVERTPARALLELISM2
2>DATAFILE'/oradata/ora11gR2/sysaux01.dbf'FORMAT'+DATA'
3>DATAFILE'/oradata/ora11gR2/users01.dbf'FORMAT'+DATA';
Startingconversionattargetat08NOV11
usingtargetdatabasecontrolfileinsteadofrecoverycatalog
allocatedchannel:ORA_DISK_1
channelORA_DISK_1:SID=63devicetype=DISK
allocatedchannel:ORA_DISK_2
channelORA_DISK_2:SID=13devicetype=DISK
channelORA_DISK_1:startingdatafileconversion
inputfilename=/oradata/ora11gR2/sysaux01.dbf
channelORA_DISK_2:startingdatafileconversion
inputfilename=/oradata/ora11gR2/users01.dbf
converteddatafile=+DATA/sol11g/datafile/users.259.766639567
channelORA_DISK_2:datafileconversioncomplete,elapsedtime:00:00:17
converteddatafile=+DATA/sol11g/datafile/sysaux.258.766639567
channelORA_DISK_1:datafileconversioncomplete,elapsedtime:00:00:59
Finishedconversionattargetat08NOV11
9.Now,weneedtocreatethecontrolfileforourtargetdatabase.Youcangeneratethecontrolfilecreationscriptbyrunning
belowonthesourcedatabase:
SQL>alterdatabasebackupcontrolfiletotraceresetlogs
Editthecontrolfilecreationscripttoreflect:
a)Datafilenamesforthetargetdatabasewherethedatafilesfinallyreside(afterrunningCONVERTDATAFILE)
b)RedoLognamesaspertargetsystempath
c)databasenameasneededforthetargetdatabase.
Hereisthecontrolfilecreationscriptforourexample:
SQL>CREATECONTROLFILEREUSESETDATABASE"SOL11G"RESETLOGSARCHIVELOG
2MAXLOGFILES16
3MAXLOGMEMBERS3
4MAXDATAFILES100
5MAXINSTANCES8
6MAXLOGHISTORY292
7LOGFILE
8GROUP1'+DATA/sol11g/redo01.log'SIZE50MBLOCKSIZE512,
9GROUP2'+DATA/sol11g/redo02.log'SIZE50MBLOCKSIZE512,
10GROUP3'+DATA/sol11g/redo03.log'SIZE50MBLOCKSIZE512
11DATAFILE
12'+DATA/sol11g/datafile/system.257.766638629',
13'+DATA/sol11g/datafile/sysaux.258.766639567',
14'+DATA/sol11g/datafile/undotbs1.256.766638629',
15'+DATA/sol11g/datafile/users.259.766639567'
16CHARACTERSETWE8MSWIN1252;
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=543011074522199&id=1401921.1&_adf.ctrlstate=913zanwrn_64
3/4
09/01/2015
Document1401921.1
16CHARACTERSETWE8MSWIN1252;
Controlfilecreated.
10.Now,openthedatabaseonthetargetsystem.Once,databaseopens,addtempfilestotheTEMPtablespace
SQL>ALTERDATABASEOPENRESETLOGS;
Databasealtered.
SQL>ALTERTABLESPACETEMPADDTEMPFILE'+DATA'SIZE20971520AUTOEXTENDOFF;
Tablespacealtered.
11.CompletethedatabaseconversionbyrunningUTLIRPandUTLRPasbelow:
SQL>SHUTDOWNIMMEDIATE;
SQL>STARTUPUPGRADE;
SQL>@?/rdbms/admin/utlirp
SQL>SHUTDOWNIMMEDIATE;
SQL>STARTUP;
SQL>@?/rdbms/admin/utlrp
REFERENCES
NOTE:1079563.1RMANDUPLICATE/RESTORE/RECOVERMixedPlatformSupport
NOTE:413484.1DataGuardSupportforHeterogeneousPrimaryandPhysicalStandbysinSameDataGuardConfiguration
Related
Products
OracleDatabaseProducts>OracleDatabaseSuite>OracleDatabase>OracleDatabaseEnterpriseEdition>RecoveryManager>Duplicatingexistingdatabases
Keywords
CONVERSION CONVERT CROSSPLATFORM DATABASEMIGRATION ENDIAN MIGRATION RMAN TRANSPORTABLEDATABASE
BacktoTop
Copyright(c)2014,Oracle.Allrightsreserved.
LegalNoticesandTermsofUse
PrivacyStatement
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=543011074522199&id=1401921.1&_adf.ctrlstate=913zanwrn_64
4/4