Anda di halaman 1dari 2

Page 1 of 2

"> Frequently Asked Questions about Restoring Or Duplicating Between Different Versions And Platforms [ID 369644.1] Modified15-MAR-2012TypeFAQStatusPUBLISHED

In this Document Purpose QuestionsandAnswers 1)CanIrestoreorduplicatemypreviousversiondatabaseusingalaterversionofOracle? 2)CanIrestoreorduplicatebetweentwodifferentpatchsetlevels? 3)CanIrestoreorduplicatebetweentwodifferentversionsofthesameoperatingsystem? 4)Isitpossibletorestoreorduplicatewhenthebitlevel(32bitor64bit)ofOracledoesnotmatch? 5)IsitpossibletorestorealaterversionbackuptoanearlierversionofOracle? 6)CanIrestoreorduplicatemyRMANbackupbetweentwodifferentplatformssuchasSolaristoLinux? References

Applies to:
OracleServer-EnterpriseEdition-Version:9.0.1.0andlater[Release:9.0.1andlater] Informationinthisdocumentappliestoanyplatform. OracleServerEnterpriseEdition

Purpose

ThisnoteanswerscommonquestionsrelatingtohowRMANcanbeusedtorestorebackupsfromolderreleasesandfromsystemswithadifferentwordsize.Thesearescenariosthatareoftenrelatedto Incaseyoumaywantorneedmoreaboutyourcurrenttopic-pleasealsoaccesstheBackup & Recover CommunityofCustomersandOracleSpecialistsdirectlyvia: https://communities.oracle.com/portal/server.pt/community/database_backup_and_recovery/243

Questions and Answers


Note:Restoreinthefollowingsectionsreferstoeitherausermanaged(non-RMAN)oraRMANrestore.DuplicateisafunctionofRMANonlybutwhereduplicateismentioneditalso

1) Can I restore or duplicate my previous version database using a later version of Oracle?

RMANcanrestoreabackuptakenonanolderdatabasereleaseintoanewerrelease.Theolderbackupsmustbetakenon9.2orlaterrelease. Thismethodcanbeusedaspartofanout-of-placedatabaseupgrade,inwhichtheolderbackupsarerestoredtothenewerreleasedatabaseandthentheupgradescriptsarerunasnormal.Sincetheold duringtheupgrade,thismaybepreferabletoanin-placeupgrade,wherethedatabasemustremainoffline. Forexample,Iwanttoupgradea10.2databaseto11.2,usingbackupstakenonthe10.2database.The11.2databasewillresideonanewhost. Thestepsare: 1.Install11.2binariesandlatestpatchsetsonnewhostandpreparethe11.2Oraclehomeperthisdoc. 2.Allowdiskand/ortapebackupstobeaccessiblefromthenewhost. 3.Restorebackupstothe11.2databaseandrecoverthedatabasetoaconsistentpoint-in-timeperthisdoc.Do not open the database at this time. 4.Manuallyupgradethe10.2databaseto11.2pertheinstructionsinthisdoc,startingfromthepointimmediatelyafterthe11.2softwarehasbeeninstalled. Pleaseensurethatyoucompletepre-upgrade/post-upgradeproceduresforvariousdatabasecomponentsaslistedundertheupgradedocsforexample: Note837570.1CompleteChecklistforManualUpgradesto11gR2

Note:theaboveprocedureisforrestoringa10.2databasethathadneverbeenupgradedto11.2.Ifthedatabasehasalreadybeenupgraded,andyouneedtorestoreabackupthatwascreatedwhilethe youjustneedtorestoreandrecoverit,andmediarecoverywillreplayeverythingdonebytheupgrade. RMAN "duplicate" is not supported as it will fail attempting to automatically open the database after recovery (step #3).

2) Can I restore or duplicate between two different patchset levels?


AsyoucanrestorebetweendifferentOracleversion,youcanalsodosobetweentwodifferentpatchsetlevels.Seequestion#1fordetails. Note,youmustfollowtheinstructionsintheappropriatereadmefile.Ifresetlogsisrequired,youcanexecute: SQL>alterdatabaseopenresetlogsupgrade; OR SQL>alterdatabaseopenresetlogsdowngrade; Asneededbeforeexecutingtherequiredscriptstoeitherupgradeordowngradetoapatchlevel. Because RMAN "duplicate" attempts to automatically open the database you may not use RMAN duplicate for this case, only RMAN restore.

