Want to know The Truth About CPM?

25 February 2010

What Is Dodeca And Why Should You Care?

Everyone knows Tim
You know who I’m talking about, don’t you? 
Over the years, you could hardly have missed him at oh, Arbor Dimensions , Hyperion Solutions, Oracle OpenWorld, OAUG Collaborate, and ODTUG Kaleidoscope.  He’s omnipresent, and gives freely of his time, expertise, and knowledge.  He’s also one heck of a nice guy.  And kind of a rock star.
He’s been deeply involved with ODTUG's board and is currently on the ODTUG Hyperion SIG board.
Did I mention that he has this company called AppliedOLAP?
Did I also mention that when I met his mother, I (for real and for true) told her that I wanted to be just like Tim when I grew up?  (This was at the tender age of 38, I best get cracking).  I’ve never wanted to be like anybody else, ever.  Not in the real world, at least. 
Did I mention that Tim and his team have graciously, generously, and for free taken over maintenance of OlapUnderground’s Outline Extractor, Advanced Security Manager, and Substitution Variable Manager.
Lastly, he’s an Oracle Ace Director.  That honorific isn’t exactly handed out like popcorn at a movie.
So, have you guessed yet?  I hope so – if you haven’t, I wonder if you have a Hyperion pulse.
The drama ends, and for many of you, there wasn’t a bit of a guessing game – the Tim I’m talking about is none other than Tim Tow.
And he has this product that I’m going to spend the next few blog posts reviewing in some depth.  I’m going to do a John Goodwin on this – come back to the same product again and again from different angles.  I think it will be fun.
NB – This won’t be a marketing review of the product, but rather a practical guide to the product and how you can use to build your most awesome Oracle EPM/Hyperion system ever.  E-v-e-r. 

Dodeca – what is it?

Here’s AppliedOLAP’s official description of Dodeca:
Dodeca is software that supports interactive analysis, planning, and reporting activities performed by business users and decision makers at all levels within an organization.
And here’s how I see it:
1)   It is the best Excel that Essbase ever met.
2)   It isn’t Excel.

Simple, eh?  And of course that description doesn’t touch all of the frankly amazing work under the covers that makes it such an awesome tool.  It’s all cool stuff, but from the sharp end of the stick, while it’s important to understand how Dodeca works and why, the most important part is what it can do for you when you implement it.

I’m just wild about Excel

Excel is wonderful, great, powerful, flexible, extendible, and customizable.  It is arguably the most widely used part of Office bar Outlook and more value sits in Excel worksheets than in annoying emails.  I love Excel.  Everyone who works in Accounting/Finance loves it.  It is warm, and cuddly, and just all around great.

And the problem is?

Alas, the “powerful, extendible, customizable” attributes are what causes so much trouble when Excel is used as a reporting tool against Essbase.
I’ve seen (and written) three kinds of Essbase/Excel reporting systems:  templates, templates with a wee bit o’code, and a super-duper locked down environment.
There are problems, big problems, with all three of these approaches, and I’m probably guilty of perpetrating all of them.  Former clients – I’m sorry, I did my best, but all I had was Excel.

98 lb weaklings, or have you thought about protein shakes

These are just templates that users retrieve into, or lock and send from.  Can this be broken?  Oh yes, and how.
The basic kind of “system” is an Essbase database, however derived using Excel files with high level retrieves.
Somehow this workbook, or series of workbooks, is distributed to users.
In turn, they connect to Essbase, retrieve/send, and change the report to their needs.

The Good

  • Simple to create.
  • Simple (sort of, your users have to understand the add-in or SmartView) to use.  Simple for you, at least.
  • No code, so quick to create.
  • Er, that’s about it.

The Bad

  • The templates can get out of date and need to be redistributed.
  • There isn’t a tremendous value in simple reports that need to be manually and uniquely modified by the user.
  • It’s easy to break the Excel report with a pivot (or the flip side of not being able to pivot at all) – that will generally blow up the entire report and may really get ugly if you have hidden retrieve ranges and nicely formatted presentation ranges.
  • The reports also break (or worse, still retrieve, but give different information than you anticpate) if rows or columns are deleted or even a member in a POV is deleted and replaced with a top-of-dimension member.

Spends time at the gym,  but not enough

Templates again, but with some automation, like an automatic log on and retrieve.  These templates are still rickety and prone to user error.

The Good

  • Connecting to an Essbase database is a controlled act – at least you can be sure your users are connecting to Sample.Basic instead of some other database.
  • You get to exercise your coding skills.  Do more, and one day you’ll be the Mr. Universe of programming.  This attribute may actually fall under The Bad – one programmer’s dream is another’s maintenance nightmare.
  • Did I mention that this stuff is custom code either in the workbook or in an add-in – it has to be distributed, somehow.
  • Once you get past the crude automation, the actual creation of reports isn’t too bad.

