PostRank

2009/09/08

如何解決Unable to Find 'kshell' in Path When Running adcfgclone.pl

Symptoms

Receive the following error when running perl adcfgclone.pl dbTier in a new target environment:-

Checking for ksh...
Unable to find 'kshell' in path

Cause

This is caused by the checks for pdksh in adchkutil.sh. The checking made sense for previous Linux versions but this has changed. Moreover the pdksh is not needed on the DB tier hence the check became obsolete.

Solution

Workaround:
-----------------
Before running the perl utility on the adcfgclone.pl script set the KSH_VERSION. The following is applicable to the Linux Red Hat 5 platform

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

Repeat the 'perl adcfgclone.pl dbTier' and it should now run successfully.

Permanent fix:
------------------
Apply Patch 5972212 "ADCHKUTL.SH FAILS IN SLES 10 DUE TO PDKSH REQUIREMENT" for 11i or R12 which will bring the correct version of adchkutl.sh 115.6 which no longer checks for pdksh
 

沒有留言: