Unix Technical Forum

Database backup in V8

This is a discussion on Database backup in V8 within the DB2 forums, part of the Database Server Software category; --> Hello, When I run the following command under a directory different from $INSTHOME: 'db2 backup db <mydb> to . ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 05:04 PM
The DB2 user
 
Posts: n/a
Default Database backup in V8

Hello,

When I run the following command under a directory different from $INSTHOME:
'db2 backup db <mydb> to . with 2 buffers buffer 2048'

the generated file is in the $INSTHOME directory.
My operating system is an AIX.

Why do we see this behaviour?
Why should we write the full path directory with the 'to' option?

The problem doesn't appear in V7.

Thanks in advance for your help.


Best regards,

The DB2 user.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 05:05 PM
David Mooney
 
Posts: n/a
Default Re: Database backup in V8

The DB2 user <dsd@fd.net> wrote:
> When I run the following command under a directory different from $INSTHOME:
> 'db2 backup db <mydb> to . with 2 buffers buffer 2048'
>
> the generated file is in the $INSTHOME directory.


If you specify a relative path name as the backup target, it will be used
in the context of the DB2 *server*, not the client. There are too many
weird special cases to deal with when the client and server aren't on the
same system (or even the same operating system) that we decided it's best
to just do everything in the context of the server. (The one special case
is when you don't specify any backup target, in which case the client
figures out what its current directory is and passes that to the server.)

Your choices are:

1. Back up to a fully-qualified path; or
2. Don't specify a backup target and let DB2 figure it out for you.

dave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com