dbca copied the database files, reached 100 percent, and then threw the whole thing away. This was a two-node Oracle 19c RAC on OCI compute instances, Oracle Linux 8, Grid Infrastructure at the 19.32 release update, in a lab I built to test a patching workflow. The run started at 12:06:43 UTC and was rolled back by 12:07:37. This is the console output, complete:

Prepare for db operation
7% complete
Copying database files
27% complete
100% complete
[FATAL] PRCA-1084 : Failed to retrieve ASM Mode
PRKH-1059 : Failed to get ASM mode
PRKH-1056 : Unexpected CSS error(error code[0])
PRKH-1002 : Internal HASContext Error: JNI Native Call Failure
7% complete
0% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/<cdb>/<cdb>.log" for further details.

dbca exited with return code 255. Nothing was left behind: the cancel path logged PRCR-1001 : Resource ora.<cdb>.db does not exist, so the rollback left no database resource in the cluster.

The cluster itself was fine, as the next sections show. “Unexpected CSS error” on a cluster whose CSS is perfectly healthy is the kind of message that sends you looking in the wrong place, and I did, briefly.

The wrong turn

My first theory was built on one line in dbca’s trace file, which carried ORA-01092 a fraction of a second before the failure. ORA-01092 means an instance terminated, so the theory was that the instance had died at startup and the ASM mode error was a symptom. The full line was [StepErrorHandler.setFatalErrors:339] setting Fatal Error: ORA-01092, followed by the same “setting Fatal Error” line for ORA-01034, ORA-03114 and ORA-12560, and a “setting Ignorable Error” line for ORA-01109. That is dbca loading its list of errors it treats as fatal for the step. None of them had happened. I had read the error number and skipped the sentence it sat in. The rule I took from it is simple: read the whole sentence before you build on a line.

Isolating it by home

PRCA-1084 comes from the srvm layer, the same Java and native code srvctl uses, so I took dbca out of the picture and asked srvctl the same question. As oracle, from the Grid home:

DB=/u01/app/oracle/product/19.0.0/dbhome_1; GI=/u01/app/19.0.0/grid
echo "-- GI home srvctl config asm, as oracle:"; ORACLE_HOME=$GI $GI/bin/srvctl config asm 2>&1 | head -5; echo "rc=$?"
-- GI home srvctl config asm, as oracle:
ASM home: <CRS home>
Password file: +OCR/orapwASM
Backup of Password file: +OCR/orapwASM_backup
ASM listener: LISTENER
ASM instance count: 2
rc=0

That rc=0 is the exit status of head, not of srvctl, so I don’t count it as evidence. The output is the evidence: a complete ASM configuration. The same command, as the same OS user, from the database home returned rc 1 with exactly the four lines dbca had printed: PRCA-1084, PRKH-1059, PRKH-1056 and PRKH-1002. srvctl status asm from the database home failed the same way.

Running both from the same OS user is the point of the test. Same user, same groups, same host, same moment, same cluster. The only variable left is ORACLE_HOME, and with it the binaries and libraries srvctl runs from.

That changed the question. The cluster answered fine through one home’s tooling and not through the other’s, so the cluster was fine and one home was not. In the same session I ruled out the obvious neighbours. SELinux was enforcing with zero AVC denials on both nodes. The RAC option was linked into the database home (kcsm.o in libknlopt.a). libskgxn2.so had the same sha256 in both homes.

The trace

srvctl takes SRVM_TRACE=true and writes its Java trace to the terminal. I captured it to a file and pulled the interesting lines:

