Vous êtes sur la page 1sur 12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

MylifeasaBIconsultant
TheblogofRaphaelBranger

Backup&RecoveryinBO4.0
SEPTEMBER10,2012
0/#COMMENTS)

11COMMENTS(HTTPS://RBRANGER.WORDPRESS.COM/2012/09/10/BACKUPRECOVERYINBO4

Thispostisdedicatedtotheavailablemeansofbackup&recoveryinSAPBusinessObjectsBI4.0.Thereareseveralchanges
comparedtothepreviousversionXI3.1includingsomeliterallymissingfunctionality.
Therecoveryscenario:Partialrestoreofreportanduniverseobjects
Inmyeyesthetypicalrecoveryscnearioisapartialrestore.Ithappensquitequicklythatyoueitherdeleteafolderwithawhole
bunchofreportsorthatyouwanttorevertachangeinareportoruniversedevelopment.Especiallyifweconsidertheadhoc
reportingcapabilitiesofWebIntelligenceyouprobablydonthavealocalcopyofthecorrespondingreport.Inadditionpeople
whichdoanymistakeleadingtoarecoveryproceduretendtonoticethattheydidsuchamistakeonlywithacertaingapintime,
thismeanstheyrequesttherecoverye.g.ofagivenfoldernotimmediatelyafteritsdeletionbutperhapstwoweekslaterwhenthey
realizetheydeletedsomereportstoomuch.Inthemeanwhilethesystemmighthavebeenusedheavily,thatswhyafullrecoveryof
thesystemitselfisnotreallyanoption.Whatyouneedinsuchasituationisthepossibilitytorecoveronlyselectedobjectsfroma
backupsettotheoriginalsystem.InthisblogIwillconcentrateonthisscenario.Iuseoriginalsystemasatermtoidentifythe
systemonwhichItakethebackupandtowhichIwanttorecoversomethingback.
TheavailablepossibilitiesinBO4.0
TherearethreemajorapproachesintakingabackupofBO4.0andrecoverpartialcontent:
1. CreatesomekindofBIARfile(multipleoptionsavailable,seebelow)andtrytorecoverselectedelementsbacktotheoriginal
system.
2. Doafullbackup,restorethefullbackuptoaseparateBOrecoverysystemandfinallyuseLCMtopromoteselectedobjects
https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/

1/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

backtotheoriginalsystem.
3. Useaprofessionalbackup&recoverysolutionlike360ViewfromGBandSmith(http://www.gbandsmith.com/)
Letmeevaluatetheaboveapproachesinthenextfewsections.
TheBIARapproach
TheBOAdminGuidestatesinsection12.1.1.3(page466):
ItisrecommendedthatyouusetheLifecyclemanagementconsoleforSAPBusinessObjectsBusinessIntelligenceplatformto
regularlybackupyourBusinessIntelligencecontent,suchasreports,usersandgroups,anduniverses.Havingcurrentbackups
ofyourcontentmakesitpossibletorestoreyourBusinessIntelligencewithouthavingtorestoreyourentiresystemoryour
serversettings.
WhoeverwrotethissentenceatSAPdoesntseemtohaveeitheranyconcreteexperiencewithLCMornotaclearideawhata
backup&recoverytoolshouldfullfiflinpractice.RespectivelyletshavealookatjustanygivenfreewaretobackupyourWindows
files.Thereforetopointthisoutrightatthebeginning:KeepyourhandsoffintrustingLCMasyouroneandonlybackupsolution
forBO.LCMisatooltopromote(orintheSAPjargontransport)objectsfromoneenvironmenttoanother.LCMwasnever
madetobeabackupsolution.Letmeexplaininsomemoredetails:
ThepreferredwaytotakeabackupusingLCMisexportingaLCMjobintoaLCMBIARfile.FinallywithFP3/SP04youcannow
scheduletheexporttosuchafile.Buttherearesomecriticalshortcomingswiththis(asofSP04Patch1;anyonehavingdiffering
experiencewithahigherpatchlevelpleasecommentbelow!):
reimportingtheLCMBIARfiletotheoriginalsystemonwhichyoucreatedthefilewillfailassoonasyoudeletetheoriginal
LCMjob.Whatrealbackupsolutionmakesitselfdependingonthejobobjectcreatingthebackupset?
wheneveryouimportaBIARfileyoudonthaveanoptiontoselect/unselectobjectstorestore.Thereisonlyblackorwhite:
Eitheryouimportallthecontentsfromyour(LCM)BIARfileornothing.
LCMBIARfilesdonotsaveyoursuccessfulinstances.Onlyrecurringinstancesarebackedup.Butbythewayyoucannotdecide
whethertorestorerecurringinstancesornot,asmentionedbeforeyouhavetorestoreeverythingbelongingtotheBIARfile.
AnextapproachinusingBIARfilesistousethenewUpgradeManagementToolorthelegacybiarengine.jar.Thegoodnewshere
arethatLCMfinallyiscapabletoimportregularBIARfileswhichwerecreatedbythesetwomeans.Thefollowingthingsshouldbe
considered:
IncontrasttoLCMBIARfiles,regularBIARfilescanbeimportedwithoutanydependancytoanyLCMjob.
TheUpgradeManagementToolaswellasthebiarengine.jartakesabackupofboth,recurringaswellassuccessfulreport
https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/

2/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

instances.
UnfortunatelySAPwassostupidsorrytosayitlikethis,butIcouldntfindanyothertermtoexpressmyfeelingsaboutthis
situationtoremove(orjustnotallow)thepossibilitytoimportaBIARfileofthesamesoftwareversionusingtheUpgrade
ManagementTool.InXI3.1thisbecamequitestandardduringarecoveryproceduretoloadtheBIARfileusingImportWizard
andthenselectonlytheobjectsyouneedtorecover.IncombinationwiththeshortcomingofLCMnottobeabletoselect
individualobjectsthisisarealsadthing(#factoryofsadness).DearSAP:Justgiveusbackbasicfunctionalitieslikerestoring
selectivelyeitherusingUpgradeManagementToolorLCM!
Forthoseinterestedinthebiarengine.jarIcouldntfindanyhintsonitintheBI4documentation,soItooktheadminguidefromXI
3.1anditseemsthateverythingstillworksasbefore(formoredetailedinfosseethisblog(http://ritnoa.com/blog/?p=131)):
Firstofallyouneedapropertiesfiletospecifywhatyouwanttobebackedup:
exportBiarLocation=C:/temp/BiarEngineBackup.biar
action=exportXML
userName=Administrator
password=<yourpassword>
CMS=cloudsrv012:6400
authentication=secEnterprise
exportDependencies=true
exportQuery=select*fromci_infoobjectswheresi_parent_folder=<yourownidorquery>ORSI_ID=<yourownidorquery>
Savetheselinesoftextinafile,e.g.mybackup.properties.Afterallyoucanexecutethefollowingcommandsonthecommandline
orinabatchfile(replaceC:\BOE4etc.withyourownBOinstallpath):
cdC:\BOE40\SAPBusinessObjects\SAPBusinessObjectsEnterpriseXI4.0\win32_x86\jre\bin
javajarC:\BOE40\SAPBusinessObjects\SAPBusinessObjectsEnterpriseXI4.0\java\lib\biarengine.jar
C:\Temp\mybackup.properties
YoucanuseeitherthebiarengineorLCMtorestorecontenttotheoriginalsystem.AsyoucanonlyrestorethefullBIARfile,I
recommendtohaveadedicatedrecoveryorsandboxsysteminplacewhereyoucanimporttheBIARfileassuchandthenuseLCM
torestoreonlywhatyouneedbacktotheorginalsystem.Suchadedicatedsystemyouneedanywayforthesecondmajorapproach,
restoringobjectsfromafullbackup.
Thefullbackup/restoreapproach

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

3/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

AslongasyouhaveadedicatedsystemavailabletomountthefullbackupintoarunningBOsystemthisappraochisquite
straightforwardandnothingtobeafraidof(aslongasyouknowwhatyoudo;)).Thefollowinghighlevelstepswillguideyou
throughtherecoveryprocess:
1. Takeafullbackupofyouroriginalsystemonaregularbasis.ThisincludesatleastabackupofyourCMSsystem/repository
database,theFileStorefolder(s).AsofFP3/SP04SAPaddedanofficialhotbackupoption(seetheSettingsareainCMC),
thereforeyoudontneedtoshutdownyourBOsystemtotakethebackup.Justdefineatimewindowinwhichyoucreateboth,
firstthebackupofyoursystemdatabaseandthenthebackupoftheFileStore.InadditiontosystemdatabaseandFileStore,
pleasenoteyourClusterKeyandAdministratorpasswordfromtheoriginalsystem!
2. PreparetheRecoverySystem:Iassumeyouhaveanalreadyinstalledrecoverysystem.Thiscanbeasandboxoraswelle.g.a
QAsystemyouwanttotemporarilyuseasyourrecoverysystem.StopallexistingSIAandTomcatservicesontheRecovery
system.HavealookintoTaskManagerandmakesurethatallCMS.exeandsia.exeprocesseshavebeenstopped.
3. RestoretheSystemDB:Restorethebackupofyouroriginalsystemdatabasetoanew,emptydatabase/schema.Afterrestore,
executethefollowingSQLstatementonthisrestoredDBtoremoveallserverentries:DeletefromCMS_INFOOBJECTS7where
ParentID=16
4. RestoretheFileStore:OntheRecoverysystemrenametheexistingFileStorefoldertoFileStore_orig.RestoretheFileStore
fromOrginaltotheRecoverysystemintoitsoriginallocation.
5. CreateODBCsource:IncaseyourrecoveredsystemDBishostedonaSQLserver,createa64bitODBCsourcetoitonthe
Recoverysystem.
6. CreateRecoverySIA(1/2):OntheRecoverysystem,createanewSIAwithanewCMS.PointtheCMStotherecoveredsystem
database(probablyusingtheODBCsourcecreatedinthepreviousstep).SelecttheUseatemporaryCMSoption.
7. CreateRecoverySIA(2/2):OncethenewSIAisadded,changetheClusternamefromtheorginalnametoanewname,e.g.
Recovery.StartthenewlycreatedSIAandcheckinTaskManagerifCMSstartsupandkeepsuprunning.ThenstoptheSIA
again.
(ifyouwantyoucancombinestep6and7andaddonlyoneadditionalSIA)
8. CreatesecondSIAtoaddregularservers:AddasecondSIAincludingregularservers,youcanevenaddasecondCMS.Startthis
SIAandTomcat.LogintoCMContheRecoverysystemandcheckintheServersareaifallexpectedserversareupand
running.
9. VerifyFileRepositoryServers:CheckifthefilepathindicatedinthePropertiesoftheInputandOutputFileRepositoryServers
correspondtothelocationwheretheFileStorehasbeenrecovered.
10. RuntheRepositoryDiagnosticTool:RuntheRepositoryDiagnosticToolinordertoremoveanyinconsistenciesbetweenFile
RepositoryServersand(recovered)systemdatabase.
(replaceC:\BOE4\withyourownBOinstallpath;moreinfoaboutthecommandlineparametersyoullfindintheBOadmin
guide):
cdC:\BOE4\SAPBusinessObjectsEnterpriseXI4.0\win64_x64
reposcan.exedbdriversqlserverdatabasesubsystemconnectUID=sa;PWD=<password>;DSN=<ODBC_Name>dbkey<cluster
https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/

4/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

key>inputfrsdirC:\BOE4\SAPBusinessObjectsEnterpriseXI4.0\FileStore\InputoutputfrsdirC:\BOE4\SAP
BusinessObjectsEnterpriseXI4.0\FileStore\Output
11. DoaselectiverestorefromtherecoverytotheoriginalsystemusingLCM(oroneoftheotherwaysexplainedabove,mostly
dependingwhetheryouneedtorecoverreportinstancesornot)
12. RecreateoriginalsettingsonRecoverysystem:IfyoudontneedtheRecoverysystemanymore,youcanreseteverythingto
matchtheoriginalsettings.ForthissimplystopthecreatedSIAsandeithersettheirstartupmodetodisabledordeletetheSIAs
fromthesystementierly(apracticalhowtoyoullfindhere(http://www.howtogeek.com/howto/windowsvista/howtodeletea
windowsserviceinvistaorxp/)).RenameyourFileStoreontheRecoverysystemfromFileStore_origbacktoFileStore.This
meansyouneedtoeitherdeletetherecoveredFileStorefolderorgiveitanothernamebefore.Inadditionyoucanremovethe
recovereddatabase(schema).
Onceyouexcerisedthisprocessafewtimesitwillserveyouasareliablewaytorecover(partial)elementsinareasonableamountof
time.Butstillitisnottheelegantwaytogo.AndthereforeIwouldliketointroduceyoutomythirdandfavoredmajorapproach.
WhatSAPfailstodeliverisusuallydeliverdbyoneoftheaddonproviders.
Theprofessionalapproach
AsaprofessionalBOadministratorIlikeprofessionaltools.360Viewisoneofmyfavoritetools,notonlyregardingbackup&
recovery.ButthisisoneofthemajorreasonswhyIrecommendthissolution.360Viewdoesntkeepanyseparateinformation
outsidetheregularBOsystemdatabase,itsjustanalternativeviewtoitscontentinadditiontotheCMC.
Letthepicturesspeakforthemselves:
Firstofallyouneedtocreateabackupjobinthewebbasedinterfaceof360View,youcanchoosefromvariousobjecttypes.In
additionyoucanchoosewhethertoincludesubfolders,reportinstancesorFavoritesfoldersincaseyouchoosegroupsandusers:

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

5/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

(https://rbranger.files.wordpress.com/2012/09/backup1.png)
Youcanschedulethisjobtorunnoworatalaterpointintime.Bytheway:Allthejobsscheduledwith360Viewcanbetriggered
byanexternalschedulerlike$Universeetc.
Oncehavingexecutedthebackupjobyoullfindanewentryinthecontextmenuofanygivenfolderordocument:
https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/

6/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

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

7/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

(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?Ordoyouseedifferentwaysofimprovingthis
process?Letmeandotherknowsandwriteacomment!Thanksforyourparticipation!
https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/

8/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

Ifyouneedsomekindofplaygroundforeitherapproach,havealookatCloudshare.com(http://www.cloudshare.com)and/oruse
mypreconfiguredBO4environment(https://rbranger.wordpress.com/2012/04/30/testingbobi4xusingthecloud/).Ofcoursethis
includesa360Viewinstallation.ForthosecurrentlyvisitingtheASUGSAPBusinessObjectsUserConferencegoaandvisitGBand
Smithattheirbooth221!
ForEuropean/Germanspeakingpeoplehavealookatwww.boak.ch(http://www.boak.ch)Illhavefivepresentationsmyselfnext
week.Backup&RecoverywillbeincludedduringmyWhatsNewinBO4.0session.
About these ads (https://wordpress.com/about-these-ads/)

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:53
Hi,
LikedItverymuch.Ifyoucouldshare/compare360ViewwithotheralternativesinthemarketalongwithwhatSAPisproviding
inatabularformatwithsomerecommedations,itwillbequitehelpful.
https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/

9/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

Vamsi
Reply
rbrangersays:
October2,2012at05:23
HiVamsi
Thanksforthesuggestion.IllthinkaboutitonceIhavetimetorevisethisblogpost.
Cheers
Raphael
Reply
Pingback:BackingupandRestoringSAPBusinessObjectsAllThingsBOBJBI
ethansays:
April2,2014at15:23
Hi,
18monthsafteryouroriginalpost,doyouknowifthesearestillthebestwaysofbackinguptherepository?orhaverecent
versionsofBusinessObjectsaddedtheabilitytobackupandrestoreindividualobjectsinasanemanner?
Thanks!
Reply
rbrangersays:
April3,2014at06:34
HiEthan
TobehonestIdidntworkmuchwithBO4.1inregardstobackup&recoverymyself.IwilldoublecheckwithmyBOBJ
platformteamandpostananswerasap.
Bestregards
Raphael
Reply
rbrangersays:
May9,2014at07:50
Hiall
https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/

10/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

Myteamdoublecheckedthevariousoptionsmentionedinmyblogandcametotheconclusionthatnothingchanged
significantly.Soyoucanassumetheoptionsdescribedintheblogarestillvalid(exceptthatthe360productfeatures
becameevenmorepowerful).
Cheers
Raphael
ethan1701says:
May18,2014at14:02
ifyoucreateaBIARwithbiarengine.jar,itcanstillbeopenedwiththeUpgradeManagementTool,inordertoperformapartial
restore.
Yousimplyneedtoaddjarupgrademanagementtool.jarinternal_use_only_noversionchecktothecommandopeningthe
UMT,andsoitwontcheckiftheBIARwascreatedinapreviousversionofBusinessObjectsornot.
Ithinkthatsagamechanger,andmakesthebiarenginethebestoptionavailable.
Reply
PatrickDelagesays:
October13,2014at15:09
Thanks,veryusefullbolg.Youprobablysaveadministratorjob.Ifcrashhappenonthecompanyyourtherearework.
definitelylikethestepbystepyouprovidetorestorefullbackup.Needtotrynow!

Reply
rbrangersays:
October16,2014at12:34
HiPatrick.Thankyouforreading!Andletmeknowifyouhaveenhancementsbasedonyourexperience.
Cheers
Raphael
Reply
Scottsays:
January26,2015at15:51
WearestillonXI3planningamigrationtoBI4thisyear.Ihavebeenexperimentingwiththebiarengineapproachandjust
cannotgetittoworkwithaquery(i.e.select*fromci_infoobjectswheresi_parent_folder=)maybeithassomethingtodo
withourCMS,whoknows.Icannotagreemorewithyourhashtag#factoryofsadnessregardingthestateofoutofthebox
backup/restorecapability.Wearefortunatetoonlyhaveneededtodoarestoveviathefullbackup/restoremethodoncein9or
soyearsofBOEuse.HopeIdidntjustjinxus
https://rbranger.wordpress.com/2012/09/10/backuprecoveryinbo40/

11/12

7/8/2015

Backup&RecoveryinBO4.0|MylifeasaBIconsultant

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

CreateafreewebsiteorblogatWordPress.com.
TheEnterpriseTheme.
Follow

FollowMylifeasaBIconsultant
BuildawebsitewithWordPress.com

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

12/12

Vous aimerez peut-être aussi