Wednesday, September 10, 2008

Cloning eBS on Oracle Enterprise Linux 5

When cloning an eBS environment on Oracle Enterprise LInux 5, the following error is shown on both the db and app Tier.

Checking for make... found - /usr/bin/make
Checking for ld... found - /usr/bin/ld
Checking for cc... found - /usr/bin/cc
Checking for ar... found - /usr/bin/ar
Checking for ksh...
Unable to find 'kshell' in path
Unable to locate all utilities with system path.

Looking in the clone script showed me the error came from the script in the $COMMON_TOP/clone/bin directory for appTier and the $ORACLE_HOME/appsutil/clone/bin directory for the dbTier. In the script it's checking for ksh using the following syntax...

# Verify for ksh if its a linux only platform

if test $UNAME = "Linux"; then
printf "Checking for ksh...\t";
VERSN=`/bin/ksh -c 'echo $KSH_VERSION' grep "PD KSH";`;
if test $EC != "0" ; then
printf "\nUnable to find 'kshell' in path\n";
printf "found - $VERSN\n";

When manually checking for the ksh version on Linux 5...
[root@ebs ~]# /bin/ksh -c 'echo $KSH_VERSION'

But when doing the same thing on Linux 4...
[root@ebs ~]# /bin/ksh -c 'echo $KSH_VERSION'
@(#)PD KSH v5.2.14 99/07/13.2

So, it seems the check does not work anymore on Linux 5 ???
For now, I changed both scripts so the check didn't take place. I also logged an TAR, a new script should be delivered....

The new script is delivered in patch 6718351 '11I RAPIDCLONE CONSOLIDATED FIXES JUL/2008'


Nathan said...

I just got done dealing with a tar on this issue also. The patch you suggest was not even mentioned! I was a able to speak with a senior engineer who suggested setting the following ENV variable.

KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2'; export KSH_VERSION

This worked for me, although the patch is probably a better solution.

Bas Klaassen said...


thnx for your comment !