Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 06:45 AM
The DB2 user
Guest
 
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.

  #2  
Old November 12th, 2005, 06:46 AM
David Mooney
Guest
 
Posts: n/a
Default Re: Database backup in V8

The DB2 user <dsd@fd.net> wrote:[color=blue]
> 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.[/color]

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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.