Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all 1640 articles
Browse latest View live

Article 1

$
0
0

Applying WebLogic Server APRIL PSU 2019 WebLogic 29016089 PATCH Fails saying "Conflicts/Supersets" or "error code 73"



OPatch details: -


[oraapp@middleware$] export ORACLE_HOME=/u01/oracle/mw/12.2.1/app
[oraapp@middleware$] export PATH=$ORACLE_HOME/OPatch$PATH
[oraapp@middleware$] which opatch
/u01/oracle/mw/12.2.1/app/OPatch/opatch

[oraapp@middleware$] opatch version
OPatch Version: 13.9.4.0.0

OPatch succeeded.
########################################################################

OPatch PREREQ details: -

[oraapp@middleware$] opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 13.9.4.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : /u01/oracle/mw/12.2.1/app
Central Inventory : /wwi/wwdb/db/oraInventory
   from           : /u01/oracle/mw/12.2.1/app/oraInst.loc
OPatch version    : 13.9.4.0.0
OUI version       : 13.9.3.0.0
Log file location : /u01/oracle/mw/12.2.1/app/cfgtoollogs/opatch/opatch2019-06-05_18-25-54PM_1.log


OPatch detects the Middleware Home as "/u01/oracle/mw/12.2.1/app"

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.
########################################################################

Patch APPLY & FAILED details: -

oraapp@middleware$] pwd
/home/oracle/PSU_APR_2019/WebLogic/29016089
[oraapp@middleware$] opatch apply
Oracle Interim Patch Installer version 13.9.4.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/oracle/mw/12.2.1/app
Central Inventory : /wwi/wwdb/db/oraInventory
   from           : /u01/oracle/mw/12.2.1/app/oraInst.loc
OPatch version    : 13.9.4.0.0
OUI version       : 13.9.3.0.0
Log file location : /u01/oracle/mw/12.2.1/app/cfgtoollogs/opatch/opatch2019-06-05_18-26-10PM_1.log


OPatch detects the Middleware Home as "/u01/oracle/mw/12.2.1/app"

Verifying environment and performing prerequisite checks...

Conflicts/Supersets for each patch are:

Patch : 29016089

        Bug Superset of 28710939
        Super set bugs are:
        28360225, 27927071, 28103938, 23076695, 26806438, 27469756, 26248394, 27213775, 27603087, 28311332, 27272911, 26                                                                             624375, 26929163, 27693510, 27617877, 27912485, 25987400, 28375702, 28319690, 27561226, 27445260, 26589850, 25800186, 25                                                                             488428, 28110087, 27988175, 26502060, 27117282, 28503638, 28594324, 26608537, 27486993, 27934864, 26499391, 26985581, 26                                                                             439373, 27947832, 28409586, 27111664, 27187631, 28138954, 28313163, 27118731, 27284496, 28140800, 27803728, 26026959, 28                                                                             149607, 28166483, 25750303, 28632521, 25580220, 26268190, 27516977, 28559579, 26828499, 26353793, 26145911, 27411153, 26                                                                             835012, 27819370, 28071913, 28626991, 26473149, 23103220, 26626528, 25387569, 26547016, 26267487, 26731253, 26144830, 28                                                                             375173, 28171852, 28142116, 27417245, 26080417, 26936500, 27234961, 27928833, 27055227, 27131483, 27948303, 26098043, 25                                                                             665727, 28172380, 25993295

        Bug Superset of 27912627
        Super set bugs are:
        23076695, 26806438, 26248394, 27603087, 27272911, 26929163, 27693510, 27617877, 25987400, 27445260, 26589850, 25                                                                             800186, 25488428, 26502060, 27117282, 26608537, 27934864, 26499391, 26985581, 26439373, 27947832, 27111664, 27187631, 27                                                                             118731, 27284496, 27803728, 26026959, 25750303, 26268190, 27516977, 26828499, 26145911, 27411153, 26835012, 27819370, 26                                                                             473149, 23103220, 26626528, 26547016, 26731253, 26144830, 27417245, 26080417, 26936500, 27234961, 27055227, 27131483, 27                                                                             948303, 26098043, 25665727, 25993295


Following patches have conflicts: [   29016089 ]
Use the MOS Patch Conflict Checker "https://support.oracle.com/epmos/faces/PatchConflictCheck" to resolve.
See MOS documents 1941934.1 and 1299688.1 for additional information and resolution methods.


UtilSession failed:
Log file location: /u01/oracle/mw/12.2.1/app/cfgtoollogs/opatch/opatch2019-06-05_18-26-10PM_1.log

OPatch failed with error code 73
########################################################################

Patch ROLLBACK FAILED details: -

[oraapp@middleware$] opatch rollback -id  27912627
Oracle Interim Patch Installer version 13.9.4.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/oracle/mw/12.2.1/app
Central Inventory : /wwi/wwdb/db/oraInventory
   from           : /u01/oracle/mw/12.2.1/app/oraInst.loc
OPatch version    : 13.9.4.0.0
OUI version       : 13.9.3.0.0
Log file location : /u01/oracle/mw/12.2.1/app/cfgtoollogs/opatch/opatch2019-06-05_18-30-17PM_1.log


OPatch detects the Middleware Home as "/u01/oracle/mw/12.2.1/app"


Patches will be rolled back in the following order:
   27912627
The following patch(es) will be rolled back: 27912627

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/oracle/mw/12.2.1/app')


Is the local system ready for patching? [y|n]
y
User Responded with: Y

Rolling back patch 27912627...

RollbackSession rolling back interim patch '27912627' from OH '/u01/oracle/mw/12.2.1/app'
UtilSession failed:
Following patch(es) are inactive and cannot be rolled back.
27912627
Log file location: /u01/oracle/mw/12.2.1/app/cfgtoollogs/opatch/opatch2019-06-05_18-30-17PM_1.log

OPatch failed with error code 73
########################################################################

SOLUTION:- 

The OPatch being used has version 13.9.2.0.0 while the following patch(es)
require higher versions:
Patch 29016089 requires OPatch version 13.9.4.0.0.

We need to update the opatch version using below methods.
Download p28186730_139400_Generic.zip patch & unzip.

unzip p28186730_139400_Generic.zip

[oraapp@middleware$]  java -jar /home/oracle/6880880/opatch_generic.jar -silent oracle_home=/u01/oracle/mw/12.2.1/app

Launcher log file is /tmp/OraInstall2019-06-05_06-51-05PM/launcher2019-06-05_06-51-05PM.log.
Extracting the installer . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 1200.000 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 51199 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 14067 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2019-06-05_06-51-05PM
Installation Summary


Disk Space : Required 34 MB, Available 13,493 MB
Feature Sets to Install:
        Next Generation Install Core 13.9.4.0.0
        OPatch 13.9.4.2.0
        OPatch Auto OPlan 13.9.4.2.0
        OPatch Auto FMW 13.9.4.2.0
Session log file is /tmp/OraInstall2019-06-05_06-51-05PM/install2019-06-05_06-51-05PM.log

Loading products list. Please wait.
 1%
 40%

Loading products. Please wait.
 42%
 43%
 44%
 45%
 46%
 48%
 49%
 50%
 51%
 52%
 54%
 55%
 56%
 57%
 58%
 60%
 61%
 62%
 63%
 64%
 65%
 67%
 68%
 69%
 70%
 71%
 72%
 74%
 75%
 76%
 77%
 78%
 80%
 81%
 82%
 83%
 84%
 85%
 87%
 88%
 89%
 90%
 91%
 92%
 94%
 95%
 96%
 97%
 98%
 99%

Updating Libraries



Starting Installations
 1%
 2%
 3%
 4%
 5%
 6%
 7%
 8%
 9%
 10%
 11%
 12%
 13%
 14%
 15%
 16%
 17%
 18%
 19%
 20%
 21%
 22%
 23%
 24%
 25%
 26%
 27%
 28%
 29%
 30%
 31%
 32%
 33%
 34%
 35%
 36%
 37%
 38%
 39%
 40%
 41%
 42%
 43%
 44%
 45%
 46%
 47%
 48%
 49%
 50%
 51%
 52%
 53%
 54%
 55%
 56%
 57%
 58%
 59%
 60%
 61%
 62%
 63%
 64%
 65%
 66%
 67%
 68%
 69%
 70%
 71%
 72%
 73%
 74%
 75%
 76%
 77%
 78%
 79%
 80%
 81%
 82%
 83%
 84%
 85%
 86%
 87%
 88%
 89%
 90%
 91%
 92%
 93%
 94%
 95%
 96%

Install pending

Installation in progress

 Component : oracle.glcm.logging 1.6.4.0.0

Copying files for oracle.glcm.logging 1.6.4.0.0

 Component : oracle.glcm.comdev 7.8.4.0.0

Copying files for oracle.glcm.comdev 7.8.4.0.0

 Component : oracle.glcm.dependency 1.8.4.0.0

Copying files for oracle.glcm.dependency 1.8.4.0.0

 Component : oracle.glcm.xmldh 3.4.4.0.0

Copying files for oracle.glcm.xmldh 3.4.4.0.0

 Component : oracle.glcm.wizard 7.8.4.0.0

Copying files for oracle.glcm.wizard 7.8.4.0.0

 Component : oracle.glcm.opatch.common.api 13.9.4.0.0

Copying files for oracle.glcm.opatch.common.api 13.9.4.0.0

 Component : oracle.nginst.common 13.9.4.0.0

Copying files for oracle.nginst.common 13.9.4.0.0

 Component : oracle.nginst.core 13.9.4.0.0

Copying files for oracle.nginst.core 13.9.4.0.0

 Component : oracle.nginst.thirdparty 13.9.4.0.0

Copying files for oracle.nginst.thirdparty 13.9.4.0.0

 Component : oracle.glcm.encryption 2.7.4.0.0

Copying files for oracle.glcm.encryption 2.7.4.0.0

 Component : oracle.swd.opatch 13.9.4.2.0

Copying files for oracle.swd.opatch 13.9.4.2.0

 Component : oracle.glcm.oplan.core 13.9.4.2.0

Copying files for oracle.glcm.oplan.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.core 13.9.4.2.0

Copying files for oracle.glcm.opatchauto.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.fmw 13.9.4.2.0

Copying files for oracle.glcm.opatchauto.fmw 13.9.4.2.0

Install successful

Post feature install pending

Post Feature installing

 Feature Set : glcm_encryption_lib

 Feature Set : oracle.glcm.osys.core.classpath

 Feature Set : oracle.glcm.oplan.core.classpath

 Feature Set : oracle.glcm.opatchauto.core.binary.classpath

 Feature Set : glcm_common_logging_lib

Post Feature installing oracle.glcm.opatchauto.core.binary.classpath

 Feature Set : commons-compress_1.9.0.0.0

 Feature Set : glcm_common_lib

 Feature Set : oracle.glcm.opatch.common.api.classpath

Post Feature installing glcm_common_lib

 Feature Set : commons-cli_1.3.1.0.0

 Feature Set : oracle.glcm.opatchauto.core.wallet.classpath

Post Feature installing oracle.glcm.opatch.common.api.classpath

