You are on page 1of 2

Document Display

https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx...

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: 1. Take a backup of the original EAR file:
[MW_HOME like OracleBI]/Oracle_BI1/bifoundation/jee/xmlpserver.ear

2. Copy the EAR file to a temporary directory:


$ cp xmlpserver.ear /tmp/bip $ cd /tmp/bip

3. Extract the xmlpserver.war file from the xmlpserver.ear:


$ unzip xmlpserver.ear xmlpserver.war Archive: xmlpserver.ear inflating: xmlpserver.war $ ls -l total 103576 -rw-r--r-1 pbreugel pbreugel 78228982 Mar -rw-r--r-1 pbreugel pbreugel 27706708 Mar

6 07:37 xmlpserver.ear 5 13:41 xmlpserver.war

4. Extract the WEB-INF/web.xml from the xmlpserver.war file:


$ unzip xmlpserver.war WEB-INF/web.xml Archive: xmlpserver.war inflating: WEB-INF/web.xml $ ls -lR .: total 103584 drwxrwxr-x 2 pbreugel pbreugel 4096 Mar -rw-r--r-- 1 pbreugel pbreugel 78228982 Mar -rw-r--r-- 1 pbreugel pbreugel 27706708 Mar ./WEB-INF:

6 07:39 WEB-INF 6 07:37 xmlpserver.ear 5 13:41 xmlpserver.war

1 of 2

2/26/2013 7:22:PM

Document Display

https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx...

total 44 -rw-r--r-- 1 pbreugel pbreugel

38635 Mar

5 13:40 web.xml

5. 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.xml 1011- <session-config> 1012: <session-timeout>20</session-timeout> 1013- </session-config> $ vi WEB-INF/web.xml $ grep -n -C 1 session-timeout WEB-INF/web.xml 1011- <session-config> 1012: <session-timeout>60</session-timeout> 1013- </session-config>

6. Update the xmlpserver.war with the modified WEB-INF/web.xml file (make sure to preserve directories):
$ zip -u xmlpserver.war WEB-INF/web.xml updating: 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

7. Update the xmlpserver.ear with the updated xmlpserver.war file (make sure to preserve directories):
$ zip -u xmlpserver.ear xmlpserver.war updating: xmlpserver.war (deflated 8%) $ unzip -l xmlpserver.ear | grep xmlpserver.war 27706690 03-06-12 07:41 xmlpserver.war

8. 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

9. Login to the WebLogic Server Administration Console:


http://[hostname]:[port]/console/

10. Navigate to the Deployment page 11. Update the deployment named 'bipublisher (11.1.1)' 12. 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/WEBINF/web.xml-1011- <session-config> ./user_projects/domains/bifoundation_domain/servers/AdminServer/tmp/_WL_user/bipublisher_11.1.1 /gyyvtu/war/WEB-INF/web.xml:1012: <session-timeout>60</session-timeout> file or directory ./user_projects/domains/bifoundation_domain/servers/AdminServer/tmp/_WL_user/bipublisher_11.1.1 /gyyvtu/war/WEB-INF/web.xml-1013- </session-config>

References

2 of 2

2/26/2013 7:22:PM

You might also like