3) Can I restore or duplicate between two different versions of the same operating system?
Forexample,canIrestoremy9.2.0.1.0RMANbackuptakenagainstahostrunningSolaris9toadifferentmachinewhere9.2.0.1.0isinstalledbutwherethathostisrunningSolaris10? IfthesameOracleServerinstallationCDs(mediapack)canbeusedtoinstall9.2.0.1.0onSolaris9andSolaris10,thistypeofrestoreissupportable. Forexample,isitpossibletorestoreorduplicatemy9.2.64-bitdatabasetoa9.2.32-bitinstallation? Itispreferabletokeepthesamebitversionwhenperformingarestore/recovery.However,excludingtheuseofduplicatecommand,theuseofthesameoperatingsystemplatformshouldallowfora bitor64bit)ofOracle.Note,thismaybespecifictotheparticularoperatingsystemandanyproblemswiththisshouldbereportedtoOracleSupport. Ifyouwillberunningthe64-bitdatabaseagainstthe32-bitbinaryfilesorviceversa,aftertherecoveryhasendedthedatabasebitversionmustbeconvertedusingutlirp.sql. Seethisnotefordetailsonswitchingbetweenbitsizes: Note62290.1Changingbetween32-bitand64-bitWordSizes Ifyoudonotrunutlirp.sqlyouwillseeerrorsincludingbutnotlimitedto:

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=KB&id... 4/18/2012

Page 2 of 2

ORA-06553:PLS-801:INTERNALERROR[56319]

5) Is it possible to restore a later version backup to an earlier version of Oracle?

Sayforexampleyouarepreparingtoupgradeto11.2from10.2.Afterasuccessfulupgradeandrunningon11.2forafewdaysyoutakeanewbackupofthe11.2database.Youwanttoknowifrunintoa restorethe11.2backupto10.2onanotherhost(orreinstall10.2onthesamehostthenrestorethe11.2backup). SucharestoreispossibleiftheCOMPATIBLEparameterhadneverbeenincreasedaftertheupgrade.Inthisexample,ifthe11.2databasehadalwaysbeenrunwithCOMPATIBLE=10.2 databaseintoa10.2instance,thenperformthedowngradeprocedures. Ifthe11.2databasehaseverbeenopenedwithCOMPATIBLE=11.2,thenthisisnotpossible.AnothergoodwayformaintainingHAandtheoldversiondatabase(ifyouneedtofallback) whichinvolvesatransientlogicalstandbydatabase(aprimarythattemporarilybecomesalogicalstandbyjustduringtheupgradeperiod).Afterupgradingthestandbytonewversion(and switchoverandverifythatupgradeddatabaseisworkingwell.Ifitisnot,youcanswitchbacktoprimaryoldversion.

6) Can I restore or duplicate my RMAN backup between two different platforms such as Solaris to Linux?
Ingeneral,youcannotrestoreorduplicatebetweentwodifferentplatforms. Note:RefertoNote1079563.1whichlistssupportedmixedplatformsandOracleversionsforduplicate/restore/recover. Inversionspreviousto10gtheonlyoptiontomigratefromoneplatformtoanotherwasusingexport/import.With10g,usingtheRMANconvertcommands,youcancrossbetweenplatformsusingthe Tablespacesoption.Formoredetailsreviewthisnote: Note243304.1TransportableTablespacesAcrossDifferentPlatforms and: http://www.oracle.com/technetwork/database/features/availability/thehartfordprofile-xtts-133180.pdf

Inversion10.2andlaterifthesourceandtargetOSarethesameendianyoumayissuea"CONVERTDATABASE"sothatdatafilesareconvertedandreadyfortransporttothedestinationmachine.For DATABASE"see: OracleDatabaseBackupandRecoveryAdvancedUser'sGuide 10gRelease2(10.2) Chapter15,RMANCross-PlatformTransportableDatabasesandTablespaces Note:RefertoNote732053.1for10.2and11.1proceduretoskipnon-UNDOcontainingdatafilesduringtransportabledatabase.Thiscansignificantlyreducetheoverallcompletiontime.Also,note UNNECESSARYDATAFILESoptionforCONVERTDATABASE,toaccomplishthis. Therearealso3rdpartyapplicationsformigrationbetweenplatformssuchasVERITASStorageFoundationportabledatacontainers: http://eval.veritas.com/mktginfo/products/White_Papers/Storage_Server_Management/Portable_Data_Containers_for_Oracle.pdf (ContactVeritasforinformationaboutVERITASStorageFoundationportabledatacontainers)

References
NOTE:307022.1-RMANCompatibilityOracle8i8.1.7.4-Oracle10g10.1.0.4 NOTE:560417.1-RecoveryThroughUpgradereturnsORA-1092onOpen NOTE:73431.1-RMANCompatibilityMatrix Related

Products OracleDatabaseProducts>OracleDatabase>OracleDatabase>OracleServer-EnterpriseEdition Errors TS-133180;ORA-704;ORA-39700;ORA-6553;PLS-801

Backtotop Copyright(c)2007,2010,Oracle.Allrightsreserved.LegalNoticesandTermsofUse|PrivacyStatement

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=KB&id... 4/18/2012

Anda mungkin juga menyukai