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>.sh 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.

フィードバック

お役に立ちましたか?

はい いいえ
お役に立ちましたか
理由をお聞かせください
フィードバックありがとうございました

このトピックへフィードバック

送信