Vous êtes sur la page 1sur 10

6/30/2017 BOBI 4.

0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs

Home / Community / Blogs Actions

BOBI 4.0 Installation with separate DB2 Database & Customize


database requirement
January 2, 2014 | 513 Views |

Sunny Pahuja
more by this author

SAP BusinessObjects Business Intelligence platform


Solution 4.0bi platformbi4.0bobjBusiness Intelligencebusinessobjectsbusinessobjects widgets

1
share share tweet share
Follow

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 installa on and we need to install
separate DB2 9.7 database with some addi onal requirements. I did not come across any
document which gives exact steps to be followed in such a scenario. So, I thought of wri ng
a blog to help colleagues who has similar requirement.

Here is the detailed scenario for SAP BOBI 4.0 SP4 installa on:
1. Install SAP BOBI 4.0 SP4 on UNIX pla orm.
2. Dont use integrated DB2 database thats come bundled with SAP BOBI 4.0 SP4.
Because SAP BOBI installer does not give you the op on to specify in which le
system you want to install database or how you want to design architecture of your
database le system. SAP BOBI installer installs the database in the same le 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 addi onal security.
6. Database will be owned by db2<sid> user and SAP BOBI will be owned by <sid>adm
user.

https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 1/10
6/30/2017 BOBI 4.0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs

Prerequisite
1. Download Media for SAP BOBI 4.0 SP4.
2. Download DVD for DB2 9.7 as per avor 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 opera ng system commands but we
need to set all environment variables manually. However, SWPM will automa cally
set all environment variables while crea ng the users.
4. Decide <SID> to be used for database and BOBI system.
5. You can create same le system for BOBI as a standard Netweaver system except
few changes.
a. Create /usr/sap/<SID> le system. This le system will be used as installa on
directory for BOBI.
b. Database File system:
i. /db2/db2<sid> (DB2 So ware)
ii. /db2/<SID> (DB2 Client)
iii. /db2/<SID>/sapdata* (Data File system)
iv. /db2/<SID>/log_dir (Online Logs)
v. /db2/<SID>/log_archive (Oine Archive Logs)
6. Please make sure that ulimit should be set as unlimited before star ng the
installa on.
7. Please make sure that below environment variable should be set before installa on.
a. LANG en_US.UTF-8
b. LV_ALL en_US.UTF-8
c. These environment variables can also be set in le .sapenv_<hostname>.sh
& .sapenv_<hostname>.csh under user <sid>adm home
directory. Note:Please make sure that opera ng system should support UTF-
8 character sets.
8. Please follow installa on guide for more prerequisites.
9. Create db2<sid> and <sid>adm user using latest SWPM. (Choose following op on in
SWPM screen: Generic Installa on Op ons IBM DB2 for Linux, UNIX and
Windows- Prepara ons- Opera ng System Users and
Groups)
Note: While crea ng users and groups, you can also specify
User IDs & Group IDs if you have specic numbers allocated for UIDs & GIDs.
10. By default, home directory of <sid>adm user will be created under /home which will
use root le system. This has a limita on, because BOBI installer creates LCM
repository under home directory of user from which installa on will be started. In
this case, it is <sid>adm user. So, please make sure that you use dierent home
directory so that it should not use root le system. E.g: If you are installing BOBI
https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 2/10
6/30/2017 BOBI 4.0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs

under /usr/sap/<SID> then you can specify home directory of <sid>adm user as
/usr/sap/<SID>/<sid>adm while you are crea ng user.

Process

