Tuesday 19 February 2013

How to install OBIEE 11g patch 11.1.1.6.8


How to install patches is something I’m asked about quite frequently. Like many Oracle patches it can be a bit daunting if you’ve not done it before, but actually it is quite straight forward. Here’s how.

In this example I’m installing the OBIEE 11.1.1.6.8 patch on top of a base OBIEE 11.1.1.6.0 installation.

The process uses Oracle’s standard ‘opatch’ tool and basically consists of four steps:
  1. Download the required patch files from oracle support
  2. Perform any pre-patch tasks
  3. Perform the patch 
  4. Perform any post-patch tasks

Start by downloading the required patch files from support.oracle.com. The patch set consists of seven zip files, each of which patches a different part of OBIEE – always install all of them, don’t try to just load those you think you need!  These are the patch numbers:

13952743
16094198
16094192
16080520
16094205
16094211
16067995
16097082

They can be found on oracle support by searching for the product Oracle Business Intelligence, version 11.1.1.6.8 along with your operating system.

Note: there is always a ‘master’ patch file which contains the installation instructions – usually this is a very small file and is usually referred to by the other patch files. For patch 11.1.1.6.8 this file has the patch number 16094198. Its readme.htm file contains the full instructions for installing the patch set, including listing the other patch files you need.

In addition to the seven patch files, there is an additional patch for the JDeveloper deployment within weblogic that is required. All OBIEE 11g patch sets mention including this, but you only need to install it the once – you can ignore it if you have already patched OBIEE beyond 11.1.1.6.0. If you try to install it again the opatch tool will merely report that it’s already installed and discard it.

In this case I have downloaded the patch files for Windows 64bit. The top file 13952743 is the JDeveloper patch, the other seven are for 11.1.1.6.8.  I will try to give instructions below for both windows and unix/linux.

There are multiple references below to <obiee_home>. This should be replaced with the actual directory where OBIEE resides, e.g. c:\app\oracle\product\obiee, under which are the obiee directories instances, Oracle_BI1, oracle_common, user_projects etc.

Once downloaded the patch files need to be unzipped.

Unzip the Jdeveloper patch file (p13952743_111160_Generic.zip) to the <OBIEE_HOME>/oracle_common directory. This will create a subdirectory in this folder:


 Unzip the rest to <ORACLE_HOME>\Oracle_BI1:



Make sure you have connected to the server using the user-id that the software is installed under - not administrator or root on Linux unless is was installed under these (which it probably wasn’t).
Stop all OBIEE and Weblogic services – the way you normally do using whatever script/processes that were setup when OBIEE was installed.

There are a couple of pre installation tasks that need to be performed.

Firstly take a backup of the OBIEE files that would have been modified for your installation (unless this is a new build):

Either backup the entire <OBIEE_HOME> directory structure, or as a minimum the following folders:
<OBIEE_HOME>\bifoundation

<OBIEE_HOME>\instances\instance1\bifoundation\OracleBIServerComponent\coreapplication_obis1\repository

<OBIEE_HOME>\instances\instance1\bifoundation\OraclePresentationServerComponent\coreapplication_obis1\catalog


(or wherever the catalog is located if you have moved it)

Also one specific file which will be overwritten by the patch if you have modified it:

<OIBEE_HOME>\Oracle_BI1\bifoundation\jee\mapviewer.ear\web.war\WEB_INF\conf\mapViewerConfig.xml

Now you need to clear the Catalog Manager binary cache files from the directory
<OBIEE_HOME>\Oracle_BI1\bifoundation\web\catalogmanager\configuration\

delete the subdirectories org.eclipse.osgi and org.eclipse.equinox.app if they exist:


We are now ready to proceed with the patch installation.

Firstly we need to ensure that the oracle_home, java_home and path variables are set correctly. The best way to do this is create a batch/script file to set them.

In the install patch file directory - <obiee_home>\Oracle_BI1\16094198 – create a batch file called setpaths.bat (or setpaths.sh for Linux)



