Tuesday, August 13, 2013

Error HTTP Status 500 While Accessing CMC/BI Launchpad in SAP BI 4.0

Environment:
  • Windows
  • Tomcat 6
  • SAP BusinessObjects BI 4.0
  • Possibly the installation of SAP BusinessObjects Explorer 4.0

Resolution:
  1. Stop Tomcat
  2. Go to the Tomcat Work directory (usually C:\Program Files\SAP BusinessObjects\Tomcat\work) and continue down to Catalina\localhost.
  3. Delete the BOE directory - this gets recreated on startup.
  4. Start Tomcat
  5. Wait a few minutes while Tomcat recreates the directory and regenerates it's cache.
  6. Attempt to log into the CMC.
If this fails, then try redeploying the WAR file once again, initially without using wdeploy as follows:
  1. Stop Tomcat
  2. Go to the Tomcat Web App directory (usually C:\Program Files\SAP BusinessObjects\Tomcat\webapps)
  3. Delete the BOE directory - this gets re-deployed by tomcat due to the BOE.xml file in tomcat\conf\Catalina\localhost\.
  4. Go to the Tomcat Work directory (usually C:\Program Files\SAP BusinessObjects\Tomcat\work) and continue down to Catalina\localhost.
  5. Delete the BOE directory - this gets recreated on startup.
  6. Start Tomcat
  7. Wait a few minutes while Tomcat recreates the directory and regenerates it's cache.
  8. Attempt to log into the CMC.
If this fails, then try redeploying the WAR file using wdeploy.
  1. Go to the wdeploy directory in the BusinessObjects directory
  2. Check that the config.tomcat6 file points to the right location
  3. Run the following command: wdeploy.bat tomcat6 deployall
  4. Attempt to log into the CMC.
Hope you find this useful.
Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

SAP BI 4.0 + SSL



1. Execute the following from a command line to create a .keystore file:

Windows User :

%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
 

2. Upon executing the above command, you will be prompted for a keystore password, your full name, organizational unit, organization, city, state and country. At the end, you will be prompted for the keystore password again. This has to be the same password as the password you entered previously. Newer versions of the keytool will prompt you to hit ENTER to keep it the same.

3. Once finished, a self signed .keystore file will have been created in your user"s home directory:
For example: C:\Program Files\Documents and Settings\Administrator

4. Move this file from this directory to one in the Business Objects folder structure:
For example: C:\Program Files\Business Objects

5. Browse to Tomcat's server.xml file and create a backup file:
For example: C:\Program Files\Business Objects\Tomcat\conf\server.xml

6. Open and edit the server.xml file in wordpad.

7. Uncomment the section below and add the two commands after keystorePass & keystoreFile. This section needs to reference the new location of the .keyfile and the password you specified when creating it.

<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
 
<Connector port="8443"
          maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
          enableLookups="false" disableUploadTimeout="true"
          acceptCount="100" debug="0" scheme="https" secure="true"
          clientAuth="false" sslProtocol="TLS" keystorePass="password" keystoreFile="C:\Program Files\Business Objects\.keystore"/>

8. Restart Tomcat and it should now be accessible using:
https://servername:8443

Hope you find this useful.
Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant


Monday, July 1, 2013

Best Practices for using the Import Wizard to migrate Repository Objects across SAP Business Objects XI 3.1



  • The Import Wizard in Business Objects Enterprise uses a combination of CUID(Cluster Unique Identifiers) and Object Names to move or update Objects from a Source 3.1x/XI-R2 Environment to a target 3.1x/XI-R2 environment.
  • When moving the objects over, there are three distinct scenarios that determine how the import wizard would migrate the objects over -
          a.   The object to be migrated has the same CUID and same Object Name in both the source and the Target Environment.

          b. The objects to be migrated has the same CUID but different Objects Name in the Source and the Target Environment

          c. The object to be migrated has different CUID but the same object Name in the source and the Target Environment.


  • The newly created target environment i.e. a new CMS would not have any objects and hence the three scenarios would not apply to such an environment. The import wizard can be used to move objects to a newly created target environment without being concerned about the three scenarios above. However, successive migrations after the initial move will require keeping the above scenarios in mind prior to moving the objects over.
  •  The import wizard allows for two options during the migration phase of the objects from a source to a target environment - 'Merge' and 'Update'. In a environment that has been managed in compliance with Best Practices, scenario (2.a) in the above would always exist i.e. CUID and Objects names will always be in sync. In such a scenario, using either a Merge or Update options should produce identical results.
  •  However, in a target enviornment, that has been updated with incosistent sources, scenarios (2.b) and (2.c) can exist. In order to avoid this situation, it is good to comply with the following best practices -

  • Ensure that the source and target environments are always in sync. This can be accomplished by using a single tool to perform the migration e.g. always use the Import wizard to carry out the migration.
  • Ensure that successive  migrations are performed with the 'update' option of the import wizard. This will ensure that the existing CUID and Objects are updated if they eixst and duplicated are not created.
  • Ensure that when using 'biar' files to move the content over, the files are the latest copies from the source system. Ensuring version management of the biar files will help minimize any human errors in the import process when using the biar files. If version management of the biar files is not feasible, switch to online migration from source to target system..
  • Always ensure proper backups of the BusinessObjects Enterprise system with a backup copy a CMS database and FRS File System. In the event of inconsistency betweend CUID's and Objects Names between source and target environment, it may be quicker to restore the system from backup then fixing individual objects.
