Tuesday, March 31, 2015

OBIEE 11g change analytics and xmlpserver context root

A. Before modifying the context root for analytics and xmlpserver stop all OBIEE instances and all WebLogic managed servers including AdminServer.

B. DO A BACKUP for $MW_HOME, $DOMAIN_HOME, $BI_HOME and $BI_INSTANCE_HOME directories.

C. Do the changes in the following order:
C.1. In “$BI_HOME/bifoundation/jee/analytics.ear” archive you should do the changes: 

1.  “META-INF/application.xml”

<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" version="1.4">
<display-name>analytics</display-name>
<module>
<web>
<web-uri>analytics.war</web-uri>
<context-root>/obiee/analytics</context-root>
</web>
</module>
<module>
<web>
<web-uri>analytics-ws.war</web-uri>
<context-root>/obiee/analytics-ws</context-root>
</web>
</module>
</application> 


C.2. In “$BI_HOME/bifoundation/jee/xmlpserver.ear” archive you should do the changes.

1. in "META-INF/application.xml"

<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
<display-name>xmlpserver</display-name>
<module>
<web>
<web-uri>xmlpserver.war</web-uri>
<context-root>/obiee/xmlpserver</context-root>
</web>
</module>
<module>
<ejb>ess-ejb.jar</ejb>
</module>
</application> 


2. In file "$BI_HOME/bifoundation/jee/xmlpserver.ear/META-INF/weblogic.xml".

<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<session-descriptor>
<cookie-path>/xmlpserver</cookie-path>
</session-descriptor>
<context-root>/obiee/xmlpserver</context-root>
</weblogic-web-app> 


3. In “$BI_HOME/bifoundation/jee/xmlpserver.ear/xmlpserver.war/WEB-INF/web.xml".

...
<init-param>
<!-- This is the root webdir for the xmlpserver application. Modify this
if xmlpserver.ear is not deployed to its standard location.
-->
<param-name>xmlp-online-web-dir</param-name>
<param-value>/obiee/xmlpserver</param-value>
</init-param>

<init-param>
<!-- Path to the ServiceGateway SOAP end point. Most likely this will be
the path for services deployed with Axis.
-->
<param-name>service-endpoint</param-name>
<param-value>/obiee/xmlpserver/services/ServiceGateway</param-value>
</init-param>

<init-param>
<!-- Path to report service web directory.
-->
<param-name>web-dir</param-name>
<param-value>/obiee/xmlpserver/report_service</param-value>
</init-param>
...

4. In "$BI_HOME/bifoundation/jee/xmlpserver.ear/xmlpserver.war/WEB-INF/weblogic.xml".
...
<wls:session-descriptor>
<wls:cookie-path>/obiee/xmlpserver</wls:cookie-path>
</wls:session-descriptor>
...

C.3.  You should change also into the file "$DOMAIN_HOME/bifoundation_domain/config/bipublisher/repository/Admin/Configuration/xmlp-server-config.xml".

<xmlpConfig xmlns="http://xmlns.oracle.com/oxp/xmlp"> 
<property name="SAW_SERVER" value="obiee-local.client.ro"/>
<property name="SAW_SESSION_TIMEOUT" value="90"/>
<property name="DEBUG_LEVEL" value="exception"/>
<property name="SAW_PORT" value="9704"/>
<property name="SAW_JBIPS_PORT" value="9710"/>
<property name="SAW_PASSWORD" value=""/>
<property name="SAW_PROTOCOL" value="http"/>
<property name="SAW_VERSION" value="v6"/>
<property name="SAW_USERNAME" value=""/>
<property name="SAW_URL_SUFFIX" value="/obiee/analytics-ws/saw.dll"/>
<property name="ENDECA_URL_SUFFIX" value="ws"/>
<property name="ENDECA_PORT" value="9704"/>
<property name="MONITORING_ENABLED" value="false"/>
<property name="MONITORING_DEFAULT_HISTORY_SIZE" value="30"/>
<property name="AUDIT_ENABLED" value="false"/>
<property name="JSESSION_RESET_DISABLED" value="true"/>
<property name="SECURITY_MODEL" value="ORACLE_AS_JPS"/>
</xmlpConfig>


C.4. You should do the replacement into analytics.ear and xmlpserver.ear and after that it should be store it into "$BI_HOME/bifoundation/jee/analytics.ear" respectively into "$BI_HOME/bifoundation/jee/xmlpserver.ear". 
C.5. Do the following on all instances (in our case we have only 1 instance).
In file “$MW_HOME/instances/instance1/config/OracleBIPresentationServicesComponent/coreapplication_obips1/instanceconfig.xml” add the following lines in the top just after “<ServerInstance>”:

<ServerInstance>
<AdvancedReporting>
<WebURL>/obiee/xmlpserver</WebURL>
<ServerBaseURL>/obiee/xmlpserver</ServerBaseURL>
</AdvancedReporting>

The above lines are need it case of you will change context root also for application “xmlpserver”.

C.6. On weblogic managed servers directory on each bi server you should removed folders (just before to startup the servers): "/cache", "/logs" and "/tmp" from: "$DOMAIN_HOME/servers/bi_server1/" and from "$DOMAIN_HOME /servers/AdminServer/"

C.7. After that startup all managed servers including AdminServer. 
C.8. Startup all OBIEE instances.

No comments: