473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to splite db2 backup image in two dirrerent size directory

Hi, Friends,
I have oneconcern on my stragety on db2 backup.
My db2 databse backup imdage with size 100G.
On the server, it has two directories which I can use to backup:
directory a with 30 G free spaces
directory b with 90 G free psace
1. Can i use db2 backup db mydatabae to a, b ?
2. If it is OK, how can I make it run automaticly bypassing the prompt
(I am wondering when a is full , it will prompt the following warning
messgae):
Do you want to continue(c), terminate this device only(d), abort
the
utility(t)
? (c/d/t) c
SQL2059W A device full warning was encountered on device "a:\".
Do you want to continue(c), terminate this device only(d), abort
the
utility(t)
? (c/d/t) c

Thanks for your reply

Jan 11 '07 #1
9 4445
george.zh...@lombard.ca wrote:
Hi, Friends,
I have oneconcern on my stragety on db2 backup.
My db2 databse backup imdage with size 100G.
On the server, it has two directories which I can use to backup:
directory a with 30 G free spaces
directory b with 90 G free psace
1. Can i use db2 backup db mydatabae to a, b ?
2. If it is OK, how can I make it run automaticly bypassing the prompt
(I am wondering when a is full , it will prompt the following warning
messgae):
Do you want to continue(c), terminate this device only(d), abort
the
utility(t)
? (c/d/t) c
SQL2059W A device full warning was encountered on device "a:\".
Do you want to continue(c), terminate this device only(d), abort
the
utility(t)
? (c/d/t) c

Thanks for your reply
Did you try WITHOUT PROMPTING option at the end of backup command?

Jan 11 '07 #2
Hi, Mark,
thank you for the reply.
I didn'y try this before.
Now I am in the process of designing a way to backup for that scenario.
First is it possible to split db2 backup imdage with different size
directories. Even one directory is very small. when it is full, db2
will write all the image to the bigger directory with free space. I am
not sure this is OK or not.

thanks,
Mark A wrote:
george.zh...@lombard.ca wrote:
Hi, Friends,
I have oneconcern on my stragety on db2 backup.
My db2 databse backup imdage with size 100G.
On the server, it has two directories which I can use to backup:
directory a with 30 G free spaces
directory b with 90 G free psace
1. Can i use db2 backup db mydatabae to a, b ?
2. If it is OK, how can I make it run automaticly bypassing the prompt
(I am wondering when a is full , it will prompt the following warning
messgae):
Do you want to continue(c), terminate this device only(d), abort
the
utility(t)
? (c/d/t) c
SQL2059W A device full warning was encountered on device "a:\".
Do you want to continue(c), terminate this device only(d), abort
the
utility(t)
? (c/d/t) c

Thanks for your reply

Did you try WITHOUT PROMPTING option at the end of backup command?
Jan 11 '07 #3
I have 2 "tricks" for this task:

1) write the backup to a named pipe where you have a reader process
attached which reads the backup stream and writes to the first dir
until it is full and then writes to the next dir... (OK - you'll have
to program a bit...;-)
2) write your backup to 4 files (instead of 2) and put 3 of them in the
dir which is 3 times bigger than the other (and hope that DB2 will
distribute the data well to the 4 locations)
george.zh...@lombard.ca wrote:
Hi, Friends,
I have oneconcern on my stragety on db2 backup.
My db2 databse backup imdage with size 100G.
On the server, it has two directories which I can use to backup:
directory a with 30 G free spaces
directory b with 90 G free psace
1. Can i use db2 backup db mydatabae to a, b ?
2. If it is OK, how can I make it run automaticly bypassing the prompt
(I am wondering when a is full , it will prompt the following warning
messgae):
Do you want to continue(c), terminate this device only(d), abort
the
utility(t)
? (c/d/t) c
SQL2059W A device full warning was encountered on device "a:\".
Do you want to continue(c), terminate this device only(d), abort
the
utility(t)
? (c/d/t) c

