Archive | DB2 RSS feed for this section

Fixing “The transaction log for the database is full” problem in DB2

[IBM][CLI Driver][DB2/AIX64] SQL0964C The transaction log for the database is full. SQLSTATE=57011 The above mentioned error occured when database log file is not large enough for the application to create log files. The solution for this problem is to increase LOGFILSIZ, LOGPRIMARY and LOGSECOND parameters. When you will be going to increase the values for […]

Read more

How to connect Cognos 10.2 with DB2 v9.7 data source on AIX?

To access DB2 remote database data source in Cognos you have to do following things on Cognos machine. Install DB2 client Set DB2 envoirnment variables Catalog remote host and database After above these steps, add a new DB2 data source in Cognos Configurations. Navigate to IBM Cognos Connection > Launch > IBM Cognos Administration > […]

Read more

How to access remote database from DB2 client?

If you want to access a remote DB2 (v9.7) database from another host that’s running DB2 client. You have to do following things on client machine: Adding remote host in host file Switch user to DB2 user (e.g. db2inst1) Catalog remote node Catalog remote database Adding remote host in host file Open /etc/hosts file and […]

Read more
How to run DB2 store procedure from a shell script via root user?

How to run DB2 store procedure from a shell script via root user?

If you have used default settings while installing DB2 on AIX. You have created db2inst1 user to use and access DB2. This post is related to the scenario, when a root user have to execute a shell script containing a store procedure of DB2. Create a shell script with following contents. Your every statement will […]

Read more
How to create tablespace in DB2 v9.7?

How to create tablespace in DB2 v9.7?

I was trying to create tablespace in DB2 on AIX. I wanted to have that tablespace in a directory at my operating system. I have also created a bufferpool having the same pagesize of tablespace (that is necessary). But was getting SQLCODE=-104. I also tried with `FILE` tokens giving the sizes too. But was unable […]

Read more