Hope you find this useful.
Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

Actions needed when restoring only the CMS database when it is crashed in SAP BI 4.0.


Note:

Only perform this procedure if only the CMS database has crashed. If the database is corrupted or other components have been compromised you must perform a full system restore.
Repair or replace the CMS database host-machine. If replaced, ensure that it has the same system name as the previous host-machine, as well as the same port settings and database credentials.

Note:

If it is not possible to restore the machine using the same name and credentials, you will need to use the CCM to update this database connection information for each node in the cluster and restart those nodes.
  1. Stop all BI platform nodes using the CCM.
  2. Locate the latest CMS database backup set.
  3. Using your database tools, restore the CMS database.
  4. Locate the most recent CMS database transaction log—that is, the log that contains transactions performed after the last backup.
  5. Replay the entire transaction log for the CMS database.
  6. Use the CCM to start the BI platform nodes.
 Once you have verified the system is working properly, take the following actions:
  •  Run the Repository Diagnostic Tool to remove any unused temporary files and check repository consistency.
  • Any publishing jobs in process at the time the system was backed up will display as failed. Do not rerun these instances, start a new publishing jobs.
Hope you find this useful.
Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

SAP BO Disaster Recovery in clustered enviroment

Issue
  • Take a backup of the Production System's database and then create a new ODBC connection pointing to this database.
  • On a new server that has SAP BusinessObjects XI 3.1 installed, take the existing Server Intelligence Agent (SIA) and then point the database to the prod backup.
  • Start up the SIA. 
  • In the Central Management Console (CMC) for your DR system, you will now see SIA nodes for the Production System. 
  • In the CMC, you will now see the new SIA that you added. 
Cause
  • The backup of the Central Management Server (CMS) repository contains remote node information for the existing database. 
  • Even though the CMS is using a separate physical database, the remote nodes contained within the metadata will connect to each other and show up in the CMC. 
  • They will link each other when the SIA is started on the DR system. 

Solution

  • The goal of these steps is to prevent the DR system from connecting to the Prod system. As an added precaution, you can create loop backs in your local hosts file that will return 127.0.0.1 when Production SIA nodes are referenced. 
  • Take a backup of the Production System's database and then create a new ODBC connection pointing to this database. 
  • On a new server that has SAP BusinessObjects XI 3.1 installed, create a new SIA and point it to the prod backup. 
  • Open the Central Configuration Manager (CCM), go to the properties of the newly created SIA. 
  • Click on Startup and you should see remote CMS nodes from your production environment. Remove these remote nodes. 
  • Start up the SIA. 
  • In the Central Management Console (CMC) for your DR system, you will now see SIA nodes for the Production System, you will now have to remove these. 
  • In the CCM, create a new SIA with exactly the same SIA name for each of the SIA nodes from your production environment. 
  • Once the SIA is created, click delete and then delete it from this DR system. 
  • Repeat this until all the production nodes are cleaned up. You will be left with a system that only has DR servers on it now. 
Hope you find this useful.Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

Sunday, June 23, 2013

How to configure Apache as a Reverse Proxy with SAP BO BI 4.0?

Environment

  • SAP BusinessObjects Business Intelligence Platform 4.0
  • Apache 2.2


solution

  1. In the Apache installation directory, edit the file httpd.conf
  2. Uncomment the following two lines :
  • LoadModule proxy_module modules/mod_proxy.so
  • LoadModule proxy_http_module modules/mod_proxy_http.so
  1. Configure the ProxyPass for every web application that is deployed behind the reverse proxy server.
  2. Configure the ProxyPassReverseCookiePath for every web application that is deployed behind the reverse proxy server.
