Subject: | Syntax Error During Adpreclone.pl command |
|
|
|
| Note:420462.1 | Type: | PROBLEM | |
| Last Revision Date: | 06-JUN-2007 | Status: | PUBLISHED |
In this Document
Applies to:
Application Install - Version: 11.5.10.1
This problem can occur on any platform.
Symptoms
When trying to run the adpreclone commands in both Apps and DB tier,
they fails with the following error message :
ERROR
Global symbol "$resultclone" requires explicit package name at adpreclone.pl line 525.
syntax error at adpreclone.pl line 527, near "$resultclone !"
syntax error at adpreclone.pl line 531, near "}"
Execution of adpreclone.pl aborted due to compilation errors.
Cause
This is explained in the following unpublish bug:
Bug.<5235401> - ADPRECLONE.PL DBTIER FAILS WITH SYNTAX ERROR
The cause of this issue is because adpreclone.pl has a code issue on version 11.5.49 and must be
fixed.
The following code from adpreclone.pl 115.49 is wrong and must be fixed:
------------------------------------
print "/t$syscmd/n";
$resultclone = system "$syscmd";
# added for bug #<4448838>
if($resultclone ! = 0 )
------------------------------------
Solution
To implement the solution, please execute the following steps :
1. Download and review the readme and pre-requisites for Patch.<5225940>
2. Ensure that you have taken a backup of your system before applying the recommended patch.
3. Apply the patch in a test environment.
4. Confirm the following file versions:
adpreclone.pl version 115.50.
You can use the commands like the following:
strings -a $XX_TOP/filename |grep '$Header'
5. Retest the issue.
6. Migrate the solution as appropriate to other environments.