DB2 Backup error - SQL2062N + Reason code 138

Asha

ADSM.ORG Member
Joined
Sep 26, 2006
Messages
126
Reaction score
1
Points
0
PREDATAR Control23

Hi There...

I am facing the following error on configuring DB2 for TSM on my AIX Server...

SQL2062N An error occurred while accessing media
"/home/ldapdb2/sqllib/adsm/libtsm.a". Reason code: "138".

I have set the environment variables as follows:
# env | grep DSMI
DSMI_CONFIG=/usr/tivoli/tsm/client/api/bin64/dsm.opt
DSMI_LOG=/home/ldapdb2/sqllib
DSMI_DIR=/usr/tivoli/tsm/client/api/bin64

USEREXIT AND LOGRETAIN is set to ON

Full permissions,owner and group rights have been allocated for the required files...

Able to run dsmapipw:

# ./dsmapipw

*************************************************************
* Tivoli Storage Manager *
* API Version = 5.5.0 *
*************************************************************
Enter your current password:
Enter your new password:
Enter your new password again:

Your new password has been accepted and updated.
root@ouppdir01:/usr/opt/db2_08_01/adsm64

But upon trying to do 'db2adutl query' gives an error..Please guide me ..!!!
 
PREDATAR Control23

Hi,
check this http://adsm.org/forum/archive/index.php?t-1140.html

What's the full path of your db2adutl file? I suspect this is the issue.

Return code 138:

0138 E DSM_RC_TA_NOT_VALID Explanation: [FONT=AIPNM F+ Palatino,Palatino]The trusted agent execution/owner permissions are invalid. [/FONT]System action: [FONT=AIPNM F+ Palatino,Palatino]Processing stopped. [/FONT]User response: [FONT=AIPNM F+ Palatino,Palatino]Have your system administrator check the installation instructions for the client to ensure that the trusted agent permissions are set correctly.
[/FONT]
Double check your env variables and permissions.

Rudy
 
PREDATAR Control23

The db2adutl path is as follows:

/usr/opt/db2_08_01/adsm64/db2adutl

I have changed the dsmtca file permissions and owner/group rights to db2user:

-rwxrwxrwx 1 ldapdb2 dbsysadm 5276923 Nov 01 2007 dsmtca

But Still facing the same error...SQL2062N with reason code '138'

Any help please...!!!!!!!!!!!!!!!!
 
PREDATAR Control23

Hi Max..

I checked out that IBM link as well..I have defined the environment variables in :
/home/db2inst1/sqllib/userprofile
/home/db2inst1/.profile

The dsmtca and the libApiTSM64.a were at the same version level 5.5.0

And also checked this symbolic Link as well using this:
ls -la /usr/lib/libApiTSM64.a


But still facing the same issue..

Please see the db2lev o/p as below:

$ db2level
DB21085I Instance "ldapdb2" uses "64" bits and DB2 code release "SQL08021"
with level identifier "03020106".
Informational tokens are "DB2 v8.1.1.80", "s041221", "U800400", and FixPak "8".
Product is installed at "/usr/opt/db2_08_01".

I have also changed the following:

Log retain for recovery enabled (LOGRETAIN) = RECOVERY
User exit for logging enabled (USEREXIT) = ON
TSM management class (TSM_MGMTCLASS) = DB_MC

# env | grep DSMI
DSMI_CONFIG=/usr/tivoli/tsm/client/api/bin64/dsm.opt
DSMI_LOG=/home/ldapdb2/sqllib
DSMI_DIR=/usr/tivoli/tsm/client/api/bin64

What more is required to be done?
 
Top