Enter the following commands, replacing the <obiee_home> reference on the first line with the actual directory path:

set ORACLE_HOME=<obiee_home>\Oracle_BI1
set PATH=%ORACLE_HOME%\bin;%PATH%
set JAVA_HOME=%ORACLE_HOME%\jdk
set PATH=%JAVA_HOME%\bin;%PATH%
set PATH=%ORACLE_HOME%\OPatch;%PATH%

on Linux this commands should be:
ORACLE_HOME =<obiee_home>\/Oracle_BI1;export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH;export PATH
JAVA_HOME=$ORACLE_HOME/jdk;export PATH
PATH=$JAVA_HOME/bin:$PATH;export PATH
PATH=$ORACLE_HOME/OPatch:$PATH;export PATH

Then run “chmod 777 setpaths.sh to make the script executable.

In windows open a command window using the ‘Run as Administrator’ option – right click on the command window icon and you’ll see this option in the drop down. In Linux/Unix open a terminal window or a putty session and login as the obiee installation user.


Change directory to the <obiee_home>/Oracle_BI1 directory then 16094198 beneath it.
Now run the setpaths.bat file (. setpaths.sh for Linux)


You are now ready to apply the patches.

Whilst still in the 16094198 directory apply the 16094198 patch first by running:
opatch apply

This will run some pre-requisite checks and then ask if you want to proceed. Enter  y


The patch will then be applied and you will see the files being copied. When complete you will see the ‘Opatch succeeded’ message.


Now you can apply the second patch – 16094192.

Change to the 16094192 directory -  cd ..\16094192

Then run opatch apply again.

This will run through in exactly the same way as the first patch.

When complete move to the third patch directory, then carry on and repeat this for all the remaining patch files in this order:

16080520
16094205
16094211
16067995
16097082


Note some of these patch files are very large and can take a while to run.

You may see the following warning on some patch files “Given patch xxxxx is a bug superset of patch xxxxx but not s file superset”, this can be ignored  - it is just a warning, which as long as the patch is applied long with the other patch files in this patch set is ok.


If you’ve not done so on a previous patch then you need to apply the JDeveloper patch next.
In the <obiee_home>\oracle_common\13952743 directory create another new batch file (or shell file on linux) called setpaths.bat (setpaths.sh) with the following commands (again substituting <obiee_home> with the actual directory path):

set ORACLE_HOME=<obiee_home>\oracle_common
set PATH=%ORACLE_HOME%\bin;%PATH%
set JAVA_HOME=%ORACLE_HOME%\jdk
set PATH=%JAVA_HOME%\bin;%PATH%
set PATH=%ORACLE_HOME%\OPatch;%PATH%

For Linux use:
ORACLE_HOME =<obiee_home>/oracle_common;export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH;export PATH
JAVA_HOME=$ORACLE_HOME/jdk;export PATH
PATH=$JAVA_HOME/bin:$PATH;export PATH
PATH=$ORACLE_HOME/OPatch:$PATH;export PATH

And "chmod 777 setpaths.sh" to make it executable.

In the same command window following the earlier patches change to the <obiee_home>\oracle_common\13952743 directory, run the setpaths.bat (setpaths.sh) file and run opatch apply. This will run through in the same way as the earlier patches.

The patch has now been installed and there are a few post installation tasks to perform.

The patch includes a new version of the BI Publisher desktop client tools. To enable users to download this from the OBIEE home page the executables need to be copied to the correct location.

Copy the two files BIPublisherDesktop32.exe and BIPublisherDesktop64.exe from the directory

<obiee_home>\Oracle_BI1\clients\bipublisher\repository\Tools
To
<obiee_home>\user_projects\domains\bifoundation_domain\config\bipublisher\repository\Tools

Next copy the file msmdacc64.dll from the directory:

<obiee_home>\Oracle_BI1\clients\bipublisher\repository\Admin\DataSource
To
<obiee_home>\user_projects\domains\bifoundation_domain\config\bipublisher\repository\Admin\DataSource