Post Feature installing commons-compress_1.9.0.0.0

 Feature Set : oracle.glcm.opatchauto.core.actions.classpath

Post Feature installing glcm_common_logging_lib

Post Feature installing oracle.glcm.oplan.core.classpath

Post Feature installing oracle.glcm.osys.core.classpath

 Feature Set : oracle.glcm.opatchauto.core.classpath

Post Feature installing glcm_encryption_lib

Post Feature installing oracle.glcm.opatchauto.core.classpath

Post Feature installing oracle.glcm.opatchauto.core.actions.classpath

Post Feature installing oracle.glcm.opatchauto.core.wallet.classpath

Post Feature installing commons-cli_1.3.1.0.0

 Feature Set : oracle.glcm.opatchauto.fmw.actions.classpath

Post Feature installing oracle.glcm.opatchauto.fmw.actions.classpath

Post feature install complete

String substitutions pending

String substituting

 Component : oracle.glcm.logging 1.6.4.0.0

String substituting oracle.glcm.logging 1.6.4.0.0

 Component : oracle.glcm.comdev 7.8.4.0.0

String substituting oracle.glcm.comdev 7.8.4.0.0

 Component : oracle.glcm.dependency 1.8.4.0.0

String substituting oracle.glcm.dependency 1.8.4.0.0

 Component : oracle.glcm.xmldh 3.4.4.0.0

String substituting oracle.glcm.xmldh 3.4.4.0.0

 Component : oracle.glcm.wizard 7.8.4.0.0

String substituting oracle.glcm.wizard 7.8.4.0.0

 Component : oracle.glcm.opatch.common.api 13.9.4.0.0

String substituting oracle.glcm.opatch.common.api 13.9.4.0.0

 Component : oracle.nginst.common 13.9.4.0.0

String substituting oracle.nginst.common 13.9.4.0.0

 Component : oracle.nginst.core 13.9.4.0.0

String substituting oracle.nginst.core 13.9.4.0.0

 Component : oracle.nginst.thirdparty 13.9.4.0.0

String substituting oracle.nginst.thirdparty 13.9.4.0.0

 Component : oracle.glcm.encryption 2.7.4.0.0

String substituting oracle.glcm.encryption 2.7.4.0.0

 Component : oracle.swd.opatch 13.9.4.2.0

String substituting oracle.swd.opatch 13.9.4.2.0

 Component : oracle.glcm.oplan.core 13.9.4.2.0

String substituting oracle.glcm.oplan.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.core 13.9.4.2.0

String substituting oracle.glcm.opatchauto.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.fmw 13.9.4.2.0

String substituting oracle.glcm.opatchauto.fmw 13.9.4.2.0

String substitutions complete

Link pending

Linking in progress

 Component : oracle.glcm.logging 1.6.4.0.0

Linking oracle.glcm.logging 1.6.4.0.0

 Component : oracle.glcm.comdev 7.8.4.0.0

Linking oracle.glcm.comdev 7.8.4.0.0

 Component : oracle.glcm.dependency 1.8.4.0.0

Linking oracle.glcm.dependency 1.8.4.0.0

 Component : oracle.glcm.xmldh 3.4.4.0.0

Linking oracle.glcm.xmldh 3.4.4.0.0

 Component : oracle.glcm.wizard 7.8.4.0.0

Linking oracle.glcm.wizard 7.8.4.0.0

 Component : oracle.glcm.opatch.common.api 13.9.4.0.0

Linking oracle.glcm.opatch.common.api 13.9.4.0.0

 Component : oracle.nginst.common 13.9.4.0.0

Linking oracle.nginst.common 13.9.4.0.0

 Component : oracle.nginst.core 13.9.4.0.0

Linking oracle.nginst.core 13.9.4.0.0

 Component : oracle.nginst.thirdparty 13.9.4.0.0

Linking oracle.nginst.thirdparty 13.9.4.0.0

 Component : oracle.glcm.encryption 2.7.4.0.0

Linking oracle.glcm.encryption 2.7.4.0.0

 Component : oracle.swd.opatch 13.9.4.2.0

Linking oracle.swd.opatch 13.9.4.2.0

 Component : oracle.glcm.oplan.core 13.9.4.2.0

Linking oracle.glcm.oplan.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.core 13.9.4.2.0

Linking oracle.glcm.opatchauto.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.fmw 13.9.4.2.0

Linking oracle.glcm.opatchauto.fmw 13.9.4.2.0

Linking in progress

Link successful

Setup pending

Setup in progress

 Component : oracle.glcm.logging 1.6.4.0.0

Setting up oracle.glcm.logging 1.6.4.0.0

 Component : oracle.glcm.comdev 7.8.4.0.0

Setting up oracle.glcm.comdev 7.8.4.0.0

 Component : oracle.glcm.dependency 1.8.4.0.0

Setting up oracle.glcm.dependency 1.8.4.0.0

 Component : oracle.glcm.xmldh 3.4.4.0.0

Setting up oracle.glcm.xmldh 3.4.4.0.0

 Component : oracle.glcm.wizard 7.8.4.0.0

Setting up oracle.glcm.wizard 7.8.4.0.0

 Component : oracle.glcm.opatch.common.api 13.9.4.0.0

Setting up oracle.glcm.opatch.common.api 13.9.4.0.0

 Component : oracle.nginst.common 13.9.4.0.0

Setting up oracle.nginst.common 13.9.4.0.0

 Component : oracle.nginst.core 13.9.4.0.0

Setting up oracle.nginst.core 13.9.4.0.0

 Component : oracle.nginst.thirdparty 13.9.4.0.0

Setting up oracle.nginst.thirdparty 13.9.4.0.0

 Component : oracle.glcm.encryption 2.7.4.0.0

Setting up oracle.glcm.encryption 2.7.4.0.0

 Component : oracle.swd.opatch 13.9.4.2.0

Setting up oracle.swd.opatch 13.9.4.2.0

 Component : oracle.glcm.oplan.core 13.9.4.2.0

Setting up oracle.glcm.oplan.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.core 13.9.4.2.0

Setting up oracle.glcm.opatchauto.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.fmw 13.9.4.2.0

Setting up oracle.glcm.opatchauto.fmw 13.9.4.2.0

Setup successful

Save inventory pending

Saving inventory
 97%

Saving inventory complete
 98%

Configuration complete

 Component : glcm_common_logging_lib

 Component : glcm_common_lib

Saving the inventory glcm_common_logging_lib

Saving the inventory glcm_common_lib

 Component : glcm_encryption_lib

Saving the inventory glcm_encryption_lib

 Component : oracle.glcm.opatch.common.api.classpath

Saving the inventory oracle.glcm.opatch.common.api.classpath

 Component : cieCfg_common_rcu_lib

 Component : oracle.glcm.opatchauto.core.classpath

Saving the inventory cieCfg_common_rcu_lib

Saving the inventory oracle.glcm.opatchauto.core.classpath

 Component : oracle.glcm.opatchauto.core.binary.classpath

 Component : oracle.glcm.opatchauto.core.actions.classpath

Saving the inventory oracle.glcm.opatchauto.core.binary.classpath

 Component : oracle.glcm.opatchauto.core.wallet.classpath

Saving the inventory oracle.glcm.opatchauto.core.actions.classpath

Saving the inventory oracle.glcm.opatchauto.core.wallet.classpath

 Component : oracle.glcm.logging

Saving the inventory oracle.glcm.logging

 Component : cieCfg_common_lib

Saving the inventory cieCfg_common_lib

 Component : svctbl_lib

Saving the inventory svctbl_lib

 Component : com.bea.core.binxml_dependencies

Saving the inventory com.bea.core.binxml_dependencies

 Component : svctbl_jmx_client

Saving the inventory svctbl_jmx_client

 Component : cieCfg_wls_shared_lib

Saving the inventory cieCfg_wls_shared_lib

 Component : rcuapi_lib

Saving the inventory rcuapi_lib

 Component : rcu_core_lib

 Component : cieCfg_wls_lib

Saving the inventory rcu_core_lib

Saving the inventory cieCfg_wls_lib

 Component : cieCfg_wls_external_lib

Saving the inventory cieCfg_wls_external_lib

 Component : cieCfg_wls_impl_lib

 Component : rcu_dependencies_lib

Saving the inventory cieCfg_wls_impl_lib

Saving the inventory rcu_dependencies_lib

 Component : oracle.fmwplatform.fmwprov_lib

Saving the inventory oracle.fmwplatform.fmwprov_lib

 Component : fmwplatform-wlst-dependencies

Saving the inventory fmwplatform-wlst-dependencies

 Component : oracle.fmwplatform.ocp_plugin_lib

 Component : oracle.fmwplatform.ocp_lib

Saving the inventory oracle.fmwplatform.ocp_plugin_lib

Saving the inventory oracle.fmwplatform.ocp_lib

 Component : oracle.glcm.opatchauto.fmw.actions.classpath

Saving the inventory oracle.glcm.opatchauto.fmw.actions.classpath

 Component : wlst.wls.classpath

 Component : maven.wls.classpath

Saving the inventory wlst.wls.classpath

Saving the inventory maven.wls.classpath

 Component : com.oracle.webservices.fmw.ws-assembler

 Component : sdpmessaging_dependencies

Saving the inventory com.oracle.webservices.fmw.ws-assembler

Saving the inventory sdpmessaging_dependencies

 Component : sdpclient_dependencies

 Component : com.oracle.jersey.fmw.client

Saving the inventory sdpclient_dependencies

Saving the inventory com.oracle.jersey.fmw.client

 Component : oracle.jrf.wls.classpath

 Component : oracle.jrf.wlst

Saving the inventory oracle.jrf.wls.classpath

Saving the inventory oracle.jrf.wlst

 Component : com.oracle.webservices.fmw.client

Saving the inventory com.oracle.webservices.fmw.client

 Component : fmwshare-wlst-dependencies

 Component : oracle.fmwshare.pyjar

 Component : com.oracle.webservices.wls.jaxws-owsm-client

Saving the inventory fmwshare-wlst-dependencies

Saving the inventory oracle.fmwshare.pyjar

Saving the inventory com.oracle.webservices.wls.jaxws-owsm-client

 Component : glcm_common_lib

 Component : glcm_common_logging_lib

Saving the inventory glcm_common_lib

Saving the inventory glcm_common_logging_lib

 Component : glcm_encryption_lib

 Component : oracle.glcm.opatch.common.api.classpath

Saving the inventory glcm_encryption_lib

Saving the inventory oracle.glcm.opatch.common.api.classpath

 Component : cieCfg_common_rcu_lib

 Component : oracle.glcm.opatchauto.core.classpath

Saving the inventory cieCfg_common_rcu_lib

Saving the inventory oracle.glcm.opatchauto.core.classpath

 Component : oracle.glcm.opatchauto.core.binary.classpath

Saving the inventory oracle.glcm.opatchauto.core.binary.classpath

 Component : oracle.glcm.opatchauto.core.actions.classpath

 Component : oracle.glcm.logging

Saving the inventory oracle.glcm.opatchauto.core.actions.classpath

Saving the inventory oracle.glcm.logging

 Component : oracle.glcm.opatchauto.core.wallet.classpath

 Component : com.bea.core.binxml_dependencies

 Component : cieCfg_common_lib

