Skip to Content
Author's profile photo Sunny Pahuja

BOBI 4.0 Installation with separate DB2 Database & Customize database requirement

First of all, “Happy New Year” to all of you.

During my recent experience, I came across a scenario where client requirement was to install SAP BOBI 4.0 SP4 without using integrated DB2 9.7 installation and we need to install separate DB2 9.7 database with some additional requirements. I did not come across any document which gives exact steps to be followed in such a scenario. So, I thought of writing a blog to help colleagues who has similar requirement.

Here is the detailed scenario for SAP BOBI 4.0 SP4 installation:

  1. Install SAP BOBI 4.0 SP4 on UNIX platform.
  2. Don’t use integrated DB2 database that’s come bundled with SAP BOBI 4.0 SP4. Because SAP BOBI installer does not give you the option to specify in which file system you want to install database or how you want to design architecture of your database file system. SAP BOBI installer installs the database in the same file system where you install BOBI.
  3. Database Version: DB2 9.7
  4. Use separate tablespaces for CMS and Audit database.
  5. Use separate schemas for CMS and Audit database for additional security.
  6. Database will be owned by db2<sid> user and SAP BOBI will be owned by <sid>adm user.


  1. Download Media for SAP BOBI 4.0 SP4.
  2. Download DVD for DB2 9.7 as per flavor of UNIX.
  3. Download latest SWPM in order to create db2<sid> and <sid>adm user. Note: We can also create these users manually using operating system commands but we need to set all environment variables manually. However, SWPM will automatically set all environment variables while creating the users.
  4. Decide <SID> to be used for database and BOBI system.
  5. You can create same file system for BOBI as a standard Netweaver system except few changes.
    1. Create /usr/sap/<SID> file system. This file system will be used as installation directory for BOBI.
    2. Database File system:
      1. /db2/db2<sid> (DB2 Software)
      2. /db2/<SID> (DB2 Client)
      3. /db2/<SID>/sapdata* (Data File system)
      4. /db2/<SID>/log_dir (Online Logs)
      5. /db2/<SID>/log_archive (Offline Archive Logs)
  6. Please make sure that ulimit should be set as unlimited before starting the installation.
  7. Please make sure that below environment variable should be set before installation.
    1. LANG – en_US.UTF-8
    2. LV_ALL – en_US.UTF-8
    3. These environment variables can also be set in file .sapenv_<hostname>.sh & .sapenv_<hostname>.csh under user <sid>adm home directory. Note: Please make sure that operating system should support UTF-8 character sets.
  8. Please follow installation guide for more prerequisites.
  9. Create db2<sid> and <sid>adm user using latest SWPM. (Choose following option in SWPM screen: Generic Installation Options – IBM DB2 for Linux, UNIX and Windows- Preparations- Operating System Users and Groups)                                                                                                                                                                                  Note: While creating users and groups, you can also specify User ID’s & Group ID’s if you have specific numbers allocated for UID’s & GID’s.
  10. By default, home directory of <sid>adm user will be created under /home which will use root file system. This has a limitation, because BOBI installer creates LCM repository under home directory of user from which installation will be started. In this case, it is <sid>adm user. So, please make sure that you use different home directory so that it should not use root file system. E.g: If you are installing BOBI under /usr/sap/<SID> then you can specify home directory of <sid>adm user as /usr/sap/<SID>/<sid>adm while you are creating user.



DB2 Installation

  1. Database Software installation: Create db2_software directory under /db2/db2<SID> directory.
  2. Start DB2 installation with root user. Go to DB2 9.7 RDBMS DVD (E.g. Path for DB2 installation on AIX- <file system path to DVD>/DB2_LUW_9.7_FP8_RDBMS_AIX__HP__SOL_/AIX_64/ESE/disk1)
  3. Run script db2setup. Choose: Install Now under DB2 Enterprise Server Edition Version 9.7 Fix Pack8                                                                                                             
  4. When asked to enter installation directory, please enter /db2/db2<sid>/db2_software, similar to standard installation of db2 by sapinst. Note: I have mentioned only the important steps in db2 installation screens and other steps are simple and does not require much planning.
  5. You should choose option create db2 instance when asked about set up a DB2 instance.
  6. Choose partitioning options for DB2 instance. Generally, if database resides on one machine then we should choose Single Partition instance.
  7. When asked about DB2 instance owner then enter existing user as db2<sid>.
  8. When asked about prepare DB2 tools catalog then Choose option Prepare the DB2 tools catalog.
  9. Follow the installation screens to complete the installation of database software.
  10. Once the installation is complete, logon to db2 database with db2<sid> user. Run command db2 connect to <SID>. It will show you the version of db2 software.
  11. Install DB2 license as per SAP note 816773.

