Pages

Saturday, 20 April 2013

Manually Enabling BI Composer after Upgrade


This is a two step process:

Firstly you need to extend the Weblogic Domain


1. Shutdown all services - Node manager, Adminserver, Managed Server and OPMN.
2. Start the Configuration Wizard for Weblogic (in the Tools Menu)
3. On the initial scree select Extend an Existing Domain.
4. Next, select the location of your existing domain (bifoundation)
5. On the Select Extension Source screen, select Extend my domain using an existing extension template and enter the location of the oracle.bicomposer_template_11.1.1.jar file.
Usually in ORACLE_HOME/common/templates/applications/oracle.bicomposer_template_11.1.1.jar
6. Continue with the remainder of the Configuration Wizard screens to apply this template.
7. After the template is applied, restart all Oracle Instances, the Administration Server, Managed Servers, and Node Manager.


Secondly - Manually Enable BI Composer:


If you run the Configuration Assistant or the Configuration Wizard, then that program installs the files that are required for BI Composer. Before users can run BI Composer, you must manually enable BI Composer using an MBean.

Start enterprise manager http://yourserver:7001/em

To manually enable BI Composer:

Display the Fusion Middleware Control MBean Browser and lock the domain.

Navigate to the following folder:

Application Defined MBeans,
oracle.biee.admin,
Domain:bifoundation_domain,
BIDomain.BIInstance.PresentationConfiguration

Locate the following MBean:

oracle.biee.admin:type=BIDomain.BIInstance.PresentationConfiguration,biInstance=coreapplication,group=Service

Set the value of the BIComposerEnabled attribute to "true".

Commit the changes and restart the system.

To use Composer as your report creator.

1. Login as normal to OBIEE analytics.
2. Select "My Account"
3. In more recent versions of OBIEE fill in the Wizard radio button in the Analysis Editor section. In older versions of OBIEE you change the Accessibility Mode to ON.

Now when you create a new analysis you will build your "answers" in BI Composer.



Friday, 19 April 2013

OBIEE TNSNames Revisited


Following on from my previous article on OBIEE and the tnsnames file.

If for some reason you have no access to the OBI server, and you have a tnsnames.ora file do not despair.

It is entirely possible to configure a database connection within the connection pool settings. But bear in mind this is not very portable, especially with regards to promoting repositories to production - you will have to edit these details manually, and should be used sparingly. There is a "higher" risk of mistyping details.

So how does it work?


To configure the Oracle BI repository:

1. In the Administration Tool, open the repository in online mode. Online mode is strongly recommended for performing data access security tasks.

2. In the Physical layer, right-click and select New Database. The Database dialog is displayed.

3. For Name, enter a name of your choice.

4. For Database, select the type of database that you have installed for use with Oracle Business Intelligence (typically Oracle 11g).

5. Select the Connection Pool tab and click the Add button. The Connection Pool dialog is displayed.

6. For Name, enter the connection pool name you require.

7. Select the Call interface appropriate for the database (for example, OCI 10g/11g for Oracle Database). For Data source name, provide the information that is appropriate for the database that you have installed and configured for use with Oracle Business Intelligence. For example, for Oracle Database, enter a connection string similar to the following:

(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.130)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=BIOracle)(SID=BIOracl)))

When connecting to an Oracle Database data source, you can include the entire connect string, or you can use the net service name defined in the tnsnames.ora file. As we have no tnsnames file to provide a net service name we use the method above.If you examine a tns entry in the tnsnames.ora file you should see that it is a fairly straightforward job to build the required string above.

8. Select Shared logon and enter values for User name and Password. In this step, you provide the user/schema name and password that you require to access the physical tables/views/synonyms.

9. Click OK in the Connection Pool dialog.

10. Click OK in the Database dialog.

Friday, 5 April 2013

OBIEE 11.1.1.7 Upgrade

I have just upgraded a test server from OBIEE 11.1.1.6.2 BP1 to the latest and greatest version 11.1.1.7

After past experiences of upgrade I was half expecting to have no nails left and be pulling my hair out, but this time it went right.

Note: If you are running a simple install, ie. everything runs from port 7001, this whole process will not work for you, and at some stage in the next week or two I'll document exactly what you have to do.

This is for the Enterprise Install only.

Software Only Installer

1. Shut down all BI processes, OPMN and node manager.
2. Run the installer and choose Software only install.
    The installer will do a few checks.
    Find the default middleware home
    Find the weblogic install
    and finally start the install.

So that is fairly painless and in about 20 minutes or so you have updated binaries.

Patch Set Assistant