Thanks for your reply
Jan 12 '07 #4
Depending on the version you have, have you tried to do a backup with
compress ?
db2 backup db to .... compress .It will save some disk space to you

/Roger

Jan 12 '07 #5
We use db2 WSE v8.2.5.
How can I calculate the size of the backup image.
I fould it is almost equal to the used size of all the table spaces.
If my db2 version can use compress, how will i get the space size of
the backup with compress before I backup.
Does anyone have the express with WITHOUT PRompt as Mark suggested?
Thanks,
kaval...@hotmail.com wrote:
Depending on the version you have, have you tried to do a backup with
compress ?
db2 backup db to .... compress .It will save some disk space to you

/Roger
Jan 12 '07 #6
Ok .. compress is supported in your version and I think that backup
will be approx 5 or 6 times smaller ( I dont remember the exact figures
because it was a long time ago we implemented this in our envm) than
the origin one... try it and you will notice that the backup time and
restore is almost identical with or without compress..
/Roger

Jan 12 '07 #7
Hi, Roger,
Thank you for the tip.
For this stragety, is there any restriction for restore.
I just submit restore with the compress backup image?
Can i restore it to another server (the same OS and db2?
Thanks,
kaval...@hotmail.com wrote:
Ok .. compress is supported in your version and I think that backup
will be approx 5 or 6 times smaller ( I dont remember the exact figures
because it was a long time ago we implemented this in our envm) than
the origin one... try it and you will notice that the backup time and
restore is almost identical with or without compress..
/Roger
Jan 12 '07 #8
Hi George...the only thing I can think of is that if you restore a
compressed online backup and included the log files in the backup make
sure that the path for the log files is not in use and use the overflow
log path parameter during the restore ie redirected restore.
/Roger

Jan 15 '07 #9
Hi, Roger,
Thank you for the reply.
In fact our backup is off line backup. We don't need to log files
restored.
It should be no proble to restore with the backup image of compress.
Thanks again,
George
ka******@hotmail.com wrote:
Hi George...the only thing I can think of is that if you restore a
compressed online backup and included the log files in the backup make
sure that the path for the log files is not in use and use the overflow
log path parameter during the restore ie redirected restore.
/Roger
Jan 15 '07 #10

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

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
1
by: Luc Le Blanc | last post by:
I'm trying to restore a backup from a DMS DB2/2 database. The original DB has 3x 1Gb containers in the user tablespace. So the backup has 3 files, bearing the time of the backup as file name, with...
5
by: Jim | last post by:
Hello, I have a broken server that we are going to be moving off to a new server with a new version of DB2 but here is what I have right now: RedHat 7.0 (2.2.24smp) DB2 v6.1.0.40 I am...
6
by: Eric Herber | last post by:
I've a question regarding db2 (V8.1) and database backups going to a storage manager like TSM for example. As I can see in the storage manager if I backup the complete database over the TSM API...
4
by: Hardy | last post by:
hi gurus, now I have to backup and restore a 8 T size db2 database. from two s85 to two 670. the partitions,tablespaces of the db should be redesigned then I plan to use redirected restore. but...
3
by: Anurag | last post by:
Hi, I posted this on other user-groups. Hardly got any responses. Here goes the question: PLATFORM = DB2 UDB 8.2+ on AIX 5.x, DPF Two Topics broadly: (A) I wish to find out a rough...
0
by: prerak_v_shah | last post by:
Hi All, These days I was working on IBM DB2 database for windows with my .Net Application. Now, it was required to backup database created on one machine to the other machine. I was also able...
10
by: Konstantin Andreev | last post by:
Hello. Some time ago I asked in this conference, - How to use an ONLINE BACKUP to restore database onto another system? - but got no answers. Therefore I can conclude it is not possible. But......
3
by: dcruncher4 | last post by:
It is possible that we may be asked to restore a production tape, say 3 yrs later. We would prefer redirect restore for that. I am documenting a process to do a redirect restore. We take...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.