export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1; export PATH=$ORACLE_HOME/bin:$PATH
SRVM_TRACE=true srvctl config asm > /tmp/srvm-trace.$$ 2>&1; echo "rc=$?"; wc -l /tmp/srvm-trace.$$
rc=1
111 /tmp/srvm-trace.12837
8:[main] [ 2026-10-27 17:52:00.430 GMT ] [Library.load:291]  Loading  library /u01/app/oracle/product/19.0.0/dbhome_1/lib/libsrvmhas19.so
11:[main] [ 2026-10-27 17:52:00.463 GMT ] [OCR.loadLibrary:337]  
13:[main] [ 2026-10-27 17:52:00.463 GMT ] [OCR.loadLibrary:345]  Going to load the ocr library
17:[main] [ 2026-10-27 17:52:00.464 GMT ] [Library.load:291]  Loading  library /u01/app/oracle/product/19.0.0/dbhome_1/lib/libsrvmocr19.so
18:[main] [ 2026-10-27 17:52:00.469 GMT ] [OCR.loadLibrary:347]  loaded ocr libraries
34:[main] [ 2026-10-27 17:52:00.563 GMT ] [HASContext.<init>:128]  moduleInit = 19
36:[main] [ 2026-10-27 17:52:00.564 GMT ] [HASContext.<init>:139]  Initialised SRVMContext
39:[main] [ 2026-10-27 17:52:00.586 GMT ] [ClusterUtil.getASMMode:774]  Calling native code getASMMode
40:[main] [ 2026-10-27 17:52:00.841 GMT ] [ClusterUtil.getASMMode:778]  Returned from native code
41:[main] [ 2026-10-27 17:52:00.841 GMT ] [ClusterUtil.getASMMode:779]  mode string returned from native code is NONE
42:[main] [ 2026-10-27 17:52:00.858 GMT ] [CmdOptVals.isASMClientCluster:5205]  Failed to get ASM Mode. Got error: PRCA-1084 : Failed to retrieve ASM Mode
44:PRKH-1056 : Unexpected CSS error(error code[0])
45:PRKH-1002 : Internal HASContext Error: JNI Native Call Failure
85:[main] [ 2026-10-27 17:52:00.925 GMT ] [HASContext.getCRSHome:645]  /u01/app/19.0.0/grid
91:[main] [ 2026-10-27 17:52:00.926 GMT ] [ClusterUtil.getASMMode:774]  Calling native code getASMMode
92:[main] [ 2026-10-27 17:52:01.155 GMT ] [ClusterUtil.getASMMode:778]  Returned from native code
93:[main] [ 2026-10-27 17:52:01.155 GMT ] [ClusterUtil.getASMMode:779]  mode string returned from native code is NONE
97:[main] [ 2026-10-27 17:52:01.157 GMT ] [OPSCTLDriver.main:272]  exiting abnormally due to FrameworkException
100:PRKH-1056 : Unexpected CSS error(error code[0])
101:PRKH-1002 : Internal HASContext Error: JNI Native Call Failure
104:PRKH-1056 : Unexpected CSS error(error code[0])
105:PRKH-1002 : Internal HASContext Error: JNI Native Call Failure

Three things in there matter. The Java side loaded its native libraries from the database home’s lib directory (lines 8 and 17). It found the Grid home correctly (line 85). And the native call itself, getASMMode, returned without an exception and handed back the string NONE, twice. The JNI call did not crash. It ran and gave an answer that the Java layer could not use. The database home’s native client code was asking a 19.32 stack a question and getting back an answer it did not expect, which pointed straight at the libraries in that home.

One trap on the way. In the same command I ran ldd against the database home’s libsrvmhas19.so, and it printed not found for 14 libraries, among them libhasgen19.so, libocr19.so and libclntsh.so.19.1. That looks like a smoking gun and is not one. My shell had no LD_LIBRARY_PATH set, and the trace shows both native libraries loading from the database home without complaint. ldd from a bare shell tells you about your shell, not about srvctl.

Comparing the homes

opatch lspatches on node 1, both homes, before the fix:

-- DB home lspatches:
39222882;OJVM RELEASE UPDATE: 19.32.0.0.260721 (39222882)
39472050;Database Release Update : 19.32.0.0.260721 (39472050)
29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)

OPatch succeeded.
-- GI home lspatches:
39526364;OCW RELEASE UPDATE 19.32.0.0.0 (39526364)
39503034;ACFS RELEASE UPDATE 19.32.0.0.0 (39503034)
39472050;Database Release Update : 19.32.0.0.260721 (39472050)
39107855;TOMCAT RELEASE UPDATE 19.0.0.0.0 (39107855)
39107825;DBWLM RELEASE UPDATE 19.0.0.0.0 (39107825)

OPatch succeeded.

There it is. The database home was at the 19.32 database release update and the 19.32 OJVM, and still carried the OCW component from the 19.3 base release, 29585399. The Grid home carried the 19.32 OCW, 39526364. I had built the database home with runInstaller -applyRU using the database release update, and the home came out of that with the 19.3 OCW still in place. Node 2’s database home showed the same three lines.