The Bad

  • These reports are still wide open, and are easy to break for all of the reasons listed in the 98 lb weakling section.
  • The system is just barely one step above templates against Essbase – your users have to be proficient with retrieves, sends, report writing, etc.  Honestly, was it worth the candle?

Dude, lay off the steroids

A completely locked down Excel environment.  In fact your users wouldn’t even know you were in Excel, save for the grid.

The Good

  • You are the Mr. Universe of programming.  Nice code, nice approach, nice functionality.  This is cool stuff.
  • Excel is locked down tighter than a drum head.  No user errors are going to happen here.  I don’t even see the File menu.
  • You have accounted for every bone-headed/honest mistake a user can make.  This system is solid.

The Bad

  • You’ve got to be a really, really good VBA programmer, and spent a lot of time thinking about how retrieves and sends are going to work.
  • Did I mention you wrote a lot of code.  A lot.  And it took time.  A lot.  Maybe way more than you anticipated.
  • The cool code you wrote is probably a bit specific to the database.  Did you plan for portability to other applications?  Whoops, you forgot.  Yeah, me too.
  • Uh-oh, your company just migrated from Excel 2003 to 2007.  Toolbars don’t really work any more, nor do custom menus (okay, they work, sort of, but not the way they used to).  What are your thoughts on the Ribbon UI?
  • ·Whoa, you just got hit by a SEPTA bus.  You are hors de combat.  Does your company have a good succession plan?  Who’s going to maintain your ultra cool application?

If you think Excel is good, check this out

No, this is not one of those “Hold my beer and watch this” moments.  Instead I’m going to list the ways Dodeca fixes the above problems.  I’ll end this post with just a list of what Dodeca can do for you with this post – the next one will dive deep into specific features.
Oh, and lest anyone with a reddened neck takes offense to the above link, let me tell you about my time in 4-H.  And the unpasteurized milk (how oh how did we survive?) we used to get from the beefalo that tasted like onions when she ate onion grass.  And all about the tour of Hatfield Quality Meats to see where our 4-H pigs and cows ended up.  That was certainly an education.  Now I know why you never name the animals you eat.  :)  In short, I may look like a geek, but I am from Pennsyltucky, and proud of it.
Okay, so a Yankee redneck (really just pinkish nowadays, I don’t even have a garden) is telling you to forget the beer, hold my coffee, and see how Dodeca solves the problems I listed above:

Distribution

Dodeca pushes Excel templates across the web.  If you’ve got Internet Explorer, you can use Dodeca.

Bulletproof

We’re talking Level IV, baby.  These reports can be just as protected as you like.  Or not.  The power is in your hands.  Did I mention this product is awesome?
POVs, dimensions, subsets of dimensions – these are all customizable and the Dodeca user can have just as much or as little control as you want.

Automation 

Logins, disconnects, multiple databases, user types, sends, calcs, dimension selectors (Ever write one of these?  Somewhat painful, isn’t it?) – anything you can think of, it’s already been thought of by Tim, et al., and frankly, it’s better than what you could do.  A painful blow to the ego for this particular programmer, but I have to bow to superior intellect and effort.  (Be honest, even if you thought you could write a better mousetrap, would you?  Really?  You have nothing else to do with your time?  Yes?  If so, I envy/pity you.)

Code

Nope, Tim, Amy, and the rest of the talented crew at AppliedOLAP wrote lots, and lots, and lots of code so that you can create template reporting systems with no code, unless you want to. 
There is an code framework called workbook scripts that allow you to customize behavior, and the entire product is extensible, but I’ll bet you never have call to go that far.  Unless you want to.  Again, I mention the awesomeness of Dodeca.  It is an implementer’s dream.

Excel Versions

Nope.  Did you miss the bit where it uses Excel templates but doesn’t use Excel?  Magical, isn’t it?

Hard to believe?

Are you a little scared of the time commitment to do all of this?  You shouldn’t be.  It’s still the same Excel templates that you know and love.  Incredible, isn’t it, because you aren’t using Excel one little bit when you’re in Dodeca.

Coming next time

So I’ve made big promises about what Dodeca can do, and why it’s the best Excel you’ll ever tie to Essbase.  Talk is cheap. 
The next post is going to provide a basic view of what Dodeca looks like from a developer’s perspective, how to hook it up to Essbase, and what simple template reports look like.
In the following posts we’ll dive down, down, down into the product and show you how you can make it sing.
This product is the best, and I’m determined to make sure that every Essbase hacker out there knows it, covets it, and implements it.  Thank goodness I don’t set unrealistic goals.  :)



22 January 2010

Kaleidoscope for the money and time challenged

Are you skint, broke, busted, busy, unappreciated but still want to go to ODTUG Kaleidoscope?

The question

Can’t experience the full ODTUG Kaleidoscope experience because your company has no budget/that big project tragically coincides with the Conference of the Year/your boss doesn’t appreciate your super genius and won’t cough up the dough?

The answer

