BackupRecovery in BOBJ

Post on 11-Sep-2015

20 views 3 download

description

Hi all,This file is for backup and recovery for BOBJ plateform

Transcript of BackupRecovery in BOBJ

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 1/12

    MylifeasaBIconsultant

    TheblogofRaphaelBranger

    Backup&RecoveryinBO4.0

    SEPTEMBER10,2012 11COMMENTS(HTTPS://RBRANGER.WORDPRESS.COM/2012/09/10/BACKUPRECOVERYINBO40/#COMMENTS)

    Thispostisdedicatedtotheavailablemeansofbackup&recoveryinSAPBusinessObjectsBI4.0.ThereareseveralchangescomparedtothepreviousversionXI3.1includingsomeliterallymissingfunctionality.

    Therecoveryscenario:Partialrestoreofreportanduniverseobjects

    Inmyeyesthetypicalrecoveryscnearioisapartialrestore.Ithappensquitequicklythatyoueitherdeleteafolderwithawholebunchofreportsorthatyouwanttorevertachangeinareportoruniversedevelopment.EspeciallyifweconsidertheadhocreportingcapabilitiesofWebIntelligenceyouprobablydonthavealocalcopyofthecorrespondingreport.Inadditionpeoplewhichdoanymistakeleadingtoarecoveryproceduretendtonoticethattheydidsuchamistakeonlywithacertaingapintime,thismeanstheyrequesttherecoverye.g.ofagivenfoldernotimmediatelyafteritsdeletionbutperhapstwoweekslaterwhentheyrealizetheydeletedsomereportstoomuch.Inthemeanwhilethesystemmighthavebeenusedheavily,thatswhyafullrecoveryofthesystemitselfisnotreallyanoption.Whatyouneedinsuchasituationisthepossibilitytorecoveronlyselectedobjectsfromabackupsettotheoriginalsystem.InthisblogIwillconcentrateonthisscenario.IuseoriginalsystemasatermtoidentifythesystemonwhichItakethebackupandtowhichIwanttorecoversomethingback.

    TheavailablepossibilitiesinBO4.0

    TherearethreemajorapproachesintakingabackupofBO4.0andrecoverpartialcontent:

    1. CreatesomekindofBIARfile(multipleoptionsavailable,seebelow)andtrytorecoverselectedelementsbacktotheoriginalsystem.

    2. Doafullbackup,restorethefullbackuptoaseparateBOrecoverysystemandfinallyuseLCMtopromoteselectedobjects

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 2/12

    backtotheoriginalsystem.3. Useaprofessionalbackup&recoverysolutionlike360ViewfromGBandSmith(http://www.gbandsmith.com/)

    Letmeevaluatetheaboveapproachesinthenextfewsections.

    TheBIARapproach

    TheBOAdminGuidestatesinsection12.1.1.3(page466):

    ItisrecommendedthatyouusetheLifecyclemanagementconsoleforSAPBusinessObjectsBusinessIntelligenceplatformtoregularlybackupyourBusinessIntelligencecontent,suchasreports,usersandgroups,anduniverses.HavingcurrentbackupsofyourcontentmakesitpossibletorestoreyourBusinessIntelligencewithouthavingtorestoreyourentiresystemoryourserversettings.

    WhoeverwrotethissentenceatSAPdoesntseemtohaveeitheranyconcreteexperiencewithLCMornotaclearideawhatabackup&recoverytoolshouldfullfiflinpractice.RespectivelyletshavealookatjustanygivenfreewaretobackupyourWindowsfiles.Thereforetopointthisoutrightatthebeginning:KeepyourhandsoffintrustingLCMasyouroneandonlybackupsolutionforBO.LCMisatooltopromote(orintheSAPjargontransport)objectsfromoneenvironmenttoanother.LCMwasnevermadetobeabackupsolution.Letmeexplaininsomemoredetails:

    ThepreferredwaytotakeabackupusingLCMisexportingaLCMjobintoaLCMBIARfile.FinallywithFP3/SP04youcannowscheduletheexporttosuchafile.Buttherearesomecriticalshortcomingswiththis(asofSP04Patch1;anyonehavingdifferingexperiencewithahigherpatchlevelpleasecommentbelow!):

    reimportingtheLCMBIARfiletotheoriginalsystemonwhichyoucreatedthefilewillfailassoonasyoudeletetheoriginalLCMjob.Whatrealbackupsolutionmakesitselfdependingonthejobobjectcreatingthebackupset?wheneveryouimportaBIARfileyoudonthaveanoptiontoselect/unselectobjectstorestore.Thereisonlyblackorwhite:Eitheryouimportallthecontentsfromyour(LCM)BIARfileornothing.LCMBIARfilesdonotsaveyoursuccessfulinstances.Onlyrecurringinstancesarebackedup.Butbythewayyoucannotdecidewhethertorestorerecurringinstancesornot,asmentionedbeforeyouhavetorestoreeverythingbelongingtotheBIARfile.

    AnextapproachinusingBIARfilesistousethenewUpgradeManagementToolorthelegacybiarengine.jar.ThegoodnewsherearethatLCMfinallyiscapabletoimportregularBIARfileswhichwerecreatedbythesetwomeans.Thefollowingthingsshouldbeconsidered:

    IncontrasttoLCMBIARfiles,regularBIARfilescanbeimportedwithoutanydependancytoanyLCMjob.TheUpgradeManagementToolaswellasthebiarengine.jartakesabackupofboth,recurringaswellassuccessfulreport

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 3/12

    instances.UnfortunatelySAPwassostupidsorrytosayitlikethis,butIcouldntfindanyothertermtoexpressmyfeelingsaboutthissituationtoremove(orjustnotallow)thepossibilitytoimportaBIARfileofthesamesoftwareversionusingtheUpgradeManagementTool.InXI3.1thisbecamequitestandardduringarecoveryproceduretoloadtheBIARfileusingImportWizardandthenselectonlytheobjectsyouneedtorecover.IncombinationwiththeshortcomingofLCMnottobeabletoselectindividualobjectsthisisarealsadthing(#factoryofsadness).DearSAP:JustgiveusbackbasicfunctionalitieslikerestoringselectivelyeitherusingUpgradeManagementToolorLCM!

    Forthoseinterestedinthebiarengine.jarIcouldntfindanyhintsonitintheBI4documentation,soItooktheadminguidefromXI3.1anditseemsthateverythingstillworksasbefore(formoredetailedinfosseethisblog(http://ritnoa.com/blog/?p=131)):

    Firstofallyouneedapropertiesfiletospecifywhatyouwanttobebackedup:

    exportBiarLocation=C:/temp/BiarEngineBackup.biaraction=exportXMLuserName=Administratorpassword=CMS=cloudsrv012:6400authentication=secEnterpriseexportDependencies=trueexportQuery=select*fromci_infoobjectswheresi_parent_folder=ORSI_ID=

    Savetheselinesoftextinafile,e.g.mybackup.properties.Afterallyoucanexecutethefollowingcommandsonthecommandlineorinabatchfile(replaceC:\BOE4etc.withyourownBOinstallpath):

    cdC:\BOE40\SAPBusinessObjects\SAPBusinessObjectsEnterpriseXI4.0\win32_x86\jre\binjavajarC:\BOE40\SAPBusinessObjects\SAPBusinessObjectsEnterpriseXI4.0\java\lib\biarengine.jarC:\Temp\mybackup.properties

    YoucanuseeitherthebiarengineorLCMtorestorecontenttotheoriginalsystem.AsyoucanonlyrestorethefullBIARfile,IrecommendtohaveadedicatedrecoveryorsandboxsysteminplacewhereyoucanimporttheBIARfileassuchandthenuseLCMtorestoreonlywhatyouneedbacktotheorginalsystem.Suchadedicatedsystemyouneedanywayforthesecondmajorapproach,restoringobjectsfromafullbackup.

    Thefullbackup/restoreapproach

    AslongasyouhaveadedicatedsystemavailabletomountthefullbackupintoarunningBOsystemthisappraochisquite

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 4/12

    AslongasyouhaveadedicatedsystemavailabletomountthefullbackupintoarunningBOsystemthisappraochisquitestraightforwardandnothingtobeafraidof(aslongasyouknowwhatyoudo;)).Thefollowinghighlevelstepswillguideyouthroughtherecoveryprocess:

    1. Takeafullbackupofyouroriginalsystemonaregularbasis.ThisincludesatleastabackupofyourCMSsystem/repositorydatabase,theFileStorefolder(s).AsofFP3/SP04SAPaddedanofficialhotbackupoption(seetheSettingsareainCMC),thereforeyoudontneedtoshutdownyourBOsystemtotakethebackup.Justdefineatimewindowinwhichyoucreateboth,firstthebackupofyoursystemdatabaseandthenthebackupoftheFileStore.InadditiontosystemdatabaseandFileStore,pleasenoteyourClusterKeyandAdministratorpasswordfromtheoriginalsystem!

    2. PreparetheRecoverySystem:Iassumeyouhaveanalreadyinstalledrecoverysystem.Thiscanbeasandboxoraswelle.g.aQAsystemyouwanttotemporarilyuseasyourrecoverysystem.StopallexistingSIAandTomcatservicesontheRecoverysystem.HavealookintoTaskManagerandmakesurethatallCMS.exeandsia.exeprocesseshavebeenstopped.

    3. RestoretheSystemDB:Restorethebackupofyouroriginalsystemdatabasetoanew,emptydatabase/schema.Afterrestore,executethefollowingSQLstatementonthisrestoredDBtoremoveallserverentries:DeletefromCMS_INFOOBJECTS7whereParentID=16

    4. RestoretheFileStore:OntheRecoverysystemrenametheexistingFileStorefoldertoFileStore_orig.RestoretheFileStorefromOrginaltotheRecoverysystemintoitsoriginallocation.

    5. CreateODBCsource:IncaseyourrecoveredsystemDBishostedonaSQLserver,createa64bitODBCsourcetoitontheRecoverysystem.

    6. CreateRecoverySIA(1/2):OntheRecoverysystem,createanewSIAwithanewCMS.PointtheCMStotherecoveredsystemdatabase(probablyusingtheODBCsourcecreatedinthepreviousstep).SelecttheUseatemporaryCMSoption.

    7. CreateRecoverySIA(2/2):OncethenewSIAisadded,changetheClusternamefromtheorginalnametoanewname,e.g.Recovery.StartthenewlycreatedSIAandcheckinTaskManagerifCMSstartsupandkeepsuprunning.ThenstoptheSIAagain.(ifyouwantyoucancombinestep6and7andaddonlyoneadditionalSIA)

    8. CreatesecondSIAtoaddregularservers:AddasecondSIAincludingregularservers,youcanevenaddasecondCMS.StartthisSIAandTomcat.LogintoCMContheRecoverysystemandcheckintheServersareaifallexpectedserversareupandrunning.

    9. VerifyFileRepositoryServers:CheckifthefilepathindicatedinthePropertiesoftheInputandOutputFileRepositoryServerscorrespondtothelocationwheretheFileStorehasbeenrecovered.

    10. RuntheRepositoryDiagnosticTool:RuntheRepositoryDiagnosticToolinordertoremoveanyinconsistenciesbetweenFileRepositoryServersand(recovered)systemdatabase.(replaceC:\BOE4\withyourownBOinstallpath;moreinfoaboutthecommandlineparametersyoullfindintheBOadminguide):cdC:\BOE4\SAPBusinessObjectsEnterpriseXI4.0\win64_x64reposcan.exedbdriversqlserverdatabasesubsystemconnectUID=sa;PWD=;DSN=dbkey

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 5/12

    key>inputfrsdirC:\BOE4\SAPBusinessObjectsEnterpriseXI4.0\FileStore\InputoutputfrsdirC:\BOE4\SAPBusinessObjectsEnterpriseXI4.0\FileStore\Output

    11. DoaselectiverestorefromtherecoverytotheoriginalsystemusingLCM(oroneoftheotherwaysexplainedabove,mostlydependingwhetheryouneedtorecoverreportinstancesornot)

    12. RecreateoriginalsettingsonRecoverysystem:IfyoudontneedtheRecoverysystemanymore,youcanreseteverythingtomatchtheoriginalsettings.ForthissimplystopthecreatedSIAsandeithersettheirstartupmodetodisabledordeletetheSIAsfromthesystementierly(apracticalhowtoyoullfindhere(http://www.howtogeek.com/howto/windowsvista/howtodeleteawindowsserviceinvistaorxp/)).RenameyourFileStoreontheRecoverysystemfromFileStore_origbacktoFileStore.ThismeansyouneedtoeitherdeletetherecoveredFileStorefolderorgiveitanothernamebefore.Inadditionyoucanremovetherecovereddatabase(schema).

    Onceyouexcerisedthisprocessafewtimesitwillserveyouasareliablewaytorecover(partial)elementsinareasonableamountoftime.Butstillitisnottheelegantwaytogo.AndthereforeIwouldliketointroduceyoutomythirdandfavoredmajorapproach.WhatSAPfailstodeliverisusuallydeliverdbyoneoftheaddonproviders.

    Theprofessionalapproach

    AsaprofessionalBOadministratorIlikeprofessionaltools.360Viewisoneofmyfavoritetools,notonlyregardingbackup&recovery.ButthisisoneofthemajorreasonswhyIrecommendthissolution.360ViewdoesntkeepanyseparateinformationoutsidetheregularBOsystemdatabase,itsjustanalternativeviewtoitscontentinadditiontotheCMC.

    Letthepicturesspeakforthemselves:

    Firstofallyouneedtocreateabackupjobinthewebbasedinterfaceof360View,youcanchoosefromvariousobjecttypes.Inadditionyoucanchoosewhethertoincludesubfolders,reportinstancesorFavoritesfoldersincaseyouchoosegroupsandusers:

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 6/12

    (https://rbranger.files.wordpress.com/2012/09/backup1.png)

    Youcanschedulethisjobtorunnoworatalaterpointintime.Bytheway:Allthejobsscheduledwith360Viewcanbetriggeredbyanexternalschedulerlike$Universeetc.

    Oncehavingexecutedthebackupjobyoullfindanewentryinthecontextmenuofanygivenfolderordocument:

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 7/12

    (https://rbranger.files.wordpress.com/2012/09/backup2.png)

    AndforfolderswhichdonotexistanymorecompletelyyoullfindtheTrashBinicon:

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 8/12

    (https://rbranger.files.wordpress.com/2012/09/backup4.png)

    Afterallyoucanchoosefromavailablerecoveryoptionsasyouareusedtofromanyotherprofessionalbackup&recoverysolution:

    (https://rbranger.files.wordpress.com/2012/09/backup3.png)

    Thatsit.Theonlythingyouneedtodoinadditionistosavethe360ViewfilefolderonyourBOserverbyaregularfilebackuptool.

    Areyoudissatisfiedwiththeexistingbackup&recoverycapabilitiesinBO4.0too?Ordoyouseedifferentwaysofimprovingthisprocess?Letmeandotherknowsandwriteacomment!Thanksforyourparticipation!

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 9/12

    Ifyouneedsomekindofplaygroundforeitherapproach,havealookatCloudshare.com(http://www.cloudshare.com)and/orusemypreconfiguredBO4environment(https://rbranger.wordpress.com/2012/04/30/testingbobi4xusingthecloud/).Ofcoursethisincludesa360Viewinstallation.ForthosecurrentlyvisitingtheASUGSAPBusinessObjectsUserConferencegoaandvisitGBandSmithattheirbooth221!

    ForEuropean/Germanspeakingpeoplehavealookatwww.boak.ch(http://www.boak.ch)Illhavefivepresentationsmyselfnextweek.Backup&RecoverywillbeincludedduringmyWhatsNewinBO4.0session.

    FILEDUNDER360SUITE,MIGRATIONBO4.X,SAPBO TAGGEDWITH360VIEW,4.0,BACKUP,BIARENGINE,BIARENGINE.JAR,BO,BO4.X,BUSINESSOBJECTS,CLOUDSHARE,CMC,GBANDSMITH,GBS,LCM,LIFECYCLEMANAGER,MIGRATION,PROMOTION,PROMOTIONMANAGEMENT,RECOVERY,SAP,XI3.1

    11ResponsestoBackup&RecoveryinBO4.0

    Vamsisays:October1,2012at23:53Hi,

    LikedItverymuch.Ifyoucouldshare/compare360ViewwithotheralternativesinthemarketalongwithwhatSAPisprovidinginatabularformatwithsomerecommedations,itwillbequitehelpful.

    About these ads (https://wordpress.com/about-these-ads/)

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 10/12

    Vamsi

    Replyrbrangersays:October2,2012at05:23HiVamsi

    Thanksforthesuggestion.IllthinkaboutitonceIhavetimetorevisethisblogpost.

    CheersRaphael

    ReplyPingback:BackingupandRestoringSAPBusinessObjectsAllThingsBOBJBI

    ethansays:April2,2014at15:23Hi,18monthsafteryouroriginalpost,doyouknowifthesearestillthebestwaysofbackinguptherepository?orhaverecentversionsofBusinessObjectsaddedtheabilitytobackupandrestoreindividualobjectsinasanemanner?

    Thanks!

    Replyrbrangersays:April3,2014at06:34HiEthanTobehonestIdidntworkmuchwithBO4.1inregardstobackup&recoverymyself.IwilldoublecheckwithmyBOBJplatformteamandpostananswerasap.

    BestregardsRaphael

    Replyrbrangersays:May9,2014at07:50Hiall

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 11/12

    Myteamdoublecheckedthevariousoptionsmentionedinmyblogandcametotheconclusionthatnothingchangedsignificantly.Soyoucanassumetheoptionsdescribedintheblogarestillvalid(exceptthatthe360productfeaturesbecameevenmorepowerful).

    CheersRaphael

    ethan1701says:May18,2014at14:02ifyoucreateaBIARwithbiarengine.jar,itcanstillbeopenedwiththeUpgradeManagementTool,inordertoperformapartialrestore.Yousimplyneedtoaddjarupgrademanagementtool.jarinternal_use_only_noversionchecktothecommandopeningtheUMT,andsoitwontcheckiftheBIARwascreatedinapreviousversionofBusinessObjectsornot.

    Ithinkthatsagamechanger,andmakesthebiarenginethebestoptionavailable.

    ReplyPatrickDelagesays:October13,2014at15:09Thanks,veryusefullbolg.Youprobablysaveadministratorjob.Ifcrashhappenonthecompanyyourtherearework. Idefinitelylikethestepbystepyouprovidetorestorefullbackup.Needtotrynow!

    Replyrbrangersays:October16,2014at12:34HiPatrick.Thankyouforreading!Andletmeknowifyouhaveenhancementsbasedonyourexperience.CheersRaphael

    ReplyScottsays:January26,2015at15:51WearestillonXI3planningamigrationtoBI4thisyear.Ihavebeenexperimentingwiththebiarengineapproachandjustcannotgetittoworkwithaquery(i.e.select*fromci_infoobjectswheresi_parent_folder=)maybeithassomethingtodowithourCMS,whoknows.Icannotagreemorewithyourhashtag#factoryofsadnessregardingthestateofoutoftheboxbackup/restorecapability.Wearefortunatetoonlyhaveneededtodoarestoveviathefullbackup/restoremethodoncein9orsoyearsofBOEuse.HopeIdidntjustjinxus

  • 7/8/2015 Backup&RecoveryinBO4.0|MylifeasaBIconsultant

    https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/ 12/12

    Replyethan1701says:January27,2015at14:27TakealookattheBIARcreationsolutionhere:http://www.forumtopics.com/busobj/viewtopic.php?p=1001069&sid=03315826fbd9b6ed20fc76b4dfca4e43#1001069Thislinkisdirectlytomycomment,withafewimprovementstotheoriginalscript.

    Reply

    CreateafreewebsiteorblogatWordPress.com.

    TheEnterpriseTheme.

    Follow

    FollowMylifeasaBIconsultant

    BuildawebsitewithWordPress.com