Extract Essbase Outline To SQL Database
Extract Essbase Outline To SQL Database
Database?
By Chris Rothermel, Rothermel Consulting
This article highlights how a utility from Applied OLAP can save time
and development work by exporting Essbase outlines to SQL. Having
outline information in SQL makes Essbase outline information available
for ETL processes and also for historical comparison.
Alternatives
There are other options to export metadata to SQL such as:
Using IBM Cognos Integration Server (formerly Star Analytics
Integration Server)
A custom solution using the Oracle Data Integrator KM
o or the similar old Informatica KM that came with DIM
A custom solution using MaxL/XML parsed and loaded to SQL
loader
A custom solution using the Java API
All of these other solutions incur a cost of either complexity,
development time, or software license purchase. The Outline Extractor
really is a custom solution that uses the Java API; however, it is pre-
built and provided to the community for free. Instead of having to
make a build or buy decision, the Outline Extractor gives an even
simpler option: download. Thank you, Applied OLAP.
Overview
This article highlights the use of these three features:
1. Support for the super-fast MaxL Extracted Outline format
2. Configuring relational databases (RDBMS)
3. Configuring command line execution for automation
Use Cases
Run the Outline Extractor on a regular basis and keep historical
records of the extracts in a relational database so we can
monitor changes between dates
Use the information in the SQL tables to provide to ETL process
Perform ad hoc queries on the metadata
Step 1 Download the Outline Extractor
Navigate to AppliedOLAP.com / Resources / Free Tools / Outline
Extractor / Download Now
Step 1 Summary
The tool is provided by Applied OLAP and is free of charge.
Download the latest version.
Step 2 Install and Launch the Outline Extractor
The tool was written in Java, and all it needs to for installation is to be
unzipped. Make sure you put it in a directory where you have full
read/write/execute permissions. I encountered trouble on a client PC
when I put it in the C:\Windows\Program Files directory, so dont put it
there.
Step 2 Summary
Installation requires unzipping the file.
Java is required (chances are good you already have it installed)
and know your JAVA_HOME
Step 3 Test It by Exporting an Outline to a File
View the supplied documentation
(OutlineExtractorDocumentation.docx) to understand the process of
using this tool to export to a file. OTDUG members can also see Tim
Tows Kscope15 presentation on the utility.
Test: You should be able to use this utility to find Sample.Basic in
your environment and export all of the dimensions to a file.
There will be many files created by the Outline Extractor, and there are
many very useful formats.
Step 3 Summary
Follow the instructions provided and export an outline to a file
format.
Use the new MaxL Outline XML process because it is faster than
the older process.
o Thanks for the performance increase, Oracle!
Step 4 RDBMS Configuration
At Tim Tows Kscope15 presentation, I was most excited to learn the
tool has the ability to export to relational tables. It took some
additional configuration to get this to work with the Oracle RDBMS, and
Im writing to share what Ive learned.
The Outline Extractor has the ability to talk to many different relational
databases, but it may require some configuration. Microsoft SQL server
users will be happy to know they simply need to enter their credentials
into the tool and no other modification is need. Oracle users, however,
will need to download the specific Oracle .jar file to enable the Outline
Extractor to know how to communicate with an Oracle database.
Otherwise you will encounter this error message when you hit the
Commit & Test button:
Restart the Outline Extractor and test to see the database connectivity
is now established, thanks to the jar file and path settings.
Open a new instance of the Extractor and you should be good to go.
Make sure you use the Commit and Test button and get a successful
connection as well.
Step 4 Summary
Additional jar files may be needed in the /lib directory to
establish RDBMS connectivity.
Modify the Outline Extractor command file to set
GUI_CP=lib/name_of_jar.jar if your RDBMS needs a jar file for
connectivity.
Step 5 Summary
Tables are created by the Outline Extractor utility.
o Proper RDBMS permissions are needed by the user ID.
Properties files can be saved.
The job can then be executed at the command line, and it will perform
the outline extraction for all of the listed properties files.
Step 6 Sample SQL Queries
SQL queries can be written to answer questions about the cube such
as:
How many members are in the outline?
What are the L0 members in the outline?
What are the members with member formulas?
7460876 Caffeinated 3
7460876 Market 25
7460876 Year 17
7460876 Product 22
7460876 Ounces 5
7460876 Scenario 5
7460876 Measures 17
7460876 Population 15
10 rows selected
SELECT mbr.*
FROM cached_outline_members mbr
,cached_outline_versions vrs
WHERE mbr.version_id = vrs.id
and Level_Number = 0
and vrs.id = (SELECT max(id)
FROM cached_outline_versions
WHERE APPLICATION = 'Sample')
What are the members with member formulas?
Thanks to:
Id like to echo Glenn Schwartzbergs comment that we all need to
thank Applied OLAP. In particular, Id like to thank Tim Tow and Jay
Zuercher at Applied OLAP. Special thanks to Jeff Cunningham, who
successfully tested these steps in his Essbase and Oracle RDBMS
environment and for finding my typos. Thanks also to ODTUG for
Kscope and giving me the opportunity to write this article. Please send
us a note if you have something you think the EPM Community can
benefit from.
APPENDIX A Screenshot of Sample.Basic Export and
Saving the Properties File