OS Errors sh: scl: line 1: syntax error: unexpected end of file while starting WebLogic Admin service in EBS 12.2 on Redhat Linux 8.9, here’s how to solve it!

OS level error while starting WebLogic Admin adadminsrvctl.sh service in EBS 12.2 on Redhat and or Oracle Linux 8.9 :

You are running adadminsrvctl.sh version 120.10.12020000.11

Starting WLS Admin Server…
Refer /u01/8005_uat_app/ebiz/fs1/inst/apps/PREUPG_ebsappuat/logs/appl/admin/log/adadminsrvctl.txt for details

AdminServer logs are located at /u01/8005_uat_app/ebiz/fs1/FMW_Home/user_projects/domains/EBS_domain/servers/AdminServer/logs

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/8005_uat_app/ebiz/fs1/inst/apps/PREUPG_ebsappuat/logs/appl/admin/log/adadminsrvctl.txt for more information …

.end std out.

sh: scl: line 1: syntax error: unexpected end of file
sh: error importing function definition for scl’ sh: ml: line 1: syntax error: unexpected end of file sh: error importing function definition forml’
sh: switchml: line 1: syntax error: unexpected end of file
sh: error importing function definition for switchml’ sh: which: line 1: syntax error: unexpected end of file sh: error importing function definition forwhich’
sh: ml: line 1: syntax error: unexpected end of file
sh: error importing function definition for ml’ sh: _module_raw: line 1: syntax error: unexpected end of file sh: error importing function definition for_module_raw’
sh: scl: line 1: syntax error: unexpected end of file

.end err out.


To solve the error while starting weblogic admin server, follow the given below

Solution:

  1. vi .bash_profile of your EBS Application OS user
    unset which
    unset scl
  2. Login via root user and rename below file :
  3. mv /etc/profile.d/modules.sh /etc/profile.d/modules.sh.bkup
  4. Take a fresh putty session on Linux
    now Log out, log back in, and set the application environment.

About Syed Raheel

I have total of 17 years and more than 15 years experience in Oracle ERP E-Business Suite R11i , R12.1.3 , 12.2.4 to 12.2.11 with Oracle 10g/11g/12c and 19c with Red Hat / Oracle Enterprise Linux Environments. I am Working as Oracle EBS APPS Database Consultant in Advanced Operations Technology, A Saudi Arabian IT/ERP Consulting firm, I am responsible for New Technical Implementations, Upgradation, Migrations and Providing 24x7 support for critical ERP Production Application & Databases. Specialties: Oracle Application Oracle E-Business Suite R12 Oracle Applications System Administration Oracle Applications Database Administration

Check Also

Primary Oracle Database is not able to ship log to Standby Database

ISSUE :My Primary Database is not able to ship Archive Logs to Standby DatabaseOn Primary …

Leave a Reply