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 > Backing up a Database to TSM with a Timestamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-07-11, 07:56
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
Backing up a Database to TSM with a Timestamp

Hello guys,

Sometimes I copy my local backups to TSM by the command:

archive –archmc=MCDWH08 –deletefiles “/path/backup/*”


Now i want to copy it directly to TSM by the Command:

backup database blabla use tsm TSM_MGMTCLASS=MCDWH01
but i get a TSM Reason Code 400.

Does anyone have an idea for what i am doing wrong?
Reply With Quote
  #2 (permalink)  
Old 07-07-11, 08:02
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Most likely the VENDOROPT value is incorrect.
Reply With Quote
  #3 (permalink)  
Old 07-07-11, 08:03
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
what would the backup command look like?
Reply With Quote
  #4 (permalink)  
Old 07-07-11, 09:22
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Reply With Quote
  #5 (permalink)  
Old 07-07-11, 11:55
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Hi,

you can check the TSM return-codes in the header file (if installed on your box).
The file ist name dsmrc.h
#define DSM_RC_INVALID_OPT 400 /* invalid option */

The keyword OPTIONS is missing in your Backup-Command:
... use tsm OPTIONS "TSM_MGMTCLASS=MCDWH01" ....

In the Options you have to specify the Options from TSM and not from DB2, so TSM_MGMTCLASS might not be the correct keyword. Check the from TSM.

Cheers
nvk
Reply With Quote
  #6 (permalink)  
Old 07-07-11, 11:56
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Lookup for TSM_MGMTCLASS in the documentation for your version.

You should either specify it as a config parm or the defaults will be used.

The config name tsm_mgmtclass is db2 thing. tsm may not understand it if you use it in vendoropt

HTH

Sathyaran
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 07-08-11, 03:20
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
Hey guys,
First of all thanks for the replies.
As you said i tried the command

db2 "backup database toolsdb online use tsm options "TSM_MGMTCLASS=MCDWH01" "

and this Error comes back ( again ):

SQL2033N An error occurred while accessing TSM during the processing of a
database utility. TSM reason code: "400".

I actually do not understand what u mean with use the vendoroptions ... sorry ... can you lead me through this please? Thank you
Reply With Quote
  #8 (permalink)  
Old 07-08-11, 04:39
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Reason code 400 :

0400 E: DSM_RC_INVALID_OPT An invalid option was found during option parsing.

vendor options and options are the same ... vendoropts is set as a db config whereas options is provided as part of the command.

Whatever you mention in options is for the Storage vendor system and DB2 does not parse/understand it. TSM_MGMTCLASS is a DB2 thing. Try using just MGMTCLASS in the options paramete (I have just made up, as you do not seem to have access to TSM info just like me ;-) )
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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