db2 online backup use tsm

fenglimian

ADSM.ORG Member
Joined
Sep 18, 2002
Messages
4
Reaction score
0
Points
0
hi everybody:

i'm configuring online backup db2 use tsm(db2 7.1,tsm server 4.1.2.0 for aix 4.3,tsm client 4.1.1.0 for aix 4.3) ,my operations as follow:

1.$db2 update db cfg for sample using TSM_MGMTCLASS db2backupclass

2.Set the environment variables for the API client,/home/db2inst1/sqllib/db2profile:

export DSMI_DIR=/usr/tivoli/tsm/client/api/bin

export DSMI_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt

export DSMI_LOG=/home/db2inst1/tsm

and i logout and login in as instance owner.

3.my dsm.sys(/usr/tivoli/tsm/client/api/bin/dsm.sys) and dsm.opt(/usr/tivoli/tsm/client/api/bin/dsm.opt) files:



dsm.opt

SErvername 44p



dsm.sys

SErvername 44p

COMMmethod TCPip

TCPPort 1500

TCPServeraddress 192.168.192.191

NODename 44p

TCPCLIENTAddress 192.168.192.191

PASSWORDAccess generate



4.as db2 instance owner,

$db2stop

$db2start



5.cc -I/opt/tivoli/tsm/client/api/bin/samples -L/usr/lib -lApiDS -o db2uext2 db2uext2.c



6.db2 update db cfg for sample using userexit on



7.db2 update db cfg for sample using TSM_MGMTCLASS api_mgmttest

db2 update db cfg for sample using TSM_MGMTCLASS NULL



8.i have a very sample include/exclude files list



9.

db2 => list applications for db sample



Auth Id Application Appl. Application Id DB # of

Name Handle Name Agents

-------- -------------- ---------- ------------------------------ -------- -----

DB2INST1 db2bp 11 *LOCAL.db2inst1.020918214808 SAMPLE 1



10.db2 => backup db sample use tsm

SQL2062N An error occurred while accessing media

"/home/db2inst1/sqllib/adsm/libadsm.a". Reason code: "2033".

db2 => backup db sample online use tsm

SQL2062N An error occurred while accessing media

"/home/db2inst1/sqllib/adsm/libadsm.a". Reason code: "2033".





what's the matter?



thanks!

fenglimian :confused: [email protected]
 
Hi,



Usually the adsm API result code is displayed this way. You can look it up in the dsmrc.h in the API/include directory. I looked it up in my system (win2000) and found: #define DSM_RC_NO_NODE_REQD 2033 /* node not allowed w/ pw=generate */



I hope this helps.
 
Back
Top