We now need to delete the jsp_servlet directory associated to Oracle BI Publisher if it exists.
Change to the following directory:

<obiee_home>\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\bipublisher_11.1.1

Now look in each sub-directory under here and if you find a directory called jsp_servlet then delete it.

In the pre installation instructions above there was mention about backing up the file mapViewerConfig.xml if you have altered it in your installation. If so then now you need to restore it to its original location, overwriting the new version that the patch has placed there:

<OIBEE_HOME>\Oracle_BI1\bifoundation\jee\mapviewer.ear\web.war\WEB_INF\conf


Finally if you have customised the look and feel of OBIEE then you need to update the BIChart.swf file in your custom directories.

Copy the BIChart.swf file from the directory:
<OIBEE_HOME>\Oracle_BI1\bifoundation\web\app\res\sk_blafp\dvt
To the equivalent custom directory 

<OIBEE_HOME>\Oracle_BI1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\analyticsRes\sk_xxxxxx\dvt

Where sk_xxxxxxis the name of your custom directory.

That’s it, the patch is complete. Now re restart weblogic and the OBIEE services. To check the patch has been upgraded to the correct version login to OBIEE with a administrator user, click the ‘Administration’ link in to the top right corner of the screen and check the version number in the Administration screen:





OBIEE 11.1.1.6.8 Patch set available

Patch 11.1.1.6.8, the next patch set for OBIEE 11g, is now available from support.oracle.com.   As with all recent patches for OBIEE 11g, it comprises of seven patch zip files. It is a cumulative update for 11.1.1.6.0 and can be applied on top of any of the existing patches for 11.1.1.6.0 up to 11.1.1.6.7.

It is available for Windows, Linux and all the usual flavours of Unix.

The seven files comprising the patch are as follows. The instructions for installing them using opatch are detailed in the readme file in the first patch zip file.

This patch set fixes a large number of bugs, each of which are detailed in the readme’s for each patch file. Note if you wish to patch a version of 11.1.1.6 prior to 11.1.1.6.2BP1 and you use BI Mobile you will need to download the new BI Mobile App for your ipad.

 Patch No.
Name
Approx Size
16094198
Patch 11.1.1.6.8 (1 of 7) Oracle Business Intelligence Installer (Patch)
1.4MB
16094192
Patch 11.1.1.6.8 (2 of 7) Oracle Real Time Decisions (Patch)
260MB
16080520
Patch 11.1.1.6.8 (3 of 7) Oracle Business Intelligence Publisher (Patch)
1.6GB
16094205
Patch 11.1.1.6.8 (4 of 7) Oracle Business Intelligence ADF Components (Patch)
51MB
16094211
Patch 11.1.1.6.8 (5 of 7) Enterprise Performance Management Components Installed from BI Installer 11.1.1.6.x (Patch)
1GB
16067995
Patch 11.1.1.6.8 (6 of 7) Oracle Business Intelligence (Patch)
262MB
16097082
Patch 11.1.1.6.8 (7 of 7) Oracle Business Intelligence Platform Client Installers and MapViewer (Patch)
380MB

Note that patches 16094211 and 16067995 are specific to each platform (there are different file for different operating systems) whereas the rest are generic - the same file applies to all operating systems.

The link to Oracle’s OBIEE 11g: Required and Recommended Patches and Patch Sets document is:
https://support.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?_afrLoop=1167289098134514&id=1488475.1&_afrWindowMode=0&_adf.ctrl-state=xfsoozokf_294

The link to Oracle’s OBIEE 11g 11.1.1.6.8 is Available For BI Enterprise and Exalytics notification is:
https://support.oracle.com/epmos/faces/SearchDocDisplay?_afrLoop=1201924796998333&_afrWindowMode=0&_adf.ctrl-state=1127q186hi_133

