Category: October 2026

  • Oracle EBS 12.2.10 October 2026 CPU on a TEST Environment: Online Patching, FMW/WLS Overlays and DB RU 19.33, Step by Step

    Alhamdulillah, the October 2026 CPU cycle on our TEST Oracle E-Business Suite 12.2.10 environment is complete, apart from the Java updates listed at the end. This post records the steps in the order they were run, the commands, and what the checkers reported, including the one that is not clean. It is a record of one cycle on one environment, not a universal procedure. Always follow the README of each patch and the current CPU note (KA923) for your own system.

    What this post covers

    • Ten EBS patches applied online with adop (prepare, apply, finalize, cutover)
    • Fusion Middleware and WebLogic patches applied on the patch file system during the same adop session
    • Database tier: combo patch 40121635 (RU 19.33 plus OJVM) with OPatch and datapatch in a single-instance CDB
    • AutoConfig on both tiers, checker validation (ETCC, ECPUC, EJCPUC) and fs_clone
    • What was not done and what is left as follow-up

    Environment and baseline

    ItemValue
    EnvironmentTEST (non-production), Linux, one application node and one database node
    EBS12.2.10, AD/TXK C.Delta.17, run and patch file systems (fs1/fs2) plus fs_ne
    DatabaseOracle Database 19c, single-instance CDB with one PDB, in NOARCHIVELOG mode
    DB baseline before the cycleRU 19.32 with OJVM patch 39222882 (datapatch rolled that OJVM patch back and applied the new one)
    TargetOctober 2026 CPU: DB RU 19.33, EBS CPU level 2026.10

    What was applied

    TierPatches
    EBS (one adop session, 10 patches)40022426, 40118871, 40119100, 40132913, 40133533, 40119303, 40035952, 40012730, 39399187, 39815908
    FMW Web Tier home39966770 (applied with napply), 32287205, 34067016
    FMW Oracle Common home39966770 (applied with napply), 39959053, 40090834
    WebLogic (BSU)PG6B was already in place as the baseline and was only verified; overlays KP5S and 4HID were applied this cycle on top of it
    Database (combo 40121635)RU 39915792 and OJVM 39803650

    Not applied in this cycle: Forms patch 29949547 (ETCC marks it as needed only when connecting to Oracle Database 23ai), the database JDK patch 39902051, and the app-tier JDK 7 update. These are listed as follow-ups at the end.

    Timeline

    PhaseDuration
    adop fs_clone (before prepare)56 min
    adop prepare6 min
    adop apply (all patches, plus FMW/WLS work in the same phase)about 21.5 hours
    adop finalize7 min
    adop cutover (mtrestart=no)12 min
    DB: OPatch RU and OJVM, then datapatchdatapatch 14 min
    adop fs_clone (after the cycle)57 min

    Step 1: Pre-checks and backups

    Before you start: read the current CPU note (KA923) and the README of every patch, including its prerequisites and known-issue notes. Confirm the OPatch version each README requires, agree the downtime window, and define and verify a recovery plan before starting.

    Run the checkers before you change anything and keep the output: ETCC on the application tier and the database tier, and ECPUC as APPS. Take an invalid-object baseline in the PDB so you can compare afterwards.

    SQL> alter session set container=<PDB_NAME>;
    SQL> col owner for a20
    SQL> col object_type for a25
    SQL> select rpad(nvl(owner,'-'),20) owner, rpad(nvl(object_type,'-'),25) object_type, count(*) cnt
         from dba_objects where status='INVALID'
         group by owner, object_type order by 1,2;

    Back up the database home, oraInventory and FMW_Home. Run long tar jobs under nohup or screen so a dropped session does not kill them:

    $ cd <DB_BASE>
    $ nohup tar -cvzf /backup/db_home_<date>.tar.gz 19.1.0 &
    $ nohup tar -cvzf /backup/oraInventory_<date>.tar.gz <oraInventory> &
    $ nohup tar -cvzf /backup/fmw_home_<date>.tar.gz $FMW_HOME &

    Because this test database runs in NOARCHIVELOG mode, a home tarball does not protect the data files, and there is no archived redo to roll forward from. The only backup I took in this cycle was the set of home and inventory tarballs above. A consistent cold backup of the database files, or another recovery method supported in your environment, and a restore test were not part of this cycle, so I cannot say how long a restore would take or whether it would work. Confirm the exact backup method against your own DBA procedures, and plan the backup and the restore test before you start. Also copy the network admin directories and context files on both tiers before AutoConfig runs later.

    Step 2: adgrants.sql

    Caution: adgrants.sql must run inside the PDB, not in CDB$ROOT, and the copy on the database home must be the highest version available. Follow the instructions in the EBS patch README that calls for it.

    Compare the version of adgrants.sql under APPL_TOP/admin, in the patch directory, and under the database home. Use the highest version, copy it to the database home, and run it inside the PDB.

    $ adident Header $APPL_TOP/admin/adgrants.sql
    $ strings -a $ORACLE_HOME/appsutil/admin/adgrants.sql | grep -i header
    SQL> alter session set container=<PDB_NAME>;
    SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPS

    In this cycle the application-tier and database-tier copies were already the same version, so no copy was needed. If EBS_SYSTEM is locked, unlock it and reset its password before adop asks for it.

    Step 3: fs_clone, prepare and apply

    Caution: start from the run edition (echo $FILE_EDITION should print run), confirm adop -status shows no open session, and run the long phases in screen. The apply phase took about 21.5 hours here. Each patch must be unzipped so the driver file sits directly under the patch directory.

    $ . <EBS_BASE>/EBSapps.env run
    $ adop -status
    $ time adop phase=fs_clone        # run in screen, about 56 min; confirm COMPLETED with adop -status
    $ time adop phase=prepare
    $ time adop phase=apply patches=40022426
    $ time adop phase=apply patches=40118871
      ... one patch per command, in the order listed above ...
    $ time adop phase=apply patches=39815908

    Check after each patch with adop -status and adopscanlog -latest=yes. If adop reports that a patch is not found under PATCH_TOP, the driver file is usually one directory too deep. Move the contents up so the driver sits directly under the patch directory.

    Step 4: FMW and WebLogic patches on the patch file system

    Caution: edition and home selection. These patches go to the patch file system while the adop session is open. Source the patch environment, then echo ORACLE_HOME before every opatch call and confirm it points at the home you mean (webtier or oracle_common). Read KA988 and the footnotes for each patch, since some have special instructions.

    $ . <EBS_BASE>/EBSapps.env patch
    $ echo $FILE_EDITION                                  # patch
    $ ps -efww | grep <patch FMW_Home> | grep -v grep     # must be empty
    $ BUNDLE=<stage>/FMW_CPU_OCT26/39953619/etcc-bundle/LINUX_X86-64    # consolidated bundle, unzipped
    $ STAGE=<stage>/fmw_unzipped                           # one directory per patch, unzipped here
    
    # ---- Web Tier (OPatch 11.1.0.12.9) ----
    $ cd $FMW_HOME; . ./SetWebtier.env; echo $ORACLE_HOME     # .../webtier
    $ WT=$FMW_HOME/webtier
    
    # 39966770 (RDA)
    $ unzip -q $BUNDLE/webtier/11.1.1.9.0/p39966770_111190_Generic.zip -d $STAGE/web
    $ cd $STAGE/web/39966770
    $ $WT/OPatch/opatch napply -oh $WT
    
    # 32287205 (prerequisite for 34067016; OPatch rolled back 31304503 automatically)
    $ cd $STAGE/web/32287205
    $ $WT/OPatch/opatch apply -oh $WT
    $ $WT/OPatch/opatch lspatches -oh $WT | grep -E '32287205|31304503'
    
    # 34067016
    $ cd $STAGE/web/34067016
    $ $WT/OPatch/opatch apply -oh $WT -jre $WT/jdk/jre    # answer y at the OCM "remain uninformed" prompt
    $ $WT/OPatch/opatch lspatches -oh $WT | grep -E '34067016|32287205'
    
    # ---- Oracle Common ----
    $ cd $FMW_HOME; . ./SetOracleCommon.env; echo $ORACLE_HOME  # .../oracle_common
    $ export PATH=$ORACLE_HOME/OPatch:$PATH
    
    # 39966770 (RDA)
    $ unzip -q $BUNDLE/oracle_common/11.1.1.9.0/p39966770_111190_Generic.zip -d $STAGE/common
    $ cd $STAGE/common/39966770
    $ $FMW_HOME/oracle_common/OPatch/opatch napply -oh $FMW_HOME/oracle_common
    
    # 39959053 first, then 40090834; each from its own unzipped directory
    $ cd $STAGE/common/39959053
    $ opatch prereq CheckConflictAgainstOHWithDetail -ph ./    # ./ = 39959053
    $ opatch apply
    $ opatch lspatches | grep 39959053
    $ cd $STAGE/common/40090834
    $ opatch prereq CheckConflictAgainstOHWithDetail -ph ./    # ./ = 40090834
    $ opatch apply
    $ opatch lspatches | grep 40090834
    
    # ---- WebLogic overlays ----
    $ cd $FMW_HOME/utils/bsu
    $ ./bsu.sh -install -patchlist=KP5S -prod_dir=$FMW_HOME/wlserver_10.3
    $ ./bsu.sh -install -patchlist=4HID -prod_dir=$FMW_HOME/wlserver_10.3
    $ ./bsu.sh -view -status=applied -prod_dir=$FMW_HOME/wlserver_10.3 | egrep 'PG6B|KP5S|4HID'

    Points from this part of the cycle: 39966770 is applied with napply -oh to each home, and ORACLE_HOME must not point at oracle_common while you apply it to the Web Tier. 32287205 must be in the Web Tier before 34067016, and OPatch removed the older 31304503 itself when it applied 32287205. In Oracle Common I applied 39959053 before 40090834. Answer the Oracle Configuration Manager prompt as your own policy requires; I chose to remain uninformed. Run opatch lspatches in each home afterwards, and follow the README of each patch for its own prerequisites.

    A note on checker timing: if you run the MT ETCC against the run edition before cutover, it reads the old file system and lists the new FMW patches as missing. That is expected. Run it against the patch edition before cutover, and against the run edition after.

    Step 5: Finalize and cutover

    Caution: downtime. Cutover is the outage window. Get approval from the application owner first, make sure nothing is still running from adop, opatch or bsu, and source the run edition before you start.

    $ ps -ef | egrep 'adop|opatch|bsu|adpatch' | grep -v grep     # nothing running
    $ . <EBS_BASE>/EBSapps.env run
    $ time adop phase=finalize
    $ adop -status
    $ time adop phase=cutover mtrestart=no
    $ adop -status

    After cutover the run file system switches to fs2.

    Step 6: Database tier, OPatch and datapatch

    Caution: downtime and home selection. The database, its listener and anything else using this ORACLE_HOME must be down before opatch apply. Confirm OPatch is 12.2.0.1.52 or later (the minimum in both READMEs), run the conflict check first, and apply each component of the combo patch from its own README. Datapatch only patches PDBs that are open, so check show pdbs first.

    $ $ORACLE_HOME/OPatch/opatch version
    $ cd 39915792
    $ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
    $ $ORACLE_HOME/OPatch/opatch apply
    $ cd ../39803650
    $ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
    $ $ORACLE_HOME/OPatch/opatch apply
    $ $ORACLE_HOME/OPatch/opatch lsinventory | egrep '39915792|39803650'

    OPatch finished with “Patch 39915792 successfully applied” and reported the earlier RU 39472050 as a subset patch that became inactive. During the apply it also printed two messages that I could not explain from the documentation I had: “prior crypto-provider patch state exists; refusing to overwrite it” and “Post-patch processing completed; new library payloads were preferred over MES backups”. The apply, datapatch and checkers were all clean afterwards, so I recorded the messages and did not treat them as a failure. If they matter to you, an SR is the way to get them explained.

    Start the database, confirm the PDB is READ WRITE and not restricted, start the listener, then run datapatch:

    SQL> startup
    SQL> show pdbs
    $ cd $ORACLE_HOME/OPatch
    $ ./datapatch -verbose

    Datapatch rolled back the old OJVM patch 39222882, applied RU 39915792 and OJVM 39803650, and reported SUCCESS with no errors in CDB$ROOT, PDB$SEED and the PDB. Then recompile and verify:

    SQL> @?/rdbms/admin/utlrp.sql
    SQL> col patch_id for 99999999999
    SQL> col action for a10
    SQL> col status for a12
    SQL> col action_time for a30
    SQL> select patch_id, rpad(action,10) action, rpad(status,12) status, to_char(action_time,'DD-MON-YYYY HH24:MI:SS') action_time
         from dba_registry_sqlpatch order by action_time;
    SQL> col comp_id for a12
    SQL> col comp_name for a44
    SQL> col version for a17
    SQL> select comp_id, comp_name, version, status from dba_registry;

    All 15 registry components showed VALID (RAC is shown as OPTION OFF on a single instance, which is normal). After utlrp, the invalid count in the PDB went from 135 objects to a short list of custom APPS objects plus one SYS.AD_ZD_SYS package body. I treated those as follow-up items, not as patch failures. I did not compare them against a pre-patch baseline object by object, so check your own baseline.

    Step 7: AutoConfig on both tiers

    Caution: back up the context files and network admin directories on both tiers first. On the database node, set ORACLE_PDB_SID and source the correct environment file before running AutoConfig, and have the right APPS password ready. A wrong password stops the run with ORA-01017.

    $ . <EBS_BASE>/EBSapps.env run
    $ perl $AD_TOP/bin/admkappsutil.pl                 # creates appsutil.zip
    
    # DB node
    $ cd $ORACLE_HOME
    $ mv appsutil.zip appsutil.zip_<date>; cp -rp appsutil appsutil_<date>
    $ unzip -o appsutil.zip
    $ export ORACLE_PDB_SID=<PDB_NAME>
    $ sh $ORACLE_HOME/appsutil/scripts/<CONTEXT_NAME>/adautocfg.sh
    
    # Application node
    $ sh $INST_TOP/admin/scripts/adautocfg.sh
    $ ./adstrtal.sh apps/<password>

    My first database-tier AutoConfig run failed with ORA-01017 because I typed the wrong APPS password. The rerun succeeded. On the application tier, grepping adconfig.log for “error|fail|exception” returned only the JDBC URL line and the “Change reason” text that AutoConfig prints next to updated JVM arguments. Afterwards, compare tnsnames.ora and listener.ora with the copies you took before.

    Step 8: Validation

    CheckResult
    ETCC, database tierNo missing patches reported
    ETCC, application tier (run edition)Only 29949547 listed, which applies to 23ai connectivity only
    ECPUCNo rows returned, which means the checker reported no missing EBS CPU patches; EBS CPU level 2026.10
    EJCPUC, application tierNot clean: all four JDK 7 homes are at 1.7.0_513, and the checker requires 1.7.0_521. The update is still pending.
    EJCPUC, database tierPending at the time of writing; the database JDK patch 39902051 has not been applied either

    Step 9: fs_clone after the cycle

    Caution: fs_clone runs for a long time, so use screen. Start it from the run edition after the cycle has been verified.

    $ screen -S fsclone
    $ time adop phase=fs_clone

    This was the second fs_clone of the cycle; the first ran before prepare (Step 3). It completed in 57 minutes and adop -status showed it COMPLETED, so the patch file system was back in sync with the run file system for the next cycle. If fs_clone fails on nzosSetCredential error 43084, see KB269661 for the credential workaround before retrying.

    Fallback planning

    I did not roll anything back, so this is the plan I had, not something I executed. For the database software, the READMEs of 39915792 and 39803650 give the supported rollback for each component and the datapatch step that follows. For the application and FMW homes, the tarballs from Step 1 were the fallback for the software only. None of these tarballs is a database recovery backup: they do not cover the data files, and with the database in NOARCHIVELOG mode there was no other recovery path in this cycle (see Step 1). Check the READMEs before relying on any generic rollback command.

    Open items after this cycle

    • Database JDK patch 39902051 in a short downtime, then refresh the appsutil JRE copy and rerun AutoConfig.
    • Application-tier JDK 7 update to 1.7.0_521 following KA1058, which needs a new adop cycle.
    • Custom invalid objects and SYS.AD_ZD_SYS for follow-up with the owner or Oracle Support.
    • Renew the wallet certificate before it expires.

    Lessons learned

    • Use nohup or screen for every long job. I lost time to a tar that was not protected.
    • Check which edition a checker is reading before you trust its output.
    • Get approval from the application owner before stopping or killing anything that is still running.
    • Keep each checker log as evidence: the ETCC logs, the ECPUC listing and the adop session logs.
    • Do not call a cycle clean until every checker has been read. Here the Java checker still flags the JDK 7 update on the application tier.
    • ما شاء الله, the RU, OJVM, FMW and EBS patches all went in without a rollback, and the database-tier and EBS CPU checkers came back with nothing missing. The application-tier JDK 7 update (1.7.0_521) and the database JDK patch 39902051 are still open.

    My Oracle Support references

    DocumentUsed for
    KA923The October 2026 CPU note: patch list and prerequisites
    KA988ETCC special instructions and footnotes, the note the app-tier ETCC output points to
    KA1058Java (JDK) update for EBS, including the scenario for an existing JDK 7 install (still open, see above)
    KB269661fs_clone failure with nzosSetCredential error 43084

    Check each note for its latest revision before you rely on it, because Oracle updates them between cycles.

    Disclaimer: this post describes one test environment. Hostnames, paths and organisation details have been removed. Test every step in a non-production system and follow the current Oracle documentation before applying anything to production.

  • AHF 26.9 Upgrade on RAC: Fixing a Remote Node SSH Failure

    Alhamdulillah. I recently upgraded Oracle AHF from 26.5.1.0.0 to 26.9.0.0.0 on a two-node RAC. Node 1 upgraded cleanly. Node 2 failed because the installer couldn’t authenticate over SSH as root. Here’s what happened and how I finished the job with a local upgrade.

    Hostnames and client-specific details are omitted.

    Environment

    • Platform: Linux x86-64
    • Setup: two-node Oracle RAC
    • Initial AHF version: 26.5.1.0.0
    • Target AHF version: 26.9.0.0.0
    • AHF home: /opt/oracle.ahf
    • AHF data directory: <oracle_base>/oracle.ahf/data

    The paths in the examples below are placeholders. Replace them with your actual installer and staging directories. Run the signature check and ahf_setup from the extracted installer directory, and run each command with the privileges the target paths require.

    The Problem

    I launched the cluster-wide installer from Node 1:

    cd /path/to/ahf_installer
    ./ahf_setup

    Node 1 upgraded fine. When it moved on to Node 2, the installer kept asking for the root password, then failed:

    [ERROR] : [node2] Failed to Upgrade AHF. Exit Status : 255

    The summary showed Node 1 on 26.9.0.0.0 and Node 2 still on 26.5.1.0.0. The installer still printed a general success message at the end, even though the cluster was only half upgraded.

    Lesson: read the per-node summary. Don’t trust the final success line.

    The Fix: Local Upgrade on Node 2

    Step 1: Copy and verify the package

    I copied the installer ZIP from Node 1 to Node 2 using an approved transfer method, then checked its integrity:

    unzip -t AHF-LINUX_v26.9.0.zip
    sha256sum AHF-LINUX_v26.9.0.zip

    The SHA-256 matched the checksum from the source node.

    Step 2: Extract and verify the signature

    mkdir -p /path/to/ahf_stage/26.9.0
    
    unzip -o AHF-LINUX_v26.9.0.zip \
      -d /path/to/ahf_stage/26.9.0
    
    cd /path/to/ahf_stage/26.9.0
    
    openssl dgst -sha256 \
      -verify ./oracle-tfa.pub \
      -signature ./ahf_setup.dat \
      ./ahf_setup

    Expected output:

    Verified OK

    Step 3: Run the local upgrade

    Oracle’s upgrade guide says to run ahf_setup as root. My account had authorized sudo privileges, so I ran the installer locally with sudo:

    sudo ./ahf_setup -local

    The installer detected the existing AHF installation and prompted for confirmation. The local upgrade completed successfully. Its final summary reported both Node 2 and Node 1 at AHF version 26.9.0.0.0 with status UPGRADED. I then verified the version and TFA status from both nodes.

    Step 4: Verify on both nodes

    sudo /opt/oracle.ahf/bin/tfactl version
    sudo /opt/oracle.ahf/bin/tfactl status

    Results on both nodes:

    • AHF version: 26.9.0.0.0
    • Matching build ID: 260900020260911121902
    • TFA status: RUNNING
    • Inventory status: COMPLETE
    • No version mismatch between nodes

    Observed Failure

    The installer couldn’t authenticate as root over SSH to the remote node. Oracle documents secure daemon socket communication for upgrading an existing AHF cluster; in this case, the installer nevertheless prompted for root SSH authentication.

    My logs show the immediate failure: the root SSH authentication attempt failed. They don’t show why the installer took that path or why the authentication failed, and I didn’t dig into it further.

    Best Practices

    • Confirm the target version and compatibility before you start.
    • Verify the installer checksum and signature before running it.
    • Run the installer as root, or with sudo if your account is authorized.
    • Confirm the required privileges and cluster communication prerequisites before upgrading. If unexpected SSH authentication prompts occur, investigate the issue rather than changing SSH settings without approval.
    • If remote authentication fails, use the documented local-upgrade procedure. Don’t make unapproved SSH or security changes.
    • Check the per-node summary and TFA status on every node.
    • Keep the installer logs and record the final version and build ID for change management.

    Conclusion

    ما شاء الله, both RAC nodes are now on AHF 26.9.0.0.0. The takeaway: a success message from the installer doesn’t guarantee every node was upgraded. Check each node’s status and confirm TFA is running before you close the change.

    Always follow the Oracle documentation and your organization’s change-management process for production work.

    References

  • Oracle EBS Workflow Mailer After an SMTP Migration: Why Mail Still Used the Old Relay

    Hostnames, IP addresses, usernames, email addresses, and notification IDs in this post are masked with # characters.

    Alhamdulillah, this investigation started with a simple question: after changing the SMTP server in Oracle E-Business Suite, why was mail still going through the old relay?

    It turned up three separate findings. The EBS Workflow Mailer configuration pointed to the new SMTP server. OS-level Sendmail still used the old relay. Some failed Workflow notifications were associated with a disabled recipient preference, and the reason for that preference is not yet established.

    This post documents the checks, the configuration change, and the evidence collected during validation. It is an interim investigation: the checks still open are listed in section 9.

    Environment

    • Oracle E-Business Suite R12.2
    • Oracle Database 11.2.0.4
    • Linux 7 application tier
    • Sendmail 8.14.7
    • systemd service management

    1. The initial problem

    The Workflow Mailer’s outbound SMTP server had been changed to the new server (####################). Network connectivity to the new server was successful, but the logs showed messages being relayed through the old relay (####################) before the Sendmail configuration change.

    At the same time, two notifications for one user showed MAIL_STATUS = FAILED.

    The first step was to verify the EBS configuration, then trace the actual mail path through the application and operating-system logs.

    2. Finding 1: EBS configuration and OS-level Sendmail did not match

    Verify the Workflow Mailer configuration

    SET LINESIZE 200
    COL parameter_name FORMAT A20
    COL parameter_value FORMAT A30
    COL last_update_date FORMAT A22
    SELECT RPAD(p.parameter_name,20) parameter_name,
    RPAD(NVL(v.parameter_value,'-'),30) parameter_value,
    TO_CHAR(v.last_update_date,'DD-MON-YY HH24:MI:SS')
    last_update_date
    FROM fnd_svc_comp_param_vals v,
    fnd_svc_comp_params_b p,
    fnd_svc_components c
    WHERE v.component_id = c.component_id
    AND v.parameter_id = p.parameter_id
    AND c.component_name = 'Workflow Notification Mailer'
    AND p.parameter_name = 'OUTBOUND_SERVER';

    OUTBOUND_SERVER showed the new SMTP server. The Sendmail log showed a different route:

    sendmail[####]: ##############:
    from=<wfmailer@#######################>,
    msgid=<########.####.#############.JavaMail.wfmailer@#######################>,
    proto=ESMTP, daemon=MTA,
    relay=####################### [###.###.###.###]
    sendmail[####]: ##############:
    to=<##################>, mailer=relay,
    relay=#################### [###.###.###.###],
    dsn=2.0.0, stat=Sent

    The logs confirmed that messages submitted to local Sendmail were forwarded through the old smart host. The sender and the JavaMail.wfmailer message ID point to messages generated by the Workflow Mailer. Oracle’s Workflow documentation describes the Mailer sending notification messages by SMTP to the SMTP server configured for it (see Outbound Notification Mailer Processing, from an older Workflow release), and notes that a UNIX host running Sendmail can serve as that SMTP server (see the Administrator’s Guide). The Mailer’s previous OUTBOUND_SERVER value was not captured, so the logs do not show why it handed these messages to local Sendmail. Further tracing was needed to establish the route used by the affected Workflow notifications.

    Check the Workflow Mailer process start time

    SET LINESIZE 200
    COL queue_name FORMAT A20
    COL status FORMAT A10
    COL os_pid FORMAT A10
    COL started FORMAT A22
    SELECT RPAD(q.concurrent_queue_name,20) queue_name,
    RPAD(NVL(p.process_status_code,'-'),10) status,
    RPAD(NVL(TO_CHAR(p.os_process_id),'-'),10) os_pid,
    TO_CHAR(p.process_start_date,'DD-MON-YY HH24:MI:SS')
    started
    FROM fnd_concurrent_processes p,
    fnd_concurrent_queues q
    WHERE p.concurrent_queue_id = q.concurrent_queue_id
    AND p.queue_application_id = q.application_id
    AND q.concurrent_queue_name = 'WFMLRSVC'
    AND p.process_status_code = 'A';

    The process had started 11 days before the parameter change. An OS-level check with ps -o pid,lstart,cmd -p <os_pid> showed the same start date.

    That raised the possibility that the Workflow Mailer had not been restarted after the change. The previous parameter value was not captured, though, so the start time alone could not show which SMTP server the running process had been using.

    Lesson: After changing Workflow Mailer parameters, check the active service process and follow the real message route in the logs. The database parameter alone doesn’t prove which server handled a message.

    Query note: last_update_date on the fnd_svc_components row is not the time a parameter changed. Use last_update_date on fnd_svc_comp_param_vals, as in the query above.

    3. Finding 2: Some failed notifications were associated with a disabled recipient preference

    Two notifications remained OPEN with MAIL_STATUS = FAILED. The recipient’s notification preference was DISABLED.

    SET LINESIZE 220
    COL recipient_role FORMAT A20
    COL mail_status FORMAT A12
    COL status FORMAT A10
    COL message_name FORMAT A30
    COL email_address FORMAT A30
    COL notif_pref FORMAT A12
    SELECT n.notification_id,
    RPAD(n.recipient_role,20) recipient_role,
    RPAD(NVL(n.mail_status,'-'),12) mail_status,
    RPAD(n.status,10) status,
    RPAD(NVL(n.message_name,'-'),30) message_name,
    RPAD(NVL(r.email_address,'-'),30) email_address,
    RPAD(NVL(r.notification_preference,'-'),12) notif_pref
    FROM wf_notifications n,
    wf_roles r
    WHERE n.notification_id IN (#######,#######)
    AND r.name = n.recipient_role;

    Example output:

    NOTIFICATION_ID RECIPIENT_ROLE MAIL_STATUS STATUS MESSAGE_NAME EMAIL_ADDRESS NOTIF_PREF
    --------------- --------------- ------------ ------- ----------------------- -------------------- ----------
    ####### ###### FAILED OPEN PO_PO_HAS_BEEN_APPROVE ################## DISABLED
    ####### ###### FAILED OPEN PO_REQ_APPROVED ################## DISABLED

    The preference was also found in WF_LOCAL_ROLES and traced to the Workflow MAILTYPE preference in FND_USER_PREFERENCES. Both notifications remained in the user’s Worklist.

    A DISABLED preference does not by itself explain a FAILED status. Oracle documents that when every address for a recipient is invalid and delivery fails, the Mailer sets the notification’s mail status to FAILED, sets the recipient’s preference to DISABLED, and notifies SYSADMIN (see the Oracle EBS technology blog). So DISABLED can be the result of an earlier delivery failure, not only a choice the user made.

    I did not check when or why this preference was set, or whether the failures began before it was set. I also have not yet confirmed whether these two messages ever reached Sendmail. Both checks are listed in section 9.

    4. Finding 3: Historical failures need to be separated from the migration issue

    Before attributing every failure to the migration, I collected a baseline of notification statuses.

    SET LINESIZE 200
    COL mail_status FORMAT A12
    COL cnt FORMAT 99999999
    SELECT RPAD(NVL(mail_status,'-'),12) mail_status,
    COUNT(*) cnt
    FROM wf_notifications
    WHERE mail_status IN ('MAIL','FAILED','ERROR')
    GROUP BY mail_status;
    Mail statusCountObservation
    MAIL0No records in this status
    FAILED156115 associated with disabled preferences, 39 with missing recipient roles, 2 canceled
    ERROR2,4252,255 created on one day for a single administrator role; the rest were older

    The dates showed that these records were not all from the migration period. The counts show association, not cause: a disabled preference can be a cause or a consequence of a failure. Historical records, missing roles, disabled preferences and SMTP delivery issues need separate investigation.

    5. Changing the Sendmail smart host

    The change was limited to the Sendmail configuration. These commands illustrate the procedure used here. Run them only after confirming the approved SMTP target, any maintenance requirements and the rollback plan.

    Pre-change checks

    date
    systemctl status sendmail --no-pager
    mailq
    grep -ni "SMART_HOST" /etc/mail/sendmail.mc
    grep -ni "^DS" /etc/mail/sendmail.cf
    nc -vz -w 5 #################### 25

    Back up the configuration

    cp -p /etc/mail/sendmail.mc \
    /etc/mail/sendmail.mc.bak_$(date +%Y%m%d_%H%M%S)
    cp -p /etc/mail/sendmail.cf \
    /etc/mail/sendmail.cf.bak_$(date +%Y%m%d_%H%M%S)

    Update the smart host

    Edit /etc/mail/sendmail.mc and change only the active SMART_HOST definition:

    define(`SMART_HOST', `####################')dnl

    Regenerate the configuration and verify:

    cd /etc/mail
    make
    grep -ni "^DS" /etc/mail/sendmail.cf

    Expected output:

    101:DS####################

    Restart Sendmail:

    systemctl restart sendmail
    systemctl status sendmail --no-pager

    The service returned to active (running) and was accepting connections.

    The change did not touch /etc/hosts, /etc/mail/access or /etc/hosts.allow. Those files serve other purposes and shouldn’t be edited just to change the smart host, unless a separate requirement justifies it.

    Rollback: restore sendmail.mc from its backup, run make, confirm the DS line, and restart Sendmail.

    6. Verify delivery through the new SMTP server

    A controlled test mail was sent from the application server to an approved test mailbox.

    echo "Test email from application server after SMTP migration" \
    | mail -s "SMTP Migration Test" ####################

    The relevant log entries:

    STARTTLS=client, relay=####################.,
    verify=FAIL, cipher=ECDHE-RSA-AES256-GCM-SHA384
    to=<####################>, mailer=relay,
    relay=####################. [###.###.###.###],
    dsn=2.0.0, stat=Sent

    ما شاء الله, the test message went through the new relay on the first attempt.

    What does stat=Sent mean? The next SMTP server accepted the message for delivery. It does not confirm arrival in the recipient’s inbox. Check the mailbox, and use the SMTP server’s message trace if delivery fails later.

    What does verify=FAIL mean? Sendmail did not verify the server certificate under its current settings, even though the SMTP transaction succeeded. Successful delivery is not proof that certificate validation is healthy, so review it separately with the mail or security team.

    7. What the investigation proved

    Confirmed by configuration and logs:

    • The EBS Workflow Mailer was configured with the new SMTP server.
    • OS-level Sendmail still had the old smart host before the change, and messages submitted to it were forwarded through that host.
    • The Sendmail configuration was updated, regenerated, and restarted successfully.
    • A controlled test message was relayed through the new SMTP server and accepted for delivery.
    • The two example notifications had MAIL_STATUS = FAILED, remained OPEN, and had a recipient preference of DISABLED.

    Not established by these checks:

    • Which SMTP server the running Workflow Mailer process was using internally before it was restarted, and why it handed messages to local Sendmail.
    • Whether the two failed notifications ever reached Sendmail.
    • When and why the recipient’s preference became DISABLED, and whether the failures began before it.
    • The cause of every historical FAILED or ERROR notification.
    • Whether the original affected notifications were delivered after the Sendmail change.
    • Whether the recipient received the test email.
    • The cause of the STARTTLS certificate-verification warning.

    A successful test email validates one segment of the mail path. The original Workflow notification still needs its own test.

    8. Practical lessons

    1. Check both EBS and OS-level SMTP settings. The Workflow Mailer parameter and the Sendmail smart host can differ.
    2. Compare the parameter change time with the process start time. Restart the Workflow Mailer component when the change procedure requires it, and confirm the new start time.
    3. Trace a real message end to end. Use the notification record, the Mailer logs, the Sendmail logs and recipient confirmation.
    4. Don’t assume a failed notification is either an SMTP problem or a preference problem. A disabled preference can be a cause or a consequence of a delivery failure, so check when it was set, along with the recipient role, email address and notification status.
    5. Capture a baseline before changing anything. Old FAILED and ERROR records can have unrelated causes.
    6. Verify the handoff and the final delivery separately. stat=Sent is evidence of SMTP acceptance, not of inbox delivery.
    7. Review certificate verification on its own. Successful delivery doesn’t remove the need to investigate TLS warnings.

    9. Status and remaining checks

    The Sendmail change is complete and the test message was accepted by the new relay. These checks are still open:

    1. Failed notifications: search the Sendmail log for the affected recipient to establish whether the two failed messages ever reached Sendmail.
    2. Preference history: establish when and why the recipient’s MAILTYPE preference became DISABLED (who last updated it, and whether the first FAILED notification came before or after), and whether SYSADMIN received an invalid-address notice.
    3. Workflow Mailer process: verify the active WFMLRSVC process against the parameter change time, and restart the component under the approved change procedure if needed.
    4. End-to-end Workflow test: submit a test notification, then check the Mailer log and the Sendmail log to confirm it was relayed through the new server.
    5. Certificate verification: investigate verify=FAIL separately with the mail or security team.

    Until those checks are done, this post is an interim investigation. It does not claim that the original Workflow notifications have been fixed.

    Conclusion

    Changing the SMTP server in Oracle EBS may not be the whole job. OS-level Sendmail has its own smart-host setting, and it needs checking when the mail logs show messages leaving through an unexpected relay.

    The Sendmail test confirmed that the new relay accepts mail from the application server. The checks in section 9 will show whether the Workflow Mailer path itself works end to end, and why the affected notifications failed.

    Disclaimer: This article is based on a troubleshooting scenario. All hostnames, IP addresses, usernames, email addresses and notification IDs are masked. Validate all commands and configuration changes against your own environment and change-management procedures before using them in production.

  • Oracle EBS R12.2 DualFS RapidClone: FMW Prerequisite Failures, RPMDB Corruption and Stale Inventory

    Alhamdulillah, this post documents the issues hit during an EBS R12.2 QA application-tier refresh and how each was isolated. Server names, paths and identifiers are generic examples.

    Environment (generic)

    ComponentExample
    App serverqa-app-server01
    DB serverqa-db-server01
    EBS environmentQA_EBS
    Application base/u01/apps
    Pairs file/u01/cloning/pairs/qa_apps_pairs.txt
    Central inventory/opt/oraInventory

    Background

    A DualFS clone recreates both fs1 and fs2. Per the cloning procedure used here, the old fs2, inst and FMW_Home were moved aside and removed first:

    cd /u01/apps/
    mv fs2 fs2_old
    rm -rf fs2_old &
    
    cd fs1
    mv inst inst_old
    mv FMW_Home FMW_Home_old
    rm -rf inst_old FMW_Home_old &

    Cleanup steps should follow your own environment’s cloning document.

    Symptom

    adcfgclone.pl failed at the FMW prerequisite stage:

    ERROR: Failed to execute FMW pre-requisite check

    Re-running would not have helped. The prerequisite check reads OS state, so that is where the investigation started.

    cat /etc/os-release
    rpm --verifydb
    rpm -qa | grep -E 'compat-libcap1|compat-libstdc'

    Issue 1: RPM database corruption

    On one app server, rpm --verifydb returned Berkeley DB errors:

    BDB0682 Page ... bad prev_pgno
    BDB0683 Page ... overflow item incomplete
    Packages: BDB0090 DB_VERIFY_BAD

    Package queries also showed rpmdbNextIterator: skipping h# ... and region trailer: BAD.

    RPMDB corruption was identified and the package state was subsequently validated. If the RPM database is unhealthy, package-based prerequisite results can be incomplete or misleading. Running rpm --verifydb early is a useful way to identify this condition before spending time troubleshooting the Oracle prerequisite scripts.

    Issue 2: Missing compatibility packages

    Two packages were missing: compat-libcap1 and compat-libstdc++-33. After confirming repository availability, both were installed with dnf install, then the RPM database was verified again.

    A similar QA server passed the check without this problem, so package state can differ between servers that look identical.

    Issue 3: refhost.xml OL7 block on an OL8 target

    The target was Oracle Linux 8, but the first OS block in refhost.xml was defined for Oracle Linux 7:

    /u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/prereq/linux64/refhost.xml
    <VERSION VALUE="7"/>

    Only that block was changed to VALUE="8". A global sed replacement is risky because the file contains multiple OS definitions. Back up the file, identify the applicable block, change only that, and validate the XML.

    Issue 4: Stale Oracle Central Inventory

    Removing FMW_Home from disk does not remove it from the central inventory. Entries such as these were still registered after the directories were gone:

    /u01/apps/fs1/FMW_Home/oracle_common
    /u01/apps/fs1/FMW_Home/webtier
    /u01/apps/fs1/FMW_Home/Oracle_EBS-app1

    Documented cloning step. The cloning document’s inventory cleanup applies to the target database server (check /etc/oraInst.loc, remove the DB home entry from ContentsXML/inventory.xml). It does not cover resetting the application-server inventory, so the app-server reset described here is not part of the standard cloning steps.

    Before any inventory change: confirm the active inventory via /etc/oraInst.loc, preserve a copy, then apply the approved procedure. The existing inventory was kept as a backup. Note that the first mv below is conditional: run it only if /opt/oraInventory_old already exists.

    # Only if /opt/oraInventory_old already exists:
    mv /opt/oraInventory_old /opt/oraInventory_old_backup
    
    mv /opt/oraInventory /opt/oraInventory_old
    mkdir /opt/oraInventory
    chown oracle:oinstall /opt/oraInventory

    Issue 5: EXECUTE_FMW_SYS_PREREQS

    The cloning procedure sets this variable before the DualFS run:

    export EXECUTE_FMW_SYS_PREREQS=false
    echo $EXECUTE_FMW_SYS_PREREQS

    This skips the FMW OS prerequisite execution. It was set here only after the failures above had been investigated, and only because the procedure specifies it. It is not a general substitute for fixing prerequisite failures.

    Issue 6: SSH disconnect during a multi-hour clone

    RapidClone can run for hours, and the procedure calls for a screen session (or VDI). During this exercise the SSH session dropped mid-run.

    screen -S rapidclone
    cd /u01/apps/fs1/EBSapps/comn/clone/bin
    export EXECUTE_FMW_SYS_PREREQS=false
    perl adcfgclone.pl component=appsTier \
    pairsfile=/u01/cloning/pairs/qa_apps_pairs.txt \
    dualfs=yes

    After the disconnect, check before restarting anything:

    screen -ls
    screen -r <session>

    If the original process is still running, a second adcfgclone.pl would only add complications.

    Result

    After the identified OS, package, prerequisite and inventory issues were addressed, the DualFS clone completed and created both fs1 and fs2.

    ما شاء الله

    The same approach worked on the second QA environment. This establishes that the DualFS RapidClone completed, not that the entire QA refresh is finished: post-clone configuration is separate, and the procedure says not to start services at the end of the clone until the required post-clone steps are completed.

    Summary

    FindingLayerAction
    FMW prerequisite failureOS / packagesInvestigated underlying checks
    RPMDB corruptionOSIdentified the corruption and validated the package state after remediation
    Missing compat RPMsOSInstalled required packages
    OL7 block on OL8 targetPrerequisite configCorrected the applicable block only
    Stale FMW homes in inventoryOracle InventoryBacked up the existing inventory, then applied the approved remediation
    Long-running cloneSessionRan inside screen

    Suggested pre-clone checklist

    cat /etc/os-release
    rpm --verifydb
    rpm -qa | grep -E 'compat-libcap1|compat-libstdc'
    cat /etc/oraInst.loc
    ls -ld /u01/apps/fs1 /u01/apps/fs2
    ls -l /u01/apps/fs1/EBSapps/comn/clone/bin/adcfgclone.pl

    Post-clone

    RapidClone success is not the end of the refresh. The cloning procedure continues with custom environment configuration, AutoConfig, WebLogic configuration, Concurrent Manager/MWA node configuration, shared filesystem setup and further AutoConfig runs, followed by application validation.

    Takeaway

    RapidClone is often where infrastructure problems become visible, not where they start. When it fails, check the layers underneath before rerunning:

    OS → RPM database → packages → prerequisite config → Oracle Inventory → filesystem → RapidClone → post-clone configuration

    Examples use generic names. No real server names, IP addresses, domains, company names or screenshots are included.