Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

OPatch for WebLogic 12.2.1.3 on Windows fails due to -jre switch issue #28

Open
mrswadge opened this issue Sep 20, 2018 · 1 comment
Open

Comments

@mrswadge
Copy link

When running OPatch on Windows it fails to run the command due to errors. After installing fmw_jdk (1.8.0_172) and fmw_wls (12.2.1.3) the commands fail when presented with the -jre switch.

sbschef.local ---- Begin output of D:\OT\WebLogic\12c\OPatch\opatch.bat apply -silent -jre D:\OT\jdk8/jre -oh D:\OT\WebLogic\12c D:\temp/27342434 ----
sbschef.local STDOUT:
sbschef.local STDERR: The filename, directory name, or volume label syntax is incorrect.
sbschef.local The syntax of the command is incorrect.
sbschef.local ---- End output of D:\OT\WebLogic\12c\OPatch\opatch.bat apply -silent -jre D:\OT\jdk8/jre -oh D:\OT\WebLogic\12c D:\temp/27342434 ----
sbschef.local Ran D:\OT\WebLogic\12c\OPatch\opatch.bat apply -silent -jre D:\OT\jdk8/jre -oh D:\OT\WebLogic\12c D:\temp/27342434 returned 255

I tried normalising the paths to \ instead of /, but this made no difference. I found the only ways to fix the issue was to either remove the -jre switch or to change it to point to a JDK instead by using the -jdk switch.

sbschef.local   * fmw_opatch_opatch_windows[27342434] action apply[2018-09-20T16:05:37+01:00] INFO: Processing fmw_opatch_opatch_windows[27342434] action apply (fmw_opatch::weblogic line 33)
sbschef.local [2018-09-20T16:05:37+01:00] INFO: fmw extract provider, fmw_extract load current resource
sbschef.local [2018-09-20T16:05:40+01:00] INFO: fmw_opatch_opatch_windows[27342434] fired the apply action
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Oracle Interim Patch Installer version 13.9.2.0.0
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Copyright (c) 2018, Oracle Corporation.  All rights reserved.
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Oracle Home       : D:\OT\WebLogic\12c
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Central Inventory : D:\OT\oracle\inventory
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:    from           :
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: OPatch version    : 13.9.2.0.0
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: OUI version       : 13.9.2.0.0
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Log file location : D:\OT\WebLogic\12c\cfgtoollogs\opatch\opatch2018-09-20_16-05-41PM_1.log
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: OPatch detects the Middleware Home as "D:\OT\WebLogic\12c"
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Verifying environment and performing prerequisite checks...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: OPatch continues with these patches:   27342434
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Do you want to proceed? [y|n]
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Y (auto-answered by -silent)
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: User Responded with: Y
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: All checks passed.
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: (Oracle Home = 'D:\OT\WebLogic\12c')
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Is the local system ready for patching? [y|n]
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Y (auto-answered by -silent)
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: User Responded with: Y
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Backing up files...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Applying interim patch '27342434' to OH 'D:\OT\WebLogic\12c'
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: ApplySession: Optional component(s) [ oracle.fmwconfig.common.wls.shared, 12.2.1.3.0 ]  not present in the Oracle Home or a higher version is found.
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.webservices.base, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.libraries, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.libraries, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.libraries, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.webservices.orawsdl, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.jrf.tenancy.common.sharedlib, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.fmwconfig.common.wls.shared.internal, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.rcu, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.rcu, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.common.cam.wlst, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.security.core.sharedlib, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.webservices.wls, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.webservices.wls, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.webservices.wls, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.commons.fileupload.commons.fileupload, 1.3.2.0.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.commons.fileupload.commons.fileupload, 1.3.2.0.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.core.app.server, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.core.app.server, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.core.app.server, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patching component oracle.wls.admin.console.en, 12.2.1.3.0...
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Patch 27342434 successfully applied.
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Log file location: D:\OT\WebLogic\12c\cfgtoollogs\opatch\opatch2018-09-20_16-05-41PM_1.log
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO:
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: OPatch succeeded.
sbschef.local
sbschef.local
sbschef.local     - Create resource fmw_opatch_opatch_windows[27342434]
sbschef.local
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Chef Run complete in 51.687941 seconds
sbschef.local
sbschef.local
sbschef.local Running handlers:
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Running report handlers
sbschef.local Running handlers complete
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Report handlers complete
sbschef.local Chef Client finished, 5/8 resources updated in 56 seconds
sbschef.local [2018-09-20T16:06:20+01:00] INFO: Sending resource update report (run-id: 23e83aba-fd94-4046-9d91-447fc292175c)
@mrswadge
Copy link
Author

Created a pull request to change to JDK instead of JRE.
#29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant