Disclaimer

Friday, 9 January 2026

Installing Oracle AI Database 26ai Free on Oracle Linux 9

 


Oracle introduced Oracle AI Database ora26ai 26ai just a few hours ago, the next generation of its AI-enabled database platform.

In this guide, we’ll walk through the installation of this version on Oracle Linux 9.


System Resource Limits

Oracle AI Database ora26ai 26ai allows you to use up to:


2 CPU cores

2 GB of RAM

12 GB of user data storage

This edition is designed for developers, learners, and small-scale testing environments.


1. Configure Hostname and Hosts File

Set the hostname and update the /etc/hosts file:

Set the hostname and update the /etc/hosts file:

[root@ora01db ~]# vi /etc/hosts
192.168.1.31 ora01db

[root@ora01db ~]# vi /etc/hostname
ora01db


2. Prepare the Operating System Repository

Before installing Oracle packages, prepare the OS for preinstallation RPM by mounting the Oracle Linux ISO and creating a local repository:

mounting the Oracle Linux ISO and creating a local repository:

[root@ora01db ~]# mkdir /dvd
[root@ora01db ~]# mount /dev/sr0 /dvd
mount: /dvd: WARNING: source write-protected, mounted read-only.

[root@ora01db ~]# rm -rf /etc/yum.repos.d/*
Create the repository file /etc/yum.repos.d/OL9.repo:

Create the repository file /etc/yum.repos.d/OL9.repo:

[root@ora01db ~]# vi /etc/yum.repos.d/OL9.repo
[InstallMedia-BaseOS]
name=Oracle Linux 9 - BaseOS
baseurl=file:///dvd/BaseOS/
metadata_expire=-1
gpgcheck=0
enabled=1

[InstallMedia-AppStream]
name=Oracle Linux 9 - AppStream
baseurl=file:///dvd/AppStream/
metadata_expire=-1
gpgcheck=0
enabled=1


3. Install the Preinstallation RPM

Download the preinstall package from the Oracle Linux repository:

oracle-ai-database-preinstall-26ai-1.0–1.el9.x86_64.rpm

Then, install it using dnf:

dnf install -y /software/oracle-ai-database-preinstall-26ai-1.0-1.el9.x86_64.rpm

This package automatically configures the required OS settings, users, and kernel parameters for the Oracle Database installation.

4. Install Oracle AI Database Free 26ai

Download the database package:

oracle-ai-database-free-26ai-23.26.0–1.el9.x86_64.rpm

Then install it:

[root@ora01db ~]#dnf -y localinstall /software/oracle-ai-database-ora26ai-26ai-23.26.0-1.el9.x86_64.rpm

Last metadata expiration check: 0:07:06 ago on Tue 14 Oct 2025 07:10:07 PM +0330.
Dependencies resolved.
====================================================================================================================================
 Package                                      Architecture           Version                     Repository                    Size
====================================================================================================================================
Installing:
 oracle-ai-database-ora26ai-26ai                 x86_64                 23.26.0-1                   @commandline                 1.3 G

Transaction Summary
====================================================================================================================================
Install  1 Package

Total size: 1.3 G
Installed size: 3.6 G
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                            1/1
  Running scriptlet: oracle-ai-database-ora26ai-26ai-23.26.0-1.x86_64                                                              1/1
  Installing       : oracle-ai-database-ora26ai-26ai-23.26.0-1.x86_64                                                              1/1
  Running scriptlet: oracle-ai-database-ora26ai-26ai-23.26.0-1.x86_64                                                              1/1
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure Oracle AI Database ora26ai, optionally modify the parameters in '/etc/sysconfig/oracle-ora26ai-26ai.conf' and then run '/etc/init.d/oracle-ora26ai-26ai configure' as root.

  Verifying        : oracle-ai-database-ora26ai-26ai-23.26.0-1.x86_64                                                              1/1

Installed:
  oracle-ai-database-ora26ai-26ai-23.26.0-1.x86_64
Completed!

After installation, you’ll see a message confirming that Oracle Home has been set up successfully:

[INFO] Oracle home installed successfully and ready to be configured.
To configure Oracle AI Database Free, optionally modify the parameters in '/etc/sysconfig/oracle-free-26ai.conf' and then run '/etc/init.d/oracle-free-26ai configure' as root.

5. Configure the Database

Before running the configuration script, review or modify the following parameters in /etc/sysconfig/oracle-free-26ai.conf:

[root@ora01db ~]# cat /etc/sysconfig/oracle-ora26ai-26ai.conf
#This is a configuration file to setup the Oracle AI Database.
#It is used when running '/etc/init.d/oracle-ora26ai-26ai configure'.

# LISTENER PORT used Database listener, Leave empty for automatic port assignment
LISTENER_PORT=

# Character set of the database
CHARSET=AL32UTF8

# Database file directory
# If not specified, database files are stored under Oracle base/oradata
DBFILE_DEST=

# DB Domain name
DB_DOMAIN=

# Configure TDE
CONFIGURE_TDE=false

# Encrypt Tablespaces list, Leave empty for user tablespace alone or provide ALL for encrypting all tablespaces
# For specific tablespaces use SYSTEM:true,SYSAUX:false
ENCRYPT_TABLESPACES=

# SKIP Validations, memory, space
SKIP_VALIDATIONS=false


6. Run the Configuration Script

Now run the configuration utility to create the database:

[root@ora01db ~]# /etc/init.d/oracle-ora26ai-26ai configure
Specify a password to be used for database accounts. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. Note that the same password will be used for SYS, SYSTEM and PDBADMIN accounts:
Confirm the password:
Configuring Oracle Listener.
Listener configuration succeeded.
Configuring Oracle AI Database ora26ai.
Enter SYS user password:
**
Enter SYSTEM user password:
**
Enter PDBADMIN User Password:
**
Prepare for db operation
7% complete
Copying database files
29% complete
Creating and starting Oracle instance
30% complete
33% complete
36% complete
39% complete
43% complete
Completing Database Creation
47% complete
49% complete
50% complete
Creating Pluggable Databases
54% complete
71% complete
Executing Post Configuration Actions
93% complete
Running Custom Scripts
100% complete
Database creation complete. For details check the logfiles at:
 /opt/oracle/cfgtoollogs/dbca/ora26ai.
Database Information:
Global Database Name:ora26ai
System Identifier(SID):ora26ai
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ora26ai/ora26ai.log" for further details.

Connect to Oracle AI Database using one of the connect strings:
     Pluggable database: ora01db/ora26aiPDB1
     Multitenant container database: ora01db


7. Set Environment Variables

Edit the Oracle user’s .bash_profile to define environment variables:

Edit the Oracle user’s .bash_profile to define environment variables:

[oracle@ora01db ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs

export ORACLE_SID=ora26ai
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/26ai/dbhomeora26ai
export PATH=$PATH:$HOME/.local/bin:$ORACLE_HOME/bin

8. Connect to the Database

Finally, connect as SYSDBA:

[oracle@ora01db ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 23.26.0.0.0 - Production on Tue Oct 14 19:35:17 2025
Version 23.26.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.


Connected to:
Oracle AI Database 26ai ora26ai Release 23.26.0.0.0 - Develop, Learn, and Run for ora26ai
Version 23.26.0.0.0

SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY   NO
         3 ora26aiPDB1                    READ WRITE  NO

Your Oracle AI Database Free 26ai instance is now ready for development and learning purposes.


SMON recovery when a large transaction is killed

 


When a large transaction got killed, terminated we all know that smon will do the rollback of the transaction, “smon: enable tx recovery”  which can evident in alert log.

Some time due to fast_start_parallel_rollback =high , lot of parallel sessions invoked and may complete hung your database or not permit any other session to work.


When a large transaction is killed, SMON recovers it.


A large number of wait for an undo record events and   PX Deq: Txn Recovery Start events occur simultaneously.


I recently faced an issue, when I killed the session and session was updating the for 3 hours.


1) The session I was deleting was taking too long, so I killed it as follows.


 alter system kill session 'sid,seiral#' immediate; 


2) Even though I marked it as KILLED with the above command, the rollback took a long time, so I caught the spid and executed kill -9 as shown below.