For those short of time, budget, or both, you can now attend the ODTUG Hyperion symposium.  What is it?  Tsk, didn’t you read my last blog post?  Of course you did, because you are a super genius, just like me.  


Returning to what you actually care about, Sunday 26 June 2010’s Hyperion symposium is the day where big Oracle acts like a tiny little startup and you’re the Venture Capitalist.  Oh yes, the power feels so good.


What do I mean?  That Sunday will be where Oracle gives we lucky attendees (and that can now include you for c-h-e-e-p, just keep on reading) a preview of where Oracle EPM is going, and if the magic repeats from last year, an opportunity for you to share your Essbase/SmartView/FDM/whatever opinion directly with the people who manage the products.  Perhaps I’m overemphasizing the point, but Sunday may be an unparalleled opportunity for you to talk directly to the product staff.  Speak now or forever hold your peace.  And your office isn’t even on Sand Hill Road.

Setting expectations

Just a bit of a disclaimer – not every product presentation last year was this kind of freewheeling session, but I am hoping to gently nudge all of them into this position through the awesome reader base that this blog commands.  So that would be my mother and Glenn.  And I have to ask her.  I know Glenn just does it for the chance to heckle me and tell me that I’m overly verbose.  Which is true.


Continuing down the may-not-happen-so-don’t-hold-me-to-it theme, Oracle will state in these presentations that they are committed to nothing they present and that whatever they do present is subject to change.  I like that – it’s honest and realistic.  Product futures aren’t written in stone and besides, if Oracle is asking you questions, the whole point is that the direction will change.  Regardless, the peek into the future makes it all worthwhile.

So, what’s your excuse?

Even Scrooge had to give Sunday’s off, and I appreciate that dipping into your pocket hurts (I know people who took vacation or unpaid time off, paid their own way, and shared rooms just to attend last year.  This conference inspires sacrafice.) ,  but look at it this way, you’re getting access that only the largest and most important customers/partners get for the mere pittance of $325 if you sign up before 24 March 2010.  And you don’t even have to miss a single day of that unbounded joy we call work.  I hope to see you there.

15 January 2010

More cool stuff at Kaleidoscope 2010

Give back and get from Kaleidoscope

Kaleidoscope 2010 is coming (which reminds me, I need to write my presentation, but soon, gulp) and there are two awesome prequels to the conference itself, which is no slouch when it comes to awesomeness.

Schooldays

Every Kaleidoscope I’ve ever attended – a grand total of two, but give me time –kicks off with a volunteer day.  I wasn’t able to attend last year because of work pressures, but my bosses’ bosses’ boss was kind enough to take my place (thanks, Edward) so the very worthy alien plant eradication could take place.

These days are really a lot of fun (I did the one in New Orleans, so this isn’t mere puffery) because in addition to donating muscle to a worthy cause, you get to meet people you won’t be seeing during the conference proper as you obsessively shuffle between all of the cool Hyperion content here and here.  You won’t be?  Tsk.  I will.  But that’s my neurosis, so perhaps you should be grateful you don’t share it.  It is a heavy burden.

Yes, Oracle seems to own other products

As hard as it is to believe, it is my understanding that there are actually other technology tracks on offer at Kaleidoscope, although why anyone would leave the warm and cozy world of Oracle EPM is beyond my comprehension.

If you are similarly narrowly focused in your love for all things formerly owned by Arbor Software, this might be your only chance to meet the great people that use those other, obscure, products like PL/SQL…I wonder what it does.

And oh yes, give freely of your time.  See, virtue is its own reward, just like your parents told you.

A Descartesian Three

Nope, this isn’t the Wrong Kind of Join (see, I am not completely ignorant of the black art called CeeKewEl), instead you have three choices, all good.

Unleash your Inner Librarian on the Dewey Decimal System

Oddly, at my dear alma mater, Wossamotta U, the IT degree program was offered in the school formerly known as Library Science.  I am trying to imagine a major that would be less likely to get you a date on Friday night than the double whammy of geek + librarian but I am coming up short.  Of course I can be smug because I got my obsolete degree in MCIS in the business college.  And because I have been told many times that I am the living embodiment of Gary Cooper, Cary Grant, and William Holden rolled into one alpha geek.  At least I think that’s what they mean when I get called Walter Mitty.

In atonement for giving librarians (they are so going to revoke my library card and *all* library privileges, forever) and fellow geeks the raspberry, I will likely be that geek librarian and help them sort their books.  So now you know which task to avoid.

Tending to their garden

In keeping with the theme of great Frenchmen of the Enlightenment, perhaps instead I’ll help beautify the grounds at Ronald H. Brown Middle School.

My favorite part of the schoolday, recess

Or relearn hopscotch (in my case, learn it for the first time) and help paint on the blacktop the games of our halcyon youth.

You won’t regret it

It’s a great way to give back, ODTUG makes the transport easy, gives you eats, and you get to rub shoulders with people in very different parts of the technical world.  What’s not to love?