Example :
ProxyPass /BI4/BOE http://localhost:8080/BOE
ProxyPassReverseCookiePath / /BI4/BOE
ProxyPass /BI4/AdminTools http://localhost:8080/AdminTools
ProxyPassReverseCookiePath / /BI4/AdminTools


Hope you find this useful.

Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

How to rename the BOE web application or the web application source tree in SAP Business Objects Business Intelligence Platform 4.0

Environment

SAP Business Objects Business Intelligence Platform 4.0

The source tree folder is located in: <BOE_INSTALL_DIR>/SAP BusinessObjects/SAP BusinessObjects/warfiles/webapps

  • Locate the BOE web application configuration file, BOE.properties in : <BOE_INSTALL_DIR>/SAP BusinessObjects/SAP BusinessObjects Enterprise XI 4.0/wdeploy/conf/apps

  • Rename BOE.properties so that it reflects the new name for the web application WAR file. For example, rename the web application from BOE to MYBOE, and so the BOE.war will be already renamed to MYBOE.war. Rename BOE.properties to MYBOE.properties.

  • Use a text editor to update the contents of the newly named .properties file. Update the web application information in the configuration file. For example, rename the web application from BOE to MYBOE, replace <WEB_APP_NAME> with MYBOE.

  • Rename BOE.xml so it reflects the new name for the web application WAR file. For example, rename the web application from BOE to MYBOE, and so the BOE.war or BOE.ear will be already renamed to MYBOE.war or MYBOE.ear. Rename BOE.xml to MYBOE.xml. The WDeploy tool can now deploy the newly-named web application to the web application server.

Hope you find this useful.

Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

List of services included in SAP BO BI 4.0 Web Applications

WEB APPLICATION
LIST OF SERVICES
BOEOSGi archive of core web applications, including:
• Analytical Reporting
• CMC
• SAP Crystal Reports
• BI launch pad (formerly InfoView)
• Eclipse IDE support
• Lifecycle Manager
• Monitoring
• OpenDocument
• BI workspace (formerly Dashboard Builder)
• Platform search
• Platform services
• Visual difference
• SAP BusinessObjects Dashboards (formerly Xcelsius)
BusinessProcessBIThis web application is deprecated. It provides support for
legacy Crystal Reports web services and SDK components,
including:
• Crystal Enterprise
• Crystal Reports Report Application Server (RAS)
• SAP BusinessObjects Dashboards (formerly Xcelsius)
• SAP BusinessObjects Analysis, OLAP edition
clientapiSAP Crystal Reports JavaScript API support.
dswsbobjeWeb Services components, including:
• Session
• BI platform
• BI catalog
• Federation Administration tool
• Live Office
• Web service query tool (formerly Query as a Web Service)
• Publishing
• Report Engine
• SAP BusinessObjects Web Intelligence (formerly Web
Intelligence)
• SAP BusinessObjects Dashboards web services (formerly
Xcelsius)
jsfplatformJava Server Faces support and examples.
MobileOTA14Web application for mobile client support.
OpenSearchOpenSearch support.
AdminToolsQuery Builder support.


Hope you find this useful.
Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

In SAP BusinessObjects XI 3.1 Which servers are involved while scheduling a Crystal/Web Intelligence/Desktop Intelligence Publication?


In BusinessObjects XI 3.1 , Below listed servers are in the picture to do the specific tasks:


All Publishing tasks
 The following servers must be installed, configured, and running:
  •  Publication Job Server, especially:
              Publication Scheduling Service
  • Adaptive Processing Server, especially:
              Publishing Service
              Publishing Post Processing Service
  • Destination Job Server
Publishing Crystal reports publications
The following servers must be installed, configured, and running:
  •  Crystal Reports Job Server
  • Report Application Server
Publishing Desktop Intelligence document publications
 The following servers must be installed, configured, and running:
  • Desktop Intelligence Job Server
  • Desktop Intelligence Processing Server
 Publishing Web Intelligence document publications
The following servers must be installed, configured, and running:
  • Web Intelligence Processing Server
  • Adaptive Job Server, 
  • Web Intelligence Scheduling and Publishing Service
Hope you find this useful.

Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

Saturday, June 22, 2013

How to improve Web application server performance in case of SAP BI platform running on WACS

