RE: Taking Dump of DB2 database

RE: Taking Dump of DB2 database

 

  

Hi Deepak,

You may use DB2 BACKUP DATABASE command to take backup of your database.
Supposing that the name of your database is XYZ, here is the BACKUP
PROCEDURE which you can execute from your DB2 CLP window -

Perform following steps to back up the existing XMLSTORE database:
. Disconnect all applications connected to DB2 and restart the
database server instance by executing following commands from operating
system's command console:
db2stop force
db2start
. Create a backup directory using the following example command:
For Linux and UNIX:
mkdir /export/eventxml_bkup
For Windows:
mkdir \export\eventxml_bkup

PS: On Windows platform, do not create back up directory at a location which
has one or more WHITE SPACES in its path. The database backup DB2 command
fails to backup databases in locations which has white spaces in their path,
on Windows platform.

. Modify the permissions on the backup directory so that the DB2
instance owner user can write to it:
For Linux and UNIX:
chmod a+w /export/eventxml_bkup
For Windows:
chmod a+w \export\eventxml_bkup
. Perform full backup of the database to the newly created backup
directory using following example command:
For Linux and UNIX:
db2 backup database XYZ user db2inst1 using password to
/export/eventxml_backup with 2 buffers buffer 512 parallelism 2
For Windows:
db2 backup database eventxml user db2inst1
using password to \export\eventxml_backup with 2 buffers buffer 512
parallelism 2

Regards,
-----------------------------------------------
Pankaj Khamkar
-----------------------------------------------


-----Original Message-----
From: Deepak
[mailto:db2udbdba-ezmlmshield-x11448010.[Email address protected]
Sent: Wednesday, June 27, 2007 6:56 PM
To: LazyDBA Discussion
Subject: Taking Dump of DB2 database

Hi,

I have to take dump/backup of existing DB2 database, that is
to be ported to some other machine.

Wat utility do I use? Please help me.

Regards,

Deepak



DISCLAIMER:
This message contains privileged and confidential information and is
intended only for an individual named. If you are not the intended
recipient, you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete or contain viruses. The sender, therefore, does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission. If verification is required,
please request a hard-copy version.


---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

DB2 & UDB email list listserv db2-l LazyDBA home page