And now the amazing stuff

Would you like to know where Oracle is taking the EPM stack?  See the latest products and not suffer the pain of a beta?  Get product managers to ask for your opinion?  I can think of two ways to do this:
1)    Get a job at Oracle.  Get promoted at a pace so meteoric that the phrase “meteoric pace” is inadequate.  Take John Kopcke’s job.  Now you know all.  Can you do that in one day?
2)    Returning from Cloud Cuckooland, you could instead come to Sunday’s Oracle Hyperion EPM and BI Symposium and have it handed to you on a platter.  No, no thanks are required, this blog is here to help.

Oracle > Hyperion

Yes, Oracle is many, many times bigger than dear old HYSL ever was.  Yet somewhat unbelievably, they act like a small company, at least at Kaleidoscope.

I don’t know if it’s because Big Red really is a warm and fuzzy group of people, or that ODTUG is awfully good at getting to the right people at Oracle, or if it’s just the right alignment of stars, but the mix of altruism, self-interest, and personalities comingles into magic.  By that I mean Oracle comes to show you where they’re going in the near future, where they want to go in the mid to far future, and oh by the way, what do you Kaleidoscope attendees think about it?

We (or at least I) are not worthy

Think about that – Oracle is this enormous company that is asking you what you think of their product plan.  I’m not saying that they will do your every bidding, but it’s pretty astounding to me that they ask and act on comments from the hoi polloi of EPM geekdom.  That’s awesome.  Yes SmartView product team, I’m talking about you.  Thanks again for last year’s freewheeling session.  If I could just think of a word that was awesome * 2 and then apply it to last year’s symposium, I would.

Solutions != Kaleidoscope

I went to (and paid for) every Solutions conference there ever was.  I can’t remember anyone from Hyperion asking me for my opinion on a product.  Ever.  I know that much of the product development staff is the same so I’m going to attribute this welcome change to Oracle’s culture and Kaleidoscope’s awesomeness (there’s that word again).

It doesn’t stop on Sunday

And of course Oracle’s involvement doesn’t end there – they’ll be in sessions all through the conference.  About 1/3 of the presentations are given by Oracle employees.

You are going to be there, yes?

This is *the* conference to go to – amazing content from Oracle, partners, and customers, all those great (ahem) Werewolf games at night, and the chance to give back to the DC public schools.  You can’t miss it.

10 January 2010

EPMA weirdness and the kindness of strangers

Why I don’t do installations for a living

Oracle’s Enterprise Performance Management Architect has been giving me pain, agony, and general agita because I just couldn’t get the darn thing to work.  Nope, not what you think – it wasn’t what it did to a Planning database, I couldn’t even get it running enough to whine about its bugs.

Brief history – I needed to install the Oracle EPM stack – Shared Services, Workspace, Essbase, Studio, EIS, EAS, Planning, Calculation Manager, HFM, Financial Reports, and Web Analysis on my Windows 2003 Server VM.  No big deal, right?  Installations are much easier in 11.x, right?  Even an idiot (like yr. obdnt. srvnt.) could do it, right? 

Did I read Tim Tow’s blog post on how to install 11.x?  Oh, yes.

Did I read the instructions?  Oh, yes.

Did I bug people I know and respect deeply?  Oh, yes.

Did their combined wisdom help?  Oh, yes.

Did I need to zap my VMWare instance about 10 or 12 times, despite reading these documents and generally annoying people to no end with questions?  Oh, yes.

Some call it success

But after zapping 10 or 12 installations (oh, thank you, VMWare for not making me reinstall the OS on bare metal) I finally got the extraction order right for everything I need.  Hallelujah, praise be, & c.

Except for EPMA. 

Just for the record, this is one of those simple-stupid installations where I took the absolute default on everything.  That means:  SQL Server Express, install all of the Oracle EPM stack into a single SQL Server database, use admin/password and sa/password (yes, I know, stupid from a security perspective, remember, I used that adjective before), let the configurator do its work however it wishes.  Did I mention that several prayers were sent up to the Oracle at Delphi (that’s Greek mythology, not a mix of technologies) that all would work correctly?

I suspect it was one of those a-million-monkeys-type-for-a-million-years-and-come-up-with-Shakespeare moments, but somehow, everything worked but EPMA Process Manager.

What was EPMA’s problem?

As the Great Stoneface would have said, had he talked, “Damfino”.

Here’s a screenshot of the Event Viewer error message for the Process Manager’s failed service start:



 What on earth does this mean other than the @#$%^&*()_+! service doesn’t work?  Damfino.  Did I mention that I don’t do installs for a living? 

However even I can guess that there’s something wrong with SQL Server – it’s right there in the message.

People were anxious to help

I post from time to time on OTN (this is a joke, by the way, my obsession with OTN/Network54 almost matches my coffee addiction), and the Great and Good John Goodwin took time out to try to answer my question on OTN to no avail.  And I hijacked a thread on Network54 to try to get some help.  And that help happened.