Saving the inventory oracle.glcm.opatchauto.core.wallet.classpath

 Component : svctbl_lib

 Component : cieCfg_cam_lib

 Component : cieCfg_cam_impl_lib

Saving the inventory com.bea.core.binxml_dependencies

 Component : cieCfg_cam_external_lib

Saving the inventory cieCfg_common_lib

Saving the inventory cieCfg_cam_external_lib

 Component : svctbl_jmx_client

 Component : cieCfg_wls_shared_lib

Saving the inventory svctbl_jmx_client

Saving the inventory cieCfg_cam_impl_lib

Saving the inventory cieCfg_cam_lib

Saving the inventory svctbl_lib

Saving the inventory cieCfg_wls_shared_lib

 Component : glcm_common_logging_lib

Saving the inventory glcm_common_logging_lib

 Component : glcm_common_lib

 Component : glcm_encryption_lib

Saving the inventory glcm_common_lib

Saving the inventory glcm_encryption_lib

 Component : oracle.glcm.opatch.common.api.classpath

 Component : oracle.glcm.opatchauto.core.wallet.classpath

Saving the inventory oracle.glcm.opatch.common.api.classpath

 Component : oracle.glcm.oplan.core.classpath

 Component : oracle.glcm.opatchauto.core.actions.classpath

 Component : oracle.glcm.opatchauto.fmw.actions.classpath

Saving the inventory oracle.glcm.opatchauto.core.actions.classpath

 Component : oracle.glcm.opatchauto.core.binary.classpath

 Component : oracle.glcm.opatchauto.core.classpath

Saving the inventory oracle.glcm.opatchauto.core.binary.classpath

Saving the inventory oracle.glcm.opatchauto.fmw.actions.classpath

Saving the inventory oracle.glcm.oplan.core.classpath

Saving the inventory oracle.glcm.opatchauto.core.wallet.classpath

Saving the inventory oracle.glcm.opatchauto.core.classpath

 Component : glcm_common_logging_lib

 Component : glcm_common_lib

Saving the inventory glcm_common_logging_lib

Saving the inventory glcm_common_lib

 Component : glcm_encryption_lib

Saving the inventory glcm_encryption_lib

 Component : oracle.glcm.opatch.common.api.classpath

 Component : oracle.glcm.opatchauto.core.wallet.classpath

 Component : oracle.glcm.opatchauto.core.classpath

 Component : oracle.glcm.oplan.core.classpath

 Component : oracle.glcm.opatchauto.core.actions.classpath

Saving the inventory oracle.glcm.opatchauto.core.classpath

Saving the inventory oracle.glcm.opatchauto.core.actions.classpath

Saving the inventory oracle.glcm.opatchauto.core.wallet.classpath

 Component : oracle.glcm.opatchauto.core.binary.classpath

Saving the inventory oracle.glcm.opatch.common.api.classpath

 Component : oracle.glcm.opatchauto.fmw.actions.classpath

Saving the inventory oracle.glcm.opatchauto.core.binary.classpath

Saving the inventory oracle.glcm.oplan.core.classpath

Saving the inventory oracle.glcm.opatchauto.fmw.actions.classpath

The install operation completed successfully.

Logs successfully copied to /wwi/wwdb/db/oraInventory/logs.
#######################################################################


OPatch details: -     

[oraapp@middleware$] opatch version
OPatch Version: 13.9.4.2.0

OPatch succeeded.
########################################################################

RE APPLY FAILED Patch: -

[oraapp@middleware$] cd /home/oracle/PSU_APR_2019/WebLogic/29016089
[oraapp@middleware$] export ORACLE_HOME=/u01/oracle/mw/12.2.1/app
[oraapp@middleware$] export PATH=$ORACLE_HOME/OPatch$PATH
[oraapp@middleware$] which opatch
/u01/oracle/mw/12.2.1/app/OPatch/opatch
[oraapp@middleware$] opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 13.9.4.2.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : /u01/oracle/mw/12.2.1/app
Central Inventory : /wwi/wwdb/db/oraInventory
   from           : /u01/oracle/mw/12.2.1/app/oraInst.loc
OPatch version    : 13.9.4.2.0
OUI version       : 13.9.4.0.0
Log file location : /u01/oracle/mw/12.2.1/app/cfgtoollogs/opatch/opatch2019-06-05_18-53-22PM_1.log


OPatch detects the Middleware Home as "/u01/oracle/mw/12.2.1/app"

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.
[oraapp@middleware$] opatch apply
Oracle Interim Patch Installer version 13.9.4.2.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/oracle/mw/12.2.1/app
Central Inventory : /wwi/wwdb/db/oraInventory
   from           : /u01/oracle/mw/12.2.1/app/oraInst.loc
OPatch version    : 13.9.4.2.0
OUI version       : 13.9.4.0.0
Log file location : /u01/oracle/mw/12.2.1/app/cfgtoollogs/opatch/opatch2019-06-05_18-53-32PM_1.log


