473,473 Members | 1,491 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

db2Backup API and DB2BACKUP_INCLUDE_LOGS

Hi,

I am tring to use db2Backup Api to make backups. If the backup I am
doing is ONLINE, as part of backup image I want include required log
files.

So I used the parameter iOptions as shown below.

/* Set minimum options for the backup */
backupStruct.iOptions = DB2BACKUP_ONLINE | DB2BACKUP_DB |
DB2BACKUP_INCLUDE_LOGS | DB2BACKUP_COMPRESS;

/* Backup the database */
db2Backup(db2Version810, &backupStruct, &sqlca);

When I do this I am getting "SQL2032N The "iOptions" parameter is not
valid." error messsage.

But If I take out the "DB2BACKUP_INCLUDE_LOGS ", every thing works
fine.

The db2 version I am using is 8.2.

DB2 code release "SQL08026" with level identifier "03070106".
"DB2 v8.1.0.120", "s060801", "MI00165", and FixPak"13".

Could some one please tell me what I am doing incorrectly.
Chandra

Sep 27 '07 #1
1 8364
On Sep 27, 6:13 pm, chandra.krothapa...@gmail.com wrote:
Hi,

I am tring to use db2Backup Api to make backups. If the backup I am
doing is ONLINE, as part of backup image I want include required log
files.

So I used the parameter iOptions as shown below.

/* Set minimum options for the backup */
backupStruct.iOptions = DB2BACKUP_ONLINE | DB2BACKUP_DB |
DB2BACKUP_INCLUDE_LOGS | DB2BACKUP_COMPRESS;

/* Backup the database */
db2Backup(db2Version810, &backupStruct, &sqlca);

When I do this I am getting "SQL2032N The "iOptions" parameter is not
valid." error messsage.

But If I take out the "DB2BACKUP_INCLUDE_LOGS ", every thing works
fine.

The db2 version I am using is 8.2.

DB2 code release "SQL08026" with level identifier "03070106".
"DB2 v8.1.0.120", "s060801", "MI00165", and FixPak"13".

Could some one please tell me what I am doing incorrectly.

Chandra
Confirm the error on:

DB21085I Instance "db2inst1" uses "32" bits and DB2 code release
"SQL08024"
with level identifier "03050106".
Informational tokens are "DB2 v8.1.1.104", "s060120", "U805924", and
FixPak
"11".
Product is installed at "/usr/opt/db2_08_01".

and

DB21085I Instance "db2inst2" uses "64" bits and DB2 code release
"SQL09012"
with level identifier "03010107".
Informational tokens are "DB2 v9.5.0.0", "s070524", "AIX64", and Fix
Pack "0".
Product is installed at "/usr/opt/db2_09_05".

Maybe there is somewhere an include definition error?

Bernard Dhooghe

Oct 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ember | last post by:
I'm trying to take an offline backup on Linux to an NFS mounted filesystem. I have no trouble creating files or directories manually in this filesystem. Here's the df -h for it: Filesystem ...
2
by: Eric Herber | last post by:
Does anybody have any further information regarding the compress option for the db2 backup command introduced in db2 V8.1.4 ? I made several tests on a solaris 2.8 machine with db2 V8.1.4 and...
5
by: mikkel | last post by:
Hello, Im working on a project where I have to bring at production database in house for regression testing. The people who hosts the database (db2 version 7) has made a backup of the base...
6
by: geo | last post by:
hi, we have a problem with the db2uext2.exe under W2000 SP4 and DB2 V8 FP 4a. We copy the sample db2uext.cdisk to db2uext.c, compiled it with Microsoft Visual C++ Toolkit 2003 without errors....
3
by: Adolfo López Escribano | last post by:
I'm try to launch db2Backup from Borland Delphi, but I obtain an undocumented SQLCODE -1152. Any idea? My code is the next: Type Tsqlca = record sqlcaid: Array of Char; sqlcabc: LongInt;...
3
by: datapro01 | last post by:
We are having what appear to be contention issues when running db2 backups. DB2 is version 8.1.1 running on AIX5.1 The scripted backups fail. The scripts issues a list applications, receives...
0
by: Fabian Knopf | last post by:
Hi @ll, System: United Linux 1.0 under VMWARE Workstation. Main System SLES9. Server System: Dell Power Edge 1850 have very serious problem with DB2 V8.1.0.0 .
0
by: Lan W via DBMonster.com | last post by:
I tried to restore DB2 UDB two databases into two different instances on AIX server. the raw devices size of rShortSpace0 and rShortSpace1 on the two instances are the same. # lsvg -l datavg...
1
by: ILPTAB | last post by:
Hello. Can somebody help me out here? I have a web server sitting on a DMZ that has DB2 UDB version 8 installed running on it. I would like this server to be completely independent of our...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.