select 'kill -9 ' || spid 
from  v$process 
where addr in (select paddr from v$session where status='KILLED' and type != 'BACKGROUND') 


When you kill a process like this, SMON uses multiple server processes to roll back the transaction .

This is called Fast Start Parallel Rollback .


After performing  kill -9  at the OS level  as shown below , a significant amount of wait for a undo record events are generated.  


PX Deq: You can see that Txn Recovery Start has been detected.

===========================================================================================
Session Information
===========================================================================================

SID-SERIAL      HashValue Spid Machine-Program COMMAND LOGON_TIME Call(s)        EVENT
-------------- ------------ ---------- -------------------------- ------ ---------- ---------- -------------------------
[9874,46615] 0 7472078 db01-oracle@db01 (P000) n/a 0620.20:26 000.000 db file sequential read
[265,61609] 0 61670314 db01-oracle@db01 (P059) n/a 0620.20:26 000.000 wait for an undo record
[5681,17633] 0 35717294 db01-oracle@db01 (P035) n/a 0620.20:26 000.000 row cache lock
[5480,33199] 0 26707536 db01-oracle@db01 (P007) n/a 0620.20:26 000.000 wait for an undo record
[5238,20611] 0 20578538 db01-oracle@db01 (P036) n/a 0620.20:26 000.000 wait for an undo record
[5061,59825] 0 25493528 db01-oracle@db01 (P034) n/a 0620.20:26 000.000 wait for an undo record
[5044,17947] 0 57540908 db01-oracle@db01 (P057) n/a 0620.20:26 000.000 wait for an undo record
[4872,23015] 0 34210080 db01-oracle@db01 (P033) n/a 0620.20:26 000.000 wait for an undo record
[4856,26783] 0 55266940 db01-oracle@db01 (P026) n/a 0620.20:26 000.000 wait for an undo record
[4853,30281] 0 51118748 db01-oracle@db01 (P005) n/a 0620.20:26 000.000 wait for an undo record
[4671,45407] 0 10551614 db01-oracle@db01 (P032) n/a 0620.20:26 000.000 wait for an undo record
[4071,2219] 0 8257782 db01-oracle@db01 (P023) n/a 0620.20:26 000.000 wait for an undo record
[449,48911] 0 30605964 db01-oracle@db01 (P009) n/a 0620.20:26 000.000 wait for an undo record
[627,28573] 0 30802342 db01-oracle@db01 (P025) n/a 0620.20:26 000.000 wait for an undo record
[838,56489] 0 34407142 db01-oracle@db01 (P026) n/a 0620.20:26 000.000 wait for an undo record
[1029,26291] 0 54526396 db01-oracle@db01 (P054) n/a 0620.20:26 000.000 wait for an undo record
[2620,7781] 0 56623890 db01-oracle@db01 (P022) n/a 0620.20:26 000.000 wait for an undo record
[2664,23379] 0 49807750 db01-oracle@db01 (P004) n/a 0620.20:26 000.000 wait for an undo record
[1623,35105] 0 34865774 db01-oracle@db01 (P001) n/a 0620.20:26 000.000 wait for an undo record
[2268,17005] 0 50069814 db01-oracle@db01 (P011) n/a 0620.20:26 000.000 wait for an undo record
[2636,48395] 0 53346564 db01-oracle@db01 (P027) n/a 0620.20:26 000.000 wait for an undo record
[3018,3649] 0 18677940 db01-oracle@db01 (P028) n/a 0620.20:26 000.000 wait for an undo record
[3256,43711] 0 8848138 db01-oracle@db01 (P055) n/a 0620.20:26 000.000 wait for an undo record
[3277,17711] 0 52822526 db01-oracle@db01 (P029) n/a 0620.20:26 000.000 wait for an undo record
[3432,50939] 0 52363774 db01-oracle@db01 (P008) n/a 0620.20:26 000.000 wait for an undo record
[3846,50973] 0 15205060 db01-oracle@db01 (P030) n/a 0620.20:26 000.000 wait for an undo record
[4052,16635] 0 29557328 db01-oracle@db01 (P031) n/a 0620.20:26 000.000 wait for an undo record
[227,41677] 0 37814498 db01-oracle@db01 (P026) n/a 0620.20:26 000.000 wait for an undo record



