You are here: Troubleshooting > tset Errors Appear in the LifeKeeper Log File

tset Errors Appear in the LifeKeeper Log File

Cause:

The su commands used by the SAP and Database Recovery Kits cause a ‘tset’ error message to be output to the LK log that appears as follows:

    tset: standard error: Invalid argument

This error comes from one of the profile files in the SAP administrator's and Database user’s home directory and it is only in a non-interactive shell.

Action:

If using the c-shell for the Database user and SAP Administrator, add the following lines into the .sapenv_<hostname>.csh in the home directory for these users. This code should be added around the code that determines if ‘tset’ should be executed:

if ( $?prompt ) then

       tty -s

       if ( $status == 0) then
            .
            .
            .
       endif
  endif

Note: The code from “tty –s” to the inner “endif” already exists in the file.

If using the bash shell for the Database user and SAP Administrator, add the following lines into the .sapenv_<hostname>.sh in the home directory for the users.

Before the code that determines if ‘tset’ should be executed add:

     case $- in

 *i*) INTERACTIVE =“yes”;;

           *) INTERACTIVE =“no”;;

     esac

Around the code the that determines if ‘tset’ should be executed add:

              if [ $INTERACTIVE == “yes” ]; then
              tty –s
              if [ $? –eq 0 ]; then
                   .

                   .
                   .
              fi
         fi

Note: The code from “tty –s” to the inner “endif” already exists in the file.

© 2012 SIOS Technology Corp., the industry's leading provider of business continuity solutions, data replication for continuous data protection.