The clusterware client libraries in a database home are what the OCW patch updates, and the after table below shows it. I took sha256 of the six I cared about, in both homes on node 1. These are the first 12 hex digits, as printed:

libhasgen19.so     DB 807f7a6c8dac  GI cc7d0825658e
libocr19.so        DB 3f53ff700004  GI 3692545b4e6d
libocrb19.so       DB e76170d51db2  GI eb7f77dd7443
libocrutl19.so     DB 018f4662e206  GI 97f138ac15be
libsrvmhas19.so    DB a774c27b1f3c  GI 96cf4b260309
libclsra19.so      DB 48366146b46f  GI 566e61c9879e

Six for six different. These are not stale copies of something unused. libsrvmhas19.so is the library the trace showed srvctl loading first, from this very directory.

I did not capture the before values on node 2. The fix went onto that node before I read its hashes, so there is no node 2 before table and I am not going to invent one. After the fix, the first 16 hex digits on node 1:

libhasgen19.so   DB cc7d0825658e5b17 GI cc7d0825658e5b17
libocr19.so      DB 3692545b4e6dc042 GI 3692545b4e6dc042
libocrb19.so     DB eb7f77dd744324c9 GI eb7f77dd744324c9
libocrutl19.so   DB 97f138ac15bed296 GI 97f138ac15bed296
libsrvmhas19.so  DB 96cf4b2603095d0f GI 96cf4b2603095d0f
libclsra19.so    DB 566e61c9879e0e5b GI 566e61c9879e0e5b

And on node 2:

libhasgen19.so   DB cc7d0825658e5b17 GI cc7d0825658e5b17
libocr19.so      DB 3692545b4e6dc042 GI 3692545b4e6dc042
libocrb19.so     DB eb7f77dd744324c9 GI eb7f77dd744324c9
libocrutl19.so   DB 97f138ac15bed296 GI 97f138ac15bed296
libsrvmhas19.so  DB 96cf4b2603095d0f GI 96cf4b2603095d0f
libclsra19.so    DB 566e61c9879e0e5b GI 566e61c9879e0e5b

The GI column in both is the Grid home on that node, so this is the Grid home’s value as well. Every database home copy matches the Grid home copy on both nodes.

The Oracle Restart host that will run the standby had the same gap: its database home showed the same three lspatches lines and the same six mismatched hashes. There, srvctl config asm from the database home already worked before the fix and printed a normal configuration. The failure showed on the RAC nodes only. I applied the same fix to the standby’s database home anyway, so that every database home in the configuration matches its Grid home.

Why the sub-patch belongs in the database home

Oracle’s master note for database and Grid release updates, MOS 555.1, says this in its first point: any database home that uses Grid Infrastructure components must also have the matching OCW release update applied, and it names RAC, Oracle Restart, and single-instance databases on ASM as cases that count. In other words, a database home is not “patched to 19.32” because it carries the 19.32 database release update. If it talks to Grid, it needs the OCW piece too.

The release update says the same thing in its own metadata. The Grid release update’s bundle.xml lists, for every sub-patch, the target types it applies to:

grep -nE 'subpatch|target_type|location' /u01/stage/ru-grid/39467003/bundle.xml | head -30
7:    <subpatches>
8:        <subpatch unique_patch_id="28903425" patch_id="39526364" platform="226" location="39526364" patching_tool="OPATCH" patch_type="SINGLETON">
9:            <target_types>
10:                <target_type type="cluster" version="19.0.0.0.0">
13:                </target_type>
14:                <target_type type="rac_database" version="19.0.0.0.0">
17:                </target_type>
18:                <target_type type="oracle_database" version="19.0.0.0.0">
21:                </target_type>
22:                <target_type type="has" version="19.0.0.0.0">
25:                </target_type>
26:            </target_types>
27:        </subpatch>

39526364 is listed for cluster, rac_database, oracle_database and has. The ACFS and DBWLM sub-patches that follow it are listed for cluster and has only. That is the release update telling you which homes each sub-patch is for, and the OCW sub-patch is for database homes as well as Grid homes. Building the database home with runInstaller -applyRU and the database release update did not apply it.

