473,396 Members | 1,827 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,396 software developers and data experts.

Database backup without using 'backup database'

Suppose a running database (DB2 UDB) with all containers being SMS
based (file system as JFS or JFS2 on AIX).

How to make a backup (online) by doing a file system backup and not a
database backup?

Could this be done with:

db2 set write suspend for db

backup file system data used by db2 data and logs

db2 set write resume for db

with the purpose of doing:

restore of db2 file system data on another system
startup and usage of database.

The questions are:

- will the restored database be consistent after start/restart

- what additional resources are taken between suspend write and
resume write (a file system backup takes more time that just splitting
off a snapshot in a storage subsystem).

Bernard Dhooghe

May 18 '06 #1
3 2805
What you are attemting is pzartially correct.
Putting your running db in write suspend is the first step.
Using file system copy to the target is the next. It depends on what how
you plan to use the db on the target: standby, snapshot or mirror.
You will have more or less to copy.
Once copied the write resume is the proper way.

On the target, you have to ensure that either ALL of the following are true
and the same:
Instance name, db bname, dbpath,logpath,archivelogpath,all container paths.
Then you can use the:
db2inidb command with the proper parm.

If one or some or all of the above change, you will have to read the docs
and learn to use the relocatedb command to generate the specific file that
will tell what to relocate.

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Bernard Dhooghe" <dh******@yahoo.com> a écrit dans le message de news:
11*********************@j55g2000cwa.googlegroups.c om...
Suppose a running database (DB2 UDB) with all containers being SMS
based (file system as JFS or JFS2 on AIX).

How to make a backup (online) by doing a file system backup and not a
database backup?

Could this be done with:

db2 set write suspend for db

backup file system data used by db2 data and logs

db2 set write resume for db

with the purpose of doing:

restore of db2 file system data on another system
startup and usage of database.

The questions are:

- will the restored database be consistent after start/restart

- what additional resources are taken between suspend write and
resume write (a file system backup takes more time that just splitting
off a snapshot in a storage subsystem).

Bernard Dhooghe


May 18 '06 #2
Pierre,

Can you please elaborate the following step for any product that you
can(AIX or Linux preferred):

Pierre: Using file system copy to the target is the next. It depends
on what how
you plan to use the db on the target: standby, snapshot or mirror.
You will have more or less to copy.
Kums: say I want to do a mirror, that way it will be a backup, and I
have to rollforward. How do I actually do the filesystem copy? The unix
or vendor product based steps are needed to get an understanding.

This is not elaborated in any manuals as it may depend on the vendor
product, but I am curious to know the exact steps.

Thanks very much in advance.

Kums

May 18 '06 #3
The following link will give you quite a lot: Just to let you know, a lot
of info on DB2 is in the Google db.
Going to Google search: db2 and "split mirror" produced that as the first
hit.
http://www-128.ibm.com/developerwork...0204quazi.html

As you see it is V7 but it applies to V8 also.

If you initdb as a mirror, you can do maintenance and backup on the copy and
then restablish the mirrors in a reverse way.

Now for the file system copies, it depends on what disk hardware you are
using. It can be as crude as doing an OS file copy to tape and copying to
disk on the target and as fancy as using Flash Copy services on an IBM ESS
box.

If you use DB2 Backup commands, it could be a little more interesting.

Let me know if you need more, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<hi****@gmail.com> a écrit dans le message de news:
11**********************@j55g2000cwa.googlegroups. com...
Pierre,

Can you please elaborate the following step for any product that you
can(AIX or Linux preferred):

Pierre: Using file system copy to the target is the next. It depends
on what how
you plan to use the db on the target: standby, snapshot or mirror.
You will have more or less to copy.
Kums: say I want to do a mirror, that way it will be a backup, and I
have to rollforward. How do I actually do the filesystem copy? The unix
or vendor product based steps are needed to get an understanding.

This is not elaborated in any manuals as it may depend on the vendor
product, but I am curious to know the exact steps.

Thanks very much in advance.

Kums


May 19 '06 #4

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

Similar topics

1
by: Andre | last post by:
Hi, I have a database (or better: used to have) and backup consisting of - the initial (complete) database - all log files since then (or so I thought) After making a data entry error I wrote...
2
by: Matt | last post by:
I run SQL Server 2000 and use thier database maintenance plans to backup my databases. My questions is what happens if a change is being made to a database table while a backup is running? Should I...
6
by: alanknipmeyer | last post by:
Hi, I`m in the process of migrating a Access 2002 (Run in 2000 mode) from Windows 98 to Win2K Server. It is a shared resource via a file share on the 98 Server. Client systems are Win98 with the...
5
by: Deano | last post by:
I'm experiencing bloat problems when I restore my backup files. Users can take a look at the reports of any previous backup without having to ensure they have a backup of their current data - this...
30
by: Wes | last post by:
On a nightly basis, we shut the database down and do a file system backup. A short chronology of our database problem: 8/21 - count(*) of user tables succeeded (done once a week to get...
5
by: HSP | last post by:
hi. i need to restore an old database. The db was backed up using a DLT drive, using 2 volumes. The content for the tapes was copied to file onto Solaris machine using rsh and dd (for backup...
7
by: tommydkat | last post by:
Hi! I need to migrate a UDB 7.1 32-bit database on one HP-UX system to a 8.3 (FP3) 64-bit database on a new HP-UX system. I found this newsgroup post which indicates this not possible using...
3
by: Big Charles | last post by:
Hi, We have developed an ASP.NET web application and are planning to host it in an external Server, which provides us a good bandwidht. We need to put he web application outside because the...
1
by: bmoos1 | last post by:
When I came in on Monday and tried to open my database, everything worked fine until I tried to run the database splitter. It didn't work, but when I tried to go back into my database, it says I...
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:
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
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,...

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.