And here’s where that help happened

Henceforth I am going to have to refer to John Booth as the Great and Good John Booth.  So, that would be the Great and Good Johns?

Somewhat incredibly, he took 30 minutes out of his Saturday (today, to be precise) to set up a GoToMeeting web session and fix my problem.

I’m amazed and humbled by his generous help – as you’ll see in a moment, I wouldn’t have figured this one out in, oh, eight or nine million years.  He went above and beyond and I really, really appreciate it.

Gentle readers (all three or four of you, and “Hi, Mum”), think about this for a second – a total stranger – someone I’ve only bumped up against a few times on the web, helped, a lot.  I think I may no longer be able to be a Card Carrying Cynic.  Sniff.

So, again, John, thank you so much.

The fix

Part of me is embarrassed, the answer is so simple.  But of course it’s simple when you know how to do it.  In case you haven’t deduced this by now, I think Mr. Booth knows what he’s doing.

So simple a developer could do it

Tim Tow mentioned it, sort of, in the Network54 thread.  Or maybe he did provide the answer, and I was too dense to understand. 

The fix I was shown was – go to SQL Server Configuration Manager, open up the SQL Server 205 Network Configuration, and then right click on TC/IP.

But before you get the fix, see why Jason Jones is not the world’s greatest fan of SQL Server Express.  And neither am I.

And here we come to a difference between SQL Server and SQL Server Express

By default, SQL Server Express uses a dynamic TCP port.  By default, at least on my VM, the TCP ports were set to 0, which means dynamic.  This is (I guess) good, because SQL Server Express can then go against any port that is open.  I’m no SQL Server dba, so I’ll leave it to one of those explain why this is good.

SQL Server Express 2005

Here’s the TCP setting on my SSE install:



See the yellow highlighted lines?  These are the culprits. 

SQL Server 2005

I have a real copy SQL Server, not SQL Server Express, on my laptop (not the VM, but the laptop all of this madness runs on), and guess what?



Note the difference on the TCP ports – these are already set to 1433, SQL Server’s default port.  And the dynamic ports are turned off.

That’s all there is to it

Yup, here it is in all its glory.  Set the TCP Port to 1433, click OK, and restart the SQL Server Express service.



Launching EPMA Process Manager

John then told me to try starting EPMA Process Manager.  The VM whirred and clicked and ground away and..ta da, it ran, and brought up the Job Manager, Event Manager, and Engine Manager services as well!  I believe my mouth was hanging open in disbelief.

Magic


He also recommended that I restart Workspace.  After I did that, we went into Workspace, navigated to the Dimension Library – and there it was, in all of its completely unused glory.  It was almost, but not quite, anticlimactic.

The conclusion

Thanks again, John

So to John Booth for taking a half hour out of his weekend – thank you so much.  You’re going to see links to this blog in both the Network54 thread and on Essbase OTN giving you full credit which of course you deserve 100%.  I hope to see you at Kaleidoscope 2010 and buy you the beverage of your choice.

The very least all can do in the meantime is check out his latest post on how to install the 11.x Essbase add-in without the multi-gigabyte nonsense that EPM installer puts you through.  Now that is a cool hack.

But no thanks to you, whoever you are

To some unnamed programmer(s) at Hyperion or Oracle – why on earth did you make EPMA communicate differently with SQL Server from the rest of Oracle EPM?  Nothing else required this setting change.  Once made everything worked, but why?  Maybe you wanted to drive sales of the real SQL Server?  Or drive Essbase hackers crazy?

The end of this post

So, hacking Essbase per the title of this blog?  Not exactly, more like hacking SQL Server, but diving into this stuff is always interesting, and when you have someone who is a hacker in his own right it’s always fun.

And gratifying when it all comes together.

15 December 2009

ODTUG 2010 is here! (Well, almost, but you can dream, yes?)

Introduction

Oh joy, oh rapture, it’s finally here.  And you can preview 2010’s schedule here with the proposed speakers.  Enjoy the incredible (Really, it is incredible, and if you’re reading this blog, you will enjoy it.  I promise.) quality and diversity of sessions. 

The sessions are fixed; the speakers assigned are provisional pending their agreement to present.  Speakers – you proposed these presentations, now you have to live up to your promise.  I guess I’m trying to say, the speaker names may change, a little, but hopefully not too much.

Thanks

How did this amazing schedule happen?

Well, there’s this guy named Edward Roske (who has this blog you may have heard of) the ODTUG Hyperion SIG’s content leader (I think I got that right) who literally worked through the night to put together a draft schedule, and of course the rest of the board that endlessly (or wait, was that me who wouldn’t shut up?) questioned, probed, kicked the tires, and generally massaged the schedule into the awesomeness you see now.  Being part of it was really exciting, especially hearing the passion and excitement that all board members brought to the process.  The quality of the board members (guys, I am not listing names here to preserve privacy – I may revise this blog and put in names if I get your okay) is incredible and it shows in the quality of the schedule.  Yes, of course without the speakers and their abstracts, there would be no schedule, but there were many submissions, and few spots to present.  Choosing who would actually present was not an easy task as the quality of the abstracts was so high.

