Alhamdulillah, sharing another real troubleshooting session — this one from an EBS 12.2 database tier clone on Oracle Linux 8.10, where adcfgclone.pl dbTechStack failed and the on-screen error pointed in completely the wrong direction.
Environment
Oracle EBS 12.2, Oracle Database 19c (19.21) multitenant (CDB/PDB), Oracle Linux 8.10, target server testserver01.
The Symptom
perl adcfgclone.pl dbTechStack /u01/EBSDB/19.0.0/appsutil/EBSDB_testserver01.xml
RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack
ERROR while running Apply...
ERROR: Failed to execute /u01/EBSDB/19.0.0/appsutil/clone/bin/adclone.pl
The first instinct with RC-00110 is to suspect a relink problem — missing OS packages, a corrupt backup, bad extraction. We verified all of that and ruled it out. The real lesson of this post: the RC error on screen is generic. Follow the log chain.
The Log Chain
Step 1 — The ApplyDBTechStack log showed the relink script actually passed:
adlnkoh.sh completed sucessfully
but home registration failed:
Finished OUI CLI cloning for s_db_oh with return code: 1
ouicli.pl INSTE8_APPLY 1
RC-50013: Fatal: Instantiate driver did not complete successfully.
Step 2 — ohclone.log pointed one level deeper:
OUI runinstaller log file - /u01/EBSDB/oraInventory/logs/InstallActions<timestamp>/installActions<timestamp>.log
Found the INFO: Exit Status is -1 in runInstaller log.
OUI CLI cloning returned non-zero.
Note the timing: runInstaller started and exited within the same second. An installer that dies instantly is not failing a task — it is failing a pre-check.
Step 3 — The installActions log had the true error:
[WARNING] [INS-08101] Unexpected error while executing the action at state: 'supportedOSCheck'
SUMMARY: - java.lang.NullPointerException
Root Cause
The 19c ORACLE_HOME delivered inside the EBS Rapid Clone stage carries the 19.3 base installer (year 2019). Its OS certification table ends at Oracle Linux 7. On OL8/RHEL8, the lookup for the distribution ID returns null and the installer crashes with a NullPointerException before doing any work — surfacing back up the chain as RC-50013 and RC-00110.
The Fix
Set CV_ASSUME_DISTID in the same shell session before rerunning the clone:
export CV_ASSUME_DISTID=OEL7.8
echo $CV_ASSUME_DISTID
cd /u01/EBSDB/19.0.0/appsutil/clone/bin
perl adcfgclone.pl dbTechStack /u01/EBSDB/19.0.0/appsutil/EBSDB_testserver01.xml
Result — the rerun completed cleanly, confirmed by these lines in the new ApplyDBTechStack log:
Finished OUI CLI cloning for s_db_oh with return code: 0
Completed home registration for s_db_oh
Completed Apply...
ApplyDBTechStack Completed Successfully.
Important: this variable does NOT change your OS or the installed software. It only tells the old installer which certification profile to use for its checks. The value must be one the 19.3-base installer recognizes — OEL7.8 is the value documented in Oracle’s Linux 8 release notes. Setting it to your actual OS version (8.10) defeats the purpose.
Permanent Fix
The workaround can also live inside the ORACLE_HOME, in $ORACLE_HOME/cv/admin/cvu_config:
# Fallback to this distribution id
CV_ASSUME_DISTID=OEL7.8 <-- uncomment and set
This also explains a common confusion: “my previous clone worked without this!” If the earlier backup was taken from a home where cvu_config already had this set, the fix travelled inside the backup. A backup from an untouched home reintroduces the failure. Check with:
After the fix, you will still see FATAL errors like “DB Connection failed” and “Invalid APPS database user credentials” from the AutoConfig phase, plus DB-ETCC connectivity warnings — these are expected at this stage because the database is not restored and opened yet. They resolve once you restore the database and rerun AutoConfig and ETCC.
Also refresh ETCC from patch 17537119 — the bundled bugfix XML goes stale after 30 days, and older versions do not recognize newer Release Updates such as 19.21.
Key Takeaways
RC-00110/RC-50013 are wrappers, not root causes — always walk ApplyDBTechStack log → ohclone.log → installActions log. A runInstaller that exits in under a second failed a pre-check, not the work itself. And on OL8/RHEL8 with any 19.3-base home, CV_ASSUME_DISTID=OEL7.8 belongs in your clone runbook.
Disclaimer: The views expressed on this blog are my own and do not reflect the views of my employer or any client. All environment names, hostnames, and identifiers used in this post are anonymized. Always test in a non-production environment before applying any change to production.
Alhamdulillah, another interesting production incident to share. This one is a classic example of how a small code change — a single commented-out COMMIT — can stay silent for weeks until a new concurrent workload exposes it as an Oracle deadlock in production. If you are searching for Oracle deadlock troubleshooting or ORA-00060 trace file analysis in an Oracle EBS environment, this walkthrough covers the full investigation from symptom to fix.
Quick Summary
Issue: ORA-00060 deadlocks after deployment of a new APEX DBMS_SCHEDULER job.
Impact: Oracle Workflow Background Process intermittently failed, delaying order processing.
Root Cause: A previously removed COMMIT caused row locks to be held far longer than intended, allowing concurrent sessions to deadlock.
Resolution: Restored the correct transaction boundary, adjusted scheduler timing, and verified with Oracle Support that no product-side issue was involved.
Result: No recurrence after deployment.
The Symptom
On a production EBS environment (EBS 12.1, Database 12.1.0.2), we started receiving alerts for ORA-00060 in the database alert log:
ORA-00060: Deadlock detected. More info in file
/u01/app/oracle/diag/rdbms/prod/PROD/trace/PROD_ora_12345.trc
At the same time, the business reported sales order lines not progressing. The Oracle Workflow Background Process for the OM Order Line workflow (ONT) was erroring intermittently — a visible impact on order processing and a classic Oracle EBS performance troubleshooting scenario.
A quick note on deadlock behavior: Oracle detects deadlocks automatically and resolves them by rolling back one of the participating statements — the victim — allowing the remaining transaction to continue. Unlike simple blocking, only the offending statement is rolled back, not the victim’s entire transaction. The victim’s session receives ORA-00060 and a trace file is written to disk. That is why the application does not hang forever; instead, you see intermittent errors and trace files accumulating.
Step 1 – Read the Deadlock Trace
The trace file is always the starting point of ORA-00060 trace file analysis. The deadlock graph showed two sessions blocking each other on TX enqueues in row-exclusive mode:
Deadlock graph:
---------Blocker(s)-------- ---------Waiter(s)---------
Resource Name process session holds waits process session holds waits
TX-000a0015-0003c2d1 45 312 X 38 127 X
TX-0008001f-0004a1b2 38 127 X 45 312 X
Both sessions were waiting on enq: TX - row lock contention, each holding a row the other wanted — textbook Oracle row lock contention forming a deadlock cycle. The trace file also identifies which session was chosen as the victim and the exact SQL statement that was rolled back, which makes it the definitive evidence for the investigation.
Conceptually, the cycle looked like this:
Workflow Background Process
│
│ Locks Row A
▼
Reservation Row A
│
│ Waiting for Row B
▼
Reservation Row B
▲
│ Locked by
│
APEX Scheduler Job
Workflow waits for APEX.
APEX waits for Workflow.
→ Oracle detects a deadlock (ORA-00060)
Step 2 – Identify the Two Sessions
SET LINES 200 PAGES 100
COL SID FORMAT 99999
COL SERIAL# FORMAT 999999
COL USERNAME FORMAT A12
COL PROGRAM FORMAT A28
COL MODULE FORMAT A28
COL ACTION FORMAT A20
COL SQL_ID FORMAT A14
SELECT s.sid, s.serial#, s.username,
NVL(s.program,'N/A') program,
NVL(s.module,'N/A') module,
NVL(s.action,'N/A') action,
NVL(s.sql_id,'N/A') sql_id
FROM v$session s
WHERE s.sid IN (312, 127);
Session 1 was the Workflow Background Process (FNDWFBG, ONT item type) — making this an Oracle Workflow deadlock scenario. Session 2 was more interesting — a DBMS_SCHEDULER job session:
COL JOB_NAME FORMAT A25
COL OWNER FORMAT A12
COL STATE FORMAT A12
COL REPEAT_INTERVAL FORMAT A40
SELECT owner, job_name, state, repeat_interval
FROM dba_scheduler_jobs
WHERE job_name = 'APEX_ORDER_RESERVE';
A newly deployed APEX-driven scheduler job, running every few minutes, calling a custom reservation package — the second half of an Oracle DBMS_SCHEDULER deadlock pattern.
Step 3 – Which Rows Were They Fighting Over?
From the trace file, the “Rows waited on” section gives the object number:
COL OWNER FORMAT A10
COL OBJECT_NAME FORMAT A30
COL OBJECT_TYPE FORMAT A12
SELECT owner, object_name, object_type
FROM dba_objects
WHERE object_id = &object_id_from_trace;
Both sessions were colliding on reservation rows — the Workflow process updating them as part of order line progression, and the APEX job updating the same rows through the custom package.
Step 4 – The Root Cause
Reviewing the custom reservation package source, we found this:
UPDATE xx_order_reservations
SET status = 'RESERVED'
WHERE header_id = p_header_id;
-- COMMIT; <== commented out during a previous change
The investigation identified that the custom package was holding row locks far longer than intended, because a COMMIT had been removed in an earlier code change. Instead of releasing locks per iteration, the scheduler job session held all of its row locks across the entire loop over order headers. It is worth being precise here: a missing COMMIT by itself does not cause a deadlock — a deadlock requires two sessions acquiring locks on overlapping rows in conflicting order. What the missing COMMIT did was dramatically widen the lock-holding window, so when the new APEX scheduler job started running concurrently with the Workflow Background Process against the same reservation rows, the probability of the two sessions interleaving into a deadlock cycle went from negligible to near-certain.
This also explains why the package ran in production for weeks without issue — until the APEX job was deployed, nothing else contended for those rows at that frequency. It also explains why testing never caught it: lower environments rarely generate the same level of concurrent activity as production, making lock-contention issues extremely difficult to reproduce before go-live. The extended lock duration was always present; the new concurrent workload exposed it.
The Fix
Restored the COMMIT at the correct transactional boundary in the custom package (per-iteration, after each header’s reservation update), shrinking the lock-holding window.
Redeployed the package during an approved change window.
Rescheduled the APEX job to avoid peak Workflow Background Process cycles as an additional safety margin.
Raised an SR with Oracle Support to confirm no product-side involvement — confirmed clean; purely custom code.
No ORA-00060 recurrence since the fix, ما شاء الله.
Lessons Learned
An Oracle deadlock almost always has two contributors: the locking pattern AND the concurrency pattern. Fixing either breaks the cycle, but fix the code defect, not just the schedule.
Commented-out COMMITs are silent time bombs. Code review for custom PL/SQL touching EBS transactional tables must treat transaction boundaries as seriously as the DML itself.
New scheduler jobs (APEX, DBMS_SCHEDULER, concurrent programs) should be assessed for row-level contention with existing Oracle Workflow and concurrent processing before go-live.
The deadlock trace file gives you everything: the sessions, the victim, the SQL, the rows. Start there, not with guesswork.
Conclusion
Production incidents often reveal issues that remain hidden during testing, because realistic concurrency is difficult to reproduce in lower environments. This incident reinforced a simple discipline: whenever a new workload is introduced — an APEX scheduler job, a concurrent program, or an integration — review the transaction boundaries of every custom PL/SQL object it touches, and ask what else updates those same rows.
In Oracle, deadlocks are rarely caused by a single statement — they are caused by the interaction of multiple sessions under concurrency. Understanding transaction boundaries is often the key to solving them.
Disclaimer: All environment names, hostnames, and identifiers in this post are anonymized. The views expressed are my own.
Alhamdulillah, this post brings together one of the more involved upgrade journeys I have worked through recently — taking an Oracle E-Business Suite 12.2 database stack from 12.1.0.2 all the way to 19c, on a single standalone host running Oracle Restart.
What made this engagement worth writing up is that it was not a clean, textbook upgrade. The Grid Infrastructure layer presented several unexpected challenges — a chain of CLSRSC failures that had to be cleared before it would move, and once Grid was finally on 19c, the database upgrade and the non-CDB to PDB conversion had their own set of gotchas around ASM registration, password files, and UTL_FILE_DIR.
I have combined both phases — the Grid Infrastructure upgrade and the database upgrade plus multitenant conversion — into one walkthrough, because in the real world they are not separate stories. The GI upgrade forms the foundation for every subsequent phase. If you only read GI upgrade blogs in isolation, you miss how the pieces connect.
All hostnames, database names, ASM diskgroup names, and paths below are genericized. The technical substance is exactly as it played out.
Published: June 2026
Environment: Oracle EBS 12.2.4 | AD/TXK Delta 13 | Oracle Database 19c (19.30) (Versions shown are from the environment used in this engagement, not a minimum certified baseline — always confirm your own certified levels.)
Executive Summary
This upgrade involved moving an Oracle E-Business Suite 12.2 database environment from Oracle Database 12.1.0.2 to 19c on a standalone Oracle Restart host. The journey consisted of four major phases:
Oracle Restart (Grid Infrastructure) upgrade from 12.1.0.2 to 19c
Database upgrade from 12.1.0.2 to 19c using DBUA
Non-CDB to PDB conversion using Oracle EBS TXK utilities
EBS application-tier reconfiguration and validation
The most time-consuming portions were not the upgrades themselves, but resolving legacy Oracle Restart configuration issues, rebuilding HAS components, handling ASM registration after the GI upgrade, addressing password-file requirements during the PDB conversion, and resolving UTL_FILE_DIR migration challenges.
This guide covers an end-to-end Oracle EBS 12.2.4 upgrade to Oracle Database 19c, including Oracle Restart upgrade, DBUA upgrade, non-CDB to PDB conversion, AutoConfig remediation, and post-upgrade validation.
Environment overview
Component
Detail
Platform
Single standalone Linux host (dbhost) running Oracle Restart / standalone HAS — not full RAC Clusterware
Apps tier
Separate node (appshost) under the applmgr-style owner
EBS release
12.2.4
AD level
AD.C.Delta.13
TXK level
TXK.C.Delta.13
Source GI
12.1.0.2
Target GI
19c (19.30)
Source DB
Non-CDB EBS database, SID ebsdb, on 12.1.0.2
Target DB
19c (19.30), ebsdb plugged in as a lowercase PDB inside CDB EBSCDB
The apps tier and ASM storage stay in place; everything between them moves up to 19c, and the standalone non-CDB becomes a pluggable database inside a container.
A note on certification before you begin
Do not assume any upgrade path is valid. Before starting, confirm that your EBS code level, AD/TXK delta level, database RU, and interoperability patches are certified per the Oracle EBS 12.2 and Oracle Database 19c certification and interoperability documentation. Skipping this check is the most common reason an upgrade that “worked in the lab” falls apart in the field. Database RU levels and EBS interoperability certifications change frequently, so always verify the latest certification matrix in My Oracle Support before implementation — and treat the 19.30 RU referenced here as the level used in this engagement, not the only supported target.
Rough timeline (for maintenance-window planning)
Phase
Typical duration
GI (Oracle Restart) upgrade
30–60 min
DBUA database upgrade
2–4 hrs
Non-CDB → PDB conversion
~15 min
AutoConfig & validation
30–60 min
These are working estimates from this engagement, not guarantees — database size, invalid-object count, and hardware all move the numbers. Treat the GI and DBUA phases as the long poles when you size the window.
Phase 1 — Grid Infrastructure 12.1.0.2 → 19c
The 19c Grid software was already laid down (gold image extracted into the new home), and the OUI installer had paused — as it always does — waiting for rootupgrade.sh to be run as root. That is where everything went sideways.
The first wall: CLSRSC-324 — Could not open old init.cssd
Running the upgrade script:
/u01/app/19.0.0/grid/rootupgrade.sh
failed almost immediately:
CLSRSC-324: Could not open old init.cssd
Died at /u01/app/19.0.0/grid/crs/install/s_crsutils.pm line 1569
The 19c rootupgrade.sh reads the old configuration from init.cssd to learn where the previous CRS home lived. On this host, /etc/init.d/init.cssd was simply missing — it had been stripped out during earlier deconfig attempts before I picked the task up.
First I confirmed what the upgrade actually expected as the old home:
The third major blocker: CLSRSC-348 / CLSRSC-318 — old HAS stack will not stop or start
With the bootstrap files back, rootupgrade.sh progressed to step 2 (GetOldConfig) and then stopped again:
CLSRSC-192: Unable to stop Oracle Restart
CLSRSC-348: The Oracle Restart stack failed to stop
The upgrade was trying to cleanly stop the old 12.1 HAS stack — but the old stack was not even contactable:
/u01/app/12.1.0.2/grid/bin/crsctl check has
CRS-4639: Could not contact Oracle High Availability Services
So I tried to start it, and hit the classic library-mismatch error:
/u01/app/12.1.0.2/grid/bin/crsctl start has
CRS-4652: Failure 3 in clsvswversion for the local node
Root Cause
The original 12.1 Oracle Restart stack was not in a healthy state. Previous deconfiguration attempts had removed critical bootstrap files and left HAS only partially configured.
Because Oracle only upgrades an existing, functioning stack, rootupgrade.sh could not proceed until the old stack was cleanly rebuilt and verified. The fix is to deconfigure it fully, rebuild it on 12.1, confirm it is online — and only then let the 19c upgrade take over.
Rebuild the old 12.1 HAS stack using the 12.1 perl binary (do not use the system perl — use the one shipped with the old Grid home):
/u01/app/12.1.0.2/grid/perl/bin/perl \
-I/u01/app/12.1.0.2/grid/perl/lib \
-I/u01/app/12.1.0.2/grid/crs/install \
/u01/app/12.1.0.2/grid/crs/install/roothas.pl
This reconfigured Oracle Restart successfully on 12.1 — note this is the script rebuilding the old stack, confirmed by:
CRS-4123: Oracle High Availability Services has been started.
CLSRSC-327: Successfully configured Oracle Restart for a standalone server
Verify HAS is genuinely online before going further:
/u01/app/12.1.0.2/grid/bin/crsctl check has
CRS-4638: Oracle High Availability Services is online
Clearing stale checkpoints and finally running the upgrade
The earlier failed rootupgrade.sh runs leave behind checkpoint files that block any retry — the script thinks it has already partly completed and refuses to start fresh. Clear them:
This time it walked cleanly through all 12 steps (10–20 minutes), pinned the node, backed up the OLR at both the 12.1 and 19c homes, and finished with:
CRS-4123: Oracle High Availability Services has been started.
CLSRSC-327: Successfully configured Oracle Restart for a standalone server
Back in the OUI GUI, clicking OK finalized the installer. ما شاء الله — Grid was now on 19c.
One of the most common post-GI issues: ASM was never registered
This one is worth its own warning, because it does not surface during the GI upgrade — it surfaces later, when you go to create the CDB and DBCA fails with something like DBT-06604: insufficient free space. The real reason is that ASM was not registered with Oracle Restart, so the tools silently fell back to filesystem storage, which did not have the room.
A point worth being precise about: depending on the configuration, ASM may already exist and simply not be running — in which case srvctl start asm (or mounting the diskgroups) is all that is needed. Check before you add — running srvctl add asm when ASM is already configured will error, so confirm the current state with srvctl status asm / srvctl config asm first. In this environment ASM was not registered correctly, so it had to be added back:
# verify first — does Oracle Restart already know about ASM?
srvctl status asm
srvctl config asm
# in this environment it was not registered, so:
srvctl add asm
srvctl start asm
And if the diskgroups are not mounted, mount them explicitly from the ASM instance:
ALTER DISKGROUP DATA MOUNT;
ALTER DISKGROUP RECO MOUNT;
Lesson: after any Oracle Restart GI upgrade, always confirm srvctl status asm before you trust any DBCA/DBUA storage decision.
Lessons Learned
Verify Oracle Restart is healthy before attempting an upgrade.
Confirm init.cssd and olr.loc exist and point to valid locations.
Clear stale checkpoint files before retrying rootupgrade.sh.
Validate ASM registration immediately after the upgrade.
Phase 2 — Database 12.1.0.2 → 19c via DBUA
With 19c Grid and ASM healthy, and the 19c CDB (EBSCDB) already created and patched (datapatch + catmgd.sql for the MGDSYS schema), the next phase was upgrading the non-CDB ebsdb in place from 12.1.0.2 to 19c. It stays a non-CDB for now — the PDB conversion is a deliberately separate Phase 3.
For EBS environments, launch DBUA using the -keepEvents option so that the EBS-required events and hidden (underscore) parameters are preserved during the upgrade. Dropping those silently breaks the apps tier later.
X11 forwarding across a user switch
A very common, very annoying blocker: you SSH in as one OS user, then sudo to oracle, and X11 forwarding breaks because DISPLAY and the Xauthority cookie do not carry across the user switch. DBUA is a GUI tool, so this stops you cold.
The fix is to capture the cookie as your login user and add it under oracle:
# as the login user
xauth list # note the cookie line for your display, e.g. dbhost/unix:11 MIT-MAGIC-COOKIE-1 <cookie>
xdpyinfo | head # must return display info, not "unable to open display"
Tip: do not reuse the runbook author’s DISPLAY value (their own workstation name). It will never work for you — set your own.
DBUA wizard choices that matter for EBS
Screen
Choice
CDB / PDB conversion
Leave unchecked — conversion is a separate later phase
Recovery option
“I have my own backup/restore strategy” (RMAN backup already taken) — never leave this blank
Recompile invalid objects
Enabled (parallel)
Upgrade timezone data
Enabled
compatible
Leave at 12.1.0.2 during the upgrade — preserves rollback. Raise it later, deliberately.
Listener migration
Keep the CDB listener migration checked
A couple of things that look like errors but are not:
The DBUA summary may show db_unique_name where you expect db_name. If your unique name differs from the SID, this is just DBUA displaying the unique name — verify against the live DB and move on.
The CDB listener (here on port 1523) must be up before DBUA can pass the network screen. If it is down, start it from the 19c home first: lsnrctl start <listener_name>.
Wrap the whole thing in screen (or tmux) so an SSH drop does not kill the upgrade mid-flight. If screen is not installed, at minimum use nohup-style protection — a dropped DBUA mid-upgrade is a bad day.
DBUA for an EBS 12.1.0.2 → 19c database typically runs 2–4 hours, plus 30–60 minutes of recompile/datapatch. Expect some ORA- noise in the logs (recompile warnings); watch for new error patterns, not the routine ones.
Post-DBUA housekeeping
Once the upgrade completes and all post-upgrade validation is complete (still as a non-CDB), raise COMPATIBLE to 19.0.0. Note that after COMPATIBLE is increased, rollback to the previous release is no longer possible — so this is a deliberate post-validation step, not an automatic next one:
-- raise compatibility — this is the point of no return, do it deliberately
ALTER SYSTEM SET compatible='19.0.0' SCOPE=SPFILE;
-- compatible only takes effect after a restart
SHUTDOWN IMMEDIATE;
STARTUP;
The exact value depends on your site standards and Oracle’s recommendation for the release — some shops set 19.0.0, others use the fully-qualified 19.0.0.0.0. Both forms are accepted; confirm which one your organization standardizes on before setting it.
Then:
Snapshot a pfile from the spfile.
Relocate the spfile into the 19c home’s dbs/.
Remove obsolete parameters that 19c rejects — notably sec_case_sensitive_logon and utl_file_dir.
Run the XDB migration scripts: dbmsxdbschmig.sql then prvtxdbschmig.plb.
Run utlrp.sql (twice) to recompile. In this environment the invalid count dropped from over 12,000 to under 30 across the two passes — normal for an EBS database.
At this point ebsdb is a healthy 19c non-CDB, ready to be plugged in.
Lessons Learned
Always launch DBUA with -keepEvents for EBS — it preserves the required underscore parameters and event settings.
Fix X11 forwarding across the user switch before launching; never reuse the runbook author’s DISPLAY value.
Leave compatible at 12.1.0.2 during the upgrade and raise it deliberately afterward to preserve rollback.
Treat the db_unique_name-vs-db_name display in the summary as cosmetic, and start the CDB listener before the network screen.
Wrap the run in screen/tmux so an SSH drop cannot kill the upgrade mid-flight.
Phase 3 — Non-CDB to PDB conversion
This is where ebsdb becomes a lowercase PDB inside EBSCDB. EBS ships a set of txk driver scripts for exactly this path; the lowercase, case-sensitive PDB name is a detail that bites you in every subsequent command (ALTER SESSION SET CONTAINER="ebsdb" — with the quotes).
This generates the PDB descriptor XML (ebsdb_PDBDesc.xml, the output of DBMS_PDB.DESCRIBE, carrying the <ncdb2pdb>1</ncdb2pdb> flag) and shuts the non-CDB ebsdb down permanently — once you are on this path, there is no casual restart of the old non-CDB.
This reported 8 violations — and per the runbook rules, all were ignorable: standard SQL-patch warnings and the usual benign messages, no character-set mismatch (a character-set violation is the one you must not ignore). Always read each violation; do not blanket-ignore.
Step 3 — Create the PDB (plug in)
perl $AD_TOP/patch/115/bin/txkCreatePDB.pl
This performs a NOCOPY plug-in, allowing the existing ASM datafiles to remain in place while the database is converted into a PDB (the exact ASM file layout varies by environment and Oracle version), and runs noncdb_to_pdb.sql to finish the conversion. It completed in roughly 14 minutes, the PDB state was saved, and ebsdb showed up as CON_ID 3, READ WRITE. ما شاء الله.
This is where the real fights happened. Three blockers, all around password files:
a) ASM password file pre-staging. The script needs the CDB password file in ASM. Pre-stage it with orapwd from the DB home (not the Grid home) into the ASM path for the CDB, then register it:
b) ORA-65066 on the SYSTEM password. Setting the SYSTEM password inside the new PDB threw ORA-65066 until it was applied across all containers:
ALTER USER SYSTEM IDENTIFIED BY "<StrongPwd#1>" CONTAINER=ALL;
c) OPW-00029 complexity failure.orapwd rejected the chosen SYSTEM password with OPW-00029 until it satisfied 19c’s special-character complexity rules. Use a value that genuinely meets the 19c verifier (uppercase + lowercase + digit + special character), e.g. <StrongPwd#1>.
Step 5 — Post-PDB AutoConfig and the UTL_FILE_DIR trap
Running AutoConfig on the DB tier after the conversion initially failed with a UTL_FILE_DIR error. The trace pointed at /usr/tmp being a symlink rather than a real directory, which the new UTL_FILE_DIR-replacement mechanism in 19c does not tolerate.
The fix is to drive the directory configuration explicitly with txkCfgUtlfileDir.pl. First, manually create the directory-list file with real (non-symlink) paths:
# e.g. /u01/app/oracle/product/19.0.0/dbhome_1/dbs/ebsdb_utlfiledir.txt
After that, AutoConfig on the DB tier completed cleanly.
Worth flagging for the longer term: UTL_FILE_DIR is deprecated, and Oracle’s recommended direction is to use database directory objects (CREATE DIRECTORY) for PL/SQL file I/O wherever your EBS code level supports it. The txkCfgUtlfileDir.pl mechanism above is the EBS-supported bridge for this release; treat directory objects as the strategic target.
Lessons Learned
The lowercase, case-sensitive PDB name ("ebsdb" with quotes) propagates into every subsequent ALTER SESSION SET CONTAINER — get it right once and stay consistent.
Read every compatibility violation; ignore only the benign ones, and never ignore a character-set mismatch.
Budget real time for password files: pre-stage the ASM password file from the DB home, expect ORA-65066 (apply CONTAINER=ALL) and OPW-00029 (19c complexity rules).
A symlinked /usr/tmp breaks post-PDB AutoConfig — drive UTL_FILE_DIR explicitly via txkCfgUtlfileDir.pl with real paths.
Phase 4 — Application-tier cutover (overview)
With the database tier healthy at 19c as a PDB, the apps-tier work on appshost is the final phase:
Run AutoConfig on both filesystems (fs1 and fs2) to point the apps tier at the new 19c PDB connection details.
Clean up any stale adop sessions before starting fresh — an abandoned session from days earlier will block a new cycle. Run adop cleanup (cleanup_mode=full) and then a fresh adop phase=prepare.
Validate HugePages, the env files, and Configuration Manager.
I will cover the full apps-tier cutover in detail in a follow-up post, since it deserves its own walkthrough.
Final Validation Checklist
After the upgrade and conversion were complete, the following validations were performed:
✓ Oracle Restart resources online and managed by srvctl ✓ ASM instance and diskgroups mounted ✓ CDB and PDB open in READ WRITE mode ✓ Database listener services registered correctly ✓ AutoConfig completed successfully on database and application tiers ✓ Concurrent Managers started successfully ✓ FNDSM service validated ✓ Internal Monitor running normally ✓ Forms and WebLogic services accessible ✓ adop phase=prepare completed without errors ✓ Invalid objects reviewed and reduced to an acceptable count ✓ Application smoke testing completed ✓ All EBS services registered in the listener ✓ Concurrent Manager processing validated ✓ Test concurrent request submitted and completed ✓ Forms login verified ✓ Workflow Mailer status verified ✓ OACORE, FORMS, and OAFM managed servers healthy ✓ No critical errors in AutoConfig logs ✓ adopscanlog reviewed with no blocking errors ✓ Database and ASM resources managed successfully through srvctl
Quick post-upgrade SQL validation
A handful of SQL checks confirm the database came back healthy — the component registry, the container/PDB state, and the invalid-object count. Set column formatting first so the output stays readable:
1. Component registry — every component should report VALID (or UPGRADED) at 19.0.0:
SET LINESIZE 200 PAGESIZE 100
COL comp_name FORMAT A45
COL version FORMAT A18
COL status FORMAT A12
SELECT comp_name, version, status
FROM dba_registry
ORDER BY comp_name;
2. Container and PDB state — for a 19c multitenant environment, V$PDBS is the most useful check because it shows OPEN_MODE directly (the EBS PDB should be READ WRITE):
COL name FORMAT A20
SELECT con_id, name, open_mode
FROM v$pdbs
ORDER BY con_id;
DBA_PDBS complements it by showing the persisted state — NORMAL for a healthy plugged-in PDB:
COL pdb_name FORMAT A20
COL status FORMAT A12
SELECT pdb_name, status
FROM dba_pdbs
ORDER BY pdb_name;
3. Invalid objects — review the breakdown by owner, then the overall total (an EBS database normally settles to a small count after two utlrp.sql passes):
COL owner FORMAT A22
COL object_type FORMAT A22
SELECT NVL(owner,'(none)') AS owner,
object_type,
COUNT(*) AS invalid_count
FROM dba_objects
WHERE status = 'INVALID'
GROUP BY owner, object_type
ORDER BY invalid_count DESC;
-- overall total
SELECT COUNT(*) AS total_invalid
FROM dba_objects
WHERE status = 'INVALID';
Although every environment is different, the upgrade itself proved relatively straightforward once the underlying Oracle Restart configuration issues were corrected. The majority of effort was spent validating and repairing legacy infrastructure assumptions rather than executing the upgrade utilities themselves.
Key takeaways
A GI upgrade is only as clean as the old stack underneath it. Most CLSRSC-318 / CLSRSC-324 / CLSRSC-348 failures trace back to an old HAS stack that was never properly configured or was half-deconfigured. Rebuild it cleanly on the old version first, then upgrade.
Verify the bootstrap files yourself. Do not assume the OLR is <hostname>.olr — check cdata/localhost/ and verify with ocrcheck -local.
Stale checkpoints block retries silently. Clear ROOTHAS_STACK / ROOTCRS_STACK before re-running rootupgrade.sh.
After an Oracle Restart GI upgrade, register ASM (srvctl add asm / srvctl start asm) before you trust any storage-related tool.
Use dbua -keepEvents for EBS, and fix X11 forwarding across the user switch before you launch.
The PDB conversion’s hardest part is password files — ORA-65066, OPW-00029, and ASM password-file placement. Budget time for it.
Post-PDB AutoConfig + UTL_FILE_DIR: a symlinked /usr/tmp will fail it. Drive the directory list explicitly with txkCfgUtlfileDir.pl using real paths.
Looking back, the actual upgrade steps were straightforward. The real effort was understanding and repairing the assumptions the upgrade process makes about the existing environment. Missing bootstrap files, partially deconfigured Oracle Restart components, ASM registration gaps, password-file placement, and UTL_FILE_DIR migration issues consumed far more time than the upgrade binaries themselves. Those lessons are often absent from official documentation — which is exactly why I wanted to document the journey end to end.
References
Oracle E-Business Suite Release 12.2 — Interoperability Notes for Oracle Database 19c (My Oracle Support)
Oracle Database 19c Upgrade Guide
Using UTL_FILE_DIR or Database Directories for PL/SQL File I/O in Oracle E-Business Suite (My Oracle Support)
Oracle E-Business Suite Multitenant / Pluggable Database (PDB) conversion documentation
Oracle Grid Infrastructure Installation and Upgrade Guide (Oracle Restart)
(Look up the current My Oracle Support note IDs for your exact code and database levels — they are revised regularly.)
If this write-up helped you during your own Oracle E-Business Suite upgrade, you’re welcome to follow the blog for more real-world Oracle Database, EBS, ADOP, cloning, upgrade, and troubleshooting guides drawn from production experience.
Disclaimer: This post reflects my own hands-on experience and is shared for educational purposes only. All hostnames, database names, diskgroup names, and paths have been genericized. Always test thoroughly in a non-production environment and follow Oracle’s official documentation and your organization’s change-control process before applying any of these steps. The views expressed here are my own and do not represent those of any employer or client.
Disclaimer: This article is based on field experience and publicly shareable troubleshooting steps. Oracle MOS notes are referenced for further reading. Customers with active Oracle Support should review the referenced MOS documents for complete guidance.
Category: Oracle EBS R12.2 | Cloning | Troubleshooting Level: Intermediate to Advanced Reference: MOS Doc ID 454427.1
Introduction
Cloning an Oracle E-Business Suite R12.2 application tier is a common activity — whether for setting up a DEV, TEST, or UAT environment. While the process is well-documented, real-world scenarios often throw up issues that aren’t immediately obvious from the error messages alone.
In this post, I walk through two common issues encountered during an EBS R12.2 app tier clone using adcfgclone.pl:
RC-50221: Port Pool Not Free — CloneContext failing due to an already-occupied port pool
FRM-92101: Forms Session Failed During Startup — Forms not launching due to missing library dependencies or invalid symlinks
Both issues are real, well-known, and worth documenting together since they often appear in sequence during a clone.
Environment Details
Oracle EBS Version: R12.2.x
OS: Oracle Linux 7 (OL7) / RHEL 7
Clone type: Application Tier only (adcfgclone.pl appsTier)
When running adcfgclone.pl appsTier, the CloneContext step prompts for a Target System Port Pool and throws the following warning/error:
Checking the port pool 0
RC-50221: Warning: Port Pool 0 is not free.
Please check logfile $COMMON_TOP/clone/bin/CloneContext_<timestamp>.log for conflicts.
RC-00201: Error: Not a valid port pool number
ERROR: Context creation not completed successfully.
CloneContext Log Location
$COMMON_TOP/clone/bin/CloneContext_<timestamp>.log
# Or typically:
/u01/APPLTOP/EBSapps/comn/clone/bin/CloneContext_<timestamp>.log
Root Cause
Port pool 0 is already in use by another EBS instance running on the same server, causing CloneContext validation to fail. Port pool 0 generally corresponds to the initially configured EBS port set for that environment. Actual port assignments vary by release, topology, and previous configuration changes.
Review /tmp/portcheck.txt for any conflicts before selecting a port pool number.
Fix
Target System Port Pool [0-99] : 1
Checking the port pool 1
done: Port Pool 1 is free
Important Note: Using a different port pool causes Oracle EBS to calculate a different set of ports based on the predefined port pool mapping. The resulting ports are not always a simple increment of one and should be verified in the generated context file after CloneContext completes.
Always verify the actual assigned ports: grep -i "port" $CONTEXT_FILE | grep -v "#" cat $INST_TOP/admin/out/portpool.lst
If your firewall rules, load balancer, or application configuration depend on specific port numbers, plan accordingly or stop the existing instance first to free pool 0.
Patch File System Port Pool
For R12.2 dual file system architecture, the Patch file system must use a different port pool than the Run file system. AutoConfig and cloning utilities will calculate a separate set of ports accordingly.
Patch file system should have different port pool than Run file system.
Target System Port Pool [0-99] : 2
Issue 2: FRM-92101 — Forms Session Failed During Startup
Symptom
FRM-92101: There was a failure in the Forms Server during startup.
Please look into the web-server log file for details.
Java Exception:
oracle.forms.net.ConnectionException: Forms session <1> failed during startup:
no response from runtime process
What This Means
The WebLogic Forms server (forms_server1) is running, but the underlying Forms runtime process (frmweb) is failing to start. WebLogic receives no response from it, and the session times out. FRM-92101 can have more than one root cause — the key is to run frmweb directly to identify which one applies.
The output will indicate which root cause applies:
Undefined symbol errors (e.g. Symbol nnftboot was referenced...not found) → Root Cause 1: Invalid ldflags symlink
Missing shared library error (e.g. libXm.so.2: cannot open shared object file) → Root Cause 2: Missing OpenMotif symlink
Root Cause 1: Invalid ldflags Symlink
Symptom
Running frmweb directly produces undefined symbol errors:
rtld: 0712-001 Symbol nnftboot was referenced from module frmweb(), but a runtime definition of the symbol was not found.
rtld: 0712-001 Symbol ldap_search_s was referenced from module frmweb(), but a runtime definition of the symbol was not found.
Root Cause
Investigation revealed that the ldflags symbolic link under $ORACLE_HOME/lib32 was missing or pointing to an incorrect location, causing the Forms executable to fail during startup. This is a known issue after fresh installations or clones and is referenced in MOS Doc ID 454427.1.
Verify ldflags
ls -la $ORACLE_HOME/lib32/ldflags
If the symlink is missing or pointing to a non-existent path, it needs to be corrected to point to $ORACLE_HOME/lib/ldflags.
Fix
After correcting the ldflags symbolic link and relinking the Forms components, frmweb started successfully. The relinking is performed using the Forms makefile under the 10.1.2 Oracle Home. Refer to MOS Doc ID 454427.1 for the complete steps applicable to your environment.
Root Cause 2: Missing OpenMotif Library Symlink
Symptom
Running frmweb directly produces a missing shared library error:
error while loading shared libraries:
libXm.so.2: cannot open shared object file: No such file or directory
Root Cause
The Oracle Forms runtime binary frmweb is compiled against libXm.so.2 (OpenMotif 2.x). On newer Linux versions (OL7/OL8/RHEL7/RHEL8), the installed OpenMotif package provides libXm.so.4, but the compatibility symlink libXm.so.2 → libXm.so.4 is missing.
Verify with ldd
ldd $ORACLE_HOME/bin/frmweb | grep Xm
# Before fix:
libXm.so.2 => not found
# After fix:
libXm.so.2 => /usr/lib/libXm.so.4 (0x...)
Option A: Create the Missing Symlink (Quick Fix)
📌 Note on 32-bit vs 64-bit Libraries: On some Linux platforms the required library may reside under /usr/lib64 rather than /usr/lib. Always verify the actual location before creating symbolic links.
# Step 1: Find the actual location of libXm.so.4
ls -l /usr/lib/libXm.so*
ls -l /usr/lib64/libXm.so*
# Step 2: Create the symlink (run as root)
# If library is in /usr/lib:
ln -s /usr/lib/libXm.so.4 /usr/lib/libXm.so.2
# If library is in /usr/lib64:
ln -s /usr/lib64/libXm.so.4 /usr/lib64/libXm.so.2
# Step 3: Verify
ldd $ORACLE_HOME/bin/frmweb | grep Xm
# Expected: libXm.so.2 => /usr/lib/libXm.so.4 (or /usr/lib64/...)
cd $ADMIN_SCRIPTS_HOME
./adstpall.sh apps/<apps_password>
./adstrtal.sh apps/<apps_password>
# Or start Forms server specifically:
./admanagedsrvctl.sh start forms_server1
After starting the services, verify that frmweb runtime processes are spawning successfully:
ps -ef | grep frmweb
ps -ef | grep forms
Then launch a Forms-based responsibility or function to confirm successful startup.
Conclusion
Both RC-50221 and FRM-92101 are common issues that can delay Oracle EBS R12.2 cloning activities. While the error messages may initially appear unrelated, a structured troubleshooting approach focusing on log analysis, port validation, and runtime dependency checks can quickly identify the root cause and reduce downtime.
Summary
Issue
Root Cause
Fix
RC-50221: Port Pool Not Free
Another EBS instance occupying port pool 0
Use port pool 1 (or stop existing instance first)
FRM-92101: ldflags issue
ldflags symlink missing or pointing to wrong location
Fix ldflags symlink and relink Forms components (MOS Doc ID 454427.1)
FRM-92101: OpenMotif issue
libXm.so.2 symlink missing after clone
ln -s /usr/lib[64]/libXm.so.4 /usr/lib[64]/libXm.so.2 or install openmotif21
Key Diagnostic Commands Cheat Sheet
# Check which port pools are in use
grep -i "port_pool" $CONTEXT_FILE
cat $INST_TOP/admin/out/portpool.lst
# Validate port availability
perl $AD_TOP/bin/txkValidateRollupPorts.pl -contextfile=$CONTEXT_FILE -outfile=/tmp/portcheck.txt
# Check running WebLogic processes
ps -ef | grep weblogic | grep -v grep
# Run frmweb manually to see actual error
$ORACLE_HOME/bin/frmweb
# Check frmweb library dependencies
ldd $ORACLE_HOME/bin/frmweb | grep Xm
# Check ldflags symlink
ls -la $ORACLE_HOME/lib32/ldflags
# Check OpenMotif installation
rpm -qa | grep motif
# Check Forms runtime processes
ps -ef | grep frmweb
# Check Forms server log
tail -100 $EBS_DOMAIN_HOME/servers/forms_server1/logs/forms_server1.log
Lessons Learned
FRM-92101 is often a symptom, not the root cause. The WebLogic log may show the Java exception, but the actual failure is in the native frmweb binary. Always run frmweb directly to see the real error.
FRM-92101 has multiple root causes. Check the actual error output from frmweb to distinguish between an ldflags relinking issue and a missing OpenMotif library symlink.
Use ldd to diagnose missing shared library dependencies. It quickly identifies unresolved libraries without having to dig through multiple log files.
Verify port pool availability before starting a clone. Stop existing instances or choose a different pool to avoid RC-50221 errors.
Always validate the resulting ports in the generated context file after CloneContext completes. Port pool mapping is predefined and the assigned ports should be confirmed before proceeding.
Newer Linux builds may include libXm.so.4 but not the compatibility symlink required by Oracle Forms. OL7/OL8 installations do not always create libXm.so.2 automatically.
Document port assignments after every clone to avoid firewall and load balancer configuration issues down the line.
Keywords
Oracle EBS R12.2 Clone
Oracle EBS R12.2 Forms Error
RC-50221 Port Pool Not Free
RC-50221 CloneContext Failed
FRM-92101 Forms Session Failed During Startup
FRM-92101 No Response From Runtime Process
ldflags symlink Oracle Forms
libXm.so.2 not found
Oracle Forms Runtime Process
adcfgclone.pl appsTier
adcfgclone.pl appsTier Error
Oracle EBS Clone Troubleshooting
Oracle Linux 7 OpenMotif Issue
OpenMotif
frmweb
CloneContext
References
MOS Doc ID 454427.1 — FRM-92101: There was a failure in the Forms Server during startup