Post Database Installation

  1. Create database with db2<sid> user using command: db2 CREATE DATABASE <SID> AUTOMATIC STORAGE YES ON ‘/db2/<SID>/sapdata1′,’/db2/<SID>/sapdata2′,’/db2/<SID>/sapdata3′,’/db2/<SID>/sapdata4’ USING CODESET UTF-8 TERRITORY US COLLATE USING IDENTITY Note: You can create database on different file system layout i.e. on different sapdata’s as per the requirement. Please make sure that while creating the database you are not connected to database.
  2. Set parameter SPM_NAME to null otherwise you will face error during BOBI installation. Command- db2 update dbm cfg using SPM_NAME NULL
  3. As per the requirement, we want to create separate schema for CMS and Audit.

Prerequisite of Schema:

    1. In DB2, schemas are database users. So, in order to have separate schema for CMS and Audit, we need to create OS users.
    2. Create home directory for CMS and Audit users. In our case, CMS user is sapcms and Audit user is sapads. You can create directory /db2/sapcms and /db2/sapads
    3. Create users at operating system using operating system utility and assign groups similar to db2<sid> user. Make sure that while creating users, you specify home directory as we created in previous step.
    4. Once users are created, please login with users as it will ask you to change passwords.
    5. In order to have same environment variable for sapcms and sapads user as db2<sid> user, copy .sapenv, .sapsrc, .dbenv, .dbsrc & profile file from home directory of db2<sid> user to home directory of sapcms and sapads user.
    6. Change permission of /db2/sapcms & /db2/sapads directory and their contents to sapcms:db2<sid>adm & sapads:db2<sid>adm respectively.
    7. Compare environment variable of user sapcms & sapads to that of user db2<sid> and it should be same.

          Create Schema’s

    1. Create schema in db2 with command: db2 create schema SAPCMS authorization & db2 create schema SAPADS authorization Note: Schema name should be same as the name of users created on operating system.
    2. You can verify schemas in the database with command: db2 select schemaname from syscat.schemata

          Create Tablespaces

          As per the requirement, we want to create separate Tablespaces for CMS and ADS.

          CMS Tablespace:

    1. Let us consider that we want to create CMS tablespace with name PSAPCMS
    2. Login with user sapcms and create tablespace with command: db2 “create tablespace PSAPCMS managed by database using (FILE ‘/db2/<SID>/sapdata1/db2<sid>/NODE0000/<SID>/PSAPCMS.container000’ 1024M, FILE ‘/db2/<SID>/sapdata2/db2<sid>/NODE0000/<SID>/PSAPCMS.container000’ 1024M, FILE ‘/db2/<SID>/sapdata3/db2<sid>/NODE0000/<SID>/PSAPCMS.container000’ 1024M, FILE ‘/db2/<SID>/sapdata4/db2<sid>/NODE0000/<SID>/PSAPCMS.container000’ 1024M) extentsize 2 prefetchsize automatic dropped table recovery off autoresize yes maxsize none” 

          CMS Temporary User Tablespace

During BO installation, it will ask for temporary CMS user tablespace. You can create this tablespace with any name and in this case, we are creating this tablespace with name TEMPCMS. Create temporary user tablespace with command: db2 “create user temporary tablespace TEMPCMS managed by database using (FILE ‘/db2/<SID>/sapdata1/db2<sid>/NODE0000/<SID>/temp_cms’ 1024M)” Note: You can add as many containers as you want with different size & location of container files as well. Also, this tablespace will be created with default page size of 4K.           

          Audit Tablespace

Please note that Audit tablespace needs page size of 8K for BOBI installation. By default, page size of default buffer pool will be 4K. So, we need to create new buffer pool with page size of 8K.                      

          Buffer Pool

    1. Login with user sapads on database.
    2. Create buffer pool with command: db2 “create bufferpool <name of buffer pool> immediate PAGESIZE 8K”                       

          Create Audit Tablespace

          Let us consider that we want to create Audit tablespace with name PSAPADS.

          Login with user sapads and use below command to create tablespace           

db2 “create tablespace PSAPADS PAGESIZE 8K managed by database using (FILE ‘/db2/<SID>/sapdata1/db2<sid>/NODE0000/<SID>/PSAPADS.container000’ 1024M,   FILE ‘/db2/<SID>/sapdata2/db2<sid>/NODE0000/<SID>/PSAPADS.container000’ 1024M, FILE ‘/db2/<SID>/sapdata3/db2<sid>/NODE0000/<SID>/PSAPADS.container000’ 1024M, FILE ‘/db2/<SID>/sapdata4/db2<sid>/NODE0000/<SID>/PSAPADS.container000’ 1024M) extentsize 2 prefetchsize automatic dropped table recovery off autoresize yes maxsize none BUFFERPOOL <name of buffer pool>”                                        