To improve the server performance of a WACS, you can change the amount of memory that is allocated to the server through the Central Configuration Manager (CCM).
1.Starting the CCM, and click the Manage Servers icon .
2. Specify the logon credentials for the CMC.
3. On the "Manage Servers" screen, stop the WACS.
4.Click the Web Tier Configuration icon .
Note:
The Web Tier Configuration icon is only enabled when you select a WACS that is stopped.
The "Web Tier Configuration" screen appears.
5. Under "Command Line Parameters", specify a new memory value by editing the command line:
a. Find the -Xmx option. This option normally has a value specified.
For example “-Xmx1g”. This setting allocates one giga byte of memory to the server.
b. Specify a new value for the parameter.
• To specify a value in mega bytes, use “m”. For example, “-Xmx640m” allocates 640 mega bytes of memory to the WACS.
• To specify a value in giga bytes, use “g”. For example, “-Xmx2g” allocates two giga bytes of memory to the WACS.
c. Click OK.
6. On the "Manage Servers" screen, start the WACS.

Hope you find this useful.
Umang Patel
SAP BO BI solution architect / consultant
+919979084840

Tuesday, June 18, 2013

How to Install / Deploy / Configure Tomcat 6 externally on a SAP BO BI 4.0 server.


Environment
  • Tomcat 6.0.24
  • SAP BO BI Platform 4.0

solution
  1. Following is the link to download Tomcat 6.0.24
    http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.24/bin/apache-tomcat-6.0.24.exe
  2. Run the executable “apache-tomcat-6.0.24.exe”. The Welcome screen will appear. Click Next.
  3. Click “I Agree” on the License Agreement screen.
  4. Select the install type from drop down box & click Next.
  5. Enter the destination folder where Tomcat 6 is to be installed. Click Next.
  6. Enter the user name & password for Administrator login & click Next.
  7. Enter the below mentioned path that points to JRE supplied with BI 4.0, Click Install:
    Install Dir:C:\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\jdk\jre
  8. Uncheck the “Show Readme” check box. Click Finish.
  9. Tomcat will now start. There will be a small icon in the system tray as shown below.
  10. Right click on the icon & click Configure.
  11. The Apache Tomcat Properties screen will appear. Click on Java tab.
  12. Add the path C:\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\jdk\lib\tools.jar” in Java Classpath field after the existing entry separated by a semi-colon(;).
  13. Add the value 2048 in Maximum memory pool field and 1024 in Thread stack size.
  1. Add the following values in the Java Options field(Assuming SAP Business Objects is installed on E drive ):
    -Djava.library.path=C:\Windows\SysWOW64\;E:\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\
    -Dbobj.enterprise.home=E:\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\
    -Xrs
    -XX:MaxPermSize=384M
    -Dbusinessobjects.olap.bin=
    -Dbusinessobjects.olap.stylesheets=
    -Djava.awt.headless=true
  2. Click on Apply and OK  & restart the Tomcat service.
  3. Open the file config.tomcat6 in Notepad. It can be located in Wdeploy directory.
  4. Assign the following values to the respective variables:
    as_dir=<installation directory of Tomcat 6>
    as_instance=localhost
    as_service_name=Tomcat6
  5. Save & close the file.
  6. Open Command Prompt by clicking Start > Run > type “cmd” & click OK.
  7. Navigate to wdeploy
  8. Run the command “wdeploy tomcat6 deployall”.
  9. A BUILD SUCCESSFUL message will appear once deployment of all WAR files is successful.

Hope you find this useful.

Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architecture/Consultant


Monday, June 17, 2013

What is Platform Search Application in BI 4.0 and How Search Application Indexing works?


Environment

SAP BusinessObjects Business Intelligence Platform 4.0

Resolution

Platform Search Application Indexing is a continuous process that involves the following sequential tasks:

1. Use Crawling mechanism to poll the CMS repository and identifies objects that are published, modified, or deleted. It can be done in two ways: continuous and scheduled crawling. 

2. Use Extracting mechanism to call the extractors based upon the document type. There is a dedicated extractor for every document type that is available in the repository. There are following extractors:

  •  Metadata Extractor 
  • Crystal Reports Extractor 
  • Web Intelligence Extractor 
  • Universe Extractor 
  • BI Workspace 
  • Agnostic Extractor (Microsoft Word/Excel/PPT, Text, RTF, PDF) 

3. The extracted content will be stored in the local file system 

(<BI 4.0 Install folder>\Data\PlatformSearchData\workplace\Temporary Surrogate Files) in an xml format called as Surrogate files.

4. These surrogate files will be uploaded to Input File Repository Server (FRS) and will be removed from the local file system

5. The content of the surrogate files will be read and will be indexed by using specific index Engine into temporary location called as Delta Indexing Area(<BI 4.0 Install folder>\Data\PlatformSearchData\workplace\DeltaIndexes).

