My Oracle Support Banner

Post Clone In DbTier At OEL8 (sh: Which: Line 1: Syntax Error: Unexpected End Of File) (Doc ID 2850503.1)

Last updated on JULY 19, 2022

Applies to:

Oracle Applications Manager - Version 12.2.6 to 12.2.11 [Release 12.2]
Information in this document applies to any platform.

Symptoms

On : 12.2.10 version, Rapidclone

Post Clone in dbTier at OEL8 (sh: which: line 1: syntax error: unexpected end of file)

Oracle Linux 8 during post clone stage at below end with following error.


perl txkCfgUtlfileDir.pl -contextfile=/u01/oracle/PROD/db/tech_st/19.11.0/appsutil/PROD_prodora.xml -oraclehome=/u01/oracle/PROD/db/tech_st/19.11.0 -outdir=/u01/oracle/PROD/db/tech_st/19.11.0/appsutil/log -mode=syncUtlFileDir



Context Value Management will now update the Context file

  Updating Context file...COMPLETED

  Attempting upload of Context file and templates to database...COMPLETED

sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
Updating rdbms version in Context file to db19
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...

AutoConfig completed with errors.


Completed : Fri Feb 18 22:43:36 +03 2022


Successfully Completed the script
ERRORCODE = 0 ERRORCODE_END
 

ERROR
-----------------------

h: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
Updating rdbms version in Context file to db19
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...




STEPS
-----------------------
The issue can be reproduced at will with the following steps:

1.While Running autoconfig/preclone
1. BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot complete the clone/autoconfig

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.