================================================================================
Session Information
================================================================================


SID-SERIAL     HashValue      Spid       Machine-Program          COMMAND LOGON_TIME Call(s) EVENT
-------------- ------------ ---------- -------------------------- ------- -----------        ---------------------------
[9867,18343] 0 7472078 db01-oracle@db01 (P000) n/a 0620.20:26 000.000 wait for an undo record
[5238,20743] 0 20578538 db01-oracle@db01 (P036) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[3256,43759] 791757000 52822526 db01-oracle@db01 (P029) select 0620.20:26 000.000 PX Deq: Txn Recovery Start
[8495,57391] 0 26518268 db01-oracle@db01 (P056) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[9080,60257] 0 17301526 db01-oracle@db01 (P018) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[9473,7991] 0 30474314 db01-oracle@db01 (P002) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[4853,30289] 0 55266940 db01-oracle@db01 (P026) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[9694,22351] 791757000 50200772 db01-oracle@db01 (P019) select 0620.20:26 000.000 PX Deq: Txn Recovery Start
[5484,56401] 791757000 26707536 db01-oracle@db01 (P007) select 0620.20:26 000.000 PX Deq: Txn Recovery Start
[3437,62165] 0 52363774 db01-oracle@db01 (P008) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[4671,45415] 0 10551614 db01-oracle@db01 (P032) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[5061,59833] 0 25493528 db01-oracle@db01 (P034) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[4872,23023] 0 34210080 db01-oracle@db01 (P033) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[4856,26797] 0 51118748 db01-oracle@db01 (P005) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[5681,17641] 791757000 35717294 db01-oracle@db01 (P035) select 0620.20:26 000.000 PX Deq: Txn Recovery Start
[5852,43825] 0 5439868 db01-oracle@db01 (P010) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[6268,34661] 0 15597644 db01-oracle@db01 (P037) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[6453,32903] 0 17433114 db01-oracle@db01 (P038) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[6700,63859] 0 40633182 db01-oracle@db01 (P039) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[6864,26577] 0 21168948 db01-oracle@db01 (P041) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[6896,55739] 0 14090420 db01-oracle@db01 (P006) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[7073,3583] 0 28182642 db01-oracle@db01 (P013) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[11908,26765] 0 56689098 db01-oracle@db01 (P003) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[7855,36717] 0 44368098 db01-oracle@db01 (P014) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[8044,42353] 0 54526138 db01-oracle@db01 (P015) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[8099,25759] 0 21758836 db01-oracle@db01 (P040) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[8261,14049] 0 33227092 db01-oracle@db01 (P016) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[8309,42657] 0 6357220 db01-oracle@db01 (P042) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[8482,3069] 0 3605038 db01-oracle@db01 (P043) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[8484,64059] 0 55050878 db01-oracle@db01 (P017) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[4071,2261] 0 29557328 db01-oracle@db01 (P031) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[8668,6415] 0 52694900 db01-oracle@db01 (P044) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[8888,42229] 0 61408046 db01-oracle@db01 (P045) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[9056,6235] 791757000 44892260 db01-oracle@db01 (P046) select 0620.20:26 000.000 PX Deq: Txn Recovery Start
[4052,16643] 0 8257782 db01-oracle@db01 (P023) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[9276,18081] 0 7603116 db01-oracle@db01 (P047) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[3846,50985] 0 15205060 db01-oracle@db01 (P030) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[3277,17725] 0 8848138 db01-oracle@db01 (P055) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[3030,32601] 0 18677940 db01-oracle@db01 (P028) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[9874,46623] 0 26870730 db01-oracle@db01 (P048) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[10057,62267] 791757000 51970352 db01-oracle@db01 (P049) select 0620.20:26 000.000 PX Deq: Txn Recovery Start
[10459,64567] 791757000 39387460 db01-oracle@db01 (P050) select 0620.20:26 000.000 PX Deq: Txn Recovery Start
[10667,31975] 0 51183616 db01-oracle@db01 (P058) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[10710,37301] 791757000 15466958 db01-oracle@db01 (P051) select 0620.20:26 000.000 PX Deq: Txn Recovery Start
[10880,7319] 791757000 53018904 db01-oracle@db01 (P020) select 0620.20:26 000.000 PX Deq: Txn Recovery Start
[11075,40977] 0 40370534 db01-oracle@db01 (P021) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[11683,43791] 0 50266508 db01-oracle@db01 (P052) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[11903,921] 0 1376566 db01-oracle@db01 (P053) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[5044,17955] 0 57540908 db01-oracle@db01 (P057) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start
[2636,48541] 0 53346564 db01-oracle@db01 (P027) n/a 0620.20:26 000.000 PX Deq: Txn Recovery Start