The full list of bugs fixed by this release is:
11824623: NLS:FR:DOUBLE PERCENT SIGN AND WRONG DATA IN PIVOT TABLE ON FRENCH LOCALE
13065019: USAGE TRACKING ISSUE AFTER APPLYING PATCH 12925206- QUERY NOT INSERTED IN LOG
13802667: COMMA DELIMITED CSV FORMAT FOR AGENTS/IBOTS
13949566: MASTER DETAIL VIEW INTERACTION CONTEXT IS LOST
14262536: OBIEE SSL DOES NOT WORK FOR ACTIONABLE INTELLIGENCE/ACTION LINK
14496280: OBIEE 11.1.1.5.0 CREATING HUGE CORE DUMP FILES
14509257: UNWANTED EXPANDATION OF BACKGROUND OF GAUGE CHART/BULB
14532515: SINGLE ACTION LINK POPUP ISSUE
14597361: OBIEE 11.1.1.6.2: UNABLE TO DELETE HEADER FROM NEWLY ADDED COMPOUND LAYOUT
14781767: QA: PROMPTS: RUNTIME PROMPTS IS NOT WORKING IN FIREFOX 16
14832439: BLOCKING ANALYSES BASED ON CRITERIA NOT WORKING ON RESULTS TAB
14832723: BLOCKING ANALYSES IS BROKEN AFTER SAVNG AND REOPENING THE ANALYSIS
15856175: NO METADATA AUTOSAVE IN NQSMODIFYMETADATA AND NQSIMPORTMETADATA PROCEDURES
15879674: WHEN A VALUE WITH THE '&' SIGN IS CHOSEN, SCORECARD WATCHLIST RESULTS ARE NOT BE
15886643: QA: CALC ITEM DISPLAY 0 OR NAN IN TABLE IF EDIT MEASURE FORMULA, EXCLUDED COL,
15891959: PRESENTATION SERVER CRASH
15899791: DRILLDOWN ADDS FILTER FOR THE EMPTY STRING ALTHOUGH THE VALUE IS NULL OR SPACES
15905237: CUSTOM COLUMN HEADING DOES NOT REFLECT IN THE FILTERS VIEW
15908937: OBIEE AUTHENTICATION PROCESS CHANGED AFTER UPGRADE FROM 11.1.1.6.0 TO 11.1.1.6.4
15917103: DISABLED LTS DURING AFTER UPGRADE FROM OBIEE 10 TO OBIEE 11 CANNOT BE ENABLED
15934601: NQSERROR22032 WHEN SORT ON COMBINED RESULTS BASED ON UNIONS,INTERSECT,MINUS
15934766: BIPS FAILS TO START WITH DNSUTILS::DNSNAMELOOKUPFAILED
15954886: GCMAP/GCWAP: ERROR IN CAMPAIGN LOADS AND LAUNCHES
15958318: 11.1.1.6.5 -EXPORT TO EXCEL/PDF DISPLAYING VIEW DISPLAY ERROR-LENGTH URL EXCEEDS
15961449: REQUEST VAR DEFAULT VALUE SET BY REPOSITORY VARIABLE DOES NOT WORK CORRECTLY
15963008: DIFFERENT RESULTS ARE SHOWN WHEN ACTION LINKS ARE USED WITH CONDITION
15966182: CSV FORMAT OF REPORT AND AGENT DELIVERED REPORT ARE NOT THE SAME OUTPUT
15998971: QA:PINNED KPI KEEPS SPINNING WHEN OPENING A KPI WATCHLIST
16059256: SAWSERVER MAY ALLOCATE VERY LARGE ALLOCATION WITH ODBC ERROR
16169478: ADMIN TOOL AND JOB MANAGER VERSION NOT UPDATED AFTER APPLYING 11.1.1.6.8 PATCHES
16219059: JOB MANAGER GETTING [NQSERROR: 86015] [NQSERROR: 77027] A FATAL ERROR OCCURRED
13553123: CREATE USER THROUGH SOAP FAILS WITH JAVAX.XML.WS.SOAP.SOAPFAULTEXCEPTION
13720037: BISERVER QUERY FAILS IF AMPERSAND IS USED IN COLUMN NAME
13921691: QUERY BUILDER UNABLE TO PARSE CERTAIN QUERIES, DISALLOWING EDIT OF SUCH QUERIES
14359228: AFTER UPGRADE TO 11.1.1.6.2BP1, BI PUBLISHER LOGIN PAGE SHOWS UP IN ENGLISH ONLY
14478219: AIX WITH IBM JVM: USERS SEE JAVA.LANG.NULLPOINTEREXCEPTION UNDER HIGH LOAD
14605689: IN AIX USING DATA SET OF REMOTE WEB SERVICE RETURNS NULL DATA
14680717: BI PUBLISHER 11.1.1.6:TIMES NEW ROMAN FONT DISPLAYS WRONG FONT IN RTF OUTPUT
15869175: QUERY BUILDER TRUNCATES THE SECOND RANGE OF BETWEEN CLAUSE IN WHERE CONDITION