OPatch detects the Middleware Home as "/u01/oracle/mw/12.2.1/app"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   29016089

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/oracle/mw/12.2.1/app')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '29016089' to OH '/u01/oracle/mw/12.2.1/app'
ApplySession: Optional component(s) [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [ oracle.webservices.wls.jaxrpc, 12.2.1.3.0 ] , [ oracle.webservices.wls.jaxrpc, 12.2.1.3.0 ] , [ oracle.fmwconfig.common.wls.shared, 12.2.1.3.0 ] , [ oracle.wls.core.app.server.nativelib, 12.2.1.3.0 ] , [ oracle.wls.server.examples, 12.2.1.3.0 ] , [ oracle.wls.rdmu, 12.2.1.3.0 ] , [ oracle.wls.server.mt.examples, 12.2.1.3.0 ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.webservices.orawsdl, 12.2.1.3.0...

Patching component oracle.webservices.orawsdl, 12.2.1.3.0...

Patching component oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.xml, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.xml, 2.7.9.0.0...

Patching component oracle.org.bouncycastle, 12.2.1.3.0...

Patching component oracle.org.bouncycastle, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.common.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.common.sharedlib, 12.2.1.3.0...

Patching component oracle.fmwconfig.common.wls.shared.internal, 12.2.1.3.0...

Patching component oracle.com.fasterxml.jackson.jaxrs.jackson.jaxrs.base, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.jaxrs.jackson.jaxrs.base, 2.7.9.0.0...

Patching component oracle.fmwconfig.common.config.shared, 12.2.1.3.0...

Patching component oracle.wls.shared.with.cam, 12.2.1.3.0...

Patching component oracle.wls.shared.with.cam, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.common, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.common, 12.2.1.3.0...

Patching component oracle.wls.evaluation.database, 12.2.1.3.0...

Patching component oracle.wls.evaluation.database, 12.2.1.3.0...

Patching component oracle.wls.core.app.server, 12.2.1.3.0...

Patching component oracle.wls.core.app.server, 12.2.1.3.0...

Patching component oracle.wls.core.app.server, 12.2.1.3.0...

Patching component oracle.webservices.base, 12.2.1.3.0...

Patching component oracle.webservices.base, 12.2.1.3.0...

Patching component oracle.webservices.jrf, 12.2.1.3.0...

Patching component oracle.webservices.jrf, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.ee.only.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.ee.only.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.rcu, 12.2.1.3.0...

Patching component oracle.wls.rcu, 12.2.1.3.0...

Patching component oracle.wls.security.core.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.security.core.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.security.core.sharedlib, 12.2.1.3.0...

Patching component oracle.webservices.wls, 12.2.1.3.0...

Patching component oracle.webservices.wls, 12.2.1.3.0...

Patching component oracle.webservices.wls, 12.2.1.3.0...

Patching component oracle.commons.fileupload.commons.fileupload, 1.3.2.0.0...

Patching component oracle.commons.fileupload.commons.fileupload, 1.3.2.0.0...

Patching component oracle.com.fasterxml.jackson.jaxrs.jackson.jaxrs.json.provider, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.jaxrs.jackson.jaxrs.json.provider, 2.7.9.0.0...

Patching component oracle.wls.admin.console.en, 12.2.1.3.0...

Patching component oracle.wls.admin.console.en, 12.2.1.3.0...

Patching component oracle.wls.libraries, 12.2.1.3.0...

Patching component oracle.wls.libraries, 12.2.1.3.0...

Patching component oracle.wls.libraries, 12.2.1.3.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.annotations, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.annotations, 2.7.9.0.0...

Patching component oracle.wls.common.cam.wlst, 12.2.1.3.0...

Patching component oracle.wls.common.cam.wlst, 12.2.1.3.0...

Patching component oracle.com.fasterxml.jackson.module.jackson.module.jsonschema, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.module.jackson.module.jsonschema, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.module.jackson.module.jaxb.annotations, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.module.jackson.module.jaxb.annotations, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.databind, 2.7.9.1.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.databind, 2.7.9.1.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.core, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.core, 2.7.9.0.0...

Patching component oracle.wls.security.core, 12.2.1.3.0...

Patching component oracle.wls.wlsportable.mod, 12.2.1.3.0...

Patching component oracle.jrf.tenancy.se, 12.2.1.3.0...

Patching component oracle.wls.http.pubsub.server, 12.2.1.3.0...

Patching component oracle.apache.commons.collections.mod, 3.2.0.0.2...

Patching component oracle.wls.common.cam, 12.2.1.3.0...

Patching component oracle.wls.workshop.code.completion.support, 12.2.1.3.0...

Patching component oracle.java.activation, 12.2.1.3.0...

Patching component oracle.apache.commons.lang.mod, 2.6.0.0.2...

Patching component oracle.java.xml.bind, 2.3.0.0.0...

Patching component oracle.java.servlet, 12.2.1.3.0...

Patching component oracle.legacy_oc4j_xml_schemas, 12.2.1.3.0...

Patching component oracle.wls.common.nodemanager, 12.2.1.3.0...

Patching component oracle.wls.shared.with.inst, 12.2.1.3.0...

Patching component oracle.wls.shared.with.coh.standalone, 12.2.1.3.0...

Patching component oracle.jaxb.impl, 2.3.0.0.0...

Patching component oracle.wls.admin.console.nonen, 12.2.1.3.0...

Patching component oracle.wls.clients, 12.2.1.3.0...

Patching component oracle.wls.shared.with.inst.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.thirdparty.javax.json, 12.2.1.3.0...

Patching component oracle.jrf.tenancy.ee, 12.2.1.3.0...

Patching component oracle.wls.inst.only, 12.2.1.3.0...

Patching component oracle.jaxb.tools, 2.3.0.0.0...

Patching component oracle.jaxb.core, 2.3.0.0.0...

Patching component oracle.diagnostics.common, 12.2.1.3.0...

Patching component oracle.wls.weblogic.sca, 12.2.1.3.0...

Patching component org.codehaus.woodstox, 4.2.0.0.0...

Patching component oracle.wls.core.app.server.tier1nativelib, 12.2.1.3.0...

Patching component oracle.jrf.tenancy, 12.2.1.3.0...

Patching component oracle.java.jaxws, 12.2.1.3.0...
Patch 29016089 successfully applied.
Sub-set patch [28710939] has become inactive due to the application of a super-set patch [29016089].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/oracle/mw/12.2.1/app/cfgtoollogs/opatch/opatch2019-06-05_18-53-32PM_1.log

Article 0

$
0
0

ORA-29702: error occurred in Cluster Group Service operation


ORA-29702: error occurred in Cluster Group Service operation


If you are working on Solaris and having Oracle database 10g or above, you might face ORA-29702 issue after reboot of your server or starting up the database.

Your database is not running on RAC but still oracle assuming it to be RAC instance.



Solution to overcome this situation is to re-link oracle libraries.

Step 1. Shutdown the database completely if no-mount or any other state.

Step 2. Relink with RAC OFF :


Run following two commands one by one.(Refer below screen shots for the same.)

$ make -f ins_rdbms.mk rac_off
$ make -f ins_rdbms.mk ioracle



Step 3. Startup the database

Now start your database normally.


Database will be started normally without any error.

OPatch Failed with Error Code 19 - "The OPatch version is not applicable for current OUI version"

$
0
0
ISSUE:

While trying to apply a patch on a Fusion Middleware or WebLogic Server Oracle home, the following error occurs:

$ ./opatch lsinventory -jre /usr/java/jdk1.8.0_141/jre

OPatch Version : 13.9.0.0.0
OUI Version : 12.1.0.2.0
The OPatch version is not applicable for current OUI version.

Since OUI Version starts with 12.1, Please go to 'My Oracle Support' and get right OPatch 12.1.*.*.* based on patch 6880880, release version 12.1.0.0.0 and appropriate platform.

OPatch failed with error code 19


CAUSE:

As the error states, OUI and OPatch version do not match.

Upon further investigation, it is observed that the ORACLE_HOME is not set correctly and pulling a different OUI version from another environment.


SOLUTION:


1. Set ORACLE_HOME to the directory being patches. Also look at the PATH environment variable to ensure you don't have the OPatch directory from another location. The following should always be set before running opatch commands:

UNIX:
ORACLE_HOME=$MW_HOME/Oracle_FRHome1; export ORACLE_HOME
PATH=$ORACLE_HOME/OPatch:$PATH; export PATH

Windows:
set ORACLE_HOME=%MW_HOME%\OHS
set PATH=%ORACLE_HOME%\OPatch;%PATH%

2. Now you should be able to invoke the "opatch lsinventory" see the correct opatch version and intended Oracle home. Then run the "opatch apply" command to apply the patch.

Note: The error says, "get right OPatch 12.1.*.*.* based on patch 6880880", this is actually referring to an Oracle Database version. For Oracle Fusion Middleware, it is very rare to need to update OPatch or use Patch 6880880 to obtain a new one. Always use the one installed in the Oracle home or a backup if accidental overwritten with another version. Problems will occur if the incorrect Opatch is installed

Reference:

OPatch Failed with Error Code 19 - "The OPatch version is not applicable for current OUI version" (Doc ID 2364024.1)


R12:Web ADI Performance and Out of Memory issues seen when uploading large amounts of data

$
0
0
ISSUE:

When using BNE Profile BNE: Enable OOXML Standard being set to Yes, Web ADI Performance for Create Document and Upload functionality improves as the performance does not depend on the Client PC desktop capacity, when being set. The performance for the Web ADI Upload and Create Document functionality is better when using the Middle Tier server capacity.

With this being said, if there are issues seen with the Web ADI Uploads related to Performance or Create Document taking time to build the Integrator, then you will need to look into Fine Tuning the Middle Tier's resources. If the Middle Tier is not sized correctly to handle the added functionality of the BNE Profile BNE: Enable OOXML Standard being set to Yes you can experience overall Web Server/Middle Tier Performance degradation when Server is under load.

This is mainly seen when uploading large amounts of Data in the Web ADI Integrator containing many Rows and even Columns and can occur during times of month end.

CHANGES:

Setting Profile BNE: Enable OOXML Standard = Yes

If the profile option, BNE: Enable OOXML Standard, would be set No, testing the same amount of rows and data would not be able to upload, the desktop Excel will probably hang. Then, the cause of the problem is not that BNE: Enable OOXML Standard is set to Yes. The cause would be related to the Middle Tiers needing to be fine tuned.

CAUSE:

Web ADI was never intended or designed to handle such a large upload. Web ADI was never envisioned to handle more then 20k, 30k or even 40k rows to be uploaded at a single time. However it can be done. In many cases Customer have to Benchmark test the Upload Functionality to see where there limitations are meet.

Test your Integrator with smaller amounts of rows. Try to keep this at or around 10k for testing purposes. Then slowing increase the number of rows added to the Integrator and test.
Increase the Rows until the thresh-hold is hit when the issues mentioned in the SR are hit.

There is no Benchmark testing for Uploading from Oracle as there are too many variables and each customer using this functionality in different methods to be able to provide accurate Benchmarks on the Upload Functionality.

If profile Option "BNE_OOXML_ENABLED" is Yes, larger memory is needed as explained below
https://docs.oracle.com/cd/E26401_01/doc.122/e22007/T443182T443186.htm
Line Region Properties

If your site is using the OOXML format, then the document creation and upload processing is performed on the server. In this case the processing is significantly faster than if you do not use OOXML, but requires a larger server heap memory. You should review the server heap memory setting to ensure it is appropriate for this configuration.

Beginning in Release 12.2.5 or ATG and Framework patching delivering bneprof.ldt 120.14.12020000.5 or higher, you can choose to create Web ADI templates according to the Office Open XML (OOXML) standard, an XML format developed by Microsoft to represent spreadsheets and other types of documents. When using the OOXML format, Oracle Web ADI generates the spreadsheet entirely on the Oracle E-Business Suite server, and the completed spreadsheet is then downloaded to the desktop.

SOLUTION:

Debug:

========



The Required Debug for Support in order to assist in determining if JVM Middle Tier Performance related or hit limitation of the number of Rows and Columns being updated for current sizing of Middle Tier.



1. Please provide the BNE Log File for this issue.

NOTE: Setting BNE to TRACE mode may help identifying the integrator and the operation (upload/download) BUT will degrade even more the performance. It is important quickly enable the BNE Trace reproduce the issue and immediately return BNE Log Level to Error.

1a. Clear existing BNE.log so that there is no old/unrelated data in it.

1b. From the EBS apps (System Administrator > Profile > System) Set the following System Profile Options to enable Debug:
Remember that the BNE Server log profiles only have effect at SITE LEVEL.

* BNE Server Log Filename : bne_perf_ooxml.log
* BNE Server Log Level : TRACE (This must be set at the Site level, it will not work at the other levels)
* BNE Server Log Path : free to choose, eg. in the $LOG_HOME/logs (use the full path, make sure that the applmgr has write permissions)

1c. Restart the Apache Server for changes to take effect.

1d. Have User follow the Steps to reproduce the problem.
1e. Upload the log file defined by profile BNE Server Log Filename for review .
1f. Afterwards, set the BNE Server Log Level to ERROR to avoid excessive growth of the log file. In production, this Profile should be set to ERROR unless debugging or diagnosing an issue.

2. At the same time of enabling BNE Logging, enable *JDBC logging* from the console for the WLS managed server.
2a. Provide the exact date and time the outage occurs with the external Application tier node.
Example:
- Login to the console
- Environment > Server > oacore_serverX (ie: oacore_server1)
- Click on Debug tab
- Expand weblogic
- Select jdbc
- Click Enable
- Activate Changes

2b. Enable *Servlet logging* from the console for managed server.

Example
- Login to the console
- Environment > Server > oacore_serverX (ie: oacore_server1)
- Click on Debug tab
- Expand weblogic
- Select servlet
- Click Enable
- Activate Changes

2c. Stop all application services.

2d. Backup/move the existing FMW/OHS log files for managed server X and
clean the logs (ie: move all current logging to a different backup
location so new logs will only exist after reproducing the issue).

Example for OACore managed server:
$EBS_DOMAIN_HOME/servers/oacore*/logs/*
$EBS_DOMAIN_HOME/servers/oacore_server*/adr/diag/ofm/EBS_domain_*/oac*/incident/*
$IAS_ORACLE_HOME/instances/*/diagnostics/logs/OHS/*/*
$IAS_ORACLE_HOME/instances/*/diagnostics/logs/OPMN/opmn/*

2e. Start the middle tier.

2f. Reproduce the issue while **noting the time stamp of the failure.

2g. Upload the following
$EBS_DOMAIN_HOME/servers/oacore*/logs/*
$EBS_DOMAIN_HOME/servers/oacore_server*/adr/diag/ofm/EBS_domain_*/oac*/incident/*
$IAS_ORACLE_HOME/instances/*/diagnostics/logs/OHS/*/*
$IAS_ORACLE_HOME/instances/*/diagnostics/logs/OPMN/opmn/*

3. Provide the value of the BNE Profiles by running the following SQL:
spool bne_profiles
set linesize 132
set pagesize 132
col NAME format A35
col LEVEL_SET format a10
col CONTEXT format a10
col VALUE format A20 wrap
col Server format a10
col resp format a8 wrap
col application format a10
break on NAME
select
p.profile_option_name NAME,
decode(v.level_id,
10001, 'Site',
10002, 'Application',
10003, 'Responsibility',
10004, 'User',
10005, 'Server',
'UnDef') LEVEL_SET,
decode(to_char(v.level_id),
'10001', '',
'10002', app.application_short_name,
'10003', rsp.responsibility_key,
'10005', svr.node_name,
'10006', org.name,
'10004', usr.user_name,
'UnDef') "CONTEXT",
v.profile_option_value VALUE
from
fnd_profile_options p,
fnd_profile_option_values v,
fnd_profile_options_tl n,
fnd_user usr,
fnd_application app,
fnd_responsibility rsp,
fnd_nodes svr,
hr_operating_units org
where
p.profile_option_id = v.profile_option_id (+) and
p.profile_option_name = n.profile_option_name and
n.user_profile_option_name like '%BNE%' and
usr.user_id (+) = v.level_value and
rsp.application_id (+) = v.level_value_application_id and
rsp.responsibility_id (+) = v.level_value and
app.application_id (+) = v.level_value and
svr.node_id (+) = v.level_value and
org.organization_id (+) = v.level_value
order by name, level_set
/

4. Please provide the out of the following SQL:
SELECT b.bug_number bug,
b.creation_date creation_date ,
b.last_update_date last_update_date ,
decode(bug_number,
17007206, 'R12.ATG_PF.C.delta.3',
17909318, 'R12.ATG_PF.C.delta.4',
19245366, 'R12.ATG_PF.C.delta.5',
21900895, 'R12.ATG_PF.C.delta.6',
24690680, 'R12.ATG_PF.C.delta.7',
23706874, 'BNE:Web Application Desktop Integrator Post 12.2.6 Consolidated Critical Fixes'
) Patch
FROM AD_BUGS b
WHERE b.BUG_NUMBER IN ('17007206','17909318','19245366','21900895','24690680','23706874')
ORDER BY patch;

5. Please provide the integrator having the issue. Is the Integrator having issues with the Create Document download or the Upload functionality having the issue?

6. Please compare the operation (download/upload) time BNE: Enable OOXML Standard = Yes vs. BNE: Enable OOXML Standard = No and provide the results.

7. Upload diagnostic Integrator Meatadata for the Integrator you are testing with. See How To Run Diagnostic Script Integrator Metadata Report For Custom Integrators? (Doc ID 1488669.1)

Run the Diagnostics for the Integrator Metadata while still under the Web Applications Desktop Integrator Diagnostics for the Integrator you are testing with.
7a. Expand the Web ADI Diagnostics region and choose the Test "Web ADI Integrator Metadata" and Click 'Execute'
7b. Add appropriate input parameters for Responsibility ID and the Integrator name and click on the Submit button.
7c. Check the results by refreshing until the diagnostics complete running.
Initially the report status page will show "In Progress".
Click on the Refresh button until the report(s) show up under the Success column.
7d. Once the report shows up in the Success column, click on the number 1 under the Success column which is a hyper link.
7e. Then click on the View Report green check mark on the right side of the page to open the report in your browser.
7f. Click on "File > Save as" to save the file to your desktop and then upload the report to the SR.

8.You can have issues with Temp Space used for Web ADI when creating the xls/xlsm file being passed to the Client PC.

NFS / NAS / SAN storage can cause performance issue when network storage is not mounted with nolock / llock option.
Below document explains the same.

Oracle E-Business suite do not directly support or certify any Network addressable Storage (NAS) (SAN and NFS fall under this terminology). There is a very good article on this...

Choosing a Shared File System for Oracle E-Business Suite

Frequently Asked Questions: Sharing the Application Tier File System in Oracle Applications 11i (Note 243880.1)
Sharing The Application Tier File System in Oracle E-Business Suite Release 12.0 and 12.1 (Doc ID 384248.1)

The problem comes around the physical differences between a local hard disk and using Network addressable Storage. For example, problems can arise with the increased amount of time that operating system file locks are held on certain files when they are held on a Shared File systems. These lock timings are a lot smaller for local disk so there is no issue. Also this issue might only ever arise on a system that is put under load, this may answer why other systems do not have the issue.

In the first instance I would contact the Shared File System vendor and ask them what settings they recommend for an E-Business suite web/forms tier. Most vendors (e.g. NetApp) have their own specific recommendations.

If the vendor has no preferences then a number of basic recommendations are made by Oracle to ensure that we do not hit any known issues. The recommendations for the Apps tier are

rw,intr,bg,hard,timeo=600,wsize=32768,rsize=32768,nfsvers=3,tcp,nolock,acregmin=0,acregmax=0

This means that you will need to change your 'Mount' options to match. If any of these mount options are not recognized then you will need to contact either the Shared File System vendor or the operating system vendor for more help.

The outstanding issues for using the E-Business suite on Shared File Systems are

- Include the 'nolock' option in the mount command.

On Linux, it should be using "nolock" option.

On Solaris, it should be using "llock" option.

- The Apache Lockfile MUST be stored on a local disk

You MUST update the $CONTEXT_FILE and change the variable "s_lock_pid_dir" to point to a local directory on the server. Once the update is done autoconfig must be ran on ALL web/forms tiers.

8a. Ensure that the following variables in the $CONTEXT_FILE are set to a local disk (*NON* NFS Mount Point) on EACH of your Application (web/forms) tiers.

- s_lock_pid_dir
- s_pids_dir
- s_web_pid_file

8b. Run autoconfig to make the changes

8c. Per Note 384248.1 verify that your NFS mounts have the "no lock" option set for all your NFS mounts.

For example:

NFS Parameter Recommendations
-----------------------------------------
For Linux Application Tier File System -
rw,intr,bg,hard,timeo=600,wsize=32768,rsize=32768,nfsvers=3,tcp,nolock,acregmin=0,acregmax=0

~~~~~~~~~~~~~~
Per Development:

If one is using any NAS implementation (NetApps, EMC, SGI, etc) then they MUST make sure to mount their NFS mounts with the
"nolock" option. This parameter is different for different OS's so have your customers refer to the "man pages" in regards to NFS.

For Linux:
mount -t nfs -o nolock nfs_server:/nfs_devices /nfs_mount

Typical Shared File System Logs are under the /var/log. For NFS, you should see a nfs.log. This will help in debugging .

9. Check the OACore_Server(x) JVM Memory settings and the number of OACores being used in the WLS Console for the JVM Start Options.

 Need the -XX:PermSize -XX:MaxPermSize -Xms and -Xmx settings.

The Defualt JVM Memory settings with EBS tend to not be sized correctly to handle Month End Loads with Web ADI.

An Xmx of 4G had been the original recommendation from Development, but they have entirely backed off from that now in favor of 2G. Garbage Collection starts when heap memory gets low and when there is 4G to clean that takes a lot of time and that JVM cannot do any EBS work when garbage collection is going on so therefore more JVMs with smaller heaps are better than fewer JVMs with large heaps.





Typical Solutions:

============



1. Increasing the number of OACores and Increasing the Memory Heap.

Use the following steps to customize the managed server configuration via the WebLogic Server Administration Console.

1a. Log on to the WebLogic Server Administration Console.
1b. Click on the 'Servers' link. This link takes you to a page containing a summary of the WebLogic Administration Server and all managed servers.
1c. Click on the managed server whose configuration needs to be updated. A page containing various tabs for the settings of the managed server appears. For eg. oacore_server1.
1d. Navigate to Configuration Tab > Server Start Tab > You can see the Arguments Section.
1e. Click on Lock and Edit button in the 'Change Center' panel.
1f. Update the Heap space to the desired value.

2. Using Profile Option BNE: Enable Upload Compression if you are not using BNE: Enable OOXML Standard as set to Yes. If you use the Profile Option BNE: Enable OOXML Standard = Yes, this uses Zip Functionality in the background to Zip and Upload the Data from the Integrator. You can see better Performance when using BNE: Enable OOXML Standard = Yes. However this comes at a cost of Performance issues on the Middle Tier.  This would be a situation were you set BNE: Enable OOXML Standard = No and use the BNE: Enable Upload Compression. This will put the Upload and Zip Functionality back on the Client PC's Resources rather then the Middle Tier. However Upload Times will be much Slower.

This were Benchmark Testing comes in to test what works best for your company needs.

With Release 12.2, you can use the Profile Option BNE: Enable Upload Compression for larger uploads.
When Upload Compression mode is enabled, Web ADI spreadsheet gives a new Menu Option: Oracle > Settings. Accessing this menu option, user defines the compressing utility and its executable.
Possible compressing utilities to use are: None, WinZip, and 7Zip.

3. Using smaller chunk of data for the Upload. Using the Benchmark Testing as mentioned above to Benchmark yourself.

Test with Seeded Integrator and Seeded Tables vs. Custom Integrator and Custom Tables being used.

Most Performance issues seen with BNE/Web ADI Upload is due to Custom Tables that the Interface Tables are trying to insert data to.

In this case Oracle Web ADI Support can only address the Performance with seeded Integrators and seeded Database Tables.

4. If BNE: Enable OOXML Standard = Yes is having Performance or Out of Memory issues related to Uploading/Downloading, test using Profile BNE: Enable OOXML Standard = No. This will return the functionality of the Integrator being created on the Client PC rather then the Server as described above. If the Client PC is still hanging with BNE: Enable OOXML Standard = No, ensure Patch 27953931:R12.BNE.C has been applied and retest with BNE: Enable OOXML Standard = Yes.

5. Check for BNE/Web ADI Connection Leaks. Currently there are known issues with BNE holding connections from the JDBC Connection Pool.

The following are the Known Patches to resolve the current Connection Leaks.

Patch 25232083:R12.BNE.C
Patch 22575948:R12.BNE.C
Patch 22575951:R12.BNE.C
Patch 20027711:R12.BNE.C

You can run the Connection Leak/Login Analyzer to get current BNE related Patching for Connection Leaks.

Please run the Login/Connection Leak Analyzer, E-Business Suite Applications Login Analyzer (Doc ID 2319360.1)
Upload the Results.

6. Check for Performance Patch 27953931:R12.BNE.C - 1OFF: LOW PERFORMANCE RENDERING INTEGRATOR LAYOUT WHEN BNE OOXML IS ON


REFERENCE:

R12:Web ADI Performance and Out of Memory issues seen when uploading large amounts of data (Doc ID 2506299.1)

Not Able To Create A New Database Connection: FNDSECURITY_APPL_SERVER_ID with Instance Mapping For iSetup

$
0
0
ISSUE:

On Oracle Applications 12.1.3 version,
when attempt to register the target instance on a central instance,getting following error:

Message not found. Application: AZ, Message Name: oracle.apps.fnd.common.PoolException: Not able to create new database connection: FNDSECURITY_APPL_SERVER_ID.

The issue can be reproduced at will with the following steps:
1.Register the target instance on a central instance.

The issue has the following business impact:
Unable to register the target instance.

CAUSE:

The required correct DBC file was not in place / corrupted.

SOLUTION:

1. Please confirm whether the DBC (Database Connectivity) File created for instance that you want to map to.

2. Check the path $FND_SECURE. of central instance to check and confirm the DBC file of each remote instance.

3. Run Autoconfig to regenerate DBC file in the required instance and copy the file to the path $FND_SECURE.

4. Re-test.

REFERENCE:

Not Able To Create A New Database Connection: FNDSECURITY_APPL_SERVER_ID with Instance Mapping For iSetup (Doc ID 1627952.1)

How to Tar excluding few sub directories

$
0
0
Many of us would have perform tar of directories for cloning/file movement between the servers.  Many times we would have think to exclude some sub-directories which are not needed, so that tar will save some time.
Here you go handy commands to achieve your needs.

Let’s say if you want to tar /u10/groups folder and want to exclude few sub directories under groups.

Cd /u10
user@/u10 > tar -cpvzf /tmp/groups.tar.gz groups --exclude-from=excl
user@/u10 > cat excl
groups/group-2/instance-1/core.119006
groups/group-2/instance-1/core.71016
groups/group-2/instance-1/core.75416
groups/group-2/instance-1/trace
groups/group-2/instance-1/conf/opsdb.d
groups/group-2/instance-1/conf/opsdb.d_bkup
groups/group-2/instance-1/conf/opsdb.d_bkup1

Unzip particular file from an zip file

$
0
0
Sometimes we would know the archive file present in zip folder and would like to unzip only that particular file.  The ‘-j’ option help us to achieve the same.
Lets say “myarchive.zip” is the zip folder and 
“file.txt” is the filename would like to extract.
File.txt relative path inside the folder is "in/archive/file.txt"

Below command will extract file.txt to "/path/to/unzip/to"

unzip -j "myarchive.zip""in/archive/file.txt" -d "/path/to/unzip/to"

Shrink datafile with free space beyond high water mark

$
0
0


There are times where we need to clear the space of the mount point when the database grows.
Sometimes, we run out of space and we may need to wait for storage team to allocate the space.

Below script will be life saving script, where you can shrink the datafiles and save space immediately.

Upon allocation of the storage, you may resize the datafiles again if needed.

SELECT ceil( blocks*(a.BlockSize)/1024/1024) "Current Size",
   ceil( (nvl(hwm,1)*(a.BlockSize))/1024/1024 ) "Smallest Poss.",
   ceil( blocks*(a.BlockSize)/1024/1024) -
   ceil( (nvl(hwm,1)*(a.BlockSize))/1024/1024 ) "Savings",
   'alter database datafile '''|| file_name || ''' resize ' ||
      ceil((nvl(hwm,1)*(a.BlockSize))/1024/1024/100)*100  || 'm;'"Command"
FROM (SELECT a.*, p.value BlockSize FROM dba_data_files a
JOIN v$parameter p ON p.Name='db_block_size') a
LEFT JOIN (SELECT file_id, max(block_id+blocks-1) hwm FROM dba_extents GROUP BY file_id ) b
ON a.file_id = b.file_id
WHERE ceil( blocks*(a.BlockSize)/1024/1024) - ceil( (nvl(hwm,1)*(a.BlockSize))/1024/1024 )
   > 100 /* Minimum MB it must shrink by to be considered. */
ORDER BY "Savings" Desc;

Last added datafile in Oracle

$
0
0
Below query will give you the last added datafile in oracle.

This will be useful to check whenever you have datafile related issues.

DBA_HIST_DATAFILE is the view stores information of datafiles.

select a.FILE#,a.FILENAME,a.TSNAME,b.creation_time from DBA_HIST_DATAFILE a,V$datafile b where  a.FILE#=b.FILE# order by b.creation_time;

Get standard view definition details

$
0
0
Sometime you wonder about the standard oracle views that where it gets information.  Also, you might be interested in getting base table information so that you can write your own sql queries.

This will help you to get the details.

set lines 300 pages 300
select VIEW_DEFINITION from v$fixed_view_definition where VIEW_NAME='&view_name';--V$log

Start workflow services from backend

$
0
0
Get the component id from below command

col component_name for a20;
col COMPONENT_STATUS for a20;
select COMPONENT_NAME, COMPONENT_STATUS,Component_Id from fnd_svc_components;

To start the services from back end - connect to apps user

declare
l_Component_Id number :=Component id; --Enter workflow Component_Id which needs to be started
l_errcode number;
l_errstr varchar2(4000);
begin
FND_SVC_COMPONENT.Start_Component(l_Component_Id, l_errcode, l_errstr);
commit;
end;
/

TFSCLOCK

$
0
0
SET ECHO off
REM NAME:   TFSCLOCK.SQL
REM USAGE:"@path/tfsclock"
REM ------------------------------------------------------------------------
REM REQUIREMENTS:
REM    SELECT on V_$LOCK, V_$SESSION, SYS.USER$, SYS.OBJ$
REM ------------------------------------------------------------------------
REM PURPOSE:
REM    The following locking information script provides fully DECODED
REM    information regarding the locks currently held in the database.
REM    The report generated is fairly complex and difficult to read,
REM    but has considerable detail.
REM
REM    The TFTS series contains scripts to provide (less detailed) lock 
REM    information in a formats which are somewhat less difficult to read:
REM    TFSMLOCK.SQL and TFSLLOCK.SQL.
REM ------------------------------------------------------------------------
REM EXAMPLE:
REM    Too complex to show a representative sample here
REM 
REM ------------------------------------------------------------------------
REM DISCLAIMER:
REM    This script is provided for educational purposes only. It is NOT 
REM    supported by Oracle World Wide Technical Support.
REM    The script has been tested and appears to work as intended.
REM    You should always run new scripts on a test instance initially.
REM ------------------------------------------------------------------------
REM

set lines 200
set pagesize 66
break on Kill on sid on  username on terminal
column Kill heading 'Kill String' format a13
column res heading 'Resource Type' format 999
column id1 format 9999990
column id2 format 9999990
column locking heading 'Lock Held/Lock Requested' format a40
column lmode heading 'Lock Held' format a20
column request heading 'Lock Requested' format a20
column serial# format 99999
column username  format a10  heading "Username"
column terminal heading Term format a6
column tab format a30 heading "Table Name"
column owner format a9
column LAddr heading "ID1 - ID2" format a18
column Lockt heading "Lock Type" format a40
column command format a25
column sid format 990

select
nvl(S.USERNAME,'Internal') username,
        L.SID,
        nvl(S.TERMINAL,'None') terminal,
        decode(command,
0,'None',decode(l.id2,0,U1.NAME||'.'||substr(T1.NAME,1,20),'None')) tab,
decode(command,
0,'BACKGROUND',
1,'Create Table',
2,'INSERT',
3,'SELECT',
4,'CREATE CLUSTER',
5,'ALTER CLUSTER',
6,'UPDATE',
7,'DELETE',
8,'DROP',
9,'CREATE INDEX',
10,'DROP INDEX',
11,'ALTER INDEX',
12,'DROP TABLE',
13,'CREATE SEQUENCE',
14,'ALTER SEQUENCE',
15,'ALTER TABLE',
16,'DROP SEQUENCE',
17,'GRANT',
18,'REVOKE',
19,'CREATE SYNONYM',
20,'DROP SYNONYM',
21,'CREATE VIEW',
22,'DROP VIEW',
23,'VALIDATE INDEX',
24,'CREATE PROCEDURE',
25,'ALTER PROCEDURE',
26,'LOCK TABLE',
27,'NO OPERATION',
28,'RENAME',
29,'COMMENT',
30,'AUDIT',
31,'NOAUDIT',
32,'CREATE EXTERNAL DATABASE',
33,'DROP EXTERNAL DATABASE',
34,'CREATE DATABASE',
35,'ALTER DATABASE',
36,'CREATE ROLLBACK SEGMENT',
37,'ALTER ROLLBACK SEGMENT',
38,'DROP ROLLBACK SEGMENT',
39,'CREATE TABLESPACE',
40,'ALTER TABLESPACE',
41,'DROP TABLESPACE',
42,'ALTER SESSION',
43,'ALTER USER',
44,'COMMIT',
45,'ROLLBACK',
46,'SAVEPOINT',
47,'PL/SQL EXECUTE',
48,'SET TRANSACTION',
49,'ALTER SYSTEM SWITCH LOG',
50,'EXPLAIN',
51,'CREATE USER',
52,'CREATE ROLE',
53,'DROP USER',
54,'DROP ROLE',
55,'SET ROLE',
56,'CREATE SCHEMA',
57,'CREATE CONTROL FILE',
58,'ALTER TRACING',
59,'CREATE TRIGGER',
60,'ALTER TRIGGER',
61,'DROP TRIGGER',
62,'ANALYZE TABLE',
63,'ANALYZE INDEX',
64,'ANALYZE CLUSTER',
65,'CREATE PROFILE',
66,'DROP PROFILE',
67,'ALTER PROFILE',
68,'DROP PROCEDURE',
69,'DROP PROCEDURE',
70,'ALTER RESOURCE COST',
71,'CREATE SNAPSHOT LOG',
72,'ALTER SNAPSHOT LOG',
73,'DROP SNAPSHOT LOG',
74,'CREATE SNAPSHOT',
75,'ALTER SNAPSHOT',
76,'DROP SNAPSHOT',
79,'ALTER ROLE',
85,'TRUNCATE TABLE',
86,'TRUNCATE CLUSTER',
87,'-',
88,'ALTER VIEW',
89,'-',
90,'-',
91,'CREATE FUNCTION',
92,'ALTER FUNCTION',
93,'DROP FUNCTION',
94,'CREATE PACKAGE',
95,'ALTER PACKAGE',
96,'DROP PACKAGE',
97,'CREATE PACKAGE BODY',
98,'ALTER PACKAGE BODY',
99,'DROP PACKAGE BODY',
command||' - ???') COMMAND,
        decode(L.LMODE,1,'No Lock',
                2,'Row Share',
                3,'Row Exclusive',
                4,'Share',
                5,'Share Row Exclusive',
                6,'Exclusive','NONE') lmode,
        decode(L.REQUEST,1,'No Lock',
                2,'Row Share',
                3,'Row Exclusive',
                4,'Share',
                5,'Share Row Exclusive',
                6,'Exclusive','NONE') request,
l.id1||'-'||l.id2 Laddr,
l.type||' - '||
decode(l.type,
'BL','Buffer hash table instance lock',
'CF',' Control file schema global enqueue lock',
'CI','Cross-instance function invocation instance lock',
'CS','Control file schema global enqueue lock',
'CU','Cursor bind lock',
'DF','Data file instance lock',
'DL','Direct loader parallel index create',
'DM','Mount/startup db primary/secondary instance lock',
'DR','Distributed recovery process lock',
'DX','Distributed transaction entry lock',
'FI','SGA open-file information lock',
'FS','File set lock',
'HW','Space management operations on a specific segment lock',
'IN','Instance number lock',
'IR','Instance recovery serialization global enqueue lock',
'IS','Instance state lock',
'IV','Library cache invalidation instance lock',
'JQ','Job queue lock',
'KK','Thread kick lock',
'MB','Master buffer hash table instance lock',
'MM','Mount definition gloabal enqueue lock',
'MR','Media recovery lock',
'PF','Password file lock',
'PI','Parallel operation lock',
'PR','Process startup lock',
'PS','Parallel operation lock',
'RE','USE_ROW_ENQUEUE enforcement lock',
'RT','Redo thread global enqueue lock',
'RW','Row wait enqueue lock',
'SC','System commit number instance lock',
'SH','System commit number high water mark enqueue lock',
'SM','SMON lock',
'SN','Sequence number instance lock',
'SQ','Sequence number enqueue lock',
'SS','Sort segment lock',
'ST','Space transaction enqueue lock',
'SV','Sequence number value lock',
'TA','Generic enqueue lock',
'TD','DDL enqueue lock',
'TE','Extend-segment enqueue lock',
'TM','DML enqueue lock',
'TO','Temporary Table Object Enqueue',
'TT','Temporary table enqueue lock',
'TX','Transaction enqueue lock',
'UL','User supplied lock',
'UN','User name lock',
'US','Undo segment DDL lock',
'WL','Being-written redo log instance lock',
'WS','Write-atomic-log-switch global enqueue lock',
'TS',decode(l.id2,0,'Temporary segment enqueue lock (ID2=0)',
                    'New block allocation enqueue lock (ID2=1)'),
'LA','Library cache lock instance lock (A=namespace)',
'LB','Library cache lock instance lock (B=namespace)',
'LC','Library cache lock instance lock (C=namespace)',
'LD','Library cache lock instance lock (D=namespace)',
'LE','Library cache lock instance lock (E=namespace)',
'LF','Library cache lock instance lock (F=namespace)',
'LG','Library cache lock instance lock (G=namespace)',
'LH','Library cache lock instance lock (H=namespace)',
'LI','Library cache lock instance lock (I=namespace)',
'LJ','Library cache lock instance lock (J=namespace)',
'LK','Library cache lock instance lock (K=namespace)',
'LL','Library cache lock instance lock (L=namespace)',
'LM','Library cache lock instance lock (M=namespace)',
'LN','Library cache lock instance lock (N=namespace)',
'LO','Library cache lock instance lock (O=namespace)',
'LP','Library cache lock instance lock (P=namespace)',
'LS','Log start/log switch enqueue lock',
'PA','Library cache pin instance lock (A=namespace)',
'PB','Library cache pin instance lock (B=namespace)',
'PC','Library cache pin instance lock (C=namespace)',
'PD','Library cache pin instance lock (D=namespace)',
'PE','Library cache pin instance lock (E=namespace)',
'PF','Library cache pin instance lock (F=namespace)',
'PG','Library cache pin instance lock (G=namespace)',
'PH','Library cache pin instance lock (H=namespace)',
'PI','Library cache pin instance lock (I=namespace)',
'PJ','Library cache pin instance lock (J=namespace)',
'PL','Library cache pin instance lock (K=namespace)',
'PK','Library cache pin instance lock (L=namespace)',
'PM','Library cache pin instance lock (M=namespace)',
'PN','Library cache pin instance lock (N=namespace)',
'PO','Library cache pin instance lock (O=namespace)',
'PP','Library cache pin instance lock (P=namespace)',
'PQ','Library cache pin instance lock (Q=namespace)',
'PR','Library cache pin instance lock (R=namespace)',
'PS','Library cache pin instance lock (S=namespace)',
'PT','Library cache pin instance lock (T=namespace)',
'PU','Library cache pin instance lock (U=namespace)',
'PV','Library cache pin instance lock (V=namespace)',
'PW','Library cache pin instance lock (W=namespace)',
'PX','Library cache pin instance lock (X=namespace)',
'PY','Library cache pin instance lock (Y=namespace)',
'PZ','Library cache pin instance lock (Z=namespace)',
'QA','Row cache instance lock (A=cache)',
'QB','Row cache instance lock (B=cache)',
'QC','Row cache instance lock (C=cache)',
'QD','Row cache instance lock (D=cache)',
'QE','Row cache instance lock (E=cache)',
'QF','Row cache instance lock (F=cache)',
'QG','Row cache instance lock (G=cache)',
'QH','Row cache instance lock (H=cache)',
'QI','Row cache instance lock (I=cache)',
'QJ','Row cache instance lock (J=cache)',
'QL','Row cache instance lock (K=cache)',
'QK','Row cache instance lock (L=cache)',
'QM','Row cache instance lock (M=cache)',
'QN','Row cache instance lock (N=cache)',
'QO','Row cache instance lock (O=cache)',
'QP','Row cache instance lock (P=cache)',
'QQ','Row cache instance lock (Q=cache)',
'QR','Row cache instance lock (R=cache)',
'QS','Row cache instance lock (S=cache)',
'QT','Row cache instance lock (T=cache)',
'QU','Row cache instance lock (U=cache)',
'QV','Row cache instance lock (V=cache)',
'QW','Row cache instance lock (W=cache)',
'QX','Row cache instance lock (X=cache)',
'QY','Row cache instance lock (Y=cache)',
'QZ','Row cache instance lock (Z=cache)','????') Lockt
from    V$LOCK L, 
        V$SESSION S,
        SYS.USER$ U1,
        SYS.OBJ$ T1
where   L.SID = S.SID 
and     T1.OBJ#  = decode(L.ID2,0,L.ID1,1) 
and     U1.USER# = T1.OWNER#
and     S.TYPE != 'BACKGROUND'
order by 1,2,5
/

check and kill

$
0
0
-- Check what the sessions in our instance are waiting for
select event,count(*) from v$session group by event order by count(*);

-- Flexible query to check what's currently running in the system
-- Where statement and column lists can be modified by the case
-- Written for RAC DBs
select
s.inst_id,
--      'alter system kill session '''|| s.SID||',' || s.serial# ||'''' ,
--'!kill -9 ' || p.spid,
      p.SPID UnixProcess ,s.SID,s.serial#,s.USERNAME,s.COMMAND,s.MACHINE,s.blocking_session
      ,s.program, status,state,event,s.sql_id,sql_text,COMMAND_TYPE
--    ,sbc.name,to_char(sbc.last_captured,'yyyy-mm-dd hh24:mi:ss'),sbc.value_string
    from gv$session s
left outer join gv$process p on p.ADDR = s.PADDR and s.inst_id=p.inst_id
left outer join gv$sqlarea sa on sa.ADDRESS = s.SQL_ADDRESS and s.inst_id=sa.inst_id
--left outer join gV$SQL_BIND_CAPTURE sbc on sbc.ADDRESS = s.SQL_ADDRESS and s.inst_id=p.inst_id
where 1=1 and sql_text like '...'

-- Check what a specific session is doing:
select
      p.SPID UnixProcess ,s.SID,s.serial#,s.USERNAME,s.COMMAND,s.MACHINE,s.SQL_ADDRESS,s.SQL_HASH_VALUE
      ,s.program, status,sql_text,COMMAND_TYPE
    from gv$session s,gv$process p, gv$sqlarea sa
where p.ADDR = s.PADDR and s.inst_id=p.inst_id
and sa.ADDRESS = s.SQL_ADDRESS and s.inst_id=sa.inst_id
and s.sid=1722;

-- Find all sessions that are blocked and which session is blocking them
-- Then find what the blocking session is doing
select sid,blocking_session,username,sql_id,event,machine,osuser,program from v$session where blocking_session > 0;
select sid,blocking_session,username,sql_id,event,machine,osuser,program from v$session where sid=491;


-- generate commands to kill all sessions from a specific user on specific instance
select 'alter system kill session '''|| SID||',' || serial# ||''' immediate;' from gv$session where username='BAD_USER' and inst_id=1;


-- Kill all sessions waiting for specific events by a specific user
select       'alter system kill session '''|| s.SID||',' || s.serial# ||''';'
from gv$session s
where 1=1
and (event='latch: shared pool' or event='library cache lock') and s.USERNAME='DBSNMP';

-- kill all sessions executing a bad SQL
select
     'alter system kill session '''|| s.SID||',' || s.serial# ||''';'
    from v$session s
where s.sql_id='0vj44a7drw1rj';


-- Sessions taking most PGA memory
-- Can be used to find leaks
select addr,SPID,username,program,pga_alloc_mem/1024 mem_alloc_Kb from v$process order by pga_alloc_mem;

-- Check what is the top SQL executed by parallel slaves
select sql_id,count(*) from v$session where program like '%P0%' group by sql_id;



-- Find inactive sessions
-- This can be used to decide which sessions to kill if the DB is running out of processes
select sid, blocking_session,username,program,machine,osuser,  sql_id, prev_sql_id, event,LAST_CALL_ET from v$session where status != 'ACTIVE' and last_call_et>3600;


-- How many sessions openned by each app server
select machine,count(*) from gv$session s group by machine;

-- Find sql_id for a specific sql snippet
select sql_id,sql_text from v$sql where dbms_lob.instr(sql_text, 'create INDEX',1,1) > 0

-- Find SQL with too many child cursors:
select version_count,sql_text from v$sqlarea order by version_count desc



-- Get the longops status for a specific session
select sid
,      message, start_time,time_remaining
from   v$session_longops
where  sid = 28
order by start_time;

-- Check status for long ops executing right now
  select s.sid,s.serial#,opname, target, program,sofar, totalwork,units, elapsed_seconds, message,start_time,time_remaining 
from v$session_longops l
join v$session s on l.sid=s.sid and s.serial#=l.serial#
where time_remaining>0
order by start_time desc




-- Find out how much memory each session is using
COLUMN sid                     FORMAT 999            HEADING 'SID'
COLUMN oracle_username         FORMAT a12            HEADING 'Oracle User'     JUSTIFY right
COLUMN os_username             FORMAT a9             HEADING 'O/S User'        JUSTIFY right
COLUMN session_program         FORMAT a18            HEADING 'Session Program' TRUNC
COLUMN session_module         FORMAT a18            HEADING 'Session module' TRUNC
COLUMN session_action         FORMAT a18            HEADING 'Session action' TRUNC
COLUMN session_machine         FORMAT a8             HEADING 'Machine'   JUSTIFY right TRUNC
COLUMN session_pga_memory      FORMAT 9,999,999,999  HEADING 'PGA Memory'
COLUMN session_pga_memory_max  FORMAT 9,999,999,999  HEADING 'PGA Memory Max'
COLUMN session_uga_memory      FORMAT 9,999,999,999  HEADING 'UGA Memory'
COLUMN session_uga_memory_max  FORMAT 9,999,999,999  HEADING 'UGA Memory MAX'
COLUMN session_total_memory  FORMAT 9,999,999,999  HEADING 'Total Memory'

select sid,oracle_username,os_username,session_program,session_module,session_action,
session_pga_memory,session_pga_memory_max,session_uga_memory,session_uga_memory_max,session_pga_memory+session_uga_memory session_total_memory from (
SELECT
    s.sid                sid
  , lpad(s.username,12)  oracle_username
  , lpad(s.osuser,9)     os_username
  , s.program            session_program
  , s.module            session_module
  , s.action            session_action
  , lpad(s.machine,8)    session_machine
  , (select ss.value from v$sesstat ss, v$statname sn
     where ss.sid = s.sid and
           sn.statistic# = ss.statistic# and
           sn.name = 'session pga memory')        session_pga_memory
  , (select ss.value from v$sesstat ss, v$statname sn
     where ss.sid = s.sid and
           sn.statistic# = ss.statistic# and
           sn.name = 'session pga memory max')    session_pga_memory_max
  , (select ss.value  from v$sesstat ss, v$statname sn
     where ss.sid = s.sid and
           sn.statistic# = ss.statistic# and
           sn.name = 'session uga memory')        session_uga_memory
  , (select ss.value from v$sesstat ss, v$statname sn
     where ss.sid = s.sid and
           sn.statistic# = ss.statistic# and
           sn.name = 'session uga memory max')   as session_uga_memory_max
FROM
    v$session  s )
ORDER BY session_total_memory DESC;






SSD script

$
0
0
-- Find segments with most read operations, and hopefully relatively few writes
-- These are good candidates for placing on SSD storage
WITH segment_stats
          AS (SELECT ss.owner || '.' || ss.object_name
                    || DECODE (ss.subobject_name,NULL, '',
                    '(' || ss.subobject_name || ')')  segment_name,
                    ss.object_type,
                    SUM ( CASE WHEN statistic_name LIKE 'physical reads%'
                            THEN VALUE ELSE 0  END) reads,
                    SUM ( CASE WHEN statistic_name LIKE 'physical writes%'
                            THEN VALUE  ELSE 0 END) writes,
                    ROUND (SUM (bytes) / 1048576) mb
              FROM   v$segment_statistics ss
              JOIN   dba_segments s
               ON (s.owner = ss.owner AND s.segment_name = ss.object_name
                   AND NVL (ss.subobject_name, 'x') =NVL (s.partition_name, 'x'))
             WHERE statistic_name LIKE 'physical reads%'
                OR statistic_name LIKE 'physical writes%'
             GROUP BY ss.owner,ss.object_name,ss.subobject_name,ss.object_type)
 SELECT segment_name, object_type, reads,writes,
       ROUND (reads * 100 / SUM (reads) OVER (), 2) pct_reads,
       ROUND (writes * 100 / SUM (writes) OVER (), 2) pct_writes,
       mb FROM segment_stats
 ORDER BY reads DESC

 -- find segments with full scans
 -- These are not ideal for placing on SSD storage
col segment_name format a60
select
        owner || '.' || object_name || DECODE (subobject_name,NULL, '','(' || subobject_name || ')') segment_name,object_type,
        value scans
from
        V$segment_statistics
where
        statistic_name = 'segment scans'
and     value != 0
order by
value desc
;

ORA-20005: object statistics are locked (stattype = ALL) - Solution

$
0
0
During tuning a query, I found one table has stale statistics. While running gather stats for that table, got below error. Let me demonstrate with a demo table:

SQL> execute dbms_stats.gather_table_stats(ownname => 'HR', tabname => 'EMPLOYEE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt => 'FOR ALL COLUMNS SIZE AUTO');

BEGIN dbms_stats.gather_table_stats(ownname => 'HR', tabname => 'EMPLOYEE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt => 'FOR ALL COLUMNS SIZE AUTO'); END;

*
ERROR at line 1:
ORA-20005: object statistics are locked (stattype = ALL)
ORA-06512: at "SYS.DBMS_STATS", line 34634
ORA-06512: at line 1


SQL> 

Analysis:

Verify whether statistics is locked for that table or not.


SQL> col OWNER for a12
SQL> col table_name for a30
SQL> col STATTYPE_LOCKED for a15
SQL> select owner,table_name,STATTYPE_LOCKED from dba_tab_statistics where table_name='EMPLOYEE' and owner='HR';

OWNER        TABLE_NAME                     STATTYPE_LOCKED
------------ ------------------------------ ---------------
HR           EMPLOYEE                           ALL

SQL> 

So, the column "stattype_locked" value is showing "ALL", that means statistics is locked for that table.

Solution Description:

The table statistics can be locked from the further update by using dbms_stats package. This will help to restrict from automatic statistics updation. When you get this error you can check whether your table is locked on further statistics updation using following query. The stattype_locked should be null to update the statistics.

STATTYPE_LOCKED – ALL -> stats are locked for the table
STATTYPE_LOCKED – NULL – > stats are not locked

To Unlock stats:

SQL> EXEC DBMS_STATS.unlock_table_stats('HR','EMPLOYEE');

PL/SQL procedure successfully completed.

SQL> 


Now try to run stats again:


SQL> execute dbms_stats.gather_table_stats(ownname => 'HR', tabname => 'EMPLOYEE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt => 'FOR ALL COLUMNS SIZE AUTO');

PL/SQL procedure successfully completed.

SQL> 

Similarly we can unlock stats for a schema also.

SQL> EXEC DBMS_STATS.unlock_schema_stats('HR');

PL/SQL procedure successfully completed.

expdp job still executing even after killed from OS level

$
0
0
I killed a expdp job from OS level but I saw that the job still executing. I started the job as background like below:
$ nohup expdp \"/ as sysdba\" parfile=export_emp_tables.par &

When I check from v$session, I found program as "oracle@example01 (DM00)". That means DMOO background process started to execute the job. i.e., master process DM00 started.

You can find "master process DM00 started" message from alert log also. There it self you can find complete session details.

Then, How we can clear that session?

Step1: Check the job name with schema
Find the Job name.


SET lines 200 
COL owner_name FORMAT a10; 
COL job_name FORMAT a20 
COL state FORMAT a12 
COL operation LIKE state 
COL job_mode LIKE state 
COL owner.object for a50 
SELECT owner_name, job_name, rtrim(operation) "OPERATION", 
rtrim(job_mode) "JOB_MODE", state, attached_sessions 
FROM dba_datapump_jobs 
WHERE job_name NOT LIKE 'BIN$%' 
ORDER BY 1,2;



OWNER_NAME JOB_NAME             OPERATION    JOB_MODE     STATE        ATTACHED_SESSIONS---------- -------------------- ------------ ------------ ------------ -----------------SYS        SYS_EXPORT_TABLE_01  EXPORT       TABLE        EXECUTING                    1SYSTEM     SYS_EXPORT_FULL_01   EXPORT       FULL         NOT RUNNING                  0

Here Running job is 'SYS_EXPORT_TABLE_01'.


Step 2: To stop the job perform below steps
Syntax

exec DBMS_DATAPUMP.STOP_JOB (DBMS_DATAPUMP.ATTACH('JOB_NAME','OWNER',1.0)

‘1’ is to abort the job immediately
‘0’ is to remove the job from the job list so that it is not restartable

SQL> exec DBMS_DATAPUMP.STOP_JOB (DBMS_DATAPUMP.ATTACH('SYS_EXPORT_TABLE_01','SYS'),1,0);

Example:
SQL> exec DBMS_DATAPUMP.STOP_JOB (DBMS_DATAPUMP.ATTACH('SYS_EXPORT_TABLE_01','SYS'),1,0);
PL/SQL procedure successfully completed.SQL>
Verify again:
SELECT owner_name, job_name, rtrim(operation) "OPERATION", rtrim(job_mode) "JOB_MODE", state, attached_sessions FROM dba_datapump_jobs WHERE job_name NOT LIKE 'BIN$%' ORDER BY 1,2;
OWNER_NAME JOB_NAME             OPERATION    JOB_MODE     STATE        ATTACHED_SESSIONS---------- -------------------- ------------ ------------ ------------ -----------------SYSTEM     SYS_EXPORT_FULL_01   EXPORT       FULL         NOT RUNNING                  0
Now it seems, no job is running.

Article 0

$
0
0
Timeout Error Encountered for pasteBinary.sh While Running "adop phase=fs_clone"


While running fs_clone phase in 12.2.2, we have faced  the following issue.


Error:

Enabling EBS_LOGON trigger
Error while executing [filesystem]/fs2/inst/apps/[context_name]/appltmp/alter_ebs_logon_trigger.sql
Failed to enable EBS_LOGON trigger
*******FATAL ERROR*******
PROGRAM : ([filesystem]/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl)
TIME    : Mon Nov 11 15:47:51 2013
FUNCTION: main::runFSCloneApply [ Level 1 ]
ERRORMSG: [filesystem]/fs1/EBSapps/comn/clone/bin/adclone.pl did not go through successfully.

         [UNEXPECTED]Error occurred while executing <perl [filesystem]/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=[filesystem]/fs1/inst/apps/[context_name]/appl/admin/[context_name].xml -patchcontextfile=[filesystem]/fs2/inst/apps/[context_name]/appl/admin/[context_name].xml -promptmsg=hide -console=off -mode=create -sessionid=5 -timestamp=[timestamp] -outdir=[filesystem]/fs_ne/EBSapps/log/adop/5/fs_clone_[timestamp]/[context_name]>
         [UNEXPECTED]Error occurred while CLONE Patch File System from Run File System using command: <perl [filesystem]/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=[filesystem]/fs1/inst/apps/[context_name]/appl/admin/[context_name].xml -patchcontextfile=[filesystem]/fs2/inst/apps/[context_name]/appl/admin/[context_name].xml -promptmsg=hide -console=off -mode=create -sessionid=5 -timestamp=[timestamp] -outdir=[filesystem]/fs_ne/EBSapps/log/adop/5/fs_clone_[timestamp]/[context_name]>.
         [UNEXPECTED]fs_clone phase completed with errors/warnings. Please check logfiles
         Log file: [filesystem]/fs_ne/EBSapps/log/adop/5/adop_[timestamp].log


adop exiting with status = 2 (Fail)

On further investigation it is seen in the FSCloneApplyAppsTier_[timestamp].log file

Creating FMW Home.
Running [filesystem]/fs1/EBSapps/comn/clone/FMW/pasteBinary.sh -javaHome [filesystem]/fs1/EBSapps/comn/clone/FMW/t2pjdk -al [filesystem]/fs1/EBSapps/comn/clone/FMW/FMW_Home.jar -tl [filesystem]/fs2/FMW_Home -invPtrLoc /etc/oraInst.loc -ldl [filesystem]/fs1/EBSapps/comn/clone/FMW/logs -silent true -executeSysPrereqs false
Script Executed in 7200015 milliseconds, returning status -1

Script timed out.

Cause:

The issue is caused by the following setup:
pasteBinary is run within a TimedProcess:
TimedProcess pasteBinaryProc = new TimedProcess(l_pasteBinarycmd, 7200000);
 

Solution:

. Open a new terminal.

2. Execute:
      export TIMEDPROCESS_TIMEOUT=-1

3. Execute:
      adop phase=fs_clone

It should resolve. 


Article 2

$
0
0
                                         Data dictionary corruption details - Timestamp mismatch


Time stamp mismatched in 12.2.5 , would get this error in any phase of adop cycle . 

for step1 , application can be up and running and if doesnt fix, proceed with step2 with bring down the application down and also see the instruction for the script utlrp.sql usuage and run the script. 



Step 1 

Fix Logical data dictionary corruption (missing-parent) 

Follow this step only when logical data-dictionary corruption is present. 
1. Connect to database as "SYSDBA". 
2. Run the $AD_TOP/patch/115/sql/adzddmpfix.sql 
3. Run the $AD_TOP/sql/ADZDDBCC.sql script again to identify whether the logical data dictionary corruption is still present. 

If this does not work... 

Step 2 


as sysdba ... 
1. On database node, go to $ORACLE_HOME/rdbms/admin directory. 
2. Run utlirp.sql (following the usage instructions provided). 
3. Run utlrp.sql (following the usage instructions provided). 

4. Run the $AD_TOP/sql/ADZDDBCC.sql script again to identify whether the data dictionary corruption is still present. 

And re-run the phase which your trying for. 

ORA-15067: command or option incompatible with diskgroup redundancy

$
0
0
When dropping an online disk from a diskgroup why is ORA-15067 error returned?

SQL> alter diskgroup data01 drop disk data01_01;
alter diskgroup data01 drop disk data01_01
*
ERROR at line 1:
ORA-15067: command or option incompatible with diskgroup redundancy


Cause: 

The disk is the last one in the diskgroup. A minimum of one disk is required for a diskgroup. For more details look in the ASM alert log.

Solution: 

Don’t try dropping the last member of the diskgroup. If you have to drop a particular disk and it is the last member add another disk to the diskgroup first.

Article 0

$
0
0
How To Allow ADOP To Continue As If It Were Successful After Hitting An Error While Applying Patch(es)



We can skip patches when there are multiple patches in a cycle and it can be achieved by the following cases: 

Applying multiple patches in a given adop cycle, where by one of the patches fails to compile a form.  Instead of having adop error out, and having to redo all of the patches, just have adop log the message and continue on with the patch application.

Typical message that a user sees when adop fails during a patching cycle.


Continue as if it were successful :
***

AutoPatch could not find a response to the above prompt
or found an incorrect response in the defaults file.

You must run AutoPatch in an interactive session and provide a correct value.


Solution :


Currently the only way to "Continue as if a patch were successful" is by making use of the following parameter "flags=autoskip" in conjunction with the "abandon=no" parameter at the command-line.

For example: 
           


adop phase=apply patches=17020683 abandon=no restart=yes flags=autoskip


Viewing all 1640 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>