by October 1, 2011 0 comments

Sufyan bin Uzayr, Freelance Writer, Graphic Artist, Photographer,

Most SMEs run multiple business apps, with little or no synchronization between them. The situation works fine as long as you don’t need to pull out a consolidated report of the data being churned out from these apps. But if you intend to make strategic business decisions, you will need to interpret and make sense of this data. This is where Business Intelligence, or BI, comes into play!

Applies to:
SMEs, businesses
USP: Learn to implement business intelligence using a popular BI tool
Related articles:BI: Freedom from Excel Sheets ; Business Growth With BI
Search engine keywords: business, intelligence, spago, bi

Understanding BI

In simple terms, BI comprises of techniques that can be used to extract, identify, locate and interpret business data. Such data may include details of sales and revenue, cost-expenditure logs, etc. While larger organizations tend to employ BI for data or text mining as well as benchmarking, SMEs generally use Business Intelligence for analytic and predictive purposes.

This is how Wikipedia defines BI: “BI uses technologies, processes, and applications to analyze mostly internal, structured data and business processes while competitive intelligence gathers, analyzes and disseminates information with a topical focus on company competitors.”

The major purpose of implementing a BI mechanism is to help SMEs assess their growth and progress as well as make decisions for future plans.

With the introduction out of the way, let us turn to implementation of BI to suit our needs. The two most popular suites for BI implementation are Pentaho and Spago. The process is the same with either of them, excluding minor variations.

Pentaho: Pentaho is a cost-efficient open source BI implementation program that lets you build highly versatile BI mechanisms. It is well known for its mobility features. While Pentaho is the industry leader when it comes to open source BI, its vast plethora of services may seem unused from an SME’s point of view. (

SpagoBI: This is an complete Business Intelligence Suite that comes pre-loaded with numerous components and modules. SpagoBI too, just like Pentaho, is open source and seems ideal for SMEs. (

Implementing BI using SpagoBI

Before going further, you will need to download the SpagoBI software from view/SpagoWorld/Download. SpagoBI can run on any operating system that supports JVM 1.5 (all major operating systems such as Windows XP Server, Ubuntu 9.10 and above, RHEL 4+ and Windows 7 support JVM 1.5). In order to store the metadata and other configuration related information, you will need any one of these DBMSes:

MySQL 5.x
Oracle 9.0+
PostGRE SQL 8.2+
IngreSQL 9.2/9.3

Lastly, you may need an application server such as Tomcat 6.0.18, WebSphere 7 or jBoss 4.0.3.

In this article, I’ve implemented it under Crunch Bang Linux (a derivative of the Ubuntu and Linux Mint family) using Chromium web browser. Spago supports almost all major web browsers, so that will not be an issue.

Installating SpagoBI

In order to install SpagoBI, follow these steps:

1. You will need to install JDK on your computer, if it isn’t already installed.
2. Next, download Tomcat from http://tomcat. Once done, unzip and install it.
3. You will now need to install the SpagoBI metadata DB. The procedure varies for each DBMS used, for instance, if you are using MySQL, you will need to execute the following:


4. After this, you need to set up the data source and environment variables. In order to set up data sources, you can insert this XML code under :

name=”jdbc/spagobi” password=”root” type=”javax.sql.DataSource” url=”jdbc:mysql://localhost/spagobi” username=”root”/>
name=”jdbc/something” password=”root” type=”javax.sql.DataSource” url=”jdbc:mysql://localhost/something” username=”root”/>

This will set up the connection pool for the SpagoBI metadata and for the sample term ‘something’.

Now, to set up environment variables, insert this code under :


Following that, you need to edit the /webapp/SpagoBI/WEB-INF/conf/config/ initializer.xml file as under:

The interface

SpagoBI supports different profiles for users, administrators and developers. Some of the noteworthy components of the interface are:

Publication Workflow: This manages creation, test and validation cycle for BI documents such as reports, graphs, etc. The major components used for reports include JasperReport and BERT while those for analysis include JPivot and JPalo.

Data integration: Since 2009, SpagoBI has been using the SpagoBI Studio, that integrates Eclipse IDE to allow development of reports and configuration of various engines. Along similar lines, SpagoBI Meta is also evolving, which shall act as a semantic layer for reporting engines.

//screenshot — spago1.jpg

The mode of operation of the general SpagoBI interface is extremely simple and is backed by extensive documentation and help files. Let us now take a look at some of the advanced operations:

Tweaking SpagoBI

Configuring the engine: In Spago 3, by default, all engines are configured. But if you wish to do so manually, you can use the Engine Management option present under Resources. There are two types of engines: Internal, which are installed in /SpagoBI context, and External, which are installed in a specific context. In case of internal engines, you simply need to specify the implementation class.

//screenshot — spago-engines.png

For each type of engine, you can set multiple options such as label, name, description, document type, engine type, data source and data set.
You must note, however, that if you are using engines such as Chart, GEO, DashBoard, KPI, BIRT and JasperReport, you will have to check the Data Set. Similarly, if you are using engines such as BIRT, JasperReport, JPivot and JPalo, you will have to check the Data Source.

Configuring Logging: SpagoBI uses a J2EE Application Framework that can be changed in /webapps/SpagoBI/WEB-INF/conf/config/tracing. xml For instance, if you wish to debug, you can set debug to ‘true’ in the following code:

Configuring the mail server: Mail server details are the same as those on your enterprise’s email settings. Under Tools–>Manage Configurations, you can edit the scheduler, kpi_alarm and user profiles.

Configuring the DBMS and database schemas: If you wish to configure the DBMS settings, the file to alter is hibernate.cfg.xml :


In most cases, you just need to edit the above property clause, according to you database server. For example, if you wish to add a new schema, simply use this code:

(where name of the schema is the database schema’s name).

//screenshot — spago-config.jpg

Configuring themes: Themes can only be changed in SpagoBI version 2.1 and higher. Also, the option to change themes is available only if more than one theme is installed. The process to select and activate a theme is fairly straight forward. If, however, you wish to install a theme using the XML code, simply implement this snippet in the spagobi.xml file:

where ‘theme name’ is the name of the theme.


Implementing a BI solution can be a challenging task. While the interface and usage methods are straight
forward in nature and do not demand great level of
expertise, the installation and configuration is an equally daunting endeavor. While SpagoBI seems to suffice for most SME usages, you may also consider taking a look at Pentaho — an equally efficient BI implementation solution. In either case, BI implementation, if done well, can save your enterprise a lot of efforts and resources in the long run!

No Comments so far

Jump into a conversation

No Comments Yet!

You can be the one to start a conversation.

Your data will be safe!Your e-mail address will not be published. Also other data will not be shared with third person.