There are a number of know issues with this patch:
14228519: ADMINTOOL CLIENT MISSING ALL FILES UNDER EXTENDER DIRECTORY IN CLIENT INSTALLER
14244844: NAVIGATE TO URL ACTIONS BASED ON ENCODED URLS MAY RESULT IN DOUBLE ENCODING
15854192: ERROR MESSAGE RETRIEVED WHEN TRYING TO CREATE AGENT WITH EMAILS AS RECIPIENTS
15854218: ODBC ERROR WHILE CREATING AN AGENT
15983904: 11.1.1.6.7 ADMIN TOOL CLIENT SHOWS INCORRECT VRSN IN THE CLIENT INSTALLER WINDOW
13873434 QA: IE:UNABLE TO RENAME COMPOUND LAYOUT
14158156: MEMORY SPIKE DURING THE COMPILATION PHASE FOR QUERIES WITH LARGE EXPRESSIONS
14743304: FIX FOR BUG 14170374 REQUIRES ADDITIONAL CHANGE TO OPMN.XML
14771782: FIX FOR BUG 14070348 DOES NOT WORK IN CLUSTERED ENVIRONMENT
14772000: UNABLE TO SCROLL AS IE 8.0 PERFORMANCE POOR FOR MAX ROWS IN DASHBOARD
13974353: CONNECTION STRING USED TO ACCESS LEASING TABLE IS INCORRECT




Friday 1 February 2013

Add your company logo to the login screen




This example shows how to add your logo above the ‘Sign In’ message in the login screen. As you’ll see below this is basic HTML code editing, so there is plenty of scope to show your logo wherever you want on the login screen.



Start off by copying your logo image file to the following three directories:

OBIEE_HOME\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\sk_blafp\b_mozilla_4

OBIEE_HOME\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\sk_blafp\login

OBIEE_HOME \Oracle_BI1\bifoundation\web\app\res\sk_blafp\login

Next we need to copy the some of the files used by OBIEE to display the web pages to a new area so that we can edit them.

From the ORACLE_HOME\Oracle_BI1\bifoundation\web\msgdb  directory copy the pages subdirectory to:

ORACLE_HOME\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\msgdb

If the msgdb directory does not exist, create it first.

Now go into the pages\common directory and you’ll see one of the files – signin.html. This is the html page that displays the login screen. Take a backup copy of it first before starting.

Edit login.html in a text editor.

Locate the <form id="logonForm" tag, then the table tag below it:
            <table width="100%" cellpadding="0" cellspacing="0">

Underneath add the following lines:

<tr>
<td>
<img src="fmap:login/3Sixty_Logo.png" style="visibility: visible;" class="defaultHidden" width="280" align="bottom" height="132" alt="3Sixty Analytics"/>
</td>
</tr>

With the <img tag altered to suit your details – the logo file name, the width and height and the alternative text to display if the logo cannot be displayed.


Save the file.

You now need to restart Presentation Services – either restart just Presentation Services in the Fusion Enterprise Manager, restart all services or just stop and restart OBIEE using your normal method.
The login screen should then display your logo. You may need to refresh your browser cache (control-F5)