1. Navigate to {middleware home}/oracle_common/bin directory
2. Run psa.bat
3. Select the component to upgrade. (Oracle Business Intelligence)
4. Then, much like most of the GUI installers, fill in the connection details of the MDS and BIPLATFORM schemas.
5. Once you verify you have backed up and are running an appropriate version of the database
6. You are asked to upgrade.

Start Weblogic

Now start the Node Manager Service 
and, navigate to {middleware_home}\user_projects\domains\bifoundation_domain\bin
and run startWebLogic.cmd
When the server is in the running state

Configuration Assistant

1. Start the configuration assistant
   {middleware_home}\Oracle_BI1\bin and run config.bat
2. Select the upgrade option
3. Fill in the details to connect to the admin server (usually 7001)
4. And off it goes.

The configuration assistant will do stopping and starting of all the appropriate services at various times and leave you with a updated OBIEE 11.1.1.7 

Compared to the previous updates this was easy, but be warned, updating a simple install means that you have to do all the steps covered by the configuration assistant manually.

I'm just getting to grips with the new features and visualisations, and hope to bring you more over the coming weeks.

Update
Here are the manual steps for upgrading a simple install. Please keep me informed of any issues you encounter.

Wednesday, 3 April 2013

OBIEE 11.1.1.7.0 now available

Over the Easter break Oracle released the latest incarnation of OBIEE 11.1.1.7.0.

Follow the link to the Oracle page and select the download tab.

http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/overview/index.html

For those of you interested in upgrading to the latest and greatest, now's your chance. I'll include be upgrading myself and will let you know how it goes, and what to watch out for.

I have successfully upgraded a server to 11.1.1.7 and you can read about it here, it's sooo easy for once.

For those of you with a simple install (everything running on port 7001) it is slightly different so also read this article.

Tuesday, 2 April 2013

OBIEE and Oracle TIMESTAMP WITH TIME ZONE columns


A short one today.

I recently had cause to report off a table (lots of dynamic real-time stuff) where there was a column defined as TIMESTAMP(6) WITH TIME ZONE.

Unfortunately OBIEE doesn't seem to understand this too well, and anyway all I'm interested in is the date and time, all the timezone stuff is not required for reporting (phew).

There is a way to change the TIMESTAMP(6) WITH TIME ZONE column to a date and it passes a couple of the best practice tests, mainly that it is performed in the database, as far back down the chain as possible and secondly that no new invented code is used, only existing Oracle functionality.

The column in question is LOG_DATE defined as TIMESTAMP(6) WITH TIME ZONE, and to change this to a date column use CAST.

CAST (log_date AS DATE) AS log_date

As the command is fairly self explanatory, I'll stop here.

Tuesday, 19 March 2013

OBIEE Maintenance Mode

Setting the maintenance on makes the system readonly. This feature is of particular importance to us when you want to do maintenance activities but still allow the users to access the application. Users will not be able to save any reports and thus maintain the consistancy of the webcatalog.

You need to be able to access the Administration page from your answers login.

The maintenance mode can be toggled ON/OFF on the main OBIEE page when you login to analytics with the link http://servername:port/analytics. At the top right corner of the page click administration link, on the resulting page under Maintenance and Troubleshooting section, you will notice the link toggle Maintenance Mode. Click the link to turn ON/OFF. In a clustered environment the mode can be toggled on each node separatley.

When set ON, users will recieve a message saying the "System is in Maintenance Mode. Please Try again later". whenever any user tries to save a report.

This means that you as administrator can lock down changes to the dashboard and catalog while a release is underway, a backup is taking place, .... Usually some activity where it is ideal that no changes are being made until the operation completes.

Tuesday, 5 March 2013

OBIEE and Oracle INTERVAL DAY(3) TO SECOND(2)


How can I get the time difference from an INTERVAL DAY TO SECOND column?

Push the requirement back to the database if possible and we will use a 'trick' of SQL and dates to return a number result as if we had subtracted one date from the other. I'll leave the different calculations you may need to get the difference in hours etc... What I was interested in was the difference in seconds.

Assuming that the column in question is RUN_DURATION and has been defined as INTERVAL DAY(3) TO SECOND(2)

Aside/hint: We can add an interval to a date and the answer is date.

We will add the interval to a date and then subtract the date, yes I know it sounds like one of those trick mathematical quizzes that children are so fond of.

our RUN_DURATION is wrapped as follows

(SYSDATE+RUN_DURATION-SYSDATE)*86400 AS RUN_DURATION

The answer is given as the difference between two dates as standard in Oracle where 12 hours is 0.5 of a day. Multiplying the answer by 86400 gives me the answer in seconds.