BackupRecovery in BOBJ

12
My life as a BI consultant The blog of Raphael Branger Backup & Recovery in BO 4.0 SEPTEMBER 10, 2012 11 COMMENTS (HTTPS://RBRANGER.WORDPRESS.COM/2012/09/10/BACKUP‑RECOVERY‑IN‑BO‑4‑ 0/#COMMENTS) This post is dedicated to the available means of backup & recovery in SAP BusinessObjects BI 4.0. There are several changes compared to the previous version XI 3.1 including some literally missing functionality. The recovery scenario: Partial restore of report and universe objects In my eyes the typical recovery scneario is a partial restore. It happens quite quickly that you either delete a folder with a whole bunch of reports or that you want to revert a change in a report or universe development. Especially if we consider the ad‑hoc reporting capabilities of Web Intelligence you probably don’t have a local copy of the corresponding report. In addition people which do any mistake leading to a recovery procedure tend to notice that they did such a mistake only with a certain gap in time, this means they request the recovery e.g. of a given folder not immediately after its deletion but perhaps two weeks later when they realize they deleted some reports too much. In the meanwhile the system might have been used heavily, that’s why a full recovery of the system itself is not really an option. What you need in such a situation is the possibility to recover only selected objects from a backup set to the original system. In this blog I will concentrate on this scenario. I use “original” system as a term to identify the system on which I take the backup and to which I want to recover something back. The available possibilities in BO 4.0 There are three major approaches in taking a backup of BO 4.0 and recover partial content: 1. Create some kind of BIAR file (multiple options available, see below) and try to recover selected elements back to the original system. 2. Do a full backup, restore the full backup to a separate BO “recovery” system and finally use LCM to “promote” selected objects

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