TSM ANS1245E The file has an unknown format When doing a RMAN restore

TSM ANS1245E The file has an unknown format

If the DBAs get the error “ANS1245E The file has an unknown format”

when doing a RMAN restore of a DB from one machine to another, check the version of the TSM client API ( not the TDP version ) is the same on both machines.

The easiest way to do this is to type dsmc on both machines

This is machine 1 where the TSM RMAN backup was done

$ dsmc
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 7, Release 1, Level 1.0

This is machine 2 where the DBAs were restoring the RMAN backup to

$ dsmc
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 6, Release 4, Level 2.0

The fix was to upgrade the TSM client on machine 2 to 7.1.1 to match that on machine 1. Once the client was updated the RMAN restore worked fine.

TSM ANS4042E one or more unrecognised characters and is not valid , Linux client

When backing up on a Linux client to TSM getting the error :-

ANS4042E Object name  contains one or more unrecognised characters and is not valid

In our case we had file names based on surnames – some of which had non english characters.

The fix was :-

export LANG=C

In our backup script.

 

Expire TSM client password and email new password

If you want to check your TSM client passwords are expiring and generating a new password you can use the mailprog stanza in the dsm.sys file on the client and it will email you with the newly generated password when it expires.

In dsm.sys within the Server section :-

MAILPROG /usr/bin/mailx -c cc@host1 -b bcc@host2  root@host3

Then when the password expires and generates a new one it will email the new one to those on the addresses above