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 > DB2 9.5 on windows with compression

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-09, 08:18
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
DB2 9.5 on windows with compression

DB2 V9.5 (FP2) on Windows. Can't figure out the sytax for the backup with Compression command.



Code:
DB2 BACKUP DATABASE UDBDWDUT TO i:\ WITH 2 BUF
FERS BUFFER 1024 COMPRESS INCLUDE LOGS PARALLELISM 1 WITHOUT PROMPTING
SQL0104N An unexpected token "PARALLELISM" was found following "LOGS".
Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601

Last edited by itsonlyme44; 07-31-09 at 08:49.
Reply With Quote
  #2 (permalink)  
Old 07-31-09, 08:26
tonkuma tonkuma is offline
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
Sequence of options are fixed.
Please try to replace PARALLELISM.
BACKUP DATABASE UDBDWDUT TO i:\ WITH 2 BUF
FERS BUFFER 1024 PARALLELISM 1 COMPRESS INCLUDE LOGS WITHOUT PROMPTING
Reply With Quote
  #3 (permalink)  
Old 07-31-09, 08:27
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
if not specified, the backup is offline. with offline there is no need to include logs..
__________________
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
  #4 (permalink)  
Old 07-31-09, 08:54
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
Code:
db2 BACKUP DATABASE CVNREPO TO i:\ WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 COMPRESS INCLUDE LOGS WITHOUT PROMPTING
SQL2032N The "iOptions" parameter is not valid.
Reply With Quote
  #5 (permalink)  
Old 07-31-09, 09:04
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
remove "include logs"
Reply With Quote
  #6 (permalink)  
Old 07-31-09, 09:24
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
Thank you .. that worked great! If I want to insure that it is a Full OFFLINE backup so that no roll-forward is needed when restoring, would I simply quiesce the DB first or do I need to specify OFFLINE in the command???
Reply With Quote
  #7 (permalink)  
Old 07-31-09, 09:46
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Can I suggest you look into the manual! Those are very simple answers that you should be able to find there.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
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