Initialization parameters 

The degree of parallelism during recovery is determined based on the value of FAST_START_PARALLEL_ROLLBACK .


If it is FALSE, Parallel Rollback is not performed.


If LOW (default), rollbacks are performed in parallel up to CPU_COUNT * 2.


If HIGH, rollbacks are performed in parallel up to CPU_COUNT * 4.


Parallel rollback isn't always a good thing.


For services with a lot of changes, this may result in a failure with the following error message due to a lack of undo segments.


ORA-30036: unable to extend segment by 8 in undo tablespace "UNDO TABLESPACE NAME"


You can check the status with V$FAST_START_SERVERS during parallel rollback processing



select state, count(*) from V$FAST_START_SERVERS group by state;


STATE        COUNT(*)

----------- ----------

RECOVERING    60


/

STATE        COUNT(*)

----------- ----------

IDLE          59

RECOVERING 1



And, you can predict when it will end using the V$FAST_START_TRANSACTIONS view 


ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY/MM/DD HH24:MI:SS';


SELECT usn, state, undoblockstotal "Total", undoblocksdone "Done", undoblockstotal-undoblocksdone "ToDo",
DECODE(cputime,0,'unknown',SYSDATE+(((undoblockstotal-undoblocksdone) / (undoblocksdone / cputime)) / 86400)) "Finish at"  
FROM v$fast_start_transactions ; 



USN        STATE           Total     Done      ToDo       Finish at
---------- ------------- ---------- -------- ---------- -------------------
1109       RECOVERING      2269489   31317    2238172     2026/01/02 00:06:03



We can also predict as follows:

select ktuxeusn, to_char(sysdate,'YYYY/MM/DD HH24:MI:SS') "Time", ktuxesiz, ktuxesta
from x$ktuxe where ktuxecfl = 'DEAD'; 


KTUXEUSN    Time                  KTUXESIZ    KTUXESTA
---------- -------------------   ---------- --------------
1109       2026/01/02 23:07:22   1800231    ACTIVE

When completed, it will be displayed like this.

ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY/MM/DD HH24:MI:SS'; SELECT usn, state, undoblockstotal "Total", undoblocksdone "Done", undoblockstotal-undoblocksdone "ToDo", DECODE(cputime,0,'unknown',SYSDATE+(((undoblockstotal-undoblocksdone) / (undoblocksdone / cputime)) / 86400)) "Finish at" FROM v$fast_start_transactions ; USN STATE Total Done ToDo Finish at ----------------- -------- -------- ------ ------------------- 1109 RECOVERED 32874 32874 0 2026/01/02 00:24:21


Wednesday, 3 December 2025

Database Duplication Is Failing with Errors ORA-32015 While Restoring spfile

 


RMAN Command Id : 2025-12-02T16:27:31
RMAN Command Id : 2025-12-02T16:27:31
RMAN Command Id : 2025-12-02T16:27:31
released channel: CH1
released channel: CH2
released channel: CH3
released channel: CH4
released channel: CH5
released channel: CH6
released channel: CH7
released channel: CH8
released channel: CH9
released channel: CH10
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 12/02/2025 16:28:00
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
ORA-19870: error while restoring backup piece CONTROLFILE_c-1559836067-20251202-0a
ORA-32015: unable to restore SPFILE
ORA-17502: ksfdcre:4 Failed to create file +DATA/ORCL/PARAMETERFILE/spfile.266.1168338843
ORA-15046: ASM file name '+DATA/ORCL/PARAMETERFILE/spfile.266.1168338843' is not in single-file creation form
RMAN Client Diagnostic Trace file : /applications/oracle/d19.3.0/oracle_base/diag/clients/user_oracle/RMAN_486667218_110/trace/ora_rman_3055249_0.trc
RMAN Server Diagnostic Trace file : /applications/oracle/d19.3.0/oracle_base/diag/rdbms/ORCL/ORCL/trace/ORCL_ora_3055258.trc
RMAN Server Diagnostic Trace file : /applications/oracle/d19.3.0/oracle_base/diag/rdbms/ORCL/ORCL/trace/ORCL_ora_3055253.trc