DB2 Installa on
1. Database So ware installa on: Create db2_so ware directory under
/db2/db2<SID> directory.
2. Start DB2 installa on with root user. Go to DB2 9.7 RDBMS DVD (E.g. Path for DB2
installa on on AIX- <le 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 Edi on
Version 9.7 Fix Pack8

4. When asked to enter installa on directory, please enter


/db2/db2<sid>/db2_so ware, similar to standard installa on of db2 by
sapinst.Note: I have men oned only the important steps in db2 installa on screens
and other steps are simple and does not require much planning.
5. You should choose op on create db2 instance when asked about set up a DB2
instance.
6. Choose par oning op ons for DB2 instance. Generally, if database resides on one
machine then we should choose Single Par on instance.
7. When asked about DB2 instance owner then enter exis ng user as db2<sid>.
8. When asked about prepare DB2 tools catalog then Choose op on Prepare the DB2
tools catalog.
9. Follow the installa on screens to complete the installa on of database so ware.
10. Once the installa on is complete, logon to db2 database with db2<sid> user. Run
command db2 connect to <SID>. It will show you the version of db2 so ware.

https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 3/10
6/30/2017 BOBI 4.0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs

11. Install DB2 license as per SAP note 816773.

Post Database Installa on

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>/s
apdata4 USING CODESET UTF-8 TERRITORY US COLLATE USING IDENTITY Note: You
can create database on dierent le system layout i.e. on dierent sapdatas as per
the requirement. Please make sure that while crea ng the database you are not
connected to database.
2. Set parameter SPM_NAME to null otherwise you will face error during BOBI
installa on. 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 opera ng system using opera ng system u lity and assign groups
similar to db2<sid> user. Make sure that while crea ng 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 & prole le 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 respec vely.
7. Compare environment variable of user sapcms & sapads to that of user db2<sid>
and it should be same.

https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 4/10
6/30/2017 BOBI 4.0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs

Create Schemas

1. Create schema in db2 with command: db2 create schema SAPCMS authoriza on &
db2 create schema SAPADS authoriza on Note: Schema name should be same as
the name of users created on opera ng 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 automa c dropped table recovery o autoresize
yes maxsize none

CMS Temporary User Tablespace

During BO installa on, it will ask for temporary CMS user tablespace. You can
create this tablespace with any name and in this case, we are crea ng 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 dierent size & loca on of container
les 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 installa on. By
default, page size of default buer pool will be 4K. So, we need to create new
buer pool with page size of 8K.

https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 5/10
6/30/2017 BOBI 4.0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs

Buer Pool

1. Login with user sapads on database.


2. Create buer pool with command: db2 create buerpool <name of buer 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 automa c dropped table recovery o autoresize yes
maxsize none BUFFERPOOL <name of buer pool>
Note: Please make sure that while crea ng audit tablespace, you need to give name
of buer pool created above.

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

In order to check proper es 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 oine database backup a er ac va ng logging.

By this, congura on of database is complete and we can start installa on process of BOBI.

BOBI Installa on
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

https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 6/10
6/30/2017 BOBI 4.0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs

5. Start the installa on from BOBI DVD with command: ./setup.sh


InstallDir=/usr/sap/<SID> Note: Installa on so ware will create sap_bobj directory
under /usr/sap/<SID>. Please make sure that you should not create separate le
system as /usr/sap/<SID>/sap_bobj for installa on, as installa on program will not
be successful and it will not copy some library les due to some limita ons at perl
script level.
6. Once installa on is started, on next screen, you can select setup language. By
default, it will be English.
7. Enter Des na on Folder, by default it will take path of InstallDir that we have given
while star ng installer.
8. A er 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 installa on guide for dierence between User
Install and System Install.
13. Select Install type as full.
14. When installer asks about database op on. Then choose Use an exis ng database.
15. Select CMS database type as IBM DB2.
16. Select Audit Database type as IBM DB2.
17. When installer asks about Java web applica on server, you can choose op on
according to your requirements whether to install Tomcat applica on server or
manually deploying les to As Java system. In this case, we used Tomcat applica on
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 informa on. 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 informa on. 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 connec on port, shutdown port and redirect port. By default, it will be 8080,
8005 & 8443 respec vely.
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.
https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 7/10
6/30/2017 BOBI 4.0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs

27. On next screens, if you want to connect BOBI to SMD agent and wily introscope
then you can choose these op ons and it will take you to next screens if you want
to congure them. You can also choose op on dont congure if you want to skip
this.
28. Now, you can start the installa on process. This process will take some me. Once
installa on will complete successfully, you can login to CMS with
urlh p://<hostname>:8080/BOE/CMC. Use administrator user and password to
login.

Post Installa on

1. If you want to check the version of BOBI, then go to <installa on


directory>/InstallData and open le inventory.txt. It will give you the version of BOBI
system installed.
2. You can run diagnos c check to verify the installa on. Login to CMC, Go to
monitoring and then Probes. And run all diagnos c checks. Ini ally, some checks
related to Crystal Reports Service might fail.
3. You can also check whether all services are running ne or not. Go to Server nodes
and select Servers list. If all services are in green then system is working ne.
4. Install License key.

By this way, installa on of BOBI 4.0 where database is separately installed with customized
requirements is complete.
Please note that you should follow BOBI installa on and administrator guide also for the
installa on. This blog alone will not serve the purpose.
Cheers..
Sunny
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.

Alert Moderator

4 Comments

Deepak Kori
https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 8/10
6/30/2017 BOBI 4.0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs
Deepak Kori
January 30, 2014 at 8:01 am

A very good document..

Reply Like (0)

nethaji palani
April 29, 2015 at 8:42 am

Its a easy understandable document. Based on this i have completed one


full implementation with IPAD access.
Kudos to you!!!
Nethaji

Reply Like (0)

Michael Marre
September 21, 2016 at 10:46 am

Suggest to rework the document since it is not valid just for 9.7 but for
10.1, 10.5 and 11 too.
Regards
Michael Marr
SAP DB2 Development Support

Reply Like (0)

Ajay Gupta
September 22, 2016 at 7:55 pm

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

Reply Like (0)

Add Comment

https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 9/10
6/30/2017 BOBI 4.0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs

Share & Follow

Privacy

Legal Disclosure Terms of Use

Trademark Copyright

Newsletter Sitemap

https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 10/10

Vous aimerez peut-être aussi