If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > unable to take a database backup using compress yes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-11, 06:47
divya.s divya.s is offline
Registered User
 
Join Date: Jul 2011
Posts: 36
Question unable to take a database backup using compress yes

db2 backup db sample user db2admin using 123 to d:\backup
WITH COMPRESS YES throws me an error.

what is the right command to be used..???
Reply With Quote
  #2 (permalink)  
Old 11-08-11, 06:56
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
what is the complete command you have been using
what is the complete error you get ?
we can not see your system from the forum ? correct ??
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 11-08-11, 07:15
divya.s divya.s is offline
Registered User
 
Join Date: Jul 2011
Posts: 36
Exclamation

it just says that the command is invalid...
Reply With Quote
  #4 (permalink)  
Old 11-08-11, 07:16
divya.s divya.s is offline
Registered User
 
Join Date: Jul 2011
Posts: 36
Exclamation

SQL0104N An unexpected token "yes" was found following "COMPRESS". Expected
tokens may include: "INCLUDE". SQLSTATE=42601
Reply With Quote
  #5 (permalink)  
Old 11-08-11, 07:42
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by divya.s View Post
SQL0104N An unexpected token "yes" was found following "COMPRESS". Expected
tokens may include: "INCLUDE". SQLSTATE=42601
Have you tried looking up the correct command syntax in the manual?
Reply With Quote
  #6 (permalink)  
Old 11-08-11, 07:53
siddhu.pandu0854 siddhu.pandu0854 is offline
Registered User
 
Join Date: Nov 2011
Posts: 43
Hi Divya There is no need to mention YES for Compress option

" db2 backup db sample user db2admin using 123 to d:\backup
WITH COMPRESS " you can issue cmd like this then u will get proper out put
Reply With Quote
  #7 (permalink)  
Old 11-08-11, 08:02
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
according to the doc the WITH is not expected
just backup ... compress
the doc is always helpfull .. just have a look.... it is for free...
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #8 (permalink)  
Old 11-08-11, 22:07
divya.s divya.s is offline
Registered User
 
Join Date: Jul 2011
Posts: 36
thanku all...!!!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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