NB – Edward, you are too public to get the privacy waiver, and besides, you did way to much work not to get the credit.

Abstract submitters -- thanks goes to all of you for submitting your ideas.  Please know that the quality of the presentations gets better and better each year and the number of submissions gets higher and higher.  If you didn't get in this year, please don't be discouraged.  There's always next year and it would be a shame if those who were rejected never tried again.  FWIW, I'm on the board and only one of my abstracts out of three got accepted and it got merged with another presenter.  So much for my cronies on the board.  :)

Next?

Okay, you’ve got the schedule.
 
Dream away.  Figure out what sessions/how you’re going to pay for/where in Washington, DC you’ll stay when you attend 2010’s ODTUG
conference.

Isn’t this the best Winter Solstice present ever?  Ever?

01 November 2009

Essbase and ODI – A Better Way


Introduction

If you want to know all things ODI and EPM, you are, unfortunately, reading the wrong blog (I like to think this one has some value, but I may be flattering myself). The right one is John Goodwin's More To Life Than This. Click on the title or see the links of blogs I Am Barely Worthy To Link To on the right. John's is usually first.

Once you've exhausted the aforementioned good stuff, and however reluctantly circled back here because there might be something of value here, you have probably also already made the first faltering steps into the awesomeness (and scariness) that is ODI. If so, you've also begun the ponder the lameness that is the Essbase Knowledge Modules.

Lameness, a Bit of Relief, and Lameness in the extreme,

The bad bits

  1. The data load performance is slow, which is lame.
  2. Additive data loads must use a data load rule (defeating much, no, make that all, of the purpose of using an ODI Essbase KM) and thus is lame.
  3. Many metadata load options are missing, e.g., allow moves, allow property changes, etc. This is lame in the extreme.
  4. When using a SQL source, the Essbase IKM creates a temporary text file. No wonder the performance is slow. Hey, guess what, this is lame, too.
(To be fair, this is about ODI 10.1.3.5 – who knows what Essbase goodness Oracle will bake into ODI. But that is the future, and this posting addresses the present of October, 2009.)

The good bits that make up for the above

Negative thoughts

It isn't HAL. J That product had "You really wish you didn't have to use me, don't you?" right there in the application title bar so you could always see it when you used it. It was sort of taunting you with its limitless mediocrity. Yes, I hated that product.


Positive thoughts

I swear when I look at ODI Designer's application title bar I see, "Art thou smart enough to master me, unworthy knave?" (Here's a question: When supernatural characters speak in movies, why do they always revert to courtly language from the Middle Ages? Why not ancient Greek? And when the subject is Greek mythology, why does everyone have Received Pronunciation accents? Especially since England didn't exist at the time? Oh, there was Boadicea, but she fought the Romans, and besides, she was a Celt. Perhaps I was scarred by drinking too deeply from the well of Clash Of The Titans. But I digress. Again.)

To say ODI != HAL isn't fair to ODI – it's actually a tremendously powerful, flexible, and complicated (we consultants love that last bit, as it equals $$$ and geek adulation) product. You can do all kinds of magic with it. Okay, that is sort of like saying ODI = HAL * -1.


The ultimate lameness

Also, and this is the deal breaker for many, if you are a Planning or HFM customer, and got ODI for "free" along with your Hyperion-branded product, I am here to tell you that you can't actually use ODI's Essbase KMs. Nope, sorry, can do but won't, better luck next time, & c. – your license doesn't cover Essbase.

Ah, I can see you, through the power of my mind, your reaction upon receipt of this news. Sputtering with indignation, face purple with rage, fists tightly clenched as you tremble with anger, blood rushing through your temples, heart beating fast with…eh, that's laying it on a bit thick. Let's just say you're annoyed and wonder why Oracle bothered to bundle the Essbase KMs when in fact many (most?) Hyperion EPM customers can't use Essbase.

Well, you can download all of Oracle's software for free from http://edelivery.oracle.com. But just because you can doesn't mean that you're legally able to use those products in production.


Dewey, Cheatem, and Howe