Note: Please make sure that while creating audit tablespace, you need to give name of buffer pool created above.

          You can verify tablespaces and their owners with command:  db2 select owner, tbspace from syscat.tablespaces

          In order to check properties of new tablespaces, please use command db2 list tablespaces show detail

Enable archiving for db2 database with command: db2 update db cfg for <SID> using LOGARCHMETH1 DISK:/db2/<SID>/log_archive            

Note: You need to take offline database backup after activating logging.

By this, configuration of database is complete and we can start installation process of BOBI.

BOBI Installation

  1. Login with <sid>adm user
  2. Set environment variable LANG & LV_ALL to en_US.UTF-8
  3. Set ulimit to unlimited.
  4. Set environment variable LIBPATH= /db2/db2<sid>/sqllib/lib64 in .sapenv_<hostname>.sh & .sapenv_<hostname>.csh in home directory of <sid>adm user
  5. Start the installation from BOBI DVD with command: ./ InstallDir=/usr/sap/<SID> Note: Installation software will create sap_bobj directory under /usr/sap/<SID>. Please make sure that you should not create separate file system as /usr/sap/<SID>/sap_bobj for installation, as installation program will not be successful and it will not copy some library files due to some limitations at perl script level.
  6. Once installation is started, on next screen, you can select setup language. By default, it will be English.
  7. Enter Destination Folder, by default it will take path of InstallDir that we have given while starting installer.
  8. After this, installer will perform prerequisite checks. If all checks are successful then it will allow proceeding to next step.
  9. Accept copyright warning and licensing agreement.
  10. Enter product key code that you got while you bought the license of BOBI.
  11. Select all languages that you want to install for BOBI. By default, it will be English.
  12. Select “User Install”. You can refer to installation guide for difference between User Install and System Install.
  13. Select Install type as “full”.
  14. When installer asks about database option. Then choose “Use an existing database”.
  15. Select CMS database type as “IBM DB2”.
  16. Select Audit Database type as “IBM DB2”.
  17. When installer asks about Java web application server, you can choose option according to your requirements whether to install Tomcat application server or manually deploying files to As Java system. In this case, we used Tomcat application server which installer installs.
  18. Choose Install and use subversion.
  19. Enter SIA name and port number. By default port number will be 6410.
  20. Enter CMS port. By default port number will be 6400.
  21. Enter Administrator account password and cluster key.
  22. Enter CMS repository database information. You need to enter database alias name (SID of the database that was installed previously), username will be sapcms and password of the user.
  23. Enter Audit database information. You need to enter database alias name (SID of the database that was installed previously), username will be sapads and password of the user.
  24. Enter connection port, shutdown port and redirect port. By default, it will be 8080, 8005 & 8443 respectively.
  25. Enter HTTP listening port. By default, it will be 6405.
  26. Enter repository port and user password. By default, repository port will be 3690.
  27. On next screens, if you want to connect BOBI to SMD agent and wily introscope then you can choose these options and it will take you to next screens if you want to configure them. You can also choose option “don’t configure” if you want to skip this.
  28. Now, you can start the installation process. This process will take some time. Once installation will complete successfully, you can login to CMS with url http://<hostname>:8080/BOE/CMC. Use administrator user and password to login.

Post Installation

  1. If you want to check the version of BOBI, then go to <installation directory>/InstallData and open file inventory.txt. It will give you the version of BOBI system installed.
  2. You can run diagnostic check to verify the installation. Login to CMC, Go to monitoring and then Probes. And run all diagnostic checks. Initially, some checks related to Crystal Reports Service might fail.
  3. You can also check whether all services are running fine or not. Go to Server nodes and select Servers list. If all services are in green then system is working fine.
  4. Install License key.

By this way, installation of BOBI 4.0 where database is separately installed with customized requirements is complete.

Please note that you should follow BOBI installation and administrator guide also for the installation. This blog alone will not serve the purpose.



Disclaimer: This Blog is the personal Blog and only contains my personal views, thoughts and opinions. It is not endorsed by my employer nor does it constitute any official communication of my employer.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Deepak Kori
      Deepak Kori

      A very good document..

      Author's profile photo Former Member
      Former Member

      Its a easy understandable document. Based on this i have completed one full implementation with IPAD access.

      Kudos to you!!!


      Author's profile photo Michael Marre
      Michael Marre

      Suggest to rework the document since it is not valid just for 9.7 but for 10.1, 10.5 and 11 too.

      Michael Marré
      SAP DB2 Development Support

      Author's profile photo Ajay Gupta
      Ajay Gupta

      Can you please update the document for BI 4.2, where the Comment requires page size needs to be 32k or better.

      Anyone else experience issues with getting WebI Comments working properly when using DB2 as you Audit DB.