Database Duplication Is Failing with Errors ORA-32015 While Restoring spfile (Doc ID 2981581.1)



 

Solution

Action Plan which helped to resolve the issue given in the above Bug was :

If the spfile is specified within CRS on the auxiliary instance, this will cause the error for the spfile. Clearing it removes the issue.

Run the below command at the Auxiliary DB to confirm if spfile has been configured in CRS

$ srvctl config database -db '<db_unique_name/db_name>';

 

The above command showed that spfile setting was configured in CRS.

Clear the spfile setting in CRS using the below command : 

At the Auxiliary DB

========

$ srvctl modify database -db <db_unique_name/db_name> -spfile '' # it is two single quotes

 


 Then the spfile got Restored and RMAN Duplicate was successful. 





Sunday, 23 November 2025

Oracle database patching - Windows Database Apr2025 Bundle Patch 19.27.0.0.250415

 
Description:-

Step by Step Applying PSU Patch in Oracle 19c in Windows Environment

Prerequisites to Apply Patch:-Database Release Update 19.27.0.0.250415

1.Shutdown Database Services and Listener
2.Upgrade OPatch Tool
3.Apply PSU patch on ORACLE_HOME in Windows Environment (p37486199_190000_MSWIN-x86-64)
4.Execute Post installation Scripts (datapatch)
5.Check invalid objects 





Patches Details:-

Install Oracle 19c Windows patch
This section includes the following patches:

Patch p37532350 - Windows Database Apr2025 Bundle Patch 19.27.0.0.250415

p6880880_190000_MSWIN-x86-64.zip - (OPatch Utlity)
p37532350_190000_MSWIN-x86-64.zip - (Database Bundle Patch)
p37499406_190000_MSWIN-x86-64.zip (OJVM Patch)
p37542054_190000_MSWIN-x86-64.zip (JDK Bundle Patch)


Note:

Verify that the Oracle OPatch utility version is latest.

We include 4 files and the following are the steps to install and verify the patches which needs to be executed in the order they are specified.

  1. Download the patch files and follow the pre-install setup.

  2. Upgrade OPatch.

  3. Install the patches.

  4. Verify the database and OJVM patch.

  5. Verify the JDK version updates.












OJVM Patch download:- 37499406





JDK Bundle Patch download:- 37542054











Download the Opatch utility version:-




VIMP:-







Note:-


Pre-install setup

1. Make a note of the latest Oracle OJVM patch installed from the System Health Check report in the section Oracle Patch History.
Note:

If you have applied any of the OJVM patches before, then you will have to roll back the previous OJVM patch. Example the last applied OJVM patch was p37499406_190000_MSWIN-x86-64.zip , then it needs to be rolled back and the instruction to rollback is provided later under section Installing the Oracle patches step -7. If no prior OJVM patch found or if it is not 35648110 patch, then no rollback is needed.

2. Log in to the virtual machine or Server where NetBackup IT Analytics is installed.

3. Download the following files from the product download area of the website and save to C:\temp folder.

p6880880_190000_MSWIN-x86-64.zip - (OPatch Utlity)
p37532350_190000_MSWIN-x86-64.zip - (Database Bundle Patch)
p37499406_190000_MSWIN-x86-64.zip (OJVM Patch)
p37542054_190000_MSWIN-x86-64.zip (JDK Bundle Patch)



4. Access the command prompt as an Administrator.

5. Verify %ORACLE_HOME%\perl\bin is displayed in your PATH setting.
Note:

If not displayed in your PATH setting, enter the following:

set PATH=%ORACLE_HOME%\perl\bin;%PATH%
Set the Perl library path to empty.
set perl5lib=


OPatch installation

1. Change directory to the Oracle home directory.

2. Execute command cd C:\opt\oracle.

3. Rename the existing OPatch directory using the following command.
rename Opatch Opatch_old

4. Unzip the file p6880880_190000_MSWIN-x86-64.zip in C:\opt\oracle.

5. Execute the following command to verify the opatch version.
C:\opt\oracle\OPatch>opatch version.

OPatch Version: 12.2.0.1.45




Installing the patches




    1.Stop the Listener and Shutdown Database Services 


    listener stop







    Database Stop:-

    SQL> shut immediate;




    2.  Stop - Distributed Transaction Coordinator service

    c:\> sc query msdtc

    sc query msdtc is a Windows command used to check the status of a Windows service named MSDTC (Microsoft Distributed Transaction Coordinator).




    What this command does

    • sc → Service Controller utility

    • query → Asks for the current status of a service

    • msdtc → The name of the service (Microsoft Distributed Transaction Coordinator)












    Note:- As we have stopped the DB so disable the Database services from Windows Service like below





    Note:

    Verify that all the NetBackup IT Analytics services are stopped by checking in services. If services are still running, the patch installation will not be successful and will cause issues.


    Explicitly stop the Distributed Transaction Coordinator service (which is not an Oracle service) if it is running using the following command.
    net stop msdtc.


    3. Rollbacking the overlay patches [37102264,37213431] 
    The details are:
    Reason -
    Superset Patch 37532350 has Subset Patch 37486199 which has overlay patches [37102264,37213431] and these overlay patches conflict with Superset Patch or are not included in Superest Patch


    If the last OJVM patch, for example, was p37499406_190000_MSWIN-x86-64.zip (OJVM Patch) then rollback by executing the
    opatch rollback -id 37499406 command and follow the steps to rollback.


    Rollback OJVM patch:-

    c:\Oracle19c\OPatch> opatch rollback -id 37102264




    Rollback JDK patch:-

    c:\Oracle19c\OPatch> opatch rollback -id 37213431







    Before Patch Need to set:

    set ORACLE_HOME=C:\Oracle19c
    set PATH=%ORACLE_HOME%\perl\bin;%PATH%
    set ORACLE_SID=ORCL
    set PERL5LIB=


    a. Applying Database Bundle Patch Below patch 

    p37532350_190000_MSWIN-x86-64.zip - (Database Bundle Patch)











    b.  Applying OJVM Patch 

    p37499406_190000_MSWIN-x86-64.zip (OJVM Patch)









    c. Applying JDK Bundle Patch

    p37542054_190000_MSWIN-x86-64.zip (JDK Bundle Patch) 





    After patching services setting  need to set as before and also need to start the services







    Verify OPatch succeeded using the following commands which will show the OPatch application results of database, OJVM and JDK patches:

    C:\opt\oracle\OPatch\opatch lsinventory -detail


    Re-start the Distributed Transaction Coordinator service, which is not an Oracle service, using the following command.

    net start msdtc


    Connect to SQL Plus using the following command:

    sqlplus / as sysdba

    SQL> startup 




    Execute the following command to complete the post-install SQL deployment for the patch being installed. This data patch command applies the patch to the database.

    C:\opt\Oracle\Opatch\datapatch -verbose








    Validating the database and OJVM Patches

    1. Connect to SQL Plus using the following command.

      sqlplus / as sysdba

    2. Query to check registry for patch history.

      SQL>select * from sys.registry$history;

    3. Query to check registry for installed patch.

      SQL>select * from sys.registry$sqlpatch ;

    4. Report output with patch details:

      SQL> set serveroutput on

      SQL> exec dbms_qopatch.get_sqlpatch_status;





    Note:- While applying patch if you face any issue , kill below process 






























    Undo Queries

      SQL> SQL> select sum(bytes /(1024*1024*1024)) from dba_undo_extents where status='EXPIRED'; select sum(bytes /(1024*1024*102...