Académique Documents
Professionnel Documents
Culture Documents
0 Installation with separate DB2 Database & Customize database requirement | SAP Blogs
Sunny Pahuja
more by this author
1
share share tweet share
Follow
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
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
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
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
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
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
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
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
nethaji palani
April 29, 2015 at 8:42 am
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
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
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
Privacy
Trademark Copyright
Newsletter Sitemap
https://blogs.sap.com/2014/01/02/bobi-40-installation-with-separate-db2-database-customize-database-requirement/ 10/10