6. The Delta index will be uploaded to Input FRS and will be deleted from the local file system.

7. The Delta Index will be read and will be merged into Master Indexed Area

(<BI 4.0 Install folder>\Data\PlatformSearchData\Lucene Index Engine\index) which is the final indexed area in the local file system.

8. After completing the Indexing task the following things will be generated:

•  Content store: The content store contains information such as id, cuid, name, kind, and instance extracted from the master index in a format that can be read easily. This helps to quicken the search.

Each AdaptiveProcessingServer creates its own content store.
  e.g.
<BI 4.0 Install folder >\Data\PlatformSearchData\workplace<NodeName>.AdaptiveProcessingServer\ContentStores

•  Speller/Suggestions: The similar words will be created from the master indexed data and will be indexed. The speller folder will be created under “Lucene Index Engine” folder (<BI 4.0 Install folder>\Data\PlatformSearchData\Lucene Index Engine\speller)

9. The Delta index files which were uploaded to the Input FRS will be removed from Input FRS after a few hours.

Remark:

BI 4.0 Platform Search Application supports indexing in a clustered environment.

  • The search and indexing will be active in all nodes, but only one node can merge the delta index to master index. This master index can be used in all the nodes for search operation.
  • All nodes share the same master index, however, each node builds its own content store.  
  • Master Index location needs to be shared by all nodes, it’ s not necessary to share Persistent data location and Non-persistent data location. 
Hope you find this useful.
Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

Sunday, June 16, 2013

Configure Tomcat 7 With BI 4 SP04

Environment
  • SAP BO PLATFORM 4.0 SP04
  • APACHE TOMCAT 7.0 JAVA APPLICATION SERVER
Solution
 Tomcat 7 can be downloaded from following location
A.  Installing Tomcat 7:
1. Extract the contents of apache-tomcat-7.0.29-windows-x64.zip file to C:\Program Files(x86)\SAP BusinessObjects folder. Rename the folder apache-tomcat-7.0.29 thus created to Tomcat7.
2. Create a folder Catalina in C:\Program Files (x86)\SAP BusinessObjects\Tomcat7\conf folder.
3. Create a folder localhost in C:\Program Files (x86)\SAP BusinessObjects\Tomcat7\conf\Catalina folder.
4.Open a Command Prompt in elevated mode if you are using MS Windows Server 2008. Navigate to the directoryC:\Program Files (x86)\SAP BusinessObjects\Tomcat7\bin.
5. Run command service install BOEXI40Tomcat.
You should get an output like this:
Image
6.Go to C:\Program Files (x86)\SAP BusinessObjects\Tomcat7\bin through Windows Explorer. Create a shortcut here forTomcat7w.exe. Rename this shortcut as Tomcat Configuration.
7. Right click on the Tomcat Configuration file & click Properties. The Shortcut tab will be displayed by default. Add text //ES//BOEXI40Tomcat in Target field after the existing entry separated by a space. Click on Apply OK.
8. Copy this Tomcat Configuration file to C:\Documents and Settings\All Users\Start Menu\Programs\Tomcat folder. Copy this file to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Tomcat if you are using MS Windows Server 2008. Click on Yes if the Confirm File Replace dialog box appears. If you are using MS Windows Server 2008, click on Copy and Replace.
B. Configuring Tomcat:
  1. Click on Start > All Programs > Tomcat > Tomcat Configuration. This will launch the Apache Tomcat BOEXI40TomcatProperties tool. You will have to open this tool in elevated mode if you are using MS Windows Server 2008
  2. On the General tab, change the Display name to Apache Tomcat 7.0.29. Delete all contents in the Description field. Change the Startup type to Automatic. Click on Apply.
  3. Click on the Logging tab. Change the Level to Error. Delete contents of Log-prefix field.
  4. Copy line “C:\Program Files (x86)\SAP BusinessObjects\Tomcat7\logs\stdout.log” to the Redirect Stdout field
  5. Copy line “C:\Program Files (x86)\SAP BusinessObjects\Tomcat7\logs\stderr.log” to the Redirect Stderror field. Click on Apply
  6. Click on the Java tab. Add the path “C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\jdk\lib\tools.jar” in Java Classpath field after the existing entry separated by a semi-colon(;)
  7. Add the value 2048 in Maximum memory pool field
  8. Delete following parameters from the Java Options field