Obligatory groveling before the powerful and mighty:
Dear Oracle Legal – I love lawyers, I am related to lawyers, one of my childhood friends is a lawyer (and is married to another lawyer and they are as nice as can be – I think their kids are going to be lawyers and they're peaches), and I have, on multiple occasions, have been happy to use the services of lawyers, so please don't get angry with me. Laugh, it turns those frowns upside down.


A hypothetical

What happens if you use ODI against Essbase without a valid license (I am no fool, I wouldn't do it, so this is a geek's guess) and "someone" tells Oracle?

I am envisioning a phalanx of highly motivated, supremely trained, and completely ruthless lawyers with red Oracle logos on their business cards (or would that be whatever firm(s) they have on contingency – it doesn't really matter) sending multiple, and increasingly threatening nastygrams to your firm's legal department. Which is going to bring down the Hammer of Thor on you, courtesy of your manager, your manager's manager, etc., etc. all the way up to who knows where, robustly prodded on by your firm's general counsel. Ouch, that hurt your head, didn't it? Or was that the feeling when your derriere bounced off the sidewalk in front of your office, pink slip firmly grasped in hand?


True story
Once upon a time, in a different century, I was distant witness to a Hyperion customer who thought he'd get an Essbase development environment for "free". Big Mistake. No, I did not drop the dime on him (I didn't even know about it till the deed was done, as I was blissfully developing deep in "testduction"), but the resulting monetary fine (I never did find out how much) and concomitant misery was painful to watch, if well-deserved.


Is there a way out?

Guess what, you can use ODI, and it can talk to Essbase, and you aren't going to be in violation of your Planning/HFM-derived license, and there will be no lameness involved. Of course if this post disappears into the ether, guess what – this is a violation of your license, but I don't think so because we are deep-sixing the Essbase KMs, lock, stock, and barrel.


MaxL to the rescue

Legalities aside, this approach is way more flexible because it ignores, gives the cold shoulder, and generally 23-skidoos the Essbase KMs. Instead, it uses what may, in the Essbase universe at least, be truly the Most awesome excellent Language ever, MaxL.

No, in your feverish perusal of all things ODI, you did not miss the MaxL KM. There isn't one, and besides, it isn't necessary, because you can run it from ODI's command line object.



Variability is the spice of life

And when MaxL's command line parameters, as described in my last post, are combined with ODI's Variables, you can drive any Essbase command that you want from within MaxL – it's powerful medicine.


How does this work?

Take one fully parameterized MaxL script

To take advantage of this approach, you're going to need a fully parameterized MaxL script. There's one right below:


The following values have been made into variables:


Pay attention

My meandering through this stuff isn't boring you, is it? Did you catch the important, world shattering, and moderately clever variable usage above? Did you see how the $4 refers to a dimension-specific error file, a MaxL process-specific log file, a MaxL process-specific error file, and the name of the dimension load rule itself? Two little characters replace so much hardcoding it gives me goosebumps.

This dimension load rule can be used on any server, any application, any database, any dimension and any SQL-sourced load rule. One script, many uses. My ranting may be boring, but there are isolated nuggets of real value here.


Okay, but so what?

Don't MaxL parameter variables require a command line? And how is that going to happen with ODI, which isn't exactly a command line scripting language?

To the contrary, ODI does have a command-line object – it's one of the many objects you can use in a Package (a collection of ODI interfaces and objects used for automation streams). And running a MaxL script from the command-line object is just like running a MaxL script from a real command line, only better, far better.


A combination full of potential

ODI has this thing called Variables which are, wait for it, variables that can be set from within ODI. Are you seeing the potential yet?

Let me draw you a picture using words

The idea is:

  1. Use the dimension and data load rules that you have known since the Year Dot and enjoy the performance and flexibility that the rules are rightly known for.
  2. Hard code absolutely nothing in your MaxL code other than the most general of tasks, i.e, login, load data, run a calc script, etc. Flexibility? This approach is practically slopping over with flexibility.
  3. Drive all of the MaxL parameter variables in your MaxL script with ODI variables.
  4. Be happy with the knowledge that you're doing things a bit differently, and dare I write, even a bit cleverly, and integrating your Essbase processes side by side with your Planning and HFM processes. You are hacking ODI and Essbase. Aren't you the clever one?
  5. Take items one through four and then wrap even more ODI goodness around your code. Maybe thou art worthy of the tool called "ODI".

What is an ODI variable?

In this example, ODI variables are set up within the context of a project. There are several types of variables, in these examples they are going to be alphanumeric historicized variables.

Assigning value

Variables can get a default value when they are created. You can assign values to Variables on a Package by Package basis. That's nice, but not tremendously helpful if you're trying to use variables in automation as that would result in needing duplicate copies of Packages with differently locally assigned values. Why?

Packages within Packages

However, when Variables are used in a Package, and that Package is compiled to a Scenario, it turns out that we can value that Scenario's Variables by encapsulating the Scenario within another Package. Sounds tricky, but isn't.

Steps


  1. Declare a Variable in ODI by going into Designer, opening a project (or creating one if it never existed), right clicking on the Variables node, and inserting a Variable as shown:



  2. Make sure it's an Alphanumeric, Historicized variable. I like to name my variables with a VAR prefix so I know what it is when I view objects in a list (those icons are small).



  3. Create variables – I'm going to create an ODI variable for each and every one of my MaxL parameter variables.



  4. Create a Package, and drag and drop the variables into the package, making sure to connect them (order not really important).


    When you drag them over, do not set the Type as the default value of "Set Variable". This will allow you to define the variable values within the Package, but you want more, oh so much more than that. And, you will spend 45 minutes at 11:30 pm about two steps later in this process trying to figure out why the process doesn't work when you know it ought to. Good times, good times.



Instead, be sure to define them as Declare Variable. This will make those Variables drivable through a Scenario-within-a-Package. Don't worry, it's less confusing than it seems.



  1. If we were running the MaxL script from the command line, the order of the strings would look something like:
    1. Essmsh
    2. MaxL script name
    3. Essbase username
    4. Essbase password
    5. Server
    6. Essbase object name
    7. SQL username
    8. SQL password
    9. Essbase application
    10. Essbase database
    Or something like:
    c:\Hyperion\common\EssbaseRTC\9.5.0.0>essmsh c:\temp\dimbuild.msh essadmin essbase d630 Mkt sa Password Cameron Basic

This string is what needs to go into the OS Command object and then get ODI Variablized. I just invented that word, please pay me 15¢ whenever you use it in conversation. This will result in ODI Variables driving MaxL parameter Variables and my eventual independent wealth and early retirement. No, no, thank you. And yes, this round is on me. Same again, barkeep.


  1. Examine the properties of the OS Command Object, which you have cleverly renamed MaxL Dim Build by clicking on the object and then clicking on the edit button that looks like a No. 2 pencil.



  2. Back in reality, like I wrote, the goal is to take the above command line string and Variablize it. It will look something like this:



 

Things to note:

  1. The command leads off with a "cmd /c" string. Basically this is a way to get the command shell to launch and then terminate. Go to a cmd window (oh, the irony) and type "cmd /?" to get a full list of parameters. Only the /c is needed for our purposes. If you don't put it in, the command won't work. It isn't obvious to me why this is so – I can use the Start->Run->essmsh combination in Windows and the MaxL shell is launched, but this is the way it works.
  2. The path to MaxL shell (essmsh.exe) and the MaxL script (filename.msh) should be fully qualified.
  3. ODI Variables are referenced by placing a hash/pound sign in front of the variable name, e.g., VAR_Essbase_Username is typed as #VAR_Essbase_Username.
  4. When recognized, ODI turns the color of the Variable to blue. This is a good syntax check.

  5. You can either manually type in the name, or expand the Project Variables, click on the variable you want, and it's in the command line string.



 

Compiling the Package

For some reason, you cannot encapsulate a Package with a Package. But you can encapsulate a Scenario within a Package, which in turn can be a Scenario so it can all be scheduled or run from the real command line.

There are several ways to do create a Scenario. The method I like is to close the Package, right click on it, and select "Generate Scenario".




When complete, you will see a shiny new Scenario all ready to go.




This is what you're going to use as a target for your calling Package. Think of it as a parameterized object with the parameters being the Variables and the Object being your MaxL code. If you were sufficiently daring, crazy, wild, sloppy, etc., you could actually modify your MaxL script so long as it retained the same name and location to do different things. I wouldn't do this as creating new Packages/Scenarios isn't really all that hard and it keeps things a little more understandable.


That other Package

Now create a new Package to control the Scenario you just created. I called mine PKG_LAUNCH_MAXL_BLOG_DEMO but that's just me.

Now drag your Scenario into the Package Diagram.




When you click on the Scenario, you will notice a Properties window. Click on the tab called Additional Variables.




Click on the Add button that looks like a grid and then click on the cell in the Project column. You will see whatever project you are working on. Do the same in the Variable column. Dropdown controls live! Enter whatever value you want for the Variable itself.




Once you have assigned all of the values you are good to go.




Click on OK to apply the changes, and run the Package from the Projects pane.




Click on the OK button and MaxL is GO!

How do you know it works?

Well, if you weren't going to get any fancier, you could just check the directory of wherever the logs and error files are supposed to be.




And if I look at the log file, yup, it works:




Of course, if I were an ambitious sort, I wouldn't stop with a log file that I manually examine.


15 Years of Code Down The Drain in Eight Hours or Less




ODI's awesomeness means that you can parameterize a MaxL script in a Package, Variablize (that is now 30¢ you owe me) it, compile it to a Scenario, encapsulate that Scenario in another Package, and drive emails off of log and error file existence all in the space of one working day. I was gobsmacked when I did it.

I have a library of code that I take from client to client and to get all of the above working and tested in a new environment would take me longer than a day. And I was learning as I went along. Yes, I am a legend in my own mind, but I'm trying to impress upon you that this was all pretty easy once I figured out the theory of how this would work. I won't be using that code again. You shouldn't either.


What are the takeaways?

  1. ODI is awesome
  2. The Essbase KMs leave something to be desired
  3. MaxL and load rules, well, rule
  4. ODI can do anything (almost anything?) you could do in script better, faster, and sexier.
  5. Hacking two products at the same time is more fun than one. J
This is only scratching the surface of what ODI can do.