Today we discuss about common admin tasks we encounter during typical work day of an essbase administrator. Every morning I check status of my Nightly cycle. Nighty cycle is an automation process which builds my hierarchy, clears data, loads data and runs all aggregation and different business logic calc scripts and completes backup. Nigthly cycle is my full load. owever I also do incremental data load and check the status of the incremental load and check to see if there are any errors or re!ects. "atabase ealth# $heck to see the fragmentation ratio and if it is more than %& ' framented and calc scripts were taking awfull lot of time, then I will initiate dense restructure (which removes fragmentation) that night. Generally dense restructures were not done during week days. *nly e+ceptional cases are entertained. ,s part of nightly cycle my main cube also feeds data to reporting cube. I use datae+port command to e+port and outline e+tractor combined with ,- (yperion ,pplication -ink) to e+port and format metadata. .e schedule all the !obs using windows scheduler and automation was done using windows batch files. If the calcs are running slow, we check how much database was fragmented, si/e data cache, outline order etc. If "ata cache is full, we need to increase the si/e of data cache. ,fter increasing the si/e, database needs to be started for it to take effect. 0topping and starting database in the nightly cycle is also good practice. It removes cache build up. If the database is corrupt or atleast we have a suspicion that database is corrupt we use 1,-I",TE command in E00$2". If the database is corrupt we can restore database from backup (discussed in backup post). 0ometimes essbase service won3t start eventhough we start it manually. This is because of any idle process running before essbase went down. Those orphanned (Idle) process won3t allow essbase service to start. I use windows process e+plorer (tool from 2icrosoft, !ust like task manager) to kill those idle processes and restart essbase. Exporting Security out of Hyperion Planning application we can e+tract security information out planning application using the following script on 4lanning 05- tables SELECT A.OBJECT_ID AS GROUP_ID, A.OBJECT_NAME AS GROUP_NAME, D.USER_ID, E.OBJECT_NAME AS USER_NAME, D.ROLE, D.SYNC_PSWD, FROM HSP_OBJECT A, HSP_OBJECT_TYPE B, HSP_USERSINGROUP C, HSP_USERS D, HSP_OBJECT E Where A.OBJECT_TYPE=B.OBJECT_TYPE AND A.OBJECT_ID=C.GROUP_ID AND C.USER_ID=D.USER_ID AND D.USER_ID=E.OBJECT_id AND B.OBJECT_TYPE =! ORDER BY A.OBJECT_ID Automation of DataLoad This document is intended to e+plain how to automate data load. S"e#.$% $reate a data load rule in Essbase S"e#.& % $reate a 2a+l file to e+ecute the load rule S"e# .' % $reate a batch file to e+ecute the 2a+- file. .e can schedule the 6atch file using windows scheduler. E()*#+e ,- M)(L .,de. 7.This 2a+- code clears the e+isting data 8.-oads data 9.,ggregates the data. :emember # ;ou need clear the data before you load. .e clear the data because of our re<uirements. ;ou can !ust use step 8 and 9 load data and aggregate data. /*Script Start */ /*Login */ -*GIN 3=serName3 34assword3 *N 30erver Name3> /*Clears data */ e+ecute calculation 3 Fi+ (?idescendants(@,ccount@),?idescendants(Entity),A$urrent ;ear,1ersion) $-E,:",T, 0cenario> Endfi+>3 on ,pplicationName."atabase Name> /* Imports Data */ import database 3,pplicationName3.3"atabaseName3 data connect as 3=serName3 identified by 34assword3 using server rulesBfile 3-oad:uleName3 on error write to 3e#CC-ogsCErrorfilename.err3> /*Aggregates Data*/ e+ecute calculation3 0ET ,GG2I00G *N> 0ET =4",TE$,-$ *FF> Fi+ (0cenario,;ear,1ersion) $,-$ "I2(4roduct,Entity)> Endfi+>3 on ,pplicationName."atabaseName> -*G*=T> EDIT> EFEnd 2a+- 0criptFE B)".h Fi+e ", .)++ "he M)(L S.ri#" and send email about status of the Rem ****************************************************************************** Rem Object Type: Batc !ile Rem Object "ame: Batc!ile"ame#bat Rem Script Date: $%&'(&'$$) Rem Created by: Dorna*al Rem +,rpose: Tis script loads te -ollo.ing data into C,be Rem Canged By: Rem Cange Date: Rem Description: Rem ****************************************************************************** Rem Tis starts te log -ile echo @0tart of log@ G E#C-ogsC"ataload.log Rem Tis calls /a0L script to load data essmsh E#C0criptsC2a+- C"ata-oad.m+l GG E#C-ogsC"ataload.log Rem Send mail abo,t te stat,s o- te job sendmail Hb E#C-ogsC"ataload.log Hs @0ub!ect of the mail (data load status).@ Hf 0endersemail Hr :ecievers email Hr :eceiverIs email HD 502T4.yourcompany.net
Microsoft Access Guide to Success: From Fundamentals to Mastery in Crafting Databases, Optimizing Tasks, & Making Unparalleled Impressions [III EDITION]