-Djava.io.tmpdir=C:\Program Files (x86)\SAP BusinessObjects\Tomcat7\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManage
-Djava.util.logging.config.file=C:\Program Files (x86)\SAP BusinessObjects\Tomcat7\conf\logging.properties
  1. Add following parameters to the Java Options field.
    -Djava.library.path=C:\Windows\SysWOW64\;C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\
    -Dbobj.enterprise.home=C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\
    -Xrs
    -XX:MaxPermSize=384M
    -Dbusinessobjects.olap.bin=
    -Dbusinessobjects.olap.stylesheets=
    -Djava.awt.headless=true
  2. Click on Apply. You may add some additional parameters to the Java Options field apart from the above mentioned if they were present on previous Tomcat. We have saved Java Options of previous Tomcat in a text file.
  3. Click on Startup tab. Copy the path “C:\Program Files (x86)\SAP BusinessObjects\Tomcat7″ to the Working Path field. Click on Apply.
  4. Click on Shutdown tab. Copy the path “C:\Program Files (x86)\SAP BusinessObjects\Tomcat7″ to the Working Path field. Click on Apply OK
C. Deploying web applications (WAR files):
  1. Open the file config.tomcat7 in Notepad. It can be located in C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\wdeploy\conf folder.
    2.  Assign the following values to the respective variables:
      as_dir= C:\Program Files (x86)\SAP BusinessObjects\Tomcat7
      as_instance=localhost
      as_service_name=BOEXI40Tomcat
      Save & close the file.
    3. Open a Command Prompt in elevated mode if you are using MS Windows Server 2008.       Navigate to the directoryC:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\wdeploy.
   4. Run the command wdeploy tomcat7 validateconfig to check if you have made the correct changes  in config.tomcat7 file.
    5. A BUILD SUCCESSFUL message will appear if the validation is successful.
    6. Now run the command wdeploy tomcat7 deployall to deploy the WAR files of SAP BO BI 4.0 on Tomcat 7.
    7.  A BUILD SUCCESSFUL message will appear once all the WAR files are successfully deployed.
    8. Click on Start > All Programs > Tomcat > Tomcat Configuration. This will launch the Apache Tomcat 7.0.29 Properties tool. Start Tomcat by clicking on Start button available on General tab. You will have to open this tool in elevated mode if you are using MS Windows Server 2008.
   9. Wait for 10 – 15 minutes until the Catalina servlet initializes itself & starts all applications.
   10. Now test BI Launchpad, CMC & Query Builder & Web Services to check if they are working fine with Tomcat 7.0.29 as Web Application Server.


Hope you find this useful.
Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

How to preserve custom settings for BOE java apps in BI 4.0

After applying a patch, customizations added to ..\Tomcat6\webapps\BOE\WEB-INF\config\custom are lost
Environment
BI 4.0
Tomcat 6
Issue
1) Make changes to <BOE_HOME>\Tomcat6\webapps\BOE\WEB-INF\config\default\<app name>.properties
2) Copy the modified file to <BOE_HOME>\Tomcat6\webapps\BOE\WEB-INF\config\custom
3) apply a patch
4) Obverse that the modifications to <BOE_HOME>\Tomcat6\webapps\BOE\WEB-INF\config\default\<app name>.properties are reverted and the copied file in <BOE_HOME>\Tomcat6\webapps\BOE\WEB-INF\config\custom is no longer present.
Reason
When the patch is applied the BOE web application is redeployed
Solution
In order to preserve these changes, you will need to modify the files in both locations below:
<BOE_HOME>\Tomcat6\webapps\BOE\WEB-INF\config
<BOE_HOME>\SAP BusinessObjects Enterprise XI 4.0\warfiles\webapps\BOE\WEB-INF\config
 This is the location where changes will be merged.  Files in this directory are modified by the patch and not replaced.  The patch will then use wdeploy to deploy the modified application to Tomcat.

Hope you find this useful.
Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

Login delay from external web application server after CMS restart

