Upload
rthogiti
View
358
Download
0
Embed Size (px)
DESCRIPTION
NA
Citation preview
How To Change The Session Timeout In Oracle BI Publisher 11g [ID 1351297.1]
Modified: Nov 11, 2012 Type: HOWTO Status: PUBLISHED Priority: 3
In this Document
Goal
Fix
References
Applies to:
BI Publisher (formerly XML Publisher) - Version 11.1.1.3.0 and later
Information in this document applies to any platform.
Goal
This document contains step by step instructions required to increase or decrease the session timeout for Oracle BI Publisher 11g.
Fix
The session timeout is controlled by Oracle WebLogic Server. The default session timeout for Oracle BI Publisher is 20 minutes, after
which the end user will see the following dialog window:
You have been inactive for more than 20 minutes. Click OK to keep your session.
Oracle BI Publisher 11g is shipped as a package that includes a standard J2EE application deployment descriptor file web.xml, located in
the /META-INF directory of the application, e.g.:
./user_projects/domains/bifoundation_domain/servers/bi_server1/tmp/_WL_user/bipublisher_11.1.1/to5gma/war/WEB-INF/web.xml
Note: The directory 'to5gma' is a random name and will be different on every environment.
The following steps are required to change the session timeout value:
Take a backup of the original EAR file:
[MW_HOME like OracleBI]/Oracle_BI1/bifoundation/jee/xmlpserver.ear
1.
Copy the EAR file to a temporary directory:
$ cp xmlpserver.ear /tmp/bip$ cd /tmp/bip
2.
Extract the xmlpserver.war file from the xmlpserver.ear:
$ unzip xmlpserver.ear xmlpserver.warArchive: xmlpserver.ear inflating: xmlpserver.war$ ls -ltotal 103576-rw-r--r-- 1 pbreugel pbreugel 78228982 Mar 6 07:37 xmlpserver.ear-rw-r--r-- 1 pbreugel pbreugel 27706708 Mar 5 13:41 xmlpserver.war
3.
Extract the WEB-INF/web.xml from the xmlpserver.war file:
$ unzip xmlpserver.war WEB-INF/web.xmlArchive: xmlpserver.war inflating: WEB-INF/web.xml$ ls -lR.:
total 103584drwxrwxr-x 2 pbreugel pbreugel 4096 Mar 6 07:39 WEB-INF-rw-r--r-- 1 pbreugel pbreugel 78228982 Mar 6 07:37 xmlpserver.ear-rw-r--r-- 1 pbreugel pbreugel 27706708 Mar 5 13:41 xmlpserver.war
./WEB-INF:
4.
Document Display https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx...
1 of 2 2/26/2013 7:22:PM
total 44-rw-r--r-- 1 pbreugel pbreugel 38635 Mar 5 13:40 web.xml
Edit the extracted WEB-INF/web.xml file using a plain text editor, modifying the value of session-timeout to e.g. 60:
$ grep -n -C 1 session-timeout WEB-INF/web.xml1011- 1012: 201013- $ vi WEB-INF/web.xml$ grep -n -C 1 session-timeout WEB-INF/web.xml1011- 1012: 601013-
5.
Update the xmlpserver.war with the modified WEB-INF/web.xml file (make sure to preserve directories):
$ zip -u xmlpserver.war WEB-INF/web.xmlupdating: WEB-INF/web.xml (deflated 88%)$ unzip -l xmlpserver.war | grep WEB-INF/web.xml 38635 03-06-12 07:41 WEB-INF/web.xml
6.
Update the xmlpserver.ear with the updated xmlpserver.war file (make sure to preserve directories):
$ zip -u xmlpserver.ear xmlpserver.warupdating: xmlpserver.war (deflated 8%)$ unzip -l xmlpserver.ear | grep xmlpserver.war 27706690 03-06-12 07:41 xmlpserver.war
7.
Copy the updated EAR file to the deployment files directory, overwriting the existing one:
$ cp xmlpserver.ear [MW_HOME like OracleBI]/Oracle_BI1/bifoundation/jee/xmlpserver.ear
8.
Login to the WebLogic Server Administration Console:
http://[hostname]:[port]/console/
9.
Navigate to the Deployment page10.
Update the deployment named 'bipublisher (11.1.1)'11.
Verify that the updated web.xml is deployed correctly:
$ cd [MW_HOME]$ find . -type f -name web.xml | xargs grep -n -C 1 session-timeout | grep./user_projects/domains/bifoundation_domain/servers/AdminServer/tmp/_WL_user/bipublisher_11.1.1/gyyvtu/war/WEB-INF/web.xml-1011- ./user_projects/domains/bifoundation_domain/servers/AdminServer/tmp/_WL_user/bipublisher_11.1.1/gyyvtu/war/WEB-INF/web.xml:1012: 60 file or directory./user_projects/domains/bifoundation_domain/servers/AdminServer/tmp/_WL_user/bipublisher_11.1.1/gyyvtu/war/WEB-INF/web.xml-1013-
12.
References
Document Display https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx...
2 of 2 2/26/2013 7:22:PM