=======================================================================
In a newly installed Oracle Linux 7.9, during AppsTier Cloning there was a error before starting service after adfg execution specific for adadminserver because of module parameter in environment which came with Default Linux installation:
temporary solution to just unset module
permanent solution is to comment on export -f module in file /usr/share/Modules/init/bash
issue occurred during cloning in a new 7.9 OL Server
----------------------------------
[root@rac1 ~]# hostnamectl
Static hostname: rac1
Icon name: computer-vm
Chassis: vm
Machine ID: 7b37c19e92f646038abb0c86a787bd33
Boot ID: 4db1f54a00164aba9b7b7d35769aeea2
Virtualization: vmware
Operating System: Oracle Linux Server 7.9
CPE OS Name: cpe:/o:oracle:linux:7:9:server
Kernel: Linux 5.4.17-2102.201.3.el7uek.x86_64
Architecture: x86-64
[root@rac1 ~]#
[root@rac1 ~]# grep module /usr/share/Modules/init/bash
module() { eval `/usr/bin/modulecmd bash $*`; }
export -f module
MODULEPATH=`sed -n 's/[ #].*$//; /./H; $ { x; s/^\n//; s/\n/:/g; p; }' ${MODULESHOME}/init/.modulespath`
[root@rac1 ~]#
[oracle@rac1 bin]$ ./adcfgclone.pl appsTier
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adcfgclone Version 120.63.12020000.7
Enter the APPS password :
. . . . . .
. . . . . .
-showProgress -nopromptmsg
Log file located at /u01/apps/CLONE/fs1/inst/apps/CLONE_rac1/admin/log/ApplyAppsTier_09011909.log
\ 100% completed
Completed Apply...
Wed Sep 1 19:26:25 2021
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `BASH_FUNC_module'
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `BASH_FUNC_module'
Do you want to startup the Application Services for CLONE? (y/n) [y] :
[oracle@rac1 appl]$
[oracle@rac1 appl]$ adadminsrvctl.sh start
You are running adadminsrvctl.sh version 120.10.12020000.2
Enter the WebLogic Admin password:
Enter the APPS Schema password:
Starting WLS Admin Server...
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `BASH_FUNC_module'
Refer /u01/apps/CLONE/fs1/inst/apps/CLONE_rac1/logs/appl/admin/log/adadminsrvctl.txt for details
adadminsrvctl.sh: exiting with status 0
adadminsrvctl.sh: check the logfile /u01/apps/CLONE/fs1/inst/apps/CLONE_rac1/logs/appl/admin/log/adadminsrvctl.txt for more information ...
[oracle@rac1 appl]$ adadminsrvctl.sh stop
You are running adadminsrvctl.sh version 120.10.12020000.2
Enter the WebLogic Admin password:
Enter the APPS Schema password:
Stopping WLS Admin Server...
Refer /u01/apps/CLONE/fs1/inst/apps/CLONE_rac1/logs/appl/admin/log/adadminsrvctl.txt for details
adadminsrvctl.sh: exiting with status 0
adadminsrvctl.sh: check the logfile /u01/apps/CLONE/fs1/inst/apps/CLONE_rac1/logs/appl/admin/log/adadminsrvctl.txt for more information ...
[oracle@rac1 appl]$
temporary solution: unset module
Permanent solution:
comment on export -f module in file /usr/share/Modules/init/bash
[root@rac1 ~]# vi /usr/share/Modules/init/bash
[root@rac1 ~]# grep module /usr/share/Modules/init/bash
module() { eval `/usr/bin/modulecmd bash $*`; }
#export -f module
MODULEPATH=`sed -n 's/[ #].*$//; /./H; $ { x; s/^\n//; s/\n/:/g; p; }' ${MODULESHOME}/init/.modulespath`
[root@rac1 ~]#
-----------------------------------------------
Thanks for Reading
Regards,
Mohammed Areefuddin.
Suggested Topics :
Linux | DATABASE | RMAN | RAC | EBS |
R1229 M7 Clone | ||||
RAC DataGuard | Pluggable DB Clone | |||
appsutil for DB | ||||
JDK JRE upgrade | ||||
Add EBS Node | ||||
No comments:
Post a Comment