After restarting the Central Management Server (CMS) there is a login delay up to several minutes until the login finally proceeds. This is happening from an external web application server (WAS).
Environment
SAP BusinessObjects (any version)
Microsoft Windows Server 2008 R2 (hosting the CMS)
External Web Application Server (WAS)
The cause for this behaviour is the Microsoft Windows Server 2008 R2 Stealth Mode:
Stealth mode blocks outgoing ICMP unreachable and TCP reset messages for a port when no application is listening on that port.
(Source: http://technet.microsoft.com/en-us/library/dd448557%28WS.10%29)
Having Stealth Mode Enabled will cause the Windows Server not to respond with a TCP RESET to the connection attempt by the WAS but rather
to drop the packet leaving the other host waiting for a timeout.
solution
There are 2 possible resolutions to this problem.
(1) Disable Stealth Mode
If you do not require to use Microsoft Windows Stealth Modeyou can disable it as described in the following TechNet Article:
http://msdn.microsoft.com/en-us/library/ff720058%28v=PROT.10%29
(2) Fix the CMS Request Port
If you dowant to keep Microsoft Windows Stealth Modeenabled you can manually set the CMS Request Port on your SAP BusinessObjects
installation. This causes the CMS to always bind to the same port and will not cause any problems as the cached request port will be re-used. To
set the Request Port, please see the Administration Guide of your SAP BusinessObjects solution.
  •  For SAP BO XI 3.1: 3. Configuring server settings, Server host identification options 
  •  For SAP BO BI 4.0: 9.1.12.2 Server host identification options 

Hope you find this useful.
Cheers,
Umang Patel
+919979084870
SAP BO BI Solution Architect/Consultant

Restrict access to non-SSL links for BO web applications deployed on Apache Tomcat

Environment
  • Apache Tomcat 5.5.x
  • SAP BusinessObjects Enterprise Xi 3.1 (applicable to all SP/FP)
  • Supported Windows Server
After the SSL is successfully configured, users will be able to access the SSL as well as the non-SSL links for BO web applications; which might be a security vulnerability.
solution
  1. Take a backup of the “server.xml”file located at <INSTALL_DIR>\Program Files\Business Objects\Tomcat55\conf\
  2. Edit the server.xml and search for the line : “Connector URIEncoding=”UTF-8″
  3. Comment this line, as : <!– <Connector URIEncoding=”UTF-8″ acceptCount=”100″ connectionTimeout=”20000″ disableUploadTimeout=”true” enableLookups=”false” maxHttpHeaderSize=”8192″ maxSpareThreads=”75″ maxThreads=”150″ minSpareThreads=”25″ port=”8080″ redirectPort=”8443″/> –>
  4. Save and close the file.
  5. Stop the SIA from CCM ; SIA -> Properties -> Protocol :: Ensure that “Enable SSL” is unchecked. Start SIA
  6. Restart Tomcat from CCM
Now you can logon to the CMC and Infoview only through SSL. Try to access the non- SSL link and you'll get a “Page cannot be displayed” error.

Hope you find this useful.
Umang Patel.
+919979084870
SAP BO BI Solution Architect/Consultant

SAP BusinessObjects Enterprise Backup and Recovery Best Practices

This document describes procedures for performing a back up of the Web and SAP BusinessObjects Server system and data files, as well as the procedures to be followed to recover from data loss or hardware failure.
The plan execution requires an experienced SAP BusinessObjects BI professional, operating system administrator,and database administrator.
The backup and recovery process is similar for all environments within a staged system; development, test, and production. Therefore, this document does not refer to any specific environment. It is recommended to backup all environments.
Backup and Recovery Process Concept
A backup and recovery plan consists of precautions to be taken in the event of a full system failure due to a natural disaster or a catastrophic event. The plan aims to minimize the effects of the disaster on the daily operations so that the organization is able to maintain or quickly resume mission-critical functions. It is recommended, as part of a BusinessObjects Enterprise (BOE) disaster recovery plan, to involve an implementation of redundant servers in a back up system, which mirrors the primary system. In the event that the primary system goes down, the back up system is still available and becomes the operational system.
It is a best practice to back up BusinessObjects servers on a daily basis.
The Importance of a Proper Backup Sequence Without backing up the Enterprise system databases and the file repository, no restoration of the environment is possible.
Good backup integrity requires shutting down certain BusinessObjects services prior to capturing the backup. Under certain conditions, failure to follow a proper service shutdown sequence before backing up could result in one or both of the following consequences:
  •  False sense of security in the quality/integrity of the backup.
  • Inability to fully recover BusinessObjects if the backup is of poor integrity.
Types of Backups
A backup can be conducted in multiple ways:
1. Enterprise Content backup vs. server backup
A server backup is the deepest type of backup. Typically, this is a full backup that captures every byte on every local hard disk in a server. This type of backup insures the server’s operating system as well as any applications and data stored on the server’s local drives. Server backups are infrequent, typically only necessary after a stable installation/configuration is achieved and anytime major updates to any of the server components are made.
Enterprise content backup is a subset of a server backup and focuses on the essential components of BOE only. With an Enterprise content back up, one can recover a SAP BusinessObjects environment from scratch on a different hardware environment if necessary.
Enterprise content backup does not insure the operating system or any applications, including the Enterprise executables and DLLs; however, it does insure all of the intellectual content that is created and customized by users of the Enterprise system, which is the most important thing. Content backup also will not insure one against corrupted or deleted Enterprise application DLLs/EXEs or other operating system problems, but these can be resolved by performing a re-installation of operating systems or SAP BusinessObjects BI Backup and Recovery Best Practices.
2. Incremental backup vs. full backup
The choice between incremental backup and full backup is typically a decision made by the disaster recovery team. A full backup captures every targeted byte. Full backups require longer system down time to achieve (in the case of cold backups) but are the safest and least complex type of backup to restore. Because full backups are the slowest and most expensive to capture and maintain,SAP BusinessObjects advises capturing full backups on a weekly basis, where resources allow.
Incremental backups can be performed on a more frequent basis. It begins as a full backup, but each subsequent backup thereafter captures only those files changed since the last backup. They are faster and less expensive to capture than full backups, but are less robust. Because of this, incremental backups are usually acceptable for daily backups.
3. Cold backup vs. hot backup
Using a cold or hot backup strategy is typically dependent on whether a system can tolerate the
downtime required to perform a cold backup. Prior to running a cold backup, the Central Management Server (CMS) service must be stopped so that a backup of the CMS system database and File Repository Server (FRS) can occur. Stopping the CMS will prevent users from accessing the Enterprise system, a factor which must be taken into consideration when scheduling cold backups. This assures an accurate snapshot of the system occurs, since no transactions can occur during the backup procedure.
Cold backups must be done in off peak hours, thereby limiting the frequency at which the backups can occur and sometimes requiring choreography of schedules with other dependencies. Hot backups tend to be the preferred method in global or highly available environments where there is not a feasible window of downtime, as backups can occur while a system is still running, thereby keeping usage of the system unaffected. This enables the narrowing of the gap between the period of time when the last backup was run and when the system experiences failure, as backups can occur more frequently, reducing the amount of work lost in the event of a failure. Because the backup occurs on a live system, a hot back up exposes the possibility that the CMS and FRS will be captured in a state of change; furthermore, the FRS, CMS and PM tables could be captured in an out-of-sync state, a situation which could compromise the integrity and usefulness of the back up.
It is recommended to backup the CMS system database and PM repository once daily with incremental backups and full backup only once per week. The frequency of backups may be revised based on an acceptable amount of time for recovery to satisfy your organization’s requirements. This rest of this paper will focus on the procedures necessary for conducting a backup of enterprise content.
What to Back Up
There are several content-oriented elements that must be backed up daily in order to recover from a disaster. Routinely backing up all of the following content elements will enable you to recover from virtually any type of disaster (virus, hardware failure, natural disaster, and so on).
Database Central Management Server (CMS) System Tables
The CMS contains all the user rights and metadata information about reports and universes, as well as data connection information. The CMS is the heart of the BusinessObjects environment, so it’s critical to frequently back up this database. The environment cannot be restored without a properly backed up CMS database. physical database as the CMS system tables, making it easy to capture during a routine backup of the CMS tables. This database should be captured at the same frequency as the CMS system database.
File Repository Server (FRS)
This is a standard OS file share that contains all the report templates and instances for the environment. The file repository typically ranges in size from 1 GB to 100 GB depending on the size and complexity of the deployment. Since the FRS is designed to exist synchronously with the CMS tables, it should be backed up at exactly the same time as the CMS system tables.
Failure to capture the file repository and CMS system tables simultaneously, when the CMS and FRS services are stopped, could result in poor back up integrity. This is because of the increased risk for orphaned report objects or report pointers in the CMS system database if a database restore becomes necessary. Orphaned report pointers are those records in the CMS system database that do not point to a valid input or output file in the Enterprise Input or Output FRS. If a user were to select a report object or report instance that was orphaned, an error message would occur and they would not be able to access that object or instance. Orphaned input or output files in the file repository are a benign problem compared to orphaned pointers in the CMS tables. Only the Input and Output subfolders need to be backed up (the Temp
folder can be ignored).
Local audit log files
When auditing servers is enabled, each BusinessObjects server writes audit records to a log file local to the server. At regular intervals, the CMS communicates with the audited servers to request copies of records from the local log files.
Auditing Tables
This database contains usage statistics and auditing information for the environment. A back up of this database is not necessary for recovery from a disaster. However, recovery of a CMS database without recovery of the auditing tables from the same backup might result in a corrupt auditing database due to the presence of duplicate event IDs. It’s highly recommended that the auditing tables be included as part of the backup procedure.
Hope you find this useful.

Umang Patel.
+919979084870
SAP BO BI Solution Architect/Consultant