Linux Operating System (MOSC)

MOSC Banner

which2.sh profile file issues with OEL 8.5 update

edited Apr 11, 2022 11:52PM in Linux Operating System (MOSC) 7 commentsAnswered

hi everyone,


Good day.


Recently we updated our OEL8.2 OS to 8.5. After which SAP command ZINVEXACTKEY wasn't working. The SAP debug error was: "sh:error importing function definition for 'which' and sh: which: line 1: syntax error: unexpected end of file’"



Apparently the /etc/profile.d/which2.sh file is updated with the 8.5 release. So, to whether this is the problem, I copied the which2.sh version from another oel8.2 server, technically I reinstated the file to older version before the OEL 8.5 update. After this, the issue in SAP disappeared.


There is a similar RHEL issue with same version update reported in

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center