This is easy to miss because nothing in the database home looks wrong. The release update and OJVM are both at 19.32, and opatch lspatches lists the old OCW at the bottom where the eye stops reading. All three database homes I built that way in the lab came out with 29585399 still in them. A home can be correctly patched for everything the database release update covers and still be a release behind in the part that talks to Grid.

The fix and the verification

On node 1, with nothing running from the database home, I ran the conflict check against the sub-patch directory inside the unzipped Grid release update:

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph /u01/stage/ru-grid/39467003/39526364 2>&1 | tail -12
Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.

Then the apply, as oracle, run from inside /u01/stage/ru-grid/39467003/39526364, with a check from the database home straight after:

export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1; export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
ps -eo args | grep -E "^ora_pmon|$ORACLE_HOME/bin" | grep -v grep || echo "no process runs from the DB home"
cd /u01/stage/ru-grid/39467003/39526364 && opatch apply -silent -local -oh $ORACLE_HOME 2>&1 | tail -15
echo "-- after:"; opatch lspatches 2>&1 | head -5
echo "-- srvctl config asm from the DB home:"; srvctl config asm 2>&1 | head -6; echo "srvctl rc=${PIPESTATUS[0]}"
no process runs from the DB home
Patching component oracle.has.rsf, 19.0.0.0.0...

Patching component oracle.has.common.cvu, 19.0.0.0.0...

Patching component oracle.has.common, 19.0.0.0.0...

Patching component oracle.has.db, 19.0.0.0.0...

Patching component oracle.has.db.cvu, 19.0.0.0.0...
Patch 39526364 successfully applied.
Sub-set patch [29585399] has become inactive due to the application of a super-set patch [39526364].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatch/opatch2026-10-27_17-54-28PM_1.log

OPatch succeeded.
-- after:
39526364;OCW RELEASE UPDATE 19.32.0.0.0 (39526364)
39222882;OJVM RELEASE UPDATE: 19.32.0.0.260721 (39222882)
39472050;Database Release Update : 19.32.0.0.260721 (39472050)

OPatch succeeded.
-- srvctl config asm from the DB home:
ASM home: <CRS home>
Password file: +OCR/orapwASM
Backup of Password file: +OCR/orapwASM_backup
ASM listener: LISTENER
ASM instance count: 2
Cluster ASM listener: ASMNET1LSNR_ASM
srvctl rc=0

The ps line comes first so that the proof that nothing runs from the home is on screen before the apply, not reconstructed from an OPatch log afterwards. The Sub-set patch [29585399] has become inactive line is the result you want. The 19.32 OCW replaces the 19.3 one in the inventory rather than sitting next to it, which is why lspatches afterwards lists three patches, not four. opatch lsinventory on each node recorded the apply at 17:55:19 GMT on node 1 and 17:58:59 GMT on node 2.

-local matters here. Each node has its own database home, and I wanted one node patched and checked before I touched the other. The rc is srvctl’s own exit status from PIPESTATUS, not the pipe’s.

Node 2 did not have the unzipped release update in the same place, so I copied the sub-patch directory from node 1 with tar over ssh, as oracle:

tar -C /u01/stage/ru-grid/39467003 -cf - 39526364 | ssh -o BatchMode=yes <node2> 'D=/home/oracle/stage-ocw-39526364; test -e $D && echo EXISTS && exit 4; df -h /home/oracle | tail -1; mkdir $D && tar -C $D -xf - && du -sh $D/39526364'
/dev/mapper/ocivolume-root  109G   38G   72G  35% /
tar: 39526364/files/bin/ocrconfig.bin: Cannot open: Permission denied
tar: 39526364/files/bin/ocrcheck.bin: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
624M	/home/oracle/stage-ocw-39526364/39526364

Two files did not come across: ocrconfig.bin and ocrcheck.bin, 624 MB against 626 MB on node 1. Both are Grid-only binaries. The conflict check and the apply on node 2 ran in /home/oracle/stage-ocw-39526364/39526364:

cd /home/oracle/stage-ocw-39526364/39526364 || exit 3
opatch prereq CheckConflictAgainstOHWithDetail -ph . 2>&1 | grep -E 'passed|failed'
opatch apply -silent -local -oh $ORACLE_HOME 2>&1 | grep -vE '^$' | tail -12
Prereq "checkConflictAgainstOHWithDetail" passed.
Patching component oracle.rhp.db, 19.0.0.0.0...
Patching component oracle.rhp.common, 19.0.0.0.0...
Patching component oracle.has.rsf, 19.0.0.0.0...
Patching component oracle.has.common.cvu, 19.0.0.0.0...
Patching component oracle.has.common, 19.0.0.0.0...
Patching component oracle.has.db, 19.0.0.0.0...
Patching component oracle.has.db.cvu, 19.0.0.0.0...
Patch 39526364 successfully applied.
Sub-set patch [29585399] has become inactive due to the application of a super-set patch [39526364].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatch/opatch2026-10-27_17-58-08PM_1.log
OPatch succeeded.
-- after:
39526364;OCW RELEASE UPDATE 19.32.0.0.0 (39526364)
39222882;OJVM RELEASE UPDATE: 19.32.0.0.260721 (39222882)
39472050;Database Release Update : 19.32.0.0.260721 (39472050)

-- srvctl config asm from the DB home:
ASM home: <CRS home>
Password file: +OCR/orapwASM
srvctl rc=0

The apply patched database home components only, and the six libraries then matched the Grid home’s byte for byte (the node 2 table above). If you do this yourself, unzip the sub-patch from the release update zip as oracle on each node rather than copying a directory the grid user owns.

A last read on node 1, after both nodes were done, asked the status question from each home:

$ ORACLE_HOME=/u01/app/19.0.0/grid /u01/app/19.0.0/grid/bin/srvctl status asm
ASM is running on <node2>,<node1>
rc=0
$ ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1 /u01/app/oracle/product/19.0.0/dbhome_1/bin/srvctl status asm
ASM is running on <node2>,<node1>
rc=0

The undo, if you need it, is a local rollback of the sub-patch from the database home on each node: opatch rollback -id 39526364 -local. I did not run it in the lab.

What I check before every patch window now

  1. Run opatch lspatches on the Grid home and every database home on every host, standbys included.
  2. Compare each home’s list against the release update’s bundle.xml component list for that home’s target types. A database home that uses Grid needs every sub-patch listed for rac_database or oracle_database, not just the database release update.
  3. Take sha256 of the clusterware client libraries in each database home (libhasgen19, libocr19, libocrb19, libocrutl19, libsrvmhas19, libclsra19) and compare them against the Grid home’s on the same host.
  4. Run srvctl config asm and srvctl status asm from every database home, as oracle, and require rc 0. This takes two seconds and would have caught this before dbca ever ran.

What it cost

This took three failed database creation attempts. The first two failed on unrelated causes and the third was this one. It also took several diagnostic boots of the hosts before anyone read the cause. In UTC, the timeline was this. dbca failed at 12:07. The hosts were stopped while I read what the run had saved, which was not enough. A read-only probe at 17:18 reproduced the failure with srvctl from the database home. The interactive session started at 17:51 with the SELinux read and the trace, and by 18:21 three database homes were patched and verified. Once I was looking at the right thing, the reads, the fix and the verification fit inside half an hour. The five hours before that were spent looking at the wrong things.

A trace on the failing call beats the logs of a gated run. dbca’s own log told me what failed and nothing about why. The automated runs captured everything dbca wrote and still did not show the cause. SRVM_TRACE on a single srvctl call showed getASMMode returning NONE within minutes, and from there the comparison of the homes was obvious. When an Oracle tool fails inside a wrapper, take the smallest call that reproduces the error, run it alone, and turn its tracing on. srvctl honours SRVM_TRACE, and turning it on costs one environment variable.

Interactive work got to the cause in one sitting. Several scripted cycles of build, fail, stop, boot and probe had collected evidence without getting closer. One interactive session, running one command at a time and deciding the next one from the last answer, went from the trace to a verified fix. Automation is the right way to build the same thing twice. It is a poor way to find out why something failed the first time, because every cycle only answers the questions you thought to ask before it started.

Times from OCI host logs are UTC. My own driver logs were stamped in US Central and dbca’s log said GMT, so the same failure was 07:07 in one file and 12:07 in another. Convert everything to UTC before you line events up, or you will be correlating events five hours apart.

I spend my working time on problems like this one: Oracle estates where the patching, the clusterware and the databases have to agree with each other, and finding out why they don’t.