Feed aggregator

UKOUG Conference Discover 2026: day 3

Yann Neuhaus - Wed, 2026-11-25 12:06

Last day at UKOUG, and still some interesting sessions to attend !

Oracle Database 26ai and the Oracle Database Operator for Kubernetes, by Ron Ekins

A session on the Oracle Database Operator for Kubernetes, going back to the basics of Oracle containers, up to presenting setups across availability domains. Ron presented the architecture challenges, talked about licensing, and many other important topics. It was also interesting to hear his thoughts on the future of Oracle deployments.

Building an Enterprise Cloud-Based Oracle GoldenGate Hub for Real-Time Data Integration, by Faisal Ijaz and Andrew Mckee

I was really waiting for this presentation, since it was the only other one related to GoldenGate. They presented their enterprise GoldenGate hub for real-time replication across on-premises and cloud targets. The platform runs on GoldenGate 26ai Microservices Architecture and replicates from Oracle and SQL Server to Snowflake and Kafka. The GoldenGate MCP server was also a topic, of course. The session was directly relevant to a lot of what I work on at the moment. It was also really nice to chat with Andrew after the session.

Onboarding 1,400 Databases to Oracle Data Safe: What Scale Changes, by Stefan Oehrli

Stefan Oehrli was back with a session on Data Safe, where he onboarded more than a thousand ExaCC databases over a few months. Stefan covered the problems that only show up at this scale, such as the limits of on-premises connectors. He also presented the latest enhancements to this OCI managed service, like target groups. He also showed some of the automation he worked on with the OCI CLI, and shared a GitHub repo with everything in it.

Another part of the session was about what the assessments revealed, and how to handle this. It was also nice to hear from him about the upcoming potential features of the tool, and what could be achieved with them once they are released.

That is a wrap on UKOUG 2026. Thanks to UKOUG and dbi services for the opportunity, and to everyone I met over these three days. See you next year ?

The post UKOUG Conference Discover 2026: day 3 appeared first on dbi services Blog.

select * from sessions and other oddities

Laurent Schneider - Wed, 2026-11-25 09:48

I just stumble upon strangest syntaxes in 26ai after the October patching. Watchout out

SELECT min(hiredate) BEGIN, max(hiredate) END, 
  COUNT(*), listagg(hiredate,' ') within group (order by hiredate) d
FROM 
  SESSIONS(
    emp ,
    COLUMNS ( hiredate),
    INTERVAL '1' YEAR
  )
GROUP BY window_start
BEGIN      END          COUNT(*) D 
---------- ---------- ---------- --------------------------------------------------------------------------------------------------------------------------------------------
1980-12-17 1982-01-23         12 1980-12-17 1981-02-20 1981-02-22 1981-04-02 1981-05-01 1981-06-09 1981-09-08 1981-09-28 1981-11-17 1981-12-03 1981-12-03 1982-01-23 
1987-04-19 1987-05-23          2 1987-04-19 1987-05-23

What’s that? It’s the two periods in SCOTT.EMP where there is no gap of more than a year between two hires. And this is introduced in a release update (RU).

Not too long ago, Oracle had announced innovation release, like Oracle 20c. It seems it is now continuous innovation, with features flying in every quarter. Will there be another innovation release after 20c aka 21c?

There are also a bunch of other polymorphic table functions. HOP, CUMULATIVE, TUMBLE.

With HOP you can for instance generate the next four quarters

with t as (select trunc(dateadd(year,1,sysdate),'q')-1 d)
SELECT 
  to_char(window_start,'YYYY"Q"Q') q 
from hop(t,columns(d), interval '1' year/4, interval '1' year) 
order by 1;
Q 
------
2026Q4
2027Q1
2027Q2
2027Q3

UKOUG Conference Discover 2026: day 2

Yann Neuhaus - Tue, 2026-11-24 16:25

Day 2 was presentation day for me !

Oracle Database 26ai Security Features in Practice, by Stefan Oehrli

The morning opened with a walkthrough of the new 26ai security features: MFA, SQL Firewall, encryption changes, and more. Customers might be interested in many of these in the near future.

Opening Keynote – One Oracle One Community

Then the whole conference gathered for the opening keynote, with Kevin Kimber, the General Manager for UK and Ireland at Oracle.

Public Speaking 101, by Mike Dietrich

Very good timing from Mike Dietrich to do this talk right before my session ! As always with him, it was very fun, but also full of tips for us. It might have triggered a few moments of panic when I realized I might do things wrong. But it’s good to know how you can improve !

Mining Oracle Performance Data Without Oracle Gold, by Kellyn Gorman

For the first session of the afternoon, I picked a talk on what it costs to monitor Oracle without the Diagnostics Pack. When using Oracle Standard Edition, a lot of our customers have no AWR, no ASH, no dba_hist_*. Everything comes from the free V$ views. Kellyn walked through the historical repository the team had to build from scratch and the RAC monitoring side. She also did a lot of useful comparisons with Postgres and SQL Server. The story behind the project was quite interesting, and I’ll definitely be following its developments in the months to come.

GoldenGate 26ai: AI features and Upgrade Strategies from Legacy Deployments, by Julien Delattre

After going through my slides and labs one more time, it was time to present the AI features of GoldenGate 26ai and upgrade strategies from legacy deployments. It covered what changes for administrators migrating to 26ai. It was nice to discuss with other GoldenGate users about topics we all faced. There were some very interesting questions, thanks to everyone who came !

I then had the opportunity to talk with our partners Dbvisit. Radomila and Kelly really are lovely people and I wish I could work more with them in the future !

AI Hackers Paradise! Oracle Hacking Session – mind blowing edition, by Kamil Stawiarski

The last session of the day was the Oracle Hacking Session of Kamil Stawiarski. Not his first shot at this exercise. This time he showed us the enhanced capabilities of hackers at the age of AI and MCP servers.

Tomorrow I don’t have to present, so I will be able to enjoy the last sessions of the UKOUG 2026.

The post UKOUG Conference Discover 2026: day 2 appeared first on dbi services Blog.

Oracle RU 23.26.4 Autoupgrade issue and workaround

Yann Neuhaus - Tue, 2026-11-24 04:20

Please read this if you are planning patching your Oracle database with autoupgrade to 23.26.4 as there is issue / bug with with ‘analyze’ phase.

If you face errors during precheck phase like:

CDB$ROOT SC_RAC_CRS_OH_MISMATCH use below workaround or wait for newer version of autoupgrade.

For the moment 20/11/2026 writing this article newest one available build.version 26.7.2.261111 still have a issue

under this link you can find recent version: https://download.oracle.com/otn-pub/otn_software/autoupgrade.jar

Now test case and workaround:

We are creating a new AutoUpgrade config file containing

cat patching_23_26_4.cfg
global.global_log_dir=/home/oracle/autoupgrade/upg26
upg1.source_home=/u01/app/oracle/product/23.26.2/dbhome_1
upg1.target_home=/u01/app/oracle/product/23.26.4.0/dbhome_1
upg1.sid=CDB11
upg1.restoration=no

Run analyze to check patching prerequisites:

/u01/app/oracle/product/23.26.4.0/dbhome_1/jdk/bin/java -jar /u01/app/oracle/product/23.26.4.0/dbhome_1/rdbms/admin/autoupgrade.jar -config patching_23_26_4.cfg -mode analyze

oracle@rac_node1:~/ [CDB11] /u01/app/oracle/product/23.26.4.0/dbhome_1/jdk/bin/java -jar
/u01/app/oracle/product/23.26.4.0/dbhome_1/rdbms/admin/autoupgrade.jar -config patching_23_26_4.cfg -mode analyze
AutoUpgrade 26.5.2.261008 launched with default internal options
Processing config file ...
Pluggable database TEMPLATE_PDB01 in CDB11 is MOUNTED and it will not be processed

+-----------------------------+
| Starting AutoUpgrade execution |
+-----------------------------+

1 CDB(s) plus 3 PDB(s) will be analyzed
Type "help" to list console commands
upg> Job 103 completed

---------------- Final Summary ----------------
Number of databases                 [ 1 ]

Jobs finished                       [1]
Jobs failed                         [0]

Please check the summary report at:
/home/oracle/autoupgrade/upg26/cfgtoollogs/upgrade/auto/status/status.html
/home/oracle/autoupgrade/upg26/cfgtoollogs/upgrade/auto/status/status.log

oracle@rac_node1:~/ [CDB11] cat /home/oracle/autoupgrade/upg26/cfgtoollogs/upgrade/auto/status/status.log

========================================
        AutoUpgrade Summary Report
========================================

[Date] Fri Nov 20 10:25:54 CET 2026
[Number of Jobs] 1

========================================
[Job ID] 103
========================================

[DB Name] CDB11
[Version Before Upgrade] 23.26.2.0.0
[Version After Upgrade] 23.26.4.0.0

----------------------------------------
[Stage Name] PRECHECKS
[Status] FAILURE
[Start Time] 2026-11-20 10:25:14
[Duration] 0:00:39
[Log Directory] /home/oracle/autoupgrade/upg26/CDB11/103/prechecks
[Detail] /home/oracle/autoupgrade/upg26/CDB11/103/prechecks/CDB1_preupgrade.log

Check failed for CDB$ROOT, manual intervention needed for the below checks:
[SC_RAC_CRS_OH_MISMATCH]

Cause: The following checks have ERROR severity and no auto fixup is available or
the fixup failed to resolve the issue. Fix them before continuing:
CDB$ROOT SC_RAC_CRS_OH_MISMATCH

Reason: Database Checks has Failed. Details in
/home/oracle/autoupgrade/upg26/CDB11/103/prechecks

Action: [MANUAL]
Info: Return status is ERROR
ExecutionError: No

Error Message: The following checks have ERROR severity and no auto fixup is available or
the fixup failed to resolve the issue. Fix them before continuing:
CDB$ROOT SC_RAC_CRS_OH_MISMATCH


oracle@rac_node1:~/ [CDB11] more /home/oracle/autoupgrade/upg26/CDB11/103/prechecks/CDB1_preupgrade.log

Report generated by AutoUpgrade 26.5.2.261008 (02ee109fe) on 2026-11-20 10:25:49

Upgrade-to version: 23.0.0.0.0

========================================
Status of the database prior to upgrade
========================================

    Database Name: CDB11
    Container Name: CDB$ROOT
    Container ID: 1
    Version: 23.26.2.0.0
    DB Patch Level: Database Release Update : 23.26.2.0.0 (39092711) Gold Image
    Compatible: 23.0.0
    Blocksize: 8192
    Platform: Linux x86 64-bit
    Timezone File: 43
    Database Log mode: ARCHIVELOG
    Readonly: false
Oracle Component                 Upgrade Action       Current Status
----------------                 --------------       --------------
None

*
* ALL Components in This Database Registry:
*

Component    Current       Current       Original       Previous       Component
CID          Version       Status        Version        Version        Schema
----------   -----------   -----------   ------------   ------------   -----------
APS          23.26.2.0.0   VALID         23.26.1.0.0                   SYS
CATALOG      23.26.2.0.0   VALID         23.26.1.0.0                   SYS
CATJAVA      23.26.2.0.0   VALID         23.26.1.0.0                   SYS
CATPROC      23.26.2.0.0   VALID         23.26.1.0.0                   SYS
CONTEXT      23.26.2.0.0   VALID         23.26.1.0.0                   CTXSYS
DV           23.26.2.0.0   VALID         23.26.1.0.0                   DVSYS
JAVAVM       23.26.2.0.0   VALID         23.26.1.0.0                   SYS
OLS          23.26.2.0.0   VALID         23.26.1.0.0                   LBACSYS
OWM          23.26.2.0.0   VALID         23.26.1.0.0                   WMSYS
RAC          23.26.2.0.0   VALID         23.26.1.0.0                   SYS
SDO          23.26.2.0.0   VALID         23.26.1.0.0                   MDSYS
XDB          23.26.2.0.0   VALID         23.26.1.0.0                   XDB
XML          23.26.2.0.0   VALID         23.26.1.0.0                   SYS
XOQ          23.26.2.0.0   VALID         23.26.1.0.0                   OLAPSYS


================
BEFORE UPGRADE
================

REQUIRED ACTIONS
================

1.

    CheckName                              FixUp Available
    SC_RAC_CRS_OH_MISMATCH                 NO

    Severity                               Stage
    ERROR                                  PRECHECKS

    Use srvctl to update the Oracle home configured in CRS for the RAC
    database so that all instances use the same Oracle home path. Refer to
    MOS Note KB626357 for more details.

    Datapatch, via Queryable Inventory, compares patch state across RAC
    instances and determines the required SQL update actions for the cluster.
    Therefore, Clusterware (CRS) must be configured so that all RAC instances
    use the same Oracle home path to ensure they share the same patched
    binaries.

    The Oracle home configured in CRS differs from the ORACLE_HOME value in
    the environment. This mismatch can cause inconsistencies in accessing
    patch inventory across RAC instances, and datapatch may fail to detect
    and/or apply the required SQL updates for the installed patches.

I tried also with newest version of autoupgrade from oracle and the issue still the same

the issue is that autoupgrade checking clusterware oracle_home settings and have some mismatch with current one, but I checked

this is not correct:

 srvctl config -d CDBNAME and ORACLE_HOME is properly set for old one.

=/u01/app/oracle/product/23.26.2/dbhome_1, there is no issue with starting /stoping this CDB using srvctl and its works on this home since months.

I tried with 23.26.2 autoupgrade and there is no issue:


[oracle@rac_node1:~/ [CDB11] /u01/app/oracle/product/23.26.4.0/dbhome_1/jdk/bin/java -jar
/u01/app/oracle/product/23.26.2/dbhome_1/rdbms/admin/autoupgrade.jar -config patching_23_26_4.cfg -mode analyze
AutoUpgrade version is older than 180 days. Oracle recommends to download the latest software version
from MOS Doc id 2485457.1 https://support.oracle.com/epmos/faces/DocumentDisplay?id=2485457.1.
AutoUpgrade 26.1.260428 launched with default internal options
Processing config file ...
Pluggable database TEMPLATE_PDB01 in CDB11 is MOUNTED and it will not be processed
+-----------------------------------------+
| Starting AutoUpgrade execution |
+-----------------------------------------+
1 CDB(s) plus 3 PDB(s) will be analyzed
Type 'help' to list console commands
upg> Job 102 completed
------------------- Final Summary --------------------
Number of databases            [ 1 ]

Jobs finished                  [1]
Jobs failed                    [0]

Please check the summary report at:
/home/oracle/autoupgrade/upg26/cfgtoollogs/upgrade/auto/status/status.html
/home/oracle/autoupgrade/upg26/cfgtoollogs/upgrade/auto/status/status.log
oracle@rac_node1:~/ [CDB11] cat /home/oracle/autoupgrade/upg26/cfgtoollogs/upgrade/auto/status/status.log
==========================================
        Autoupgrade Summary Report
==========================================
[Date]          Fri Nov 20 11:29:43 CET 2026
[Number of Jobs] 1

[Job ID] 102

[DB Name]          CDB1
[Version Before Upgrade] 23.26.2.0.0
[Version After Upgrade]  23.26.4.0.0

[Stage Name]    PRECHECKS
[Status]        SUCCESS
[Start Time]    2026-11-20 11:29:04
[Duration]      0:00:38
[Log Directory] /home/oracle/autoupgrade/upg26/CDB11/102/prechecks
[Detail]        /home/oracle/autoupgrade/upg26/CDB11/102/prechecks/CDB1_preupgrade.log
                Check passed and no manual intervention needed
 Workaround:

 
I don’t recommend use autoupgrade from previous version 26.2 , so as workaround I decided to use newest  one just skip precheck phase.

I used newest autoupgrade but skip analyze/deploy phase and do straight to upgrade, but before we do that we need to start CDB from new home and cleanup autoupgrade logs folder.

1. clean up autoupgrade logs folder in my case /home/oracle/autoupgrade/upg26, (you don’t need to reinstate , try to cancel previous executions)

2. Stopping rac database cluster:

srvctl stop database -d CDB1

3. Modify oracle_home for new_one:

srvctl modify database -d CDB1 -oraclehome /u01/app/oracle/product/23.26.4.0/dbhome_1

4. Start first instance from new home:

srvctl start instance -d CDB1 -i CDB11

5. Start autoupgrade without precheck phase using -mode upgrade :

oracle@rac_node1:~/ [rdbms23_a] /u01/app/oracle/product/23.26.4.0/dbhome_1/jdk/bin/java -jar ~/autoupgrade.jar -config patching_23_26_4.cfg -mode upgrade
AutoUpgrade 26.7.2.261111 launched with default internal options
Processing config file ...
+-----------------------------------------+
| Starting AutoUpgrade execution |
+-----------------------------------------+
1 CDB(s) plus 4 PDB(s) will be processed
Type 'help' to list console commands
upg> lsj -a 7
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|DBUPGRADE|EXECUTING|RUNNING| 14:58:51| 7s ago|Running|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1

The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|                        MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|DBUPGRADE|EXECUTING|RUNNING| 14:58:51|19s ago|90%Patching CDB$ROOT|
+----+-------+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1
The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|                        MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|DBUPGRADE|EXECUTING|RUNNING| 14:58:51|53s ago|90%Patching TEMPLATE_PDB01|
+----+-------+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1
The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|DBUPGRADE|EXECUTING|RUNNING| 14:58:51| 2s ago|90%Patching PDBDUMPD01|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1

The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|POSTCHECKS|EXECUTING|RUNNING| 14:58:51| 6s ago|Loading database information|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1

The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|POSTFIXUPS|EXECUTING|RUNNING| 14:58:51|!!!346s ago|Executing fixups|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1

The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|POSTCHECKS|EXECUTING|RUNNING| 14:58:51| 6s ago|Loading database information|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1

The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|POSTFIXUPS|EXECUTING|RUNNING| 14:58:51|!!!346s ago|Executing fixups|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1

The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|POSTFIXUPS|EXECUTING|RUNNING| 14:58:51| 0s ago|Executing fixups|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1

The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|POSTFIXUPS|EXECUTING|RUNNING| 14:58:51| 2s ago|Refreshing DB info|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1

The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
|Job#|DB_NAME|STAGE|OPERATION|STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
| 100|CDB11|POSTFIXUPS|EXECUTING|RUNNING| 14:58:51| 2s ago|Re-Executing Checks|
+----+-------+---------+---------+-------+----------+-------+----------------------------------------+
Total jobs 1

The command lsj is running every 7 seconds. PRESS ENTER TO EXIT
Job 100 completed
------------------- Final Summary --------------------
Number of databases            [ 1 ]

Jobs finished                  [1]
Jobs failed                    [0]

Please check the summary report at:
/home/oracle/autoupgrade/upg26/cfgtoollogs/upgrade/auto/status/status.html
/home/oracle/autoupgrade/upg26/cfgtoollogs/upgrade/auto/status/status.log

oracle@rac_node1:~/ [rdbms23_a] cat /home/oracle/autoupgrade/upg26/cfgtoollogs/upgrade/auto/status/status.log
==========================================
        Autoupgrade Summary Report
==========================================
[Date]          Fri Nov 20 15:39:55 CET 2026
[Number of Jobs] 1

[Job ID] 100

[DB Name]          CDB1
[Version Before Upgrade] 23.26.2.0.0
[Version After Upgrade]  23.26.4.0.
[Stage Name]    DBUPGRADE
[Status]        SUCCESS
[Start Time]    2026-11-20 14:58:51
[Duration]      0:18:55
[Log Directory] /home/oracle/autoupgrade/upg26/CDB11/100/dbupgrade

[Stage Name]    POSTCHECKS
[Status]        SUCCESS
[Start Time]    2026-11-20 15:17:47
[Duration]      0:00:07
[Log Directory] /home/oracle/autoupgrade/upg26/CDB11/100/postchecks
[Detail]        /home/oracle/autoupgrade/upg26/CDB11/100/postchecks/CDB1_postupgrade.log
                Check passed and no manual intervention needed

[Stage Name]    POSTFIXUPS
[Status]        SUCCESS
[Start Time]    2026-11-20 15:17:55
[Duration]      0:21:57
[Log Directory] /home/oracle/autoupgrade/upg26/CDB11/100/postfixups
[Detail]        /home/oracle/autoupgrade/upg26/CDB11/100/postfixups/postfixups.html

[Stage Name]    SYSUPDATES
[Status]        SUCCESS
[Start Time]    2026-11-20 15:39:53
[Duration]      0:00:01
[Log Directory] /home/oracle/autoupgrade/upg26/CDB11/100/sysupdates

Summary:/home/oracle/autoupgrade/upg26/CDB11/100/dbupgrade/datapatch_summary.log

6. Now we can restart one more time CDB and check if all components are valid:

srvctl stop database -d CDB1
srvctl start database -d CDB1
srvctl status database -d CDB1
Instance CDB11 is running on node rac_node1
Instance CDB12 is running on node rac_node2

SQL> select con_id,comp_name,version_full,status from cdb_registry order by con_id;

CON_ID COMP_NAME                                VERSION_FULL   STATUS
------ ---------------------------------------- -------------- ------
     1 Oracle Database Catalog Views            23.26.4.0.0    VALID
     1 Oracle Database Vault                    23.26.4.0.0    VALID
     1 Oracle Label Security                    23.26.4.0.0    VALID
     1 Spatial                                  23.26.4.0.0    VALID
     1 Oracle OLAP API                          23.26.4.0.0    VALID
     1 Oracle Text                              23.26.4.0.0    VALID
     1 Oracle Database Packages and Types       23.26.4.0.0    VALID
     1 Oracle XML Database                      23.26.4.0.0    VALID
     1 OLAP Analytic Workspace                  23.26.4.0.0    VALID
     1 Oracle Database Java Packages            23.26.4.0.0    VALID
     1 Oracle XDK                               23.26.4.0.0    VALID
     1 JServer JAVA Virtual Machine             23.26.4.0.0    VALID
     1 Oracle Real Application Clusters         23.26.4.0.0    VALID
     1 Oracle Workspace Manager                 23.26.4.0.0    VALID
     4 Oracle Database Catalog Views            23.26.4.0.0    VALID
     4 Oracle Database Packages and Types       23.26.4.0.0    VALID
     4 Oracle Real Application Clusters         23.26.4.0.0    VALID
     4 JServer JAVA Virtual Machine             23.26.4.0.0    VALID
     4 Oracle XDK                               23.26.4.0.0    VALID
     4 Oracle Database Java Packages            23.26.4.0.0    VALID
     4 Oracle Database Vault                    23.26.4.0.0    VALID
     4 Oracle XML Database                      23.26.4.0.0    VALID
     4 Oracle Workspace Manager                 23.26.4.0.0    VALID
     4 Oracle Text                              23.26.4.0.0    VALID
     4 Oracle OLAP API                          23.26.4.0.0    VALID
     4 Spatial                                  23.26.4.0.0    VALID
     4 Oracle Label Security                    23.26.4.0.0    VALID
     4 OLAP Analytic Workspace                  23.26.4.0.0    VALID
     5 Oracle Database Catalog Views            23.26.4.0.0    VALID
     5 Oracle Database Packages and Types       23.26.4.0.0    VALID
     5 Oracle Real Application Clusters         23.26.4.0.0    VALID
     5 JServer JAVA Virtual Machine             23.26.4.0.0    VALID
     5 Oracle XDK                               23.26.4.0.0    VALID
     5 Oracle Database Java Packages            23.26.4.0.0    VALID
     5 Oracle Database Vault                    23.26.4.0.0    VALID
     5 Oracle XML Database                      23.26.4.0.0    VALID
     5 Oracle Workspace Manager                 23.26.4.0.0    VALID
     5 Oracle Text                              23.26.4.0.0    VALID
     5 Oracle OLAP API                          23.26.4.0.0    VALID
     5 Spatial                                  23.26.4.0.0    VALID
     5 Oracle Label Security                    23.26.4.0.0    VALID
     5 OLAP Analytic Workspace                  23.26.4.0.0    VALID


Presented workaround work for my customer environment, but as every environment is different check out with yours if there are no other prechecks fails which need to be fix before

I hope this issue will be solved soon in 23.26.5 or in newer release of autoupgrade.

The post Oracle RU 23.26.4 Autoupgrade issue and workaround appeared first on dbi services Blog.

UKOUG Conference Discover 2026: day 1

Yann Neuhaus - Mon, 2026-11-23 16:02

I am in London for the three days of UKOUG Discover 2026. Spending a few days away from my projects is a good way to see what the rest of the Oracle community is working on. It is also a chance to question a few habits.

Sizing your Database and Storage for Oracle AI Database 26ai, by Ron Ekins

This was the first session I attended. The topic was what vector data in 26ai does to storage: the size per vector dimension, the overhead of vector indexes and the importance of model choice in your AI strategy.

Oracle AI Database 26ai: Choices, Innovations, and Mission-Critical Resilience, by Markus Michalewicz

Next was an assessment of 26ai new features. It was interesting to learn more about Oracle RAC in containers and OpenShift support. The talk then moved to the Maximum Availability Architecture tiers and global MAA guidance, as well as cloud DR. Mission-critical workloads were a major topic, with AI-Ready Data Guard as a key part of it. It was also nice to hear about the Oracle API for MongoDB that I went through in a previous blog.

What’s New in the Optimizer for Oracle AI Database 26ai?, by Nigel Bayliss

A good rundown of what is new in the Optimizer for 26ai. SQL Analysis, SQL Diagnostics Report, SQL Plan Management and many others, which also have some features backported to 19c. The session was also about the optimizer changes regarding vector indexes.

Zero Data Loss in Practice: Modern Data Protection with Oracle Recovery Appliance and Service, by Zahid Anwar

This talk was about zero data loss strategies using Recovery Appliance and ZDL Autonomous Recovery Service. It raised interesting questions to ask clients about what they really want regarding their backup strategy. And it gave me some new inputs on what to pay attention to when setting up ZDLRA.

Stop being DBA. Stop being DEV. Performance tuning is math!, by Kamil Stawiarski

This session argued that math is all you need for complex performance tuning problems. Kamil’s talk was very interesting and original, using four regression models to make the case and present JAS-MIN, a miner for AWR and Statspack reports.

Murder at Property Graph Manor, by Alex Nuijten

Solving a mystery with Oracle Property Graph queries instead of a magnifying glass. Guests, movements and relationships became vertices and edges, which made it easy to see who met whom before the host died.

Inside Exadata for Agentic AI: Performance, Simplicity, and Scale, by Alex Blyth

A look inside Exadata and how its database-aware software and hardware accelerate AI Vector Search. The session covered AI Smart Scan for 26ai, and Alex also gave us an insight on what comes soon regarding how we can use AI to interact with Exadata.

Top 5 Things to Secure Data, by Pete Finnigan

One last session for the day, on the top 5 things to secure data in an Oracle database. Stop people connecting to the database, separation of duties, and usual stuff we’re used to applying at customers, but also some interesting insight on how other people secure their databases.

The post UKOUG Conference Discover 2026: day 1 appeared first on dbi services Blog.

SQL Server: what is really happening when a TLS certificate expires?

Yann Neuhaus - Mon, 2026-11-23 02:55

This post was written following a consulting day spent configuring the security of a client’s environment. While creating a TLS certificate, I was explaining what was at stake with the certificate and emphasizing that its validity date had to be monitored, either at the level of their CA or directly on each VM. But my client’s question left me puzzled: “How much time do I have to change it when it expires?? And is the whole instance blocked??”
This is the question I wanted to analyze in this article.

New connection at 13:04:45Connection stringResultEncrypted, certificate validatedEncrypt=True;TrustServerCertificate=FalseOKEncrypted, certificate not validatedEncrypt=True;TrustServerCertificate=TrueOKNo encryption requestedEncrypt=FalseOK

Three successful connections to a SQL Server 2022 instance, including one that asks for encryption and validates the server certificate. Nothing special, except that the certificate presented by the instance had expired at 12:24:21, forty minutes earlier.

Ten minutes later, the same script against the same instance, from a freshly opened PowerShell window:

New connection at 13:15:33Connection stringResultEncrypted, certificate validatedEncrypt=True;TrustServerCertificate=FalseFAILED: The received certificate has expired.Encrypted, certificate not validatedEncrypt=True;TrustServerCertificate=TrueOK

The setup was absolutely identical, the only difference between the two runs is the process that opened the connection.

From these results, what I wanted to measure is which ones survive, for how long, and what makes them stop.

A certificate is the security piece that lets a client check that the server it is connecting is the one it asked for (authentication), before sending credentials and data to it. Encryption without that check protects against someone listening (confidentiality), and does not protect against someone answering in the server’s place. TLS therefore gives confidentiality, because the traffic is encrypted, and authentication, because the certificate proves who the server is.

The context in three facts

Nowadays, certificates tend to live shorter and shorter. With Ballot SC-081v3, voted by Apple, Google, Microsoft and Mozilla among others, the maximum validity of a public TLS certificate drops as follows. An internal CA is not bound by it, but more and more, security teams are asking for more frequent renewals.

Certificate issued on or afterCertificate issued beforeMaximum validity period2026-03-15398 days2026-03-152027-03-15200 days2027-03-152029-03-15100 days2029-03-1547 days

Source: Baseline Requirements for TLS Server Certificates, section 6.3.2, CA/Browser Forum.

The validity of the certificate is checked on the client side, not on the server side. Encrypt=True;TrustServerCertificate=False validates the chain, the name and the dates, while TrustServerCertificate=True encrypts the connection but accepts whatever certificate the server presents, without validating it. The certificate itself is chosen by SQL Server at startup: the thumbprint stored in the registry, else a suitable certificate from the Local Computer store, else a self-generated one that no client can validate.
The registry shows what will be loaded next time and the error log what was loaded last time:

$inst = "<INSTANCE_NAME>"
$id = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL").$inst
$reg = "HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\$id\MSSQLServer\SuperSocketNetLib"
$svcName = "MSSQL`$$inst"
"registry = $((Get-ItemProperty $reg).Certificate)"
sqlcmd -S ".\$inst" -E -C -W -Q "EXEC xp_readerrorlog 0,1,N'certificate'"
registry = 051d1727dc7c0a68ec3b6aacaebdb6175b277635
2026-10-03 11:37:06.530 spid17s The certificate [Cert Hash(sha1) "051D1727DC7C0A68EC3B6AACAEBDB6175B277635"] was successfully loaded for encryption.
Let’s build an evil certificate that lives one hour

Everything below ran on SQL Server 2022, named instance TESTLB on sqlagvm1.lto.local, with an AD CS authority. The test client and server are the same machine, and every connection negotiated TLS 1.2.

Because I didn’t want to wait for a real certificate to expire, I duplicated the certificate template used for SQL Server and gave the copy a validity of one hour, with a renewal period of zero.

Once the template is published on the CA, the certificate is requested from the SQL Server machine, with a domain account:

$a = (Get-Certificate -Template "CopyofSQLServerTLS1h" -SubjectName "CN=sqlagvm1.lto.local" `
      -DnsName "sqlagvm1.lto.local" -CertStoreLocation Cert:\LocalMachine\My).Certificate
$a | Format-List Subject, DnsNameList, Thumbprint, NotAfter
Subject     : CN=sqlagvm1.lto.local
DnsNameList : {sqlagvm1.lto.local}
Thumbprint  : AFB7BBB468088FD141A0270F6B55F49D3FAEE2DA
NotAfter    : 03.10.2026 12:24:21

The service account gets Read on the private key (certlm.msc, Manage Private Keys), then the thumbprint goes into the registry and the instance restarts:

Set-ItemProperty $reg -Name Certificate -Value "afb7bbb468088fd141a0270f6b55f49d3faee2da"
Restart-Service $svcName -Force
2026-10-03 11:47:59.910 spid17s The certificate [Cert Hash(sha1) "AFB7BBB468088FD141A0270F6B55F49D3FAEE2DA"] was successfully loaded for encryption.

The test script opens three connections, one per client behaviour. I set Pooling=False because with a pool, Open() would hand back an existing connection and prove nothing.

$srv = "tcp:sqlagvm1.lto.local\TESTLB"
$cas = [ordered]@{
  "Encrypt + validation" = "Encrypt=True;TrustServerCertificate=False"
  "Encrypt + trust"      = "Encrypt=True;TrustServerCertificate=True"
  "Without encryption"   = "Encrypt=False"
}
"--- $(Get-Date -Format HH:mm:ss) ---"
foreach ($c in $cas.GetEnumerator()) {
  $cn = New-Object System.Data.SqlClient.SqlConnection("Server=$srv;Integrated Security=True;Pooling=False;$($c.Value)")
  try { $cn.Open(); "$($c.Key) : OK" }
  catch { "$($c.Key) : FAILED - $($_.Exception.Message)" }
  finally { $cn.Close() }
}
--- 11:48:30 ---
Encrypt + validation : OK
Encrypt + trust : OK
Without encryption : OK

Two more things before the expiry. I opened one validated connection and kept it:

$keep = New-Object System.Data.SqlClient.SqlConnection("Server=$srv;Integrated Security=True;Pooling=False;Encrypt=True;TrustServerCertificate=False")
$keep.Open()

And around 11:50 I pointed the registry back to the long-lived certificate, without restarting:

Set-ItemProperty $reg -Name Certificate -Value "051d1727dc7c0a68ec3b6aacaebdb6175b277635"

The script still returned three OKs, which is expected: the instance keeps presenting what it loaded at 11:47:59. The registry is read at startup only.

After 12:24:21

Forty minutes after the expiry, in the PowerShell window that had been running the script since 11:48, I ran the same 3 checks as before:

--- 13:04:45 ---
Encrypt + validation : OK
Encrypt + trust : OK
Without encryption : OK

The connection opened before the expiry was still alive too, which at least proved the instance had not restarted in the meantime:

$cmd = $keep.CreateCommand(); $cmd.CommandText = "SELECT GETDATE()"; $cmd.ExecuteScalar()

Saturday, 3 October 2026 13:05:05

Is the driver ignoring the dates, or is this process spared a new validation? A second driver and a second process answer that.

sqlcmd with -N asks for encryption, and without -C it validates the certificate:

C:\>sqlcmd -S "tcp:sqlagvm1.lto.local\TESTLB" -E -N -Q "SELECT 1"
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : SSL Provider: The received certificate has expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Client unable to establish connection.

Then the original script, unchanged, in a new PowerShell window:

--- 13:15:33 ---
Encrypt + validation : FAILED - Exception calling "Open" with "0" argument(s): "A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The received certificate has expired.)"
Encrypt + trust : OK

So System.Data.SqlClient does check the dates. It fails in a new process and succeeds in the old one, at the same moment, against the same expired certificate.

ConnectionResult after expiryAlready open before the expirykeeps workingNew, TrustServerCertificate=TrueOKNew, validated, from a process started after the expiryfails: The received certificate has expiredNew, validated, from a process that had connected before the expiryOK (but for how long?)

In the last line, the old process never receives the certificate again, so it has nothing to validate.

Looking at the TLS session cache with Wireshark

TLS 1.2 has two handshake modes: RFC 5246, section 7.3 describes the full one, where the server sends its Certificate, and the abbreviated one, where the client puts the Session ID of an earlier session in its ClientHello, the server finds it in its session cache, answers with the same ID, and both sides go straight to ChangeCipherSpec and Finished. No certificate is sent in an abbreviated handshake, so there is nothing for the client to validate.

The full handshake, where the server sends its certificate:

And the abbreviated one, used when a session is resumed:

Unfortunately, Windows has no command to list its TLS session cache. What can be observed is the handshake itself. I had to restart the VM before capturing, so the captures below were taken with the valid certificate back in place. Therefore, they show the mechanism but not the expired certificate.

The setup in Wireshark, on the server:

  • capture on Adapter for loopback traffic capture, since client and server are the same machine
  • find the instance port in the error log (Server is listening on [ 'any' <ipv4> 55203])
  • Decode As… TDS on that server port, because SQL Server wraps the TLS handshake inside TDS pre-login packets and a named instance does not listen on 1433
  • display filter tls.handshake

One new PowerShell process, the same validated connection opened twice:

Packets 23 to 29 are a full handshake: Server Hello, Certificate, Server Key Exchange, Server Hello Done, 1941 bytes from the server. Packets 52 to 56 are the second connection: Server Hello, Change Cipher Spec, Encrypted Handshake Message, 193 bytes, and no Certificate. The second Client Hello is also 32 bytes larger than the first once the IPv6 and IPv4 headers are accounted for, which is the size of a Session ID.

Now two different PowerShell processes, one connection each, seven seconds apart:

Two full handshakes, two Certificate messages, two identical 252-byte Client Hello. The second process did not benefit from the session the first one had just established.

This is the key of these tests: with SQLClient, a process that validated the certificate once resumes its session on later connections, and the certificate is never looked at again. A new process starts with an empty cache, receives the certificate, checks the dates and refuses.

How long does it last? The client cache lifetime is the ClientCacheTime value under HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL, in milliseconds. It does not exist by default, and the documented default is 10 hours. On my machine:

Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL" |
  Select-Object ClientCacheTime, ServerCacheTime

ClientCacheTime ServerCacheTime
--------------- ---------------

Both empty, so the defaults (10 hours) apply.

To check that this setting really is the one behind the behaviour, I set it to 0, which the documentation says turns the client cache off:

$sch = "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL"
New-ItemProperty $sch -Name ClientCacheTime -PropertyType DWord -Value 0 -Force

Without a restart, nothing changed: the second connection of a new process was still resumed. After a restart of the machine, the same two connections from one PowerShell process with 10 seconds interval:

Two full handshakes and two Certificate messages, where the same test had shown a resumption before. The value is read at boot, and it does control the cache the SQL Server drivers go through. With the cache off, every new connection receives the certificate again and validates it.

Following these tests, I proposed a clarification to the Microsoft documentation. Microsoft reproduced the behavior, scoped it to the drivers it applies to, and updated the Expired certificates section of Certificate requirements for SQL Server.

Renewing the certificate in SQL Server

The test answers the practical question as well. I had pointed the registry to the long-lived certificate at 11:50 and left it. When the VM restarted:

2026-10-03 13:24:35.010 spid17s The certificate [Cert Hash(sha1) "051D1727DC7C0A68EC3B6AACAEBDB6175B277635"] was successfully loaded for encryption.
--- 13:25:01 ---
Encrypt + validation : OK
Encrypt + trust : OK
Without encryption : OK

Everything can be prepared online, and the restart does the switch.

StepInterruptionRequest the new certificate and put it in the Local Computer storenoneGrant the service account Read on its private keynoneWrite the new thumbprint to SuperSocketNetLib\CertificatenoneRestart the SQL Server serviceyesCheck the thumbprint in the error lognone

Three points to keep in mind as well for this process to run without any errors :

  • The private key permission. The documentation warns that without read permission for the service account the restart can fail.
  • The names. The Subject Alternative Name must hold every name clients connect to. In an availability group that means the host name and FQDN of the replica and the listener names, on each replica’s certificate.
  • The deadline. The restart has to happen before the old certificate expires.

Keep the old certificate in the store until the new thumbprint shows up in the error log because if you need to rollback, just set the old thumbprint back in the registry.

What to take from this

SQL Server loads its TLS certificate at startup and presents it until the next restart. A renewal is therefore three online steps (the store, the private key permission, the thumbprint) and one restart, which has to be done before the old certificate expires.

But missing the timing before expiration doesn’t always make clients connexion to be refused. Indeed, the clients that validate the certificate do fail, but not together: open connections survive, a process that connected before the expiry keeps resuming its TLS session without ever seeing the certificate again, for up to 10 hours by default on Windows, and a process started afterwards fails on its first connection.

None of this is something you want to repeat by hand on every instance, several times a year. My colleague Nathan Courtine scripts the whole sequence in PowerShell in Automate encryption-in-transit for SQL Server: find the certificate in the store, grant the service account Read on its private key, write the thumbprint to the registry, restart, and check that the connection is encrypted. His post covers the first deployment, and a renewal goes through the same steps with a new certificate.

The post SQL Server: what is really happening when a TLS certificate expires? appeared first on dbi services Blog.

Oracle 12c support in GoldenGate 26.4

Yann Neuhaus - Mon, 2026-11-23 01:22

While reading the certification matrix of GoldenGate 26ai, I noticed that it lists one 12c version for 26ai: 12.1.0.2. It appears in the row of the latest October 2026 minor release, 23.26.4.0.0. Until then, GoldenGate 26ai only supported 19c and later versions, so 12.1.0.2 support is a huge change for customers who are still running under old Oracle database versions, and struggle to upgrade to 19c.

In this blog, I give you what a standard 12.1.0.2 home needs before a GoldenGate 26ai extract can capture from it.

Certification matrix for 12c

Among the Oracle Database data stores, there is only one row for 26ai that lists a 12c version:

Data store           Versions             Minor version   Architecture    Platform       Operating systems
Oracle AI Database   12.1.0.2, 19c, 21c   23.26.4.0.0     Microservices   Linux x86-64   Oracle Linux 8, Oracle Linux 9, RHEL 8, RHEL 9

Additional information gives Supports Local and Remote, Capture and Delivery. The row of 23.26.3.0.3 lists 19c, 21c, 26ai only. As a reminder, 12c was also supported in GoldenGate 19c and 21c:

Data store        Versions                                       Minor version   Operating systems
Oracle Database   11.2.0.4, 12.1.0.2, 19c, 21c                   21.3.0.0.0      Oracle Linux 7, Oracle Linux 8, RHEL 7, RHEL 8
Oracle Database   11.2.0.4+; 12.1.0.2+; 12.2.0.1+; 18c; 19c      19.1.0.0.0      Oracle Linux 7, RHEL 7

One note about the documentation, which is now outdated: the FAQ of GoldenGate 26ai states that GoldenGate 26ai supports Oracle databases from 19c to 26ai+. The support note PNEWS3025 mentions 12.x only for migration, so it’s unclear at the moment whether this is a real support or just a migration support.

Test setup

The test uses a base 12.1.0.2.0 Oracle home, with no bundle patch:

  • Source database: Oracle Database 12.1.0.2.0 for Linux x86-64 on Oracle Linux 7.9, non-CDB, in ARCHIVELOG mode, with force logging and minimal supplemental logging.
  • OPatch: 12.2.0.1.55 replaces the OPatch of the home.
  • GoldenGate: three Microservices Architecture deployments, 23.26.4.0.2 and 23.26.3.0.3 (26ai) and 23.10.2.2510 (23ai), to check if 26.4 is really mandatory for 12c support.
  • Table and extract: APP_DB12.TEST_TABLE with ADD TRANDATA, and an integrated extract.
Base home: ORA-01031 when registering the extract

GoldenGate 26ai no longer allows classic capture with Oracle databases, so integrated extract is the only Oracle capture available. It registers with the database through DBMS_XSTREAM_GG, which makes the patch below mandatory.

The connection works and ADD TRANDATA works. Creating the extract fails during the registration, on all three releases:

Integrated Extract added.
Cannot register or unregister Extract group EXT26 because of the following SQL error: Error 1031 on OCI call [ORA] - ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_XSTREAM_GG_INTERNAL", line 258
ORA-06512: at "SYS.DBMS_XSTREAM_GG", line 93
ORA-06512: at "SYS.DBMS_XSTREAM_GG", line 124
ORA-06512: at line 1
Extract group EXT26 deleted.

Although it looks like a privilege issue, it is not. OGGADMIN has the DBA role and the GoldenGate administrator privilege. The Oracle Support note KB933584 explains the cause:

In older Oracle Database versions, including 11g and 12c, the DBMS_XSTREAM_GG functions restrict access to a hard-coded list of process names, such as ggsci%. Applying patch 20448066 resolves the issue which includes the SCA processes adminsrvr, distsrvr, and distcoll from Microservices architecture.

Patch 20448066 for 12.1.0.2.0

MOS offers 20448066 in one build per release level:

$ opatch apply -silent
Backing up files...
Applying interim patch '20448066' to OH '/u01/app/oracle/product/12.1.0/dbhome_1'
Patching component oracle.rdbms, 12.1.0.2.0...
Patch 20448066 successfully applied.
OPatch succeeded.

After the restart, the same REST call works on all three releases:

Integrated Extract added.
Extract group EXT26 successfully registered with database at SCN 1686619.
Parameter file EXT26.prm passed validity check.
EXTTRAIL added.

The report of the extract shows that GoldenGate reads the database as a 12.1.0.2 source:

INFO    OGG-06618  Database DB12 Platform: Linux x86 64-bit.
INFO    OGG-02089  Source redo compatibility version is: 12.1.0.2.0.
Capture on three releases

I tested a few DML statements on the source table, followed by a switch of the redo log:

INSERT INTO app_db12.test_table VALUES (401, '12c patched A');
INSERT INTO app_db12.test_table VALUES (402, '12c patched B');
COMMIT;
UPDATE app_db12.test_table SET data = '12c patched B updated' WHERE id = 402;
DELETE FROM app_db12.test_table WHERE id = 401;
COMMIT;
ALTER SYSTEM SWITCH LOGFILE;

These are the relevant lines of the logdump count output on 23.26.4.0.2:

Logdump 6709 >LogTrail .../db12u/h1000000000 has 7 records
Delete                            1
Insert                            2
GGSPKUpdate                       1

On 23.26.3.0.3, with the same statements and new ids:

Logdump 6727 >LogTrail .../db12x/h1000000000 has 7 records
Delete                            1
Insert                            2
GGSPKUpdate                       1

And on 23.10.2.2510, with the same statements:

Logdump 6712 >LogTrail .../db12t/h1000000000 has 7 records
Delete                            1
Insert                            2
GGSPKUpdate                       1

Every change reached the trail on all three releases. The extract did not abend with OGG-02912, the error raised when the database lacks the dictionary attributes that the default trail format needs.

12.1.0.2 does not need a second patch

I will publish soon about GoldenGate support for 11g extraction, where another patch is needed. With 12.1.0.2, only one interim patch is installed in the home, and the extract report shows that integrated capture attached and read the dictionary without error.

INFO    OGG-02068  Integrated capture successfully attached to logmining server OGG$CAP_EXT26 using OGGCapture API.
INFO    OGG-02089  Source redo compatibility version is: 12.1.0.2.0.
INFO    OGG-02086  Integrated Dictionary will be used.

The Oracle Support note KB868419, “12.1.0.2 Patch Set – List of Bug Fixes by Problem Type”, lists the fix in the patch set itself:

17030189   Logminer GG Dictionary Support: Missing Attributes
Replicat on 12.1.0.2

The matrix row mentions “Capture and Delivery”, so a replicat on 12.1.0.2 is inside the certified scope. While testing, I found that every replicat type worked, except parallel integrated:

INFO    OGG-02528  Replicat group R12A successfully registered with database as inbound server OGG$R12A.
INFO    OGG-02530  Integrated replicat successfully attached to inbound server OGG$R12A.
ERROR   OGG-06062  Integrated Parallel Replicat not supported for this DB version.

Please note that patch 20448066 is not needed to apply changes, only to capture them.

Matrix and test side by side 12.1.0.2.0 home23.10.2.251023.26.3.0.323.26.4.0.2BaseORA-01031ORA-01031ORA-01031With 20448066capturescapturescaptures

The matrix lists 12.1.0.2 for 23.26.4.0.0 only, but 23.26.3.0.3 and 23.10.2.2510 also allow this capture. I did not find anything in the GoldenGate 26.4 release justifying the official support.

Summary
  • Certification matrix: GoldenGate 26ai matrix lists 12.1.0.2 as supported, starting with 23.26.4.0.0 (October 2026 release).
  • Base home: it fails with ORA-01031 at the registration of the extract.
  • Integrated extract only: 26ai has no classic extract, so patch 20448066 is mandatory.
  • No second patch: 17030189 is part of the 12.1.0.2 patch set, so OGG-02912 does not occur.
  • Replicat: classic, integrated and parallel non-integrated replicats apply to 12.1.0.2, with or without the patch. Parallel integrated replicat abends with OGG-06062.
  • Certified row and capability: 23.26.3.0.3 and 23.10.2.2510 capture from 12.1.0.2 as well, but do not officially support it.

The post Oracle 12c support in GoldenGate 26.4 appeared first on dbi services Blog.

Native OEM MCP Server or OEM AI Assistant?

Yann Neuhaus - Fri, 2026-11-20 11:44

I have been recently writing several posts about AI integration in Oracle Enterprise Manager. Let’s compare both solutions now: Native OEM MCP Server and OEM Oracle AI Database Assistant using OCI Generative AI (LLM).

Environment test

For the MCP Server AI Client, I will use Visual Code with Codex plugin configured with native OEM MCP Server. If you need more information how to configure it, I would recommend you to read my previous articles.

We will use following Markdown file to go through several prompts.

maw@dbi-servicess-macbook-pro-2 AI-OEM-demo % cat demo-prompts.md
# OEM MCP Demo

## Prompt 1
List MCP tools

## Prompt 2
Show all monitored Oracle databases

## Prompt 3
with status

## Prompt 4
Show databases with the highest Average Active Sessions

## Prompt 5
which tools was used

## Prompt 6
use another MCP tool

## Prompt 7
get last data samples

## Prompt 8
connect directly to the instance to get real time values

## Prompt 9
show oracle databases by tablespace allocated space in MB

## Prompt 10
without temps

## Prompt 11
without undo

## Prompt 12
Show critical alerts for Oracle database targets

## Prompt 13
Show active incident

## Prompt 14
List existing blackout for cdb10c

## Prompt 15
yes 19c

## Prompt 16
Create a blackout for cdb19c database

## Prompt 17
now for 1 hour

## Prompt 18
Use OEM REST API directly without creating a script file

## Prompt 19
replace isIncludeMembers with includeMembers

## Prompt 20
list blackout for cdb19c

## Prompt 21
Stop and delete blackout for cdb19c

## Prompt 22
list blackout for cdb19c

And I will provide following rules to AI:

maw@dbi-servicess-macbook-pro-2 AI-OEM-demo % cat demo-rules.txt
Read the attached demo_prompts.md file.
Execute each prompt sequentially, in the order specified.

Rules:
1. Execute only one prompt at a time.
2. Wait until the current prompt has completely finished, including all MCP tool calls.
3. After each prompt, stop and wait for me to type "next" before executing the following prompt.
4. Display the result of each prompt before continuing.
5. Do not skip or combine prompts.
6. Continue automatically until all prompts have been executed.
Let’s start the test! Initialize AI client

Let’s provide the Markdown file to codex, and explain it the rule.

Start Oracle AI Database Assistant Prompt 1 – List MCP tools

The first prompt is to list available MCP Server tools. I will only run it on Codex as it concerns only the MCP Server. The AI Assistant will not understand anything about this request. These are the 113 available tools that will be used by the MCP server to reply to my prompts, getting the information from the OMR database. For example : ExecuteSQL, ListBlackoutTargets, ListTargets, …

Prompt 2 – Show all monitored Oracle databases

From codex, we can see that the MCP have used the ListTargets tool to extract all monitored Oracle Databases.

From the AI Assistant, I can get following reply.

Prompt 3 – with status

AI Assistant provided also Target Status. Let’s ask the same through the MCP server.

We have exactly the same answer.

Prompt 4 – Show databases with the highest Average Active Sessions

I went to the next prompt with codex, and could see that it used several calls on 2 tools from the MCP server: ListTargetMetricGroups and GetLatestData.

On the AI assistant side, it took more time but I could get following feedback.

Both tools provided the same answer.

Prompt 5 – which tools was used

On the codex session, I could ask which tool was used.

And I will get the tool name and explanations. There is no need to run the same on the AI Assistant, as it is not a MCP server.

Prompt 6 – use another MCP tool

For the MCP server connection only, I could ask it to use another tool.

Prompt 7 – get last data samples

And even ask it to get last data samples.

Prompt that will, of course, not be understood by the AI Assistant.

As the AI Assistant could not understand the prompt, it will still give the possibility to choose which target type and metric type you want to request.

Prompt 8 – connect directly to the instance to get real time values

Let’s now try to ask AI, through our codex session, to connect directly to the instance and get really time value. Of course for this, it will look into the existing named credentials to authenticate on the target, and will request me authorization to run the needed sqlplus command. I configured my codex to request approval for all commands to be run, as I do not want to let it do whatever itself. The AI Client could, for example, decide itself to create on my Mac locally python script file, which I do not want.

And I got following answer.

Of course, there is no session connection currently. I made the necessary to get some load on one of the PDB where we have named credential. And asked to execute prompt 8 again.

A previous run with codex showed a better formatting one. I also wanted to share it with you.

AI Assistant on its side, can not use named credentials to get real time value.

Prompt 9 – show oracle databases by tablespace allocated space in MB

Using MCP Server. We still can expand and see which tools have been used. Here ListTargetMetricGroups and ExecuteSQL.

From the AI Assistant side, we have the following.

Prompt 10 – without temps

We can only ask this going through the MCP server, as the internal LLM used by the AI Assistant would not have that intelligence to understand our request.

Prompt 11 – without undo

And same to ignore the undo.

Prompt 12 – Show critical alerts for Oracle database targets

Let’s first crash one of the PDB.

[oracle@oradb19c ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Fri Nov 20 15:18:58 2026
Version 19.32.0.0.0

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


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.32.0.0.0

SQL> show pdbs

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

SQL> alter pluggable database PDB19C close abort;

Pluggable database altered.

SQL> show pdbs

    CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
	 2 PDB$SEED			  READ ONLY  NO
	 3 PDB19C			  MOUNTED
SQL>

And I then checked the critical alerts using our AI client with the MCP server.

And same can be seen from the AI Assistant.

Prompt 13 – Show active incident

Using the MCP server, we can see:

Using the AI Assistant, we can see.

Let’s restart the DPB.

SQL> alter pluggable database PDB19C open;

Pluggable database altered.

SQL> show pdbs

    CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
	 2 PDB$SEED			  READ ONLY  NO
	 3 PDB19C			  READ WRITE NO
SQL>
Prompt 14 – List existing blackout for cdb10c

I would like now to list existing blackout for cdb10c, which does not exist. I intentionally did this to see how the AI Client reacts.

It informed on none existing target called cdb10c and suggested it would be cdb19c.

Prompt 15 – yes 19c

With the MCP server, we got an answer.

By the way the AI Assistant was not able to get my query and list blackouts.

And in any case, the AI Assistant does not have any suggested prompt for blackouts.

Prompt 16 – Create a blackout for cdb19c database

So for now we can only use the MCP server, as the AI Assistant has no possibility to interact with blackouts.

The AI Client using the MCP server will ask me for a duration, which makes more than sense.

Prompt 17 – now for 1 hour

The MCP server is not able to do it because it would need emcli which is not installed on my Mac.

Prompt 18 – Use OEM REST API directly without creating a script file

I will request it to use oem rest api without creating a script.

It will use python on the rest API.

And it will not manage to create the blackout due to an error syntax it made.

Prompt 19 – replace isIncludeMembers with includeMembers

I will ask it to replace the correct value in his json query.

And it manage to create the blackout.

Prompt 20 – list blackout for cdb19c

And we can see the blackout.

Prompt 21 – Stop and delete blackout for cdb19c

Using codex I asked to stop and delete the blackout.

Prompt 22 – list blackout for cdb19c

Now I can list again existing blackout for cdb19c, and see none is existing.

We can see that to list the blackout, ListBlackoutsForTarget MCP tool has been used.

Lessons Learned from the test

From the test we can conclude on following pros/cons for each of the 2 solutions.

Oracle AI Database Assistant Lessons Learned with OEM LLM

This solution has following pros:

  • We have an unique interface, no need to browse multiple EM pages.
  • If no result was found, the assistant will suggest box to select any possible target type and metrics.
  • The tool can retrieve all data stored in the OMR.
  • The tool will save time when monitoring and maintaining critical systems.

This solution also has following cons:

  • The assistant is really language wording dependent. It is not very efficient to understand the human language. Best would be to use proposed prompt.
  • It is limited to get data stored in the OMR only. There is no way to do direct database connection and interaction using named credentials to get data from the database in real time.
  • It is also not possible to interact with blackouts (list, create, or delete).
  • We can get unclear response when no data found.
  • Stability and performance are also not so good.
OEM Native MCP Lessons Learned

The integrated OEM MCP solution is much better.

This solution has following pros:

  • Flexibility, stability and versatile.
  • Broader range of available tools.
  • Improved natural language understanding (in my case I was using OpenAI LLM).
  • It can access target database directly using OEM named credentials.
  • Extensibility through OEM Rest APIs are possible

This solution would also have following cons:

  • MCP client needs to be configured (VS code / codex).
  • Requires an AI provider account.
  • Additional MCP server setup (non-native OEM).
  • MCP server monitoring (non-native OEM).
To wrap up…

I would definitively configure and use an AI client with a MCP server, as this solution provides much more advantages, flexibilities, possibilities and performance. Of course, the tests on the Oracle AI Database Assistant were made using Oracle native LLM (OCI Generative AI), and might be more efficient if using a BYO LLM. As next steps, I will configure the AI Assistant using OpenAI LLM and see if the tool behaves better. Moreover, the intention of the tests with codex was to see and show the possibilities and see how it works. Using it in this configuration only, will not bring much more as going through the OEM webpage. But where the MCP server will be powerful is when we will be using it with skills in order to, for example, reuse workflow instructions.

The post Native OEM MCP Server or OEM AI Assistant? appeared first on dbi services Blog.

DOAG Nürenberg Closing

Yann Neuhaus - Fri, 2026-11-20 09:00

This year’s DOAG Konferenz is a special one: it is the last edition in Nürnberg, after 15 years in this city. I was there for most of these editions, and it really feels like the end of a chapter.

15 years of stories, meetings and sharing

For me, DOAG in Nürnberg was never just a conference. It is three days of sessions, long discussions in the corridors, evenings that end later than planned, and a lot of sharing with people who love databases as much as I do.

Over all these years I met speakers, organizers, partners, customers and many colleagues who became friends. Some of these stories we still tell today, and they will stay in our heads forever.

There is also an expression that grew over the years, one that everybody at dbi services knows, and many of my friends outside the company too: “What happens at DOAG, stays at DOAG.” So you can imagine that these 15 years of the DOAG Nürnberg hold a lot of secrets that will stay hidden forever now!

So first of all: a big thank you to everyone who was part of it. To the DOAG team for the organization, to all the speakers for sharing their knowledge, and to everyone who stopped by for a chat, a beer or a good discussion.

But DOAG is not only about memories. It is also the place where I take the pulse of our industry, and this year two topics caught my attention more than others: agentic AI and security.

Agentic AI: a new way to build applications

No surprise, AI is everywhere this year. But what caught my attention most is the development side, and the shift toward what is now called agentic development.

The idea is not just to ask an AI to write the application for you. It is to build the application differently: with several agents, each one responsible for its own task, instead of one big centralized code base. One agent handles a function, another one checks or tests, another one integrates.

This is a real change of concept, not just a faster way to write the same code. Done well, it makes teams more efficient and much quicker when it comes to adding new features. I am convinced we will see a lot more of this in our projects in the coming months.

If you look at the chart below, agentic AI is only at the beginning of its maturity. In the coming year, I think it will be one of the most exciting topics in our industry.

Security: less present than I expected

The other big topic was security, and honestly I expected it to take much more space. There was only one security stream.

That surprises me. We are in the middle of a wave of CVE alerts, and everywhere on social networks people talk about the rise of AI-driven attacks. Still, in the rooms, people do not seem much more concerned than before.

On my side, I tried to do my part. I anticipated this topic and presented a session about all the entry points into a database, and how to close each of them so that hackers cannot reach the data.

Six months is a long time in the AI era

I think there is a simple explanation. The abstracts for this conference were submitted about six months ago. Six months ago, AI was not yet where it is today in terms of attack capabilities.

With AI, everything moves so fast that abstracts written six months in advance no longer reflect the reality of the market. If the call for papers had closed one month ago, I am sure security would have been much more present on the agenda.

So my prediction: next year, security will come back to the table in a big way, because right now it is critical.

Should we still publish every fixed vulnerability?

One thought keeps coming back to me. The number of published CVEs is growing a lot, for Oracle and for PostgreSQL. Each new CVE also gives material to AI to attack systems that are not patched yet. And in my experience, most systems are not patched yet.

So I ask myself: should we really publish every fixed vulnerability? Each CVE is clear and reliable information for hackers and their AI tools. It makes their job much easier.

I don’t have the answer. Transparency has always been good for security. But with AI, the balance has changed, and I think our industry needs to talk about it.

Goodbye DOAG Nürnberg, see you in Munich

Nürnberg, thank you for these 15 years. I leave with a lot of memories, a few photos (see below) and the same motivation as the first time.

I wish the DOAG team all the best for this new adventure. Next year, the conference moves to the INFINITY in Munich, from 9 to 11 November 2027. I am already looking forward to it, and I am sure the community spirit will come with us.

https://anwenderkonferenz.doag.org/en/home/

The post DOAG Nürenberg Closing appeared first on dbi services Blog.

MongoDB DMK 2.7.0 : point-in-time recovery, 9.0 support and auto-upgrade

Yann Neuhaus - Fri, 2026-11-20 09:00

In this blog, I will present the new features introduced with the latest release (2.7.0) of the MongoDB DMK.

The DMK is a set of standardized tools that aims at easing the work of DBAs. It embeds the best practices of dbi in common scripts across all the database servers of an organization.

dbi services provides the DMK (Database Management Kit) to its customers for multiple technologies: Oracle, Postgres, MongoDB, etc. This toolkit is provided free of charge to all clients who work with dbi services on a consulting project.

New features of the MongoDB DMK in 2.7.0 Point-in-time recovery

PITR is the biggest addition of the release. It restores a whole instance, a database or a collection to a chosen moment, on a replica set.

  • dmk_oplog_backup.py, run frequently, archives the oplog in incremental slices between two full backups.
  • dmk_restore.py --pitr <timestamp> restores a backup and replays the archived oplog up to the target. Specify a custom starting full save with -s, or leave it out. DMK can also select the newest full-instance backup that reaches the target. It asks the user for confirmation (--yes accepts it).
  • --out-of-place recovers a database or a collection through a scratch mongod.
  • dmk_pitr_status.py shows the windows that can be recovered right now.

To restore a full instance to a specific point in time, just run the following command. Here, 150 orders were written, dmk_oplog_backup.py archived the oplog, and a deleteMany then emptied the collection. The target is just before the delete, and --yes accepts the backup that DMK selects:

$ dmk_restore.py -i mdbrs01 --pitr '2026-11-15T15:24:46' --yes
2026-11-15 15:24:53 | INFO | PITR target '2026-11-15T15:24:46' is 2026-11-15T15:24:46+00:00 = 2026-11-15T15:24:46+00:00 (1795101886:0) (exclusive).
2026-11-15 15:24:53 | INFO | No source given: selected the newest backup that reaches the target 2026-11-15T15:24:46+00:00 = 2026-11-15T15:24:46+00:00 (1795101886:0): '/u90/mongodb/backup/mdbrs01/backup_mdbrs01_20261115_152434'. Its dump ended at 2026-11-15T15:24:33+00:00 = 2026-11-15T15:24:33+00:00 (1795101873:101), the archived oplog covers up to 2026-11-15T15:24:51+00:00 = 2026-11-15T15:24:51+00:00 (1795101891:1).
2026-11-15 15:24:53 | INFO | --yes given: restoring from this backup without asking.
2026-11-15 15:24:53 | INFO | Whole-instance PITR to 2026-11-15T15:24:46+00:00 = 2026-11-15T15:24:46+00:00 (1795101886:0), beyond the oplog the base backup captured: replaying the archived oplog slices in a scratch instance (the target instance is not replayed into).
2026-11-15 15:24:54 | INFO | Restoring the base backup '/u90/mongodb/backup/mdbrs01/backup_mdbrs01_20261115_152434' into the scratch instance (replaying its own captured oplog) ...
2026-11-15 15:24:54 | INFO | Replaying archived oplog slice 1/2 ('oplog_slice_20261115_152439_899500.archive.gz') ...
2026-11-15 15:24:54 | INFO | Replaying archived oplog slice 2/2 ('oplog_slice_20261115_152450_825511.archive.gz') ...
2026-11-15 15:24:54 | INFO | Scratch instance is now at 2026-11-15T15:24:46+00:00 = 2026-11-15T15:24:46+00:00 (1795101886:0).
2026-11-15 15:24:55 | INFO | Loading the recovered instance into 'mdbrs01' ...
[...]
2026-11-15 15:24:56 | INFO | Restore summary: 150 document(s) restored, 0 failed.
2026-11-15 15:24:56 | INFO | Restore completed successfully.
2026-11-15 15:24:56 | INFO | Whole-instance PITR completed successfully.

The orders are back: shop.orders has 150 documents again. If no backup can be found, or if there is no archived slice to reach the target, the script fails without attempting the restore.

Upgrade and downgrade of MongoDB

dmk_upgrade.py and dmk_downgrade.py patch or upgrade an instance, a replica set or a sharded cluster to another MongoDB version. They stop each member, point it to the new home, start it and check the version. The previous home is put back if the new binaries do not start. --dry-run shows the plan and changes nothing. The feature compatibility version changes only with --update-fcv. dmk_upgrade_analyzer.py checks beforehand what the new version changes for the data and the configuration. --copy-home copies the home to the other servers of a deployment. A change that is interrupted, or a mongod that does not start, leaves the member on its previous home.

--status shows every member with its role, running version, home and feature compatibility version. It also shows what is still pending, without changing anything. --host-map gives the address of a host whose registered name does not resolve from where the command runs. A mongos registers its host name in config.mongos, and DMK reaches the members of the other hosts with ssh under the names registered in the deployment. If vmdmk is not known to the DNS or to /etc/hosts of the host where you run the command, ssh fails with Could not resolve hostname, and DMK tells you which name to map:

dmk_upgrade.py -i mdbxms1 --sharded-cluster --status --host-map vmdmk=10.0.0.10

The option is repeatable and applies to one command. To keep the mapping, put one name address line per host in $MONGO_BASE/etc/dmk_hosts.map (the option wins over the file). Only the host is mapped, the ports come from the deployment.

Dry run and status of a sharded cluster

The examples below run on a sharded cluster of 13 members, all on 8.0.28. It has three config servers (mdbcfg01 to mdbcfg03), three shards of three members each (mdbrs11 to mdbrs33) and one router (mdbmgs1). The command takes one instance of the local server, here the router. The dry run starts with the analysis, then prints the plan and the steps for every member:

$ dmk_upgrade.py -i mdbmgs1 --sharded-cluster --target-version 9.0.8 --dry-run
2026-11-15 15:26:08 | INFO | Instance 'mdbmgs1': current home '/u01/app/mongodb/product/8.0.28', target home '/u01/app/mongodb/product/9.0.8' (9.0.8, Community).
2026-11-15 15:26:11 | INFO | Running version: 8.0.28, FCV: n/a, role: MONGOS.
2026-11-15 15:26:19 | INFO | Topology: sharded, 13 member(s).
2026-11-15 15:26:19 | INFO |   mdb-db1:27017 (config csrs, PRIMARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db2:27017 (config csrs, SECONDARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db3:27017 (config csrs, SECONDARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db1:27018 (shard rs1, PRIMARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db2:27018 (shard rs1, SECONDARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db3:27018 (shard rs1, SECONDARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db1:27019 (shard rs2, PRIMARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db2:27019 (shard rs2, SECONDARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db3:27019 (shard rs2, SECONDARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db1:27020 (shard rs3, PRIMARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db2:27020 (shard rs3, SECONDARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-db3:27020 (shard rs3, SECONDARY, 8.0.28)
2026-11-15 15:26:19 | INFO |   mdb-mgs1:27017 (mongos mongos, MONGOS, 8.0.28)
2026-11-15 15:26:22 | INFO | Analysis of the upgrade from 8.0.28 to 9.0.8: 0 error(s), 0 warning(s), 4 information(s).
[...]
2026-11-15 15:26:22 | INFO | Plan:
2026-11-15 15:26:22 | INFO |   1. mdb-db2:27017 (config csrs, SECONDARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   2. mdb-db3:27017 (config csrs, SECONDARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   3. mdb-db1:27017 (config csrs, PRIMARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   4. mdb-db2:27018 (shard rs1, SECONDARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   5. mdb-db3:27018 (shard rs1, SECONDARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   6. mdb-db1:27018 (shard rs1, PRIMARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   7. mdb-db2:27019 (shard rs2, SECONDARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   8. mdb-db3:27019 (shard rs2, SECONDARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   9. mdb-db1:27019 (shard rs2, PRIMARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   10. mdb-db2:27020 (shard rs3, SECONDARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   11. mdb-db3:27020 (shard rs3, SECONDARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   12. mdb-db1:27020 (shard rs3, PRIMARY, 8.0.28)
2026-11-15 15:26:22 | INFO |   13. mdb-mgs1:27017 (mongos mongos, MONGOS, 8.0.28)
2026-11-15 15:26:22 | INFO |   FCV: raise to 9.0 afterwards (requires --update-fcv or --force-fcv-update)
2026-11-15 15:26:22 | INFO | [DRY-RUN] stop the balancer
2026-11-15 15:26:22 | INFO | --- mdb-db2:27017 (config csrs, SECONDARY, 8.0.28) ---
    | 2026-11-15 15:26:24 | INFO | [DRY-RUN] 1. stop 'mdbcfg02'
    | 2026-11-15 15:26:24 | INFO | [DRY-RUN] 2. point 'mdbcfg02' to '/u01/app/mongodb/product/9.0.8' (mongodb.lst, systemd unit)
    | 2026-11-15 15:26:24 | INFO | [DRY-RUN] 3. start 'mdbcfg02' and check it runs 9.0.8
    | 2026-11-15 15:26:24 | INFO | [DRY-RUN] 4. wait for the member to be SECONDARY and caught up
[...]
2026-11-15 15:26:27 | INFO | --- mdb-db1:27017 (config csrs, PRIMARY, 8.0.28) ---
    | 2026-11-15 15:26:29 | INFO | [DRY-RUN] 1. step down the primary and wait for another member to take over
    | 2026-11-15 15:26:29 | INFO | [DRY-RUN] 2. stop 'mdbcfg01'
[...]
2026-11-15 15:26:53 | INFO | The FCV was not changed. To change it, run on the mongos: db.adminCommand({"setFeatureCompatibilityVersion": "9.0", "confirm": true})
2026-11-15 15:26:53 | INFO | [DRY-RUN] start the balancer

The order is always the same: config servers, then each shard, then the routers. Inside a replica set, the secondaries come first and the primary last. The lines prefixed with | are the steps of one member. The analysis found no error and no warning, and the dry run changes nothing. Running the same command without --dry-run starts the upgrade. While it runs, --status can be run from another session. It shows where every member stands against the target. Here, the config servers and the first shard are on 9.0.8, the balancer is stopped, and one member of rs2 is being restarted, so DMK cannot read it:

$ dmk_upgrade.py -i mdbmgs1 --sharded-cluster --status --target-version 9.0.8
Sharded cluster, 13 member(s), FCV 8.0, balancer off
MEMBER          KIND    GROUP   ROLE       INSTANCE  RUNNING  HOME    FCV  NOTE
mdb-db1:27017   config  csrs    PRIMARY    mdbcfg01  9.0.8    9.0.8   8.0
mdb-db2:27017   config  csrs    SECONDARY  mdbcfg02  9.0.8    9.0.8   8.0
mdb-db3:27017   config  csrs    SECONDARY  mdbcfg03  9.0.8    9.0.8   8.0
mdb-db1:27018   shard   rs1     SECONDARY  mdbrs11   9.0.8    9.0.8   8.0
mdb-db2:27018   shard   rs1     PRIMARY    mdbrs12   9.0.8    9.0.8   8.0
mdb-db3:27018   shard   rs1     SECONDARY  mdbrs13   9.0.8    9.0.8   8.0
mdb-db1:27019   shard   rs2     PRIMARY    mdbrs21   8.0.28   8.0.28  8.0  not on target
mdb-db2:27019   shard   rs2     SECONDARY            8.0.28                unreadable: Command execution /u01/app/mongodb/product/8.0.28/bin/mongos, not on target
mdb-db3:27019   shard   rs2     SECONDARY  mdbrs23   8.0.28   8.0.28  8.0  not on target
mdb-db1:27020   shard   rs3     PRIMARY    mdbrs31   8.0.28   8.0.28  8.0  not on target
mdb-db2:27020   shard   rs3     SECONDARY  mdbrs32   8.0.28   8.0.28  8.0  not on target
mdb-db3:27020   shard   rs3     SECONDARY  mdbrs33   8.0.28   8.0.28  8.0  not on target
mdb-mgs1:27017  mongos  mongos  MONGOS     mdbmgs1   8.0.28   8.0.28       not on target
Target 9.0.8: 6 of 13 member(s) run it, FCV 8.0 -> 9.0 still to change.

When the upgrade ends, DMK starts the balancer again and leaves the feature compatibility version on 8.0 (because --update-fcv was not given).

Backup and restore
  • Sharded clusters. dmk_backup.py and dmk_restore.py accept a mongos, with the balancer stopped and the shard keys restored.
  • Single database or collection. Both scripts accept -d (--database), which limits the operation to one database. They also accept -c (--collection), which limits it to one collection and requires -d. dmk_backup.py was renamed from dmk_dbbackup.py, and the old name is kept as an alias.
  • Retention. dmk_backup_purge.py deletes the backups older than BACKUP_RETENTION_DAYS (default 14) and outside the BACKUP_RETENTION_COUNT (default 5) most recent. dmk_backup.py runs it after every successful backup unless --no-purge is passed.
  • Safer backups. A backup is written under a temporary name and renamed at the end, so a killed backup never looks valid. A lock prevents two operations on one instance from overlapping, and credentials are masked in the logs.
Other changes
  • dmk_create.py and dmk_ctl.py replace dmk_dbcreate.py and dmk_db_ctl.py, which stay as aliases. The aliases mgstart, mgstop and mgrestart call dmk_ctl.py, and --startup-report prints the warnings found at the start of the instance.
  • MongoDB 9.0 is supported, Community and Enterprise, on RHEL 8 and 9 and on Ubuntu 22.04.
  • The DMK administrator user can authenticate with an X.509 client certificate instead of a password.
  • dmk_create.py refuses invalid instance names, ports and templates before it creates anything.
  • dmk_status.py reports the live version and edition with buildInfo. It exits non-zero when an instance cannot be assessed.
  • Housekeeping TRUNC no longer deletes the newest lines of a file that is not valid UTF-8.
Upgrading from an earlier version of DMK

If you are upgrading from DMK 2.6.0, replace the DMK folder with the new one:

cd /u01/app/mongodb/local
mv dmk .dmk_old
unzip /path/to/dmk_mongodb-2.7.0.zip
dmk

Crontab entries or scripts that call dmk_dbbackup.py directly keep working: the old name is kept as an alias for dmk_backup.py. Anyone relying on point-in-time recovery should set up dmk_oplog_backup.py in cron before needing it. PITR beyond the oplog window of a single backup depends on it having already been archiving.

If you are upgrading from DMK 2.5.0 or earlier, read the release notes of DMK 2.6.0 first.

The post MongoDB DMK 2.7.0 : point-in-time recovery, 9.0 support and auto-upgrade appeared first on dbi services Blog.

Using Oracle Transparent Data Encryption with Multitenant Databases

Yann Neuhaus - Fri, 2026-11-20 07:57

With the increased risk of a cyberattacks, the protection of one of your most valuable asset’s, your data, is vital. Data within the Oracle database is generally the most vital and/or sensitive data within the company. The best way to start protecting that data is with Transparent Data Encryption (TDE).

Some of the benefits of using TDE are:

  • Helps address security and compliance needs
  • There is no need to change the applications that are accessing the database
  • Users and applications are not aware the data is encrypted
  • There is little downtime involved
  • Your data is safe, even if the media is stolen

TDE encrypts sensitive data stored in data files. To prevent unauthorized decryption, TDE stores the encryption keys in a keystore.

Secure PDB Using Transparent Database Encryption (TDE) Introduction

In this blog we will focus on how to encrypt the database when working with Pluggable databases (PDB) , containers (CDB) and wallets as the keystore.

Technical details

For this blog, we have the following setting:

  • OS : Oracle Linux 9.7
  • Oracle Database 26ai
  • Oracle Container Database : CDB26
  • Oracle Pluggable Database : PDB26
Task 1: Validate the starting state

We start off with an unencrypted database and will be validating that state in this session.

Run the sql :

set linesize 170;
column wrl_parameter format a50
column wrl_type heading 'Type' format a10
column status heading 'Status' format a30
column fully_backed_up heading 'Backed Up' format a10
column pdb_name heading 'PDB Name' format a10

 select b.name pdb_name,wrl_type,
wrl_parameter,
status,wallet_type,
keystore_mode,
fully_backed_up
from v$encryption_wallet a,v$containers b
where a.con_id = b.con_id(+);
exit;
Columns description
WRL_PARAMETER                  ---> Location of the wallet file
Status                         ---> Wallet status
                          NOT_AVAILABLE         --> No wallet created yet
                          OPEN_NO_MASTER_KEY    --> keystore has been been created and is open, but no master key set
                          OPEN                  --> Wallet open, and master key set

The output should be :

PDB Name   Type       WRL_PARAMETER                                      Status                         WALLET_TYPE          KEYSTORE Backed Up
---------- ---------- -------------------------------------------------- ------------------------------ -------------------- -------- ----------
CDB$ROOT   FILE       /u01/app/oracle/admin/CDB26/wallet                 NOT_AVAILABLE                  UNKNOWN              NONE     UNDEFINED
PDB$SEED   FILE                                                          NOT_AVAILABLE                  UNKNOWN              UNITED   UNDEFINED
PDB26      FILE                                                          NOT_AVAILABLE                  UNKNOWN              UNITED   UNDEFINED

You can see the default location of the wallet file. There is no wallet yet. At this point CDB26 does not know about a wallet or encryption

Look about encryption keys :

set feedback off
set linesize 150
set pagesize 50
set heading on
column pdb_name heading "PDB Name" format a15
column tablespace_name heading "Tablespace Name" format a30
column masterkeyid_base64 heading "Master Key ID" format a60
column encrypted heading "Encrypted" format a10
column status heading "Status" format a10
column encryptionalg heading "Encryption Alg" format a15

break on pdb_name skip 1

select pdb_name, 
       tablespace_name,encrypted,
       utl_raw.cast_to_varchar2( utl_encode.base64_encode('01'||substr(mkeyid,1,4)))
       || utl_raw.cast_to_varchar2( utl_encode.base64_encode(substr(mkeyid,5,length(mkeyid)))) masterkeyid_base64,
       status,
       encryptionalg
 FROM (select t.name tablespace_name,
              z.name pdb_name,
              t.con_id, encrypted,
              RAWTOHEX(x.mkid) mkeyid ,
              r.status status,
              r.encryptionalg encryptionalg 
        from v$tablespace t, 
             x$kcbtek x,
             v$containers z,
             cdb_tablespaces q,
             v$encrypted_tablespaces r 
        where t.ts#=x.ts# 
          and t.con_id=x.con_id 
          and t.con_id=z.con_id
          and t.con_id = q.con_id
          and t.con_id = r.con_id(+)
          and t.ts# = r.ts#(+)
          and t.name = q.tablespace_name)
order by pdb_name,tablespace_name;

exit;

The output should be :

PDB Name        Tablespace Name                Encrypted  Master Key ID                                                Status     Encryption Alg
--------------- ------------------------------ ---------- ------------------------------------------------------------ ---------- ---------------
CDB$ROOT        SYSAUX                         NO         ATThZEiYWUwngfMcKC8YYZI=
                SYSTEM                         NO         ATThZEiYWUwngfMcKC8YYZI=
                TEMP                           NO         ATThZEiYWUwngfMcKC8YYZI=
                UNDOTBS1                       NO         ATThZEiYWUwngfMcKC8YYZI=
                USERS                          NO         AQAAAAAAAAAAAAAAAAAAAAA=

PDB26           SYSAUX                         NO         AWun6yDayU+kn1iwkckN4DE=
                SYSTEM                         NO         AWun6yDayU+kn1iwkckN4DE=
                TEMP                           NO         AWun6yDayU+kn1iwkckN4DE=
                UNDOTBS1                       NO         AWun6yDayU+kn1iwkckN4DE=
                USERS                          NO         AQAAAAAAAAAAAAAAAAAAAAA=

Shows tablespaces associated with the database whether they are encrypted or not. If they are encrypted, the output show what is the master key use for encryption.

So actually, nothing is configured for Transparent Data Encryption in the CDB CDB26

Task 2: Backup

This backup operation takes about 5 minutes to complete, is optional, and may be skipped. The main reason for performing this task is simply so that you can re-run this lab multiple times if you so choose, or restart midway if you make a mistake.

rman target /
RMAN> backup database plus archivelog  delete input tag 'BEFORETDE';
Task 3: Create A Wallet

In this section we will create a wallet for the CDB CDB26.

First, we create the wallet directory:

 mkdir -p /u01/app/oracle/wallets/CDB26/tde

We need to perform the following:

  • Changes the wallet root parameter. Recommendation for 19c and above is to use the spfile parameter WALLET_ROOT
  • Bounce the database
  • Tells to the database to use a keystore file
  • Create it and open it
  • Create an autologin wallet (optional)
set verify off
prompt
prompt
prompt #####################################################################################
prompt #### set the WALLET_ROOT in the database to /u01/app/oracle/wallets/CDB26/wallet #### 
prompt #####################################################################################
alter system set WALLET_ROOT='/u01/app/oracle/wallets/CDB26' scope=spfile;
prompt
prompt ##############################################################################
prompt ####  bounce the database - WALLET_ROOT changes require a DB bounce       #### 
prompt ##############################################################################
startup force;
prompt ##############################################################################
prompt ####  set tde_configuration to use a file (vs OKV)                       #### 
prompt ##############################################################################
alter system set tde_configuration='KEYSTORE_CONFIGURATION=FILE' scope=both;
prompt 
prompt ##########################################################################
prompt ####   Create the united Keystore and open the keystore for the CDB ######
prompt ##########################################################################
prompt 
ADMINISTER KEY MANAGEMENT CREATE KEYSTORE '/u01/app/oracle/wallets/CDB26/tde' IDENTIFIED BY "Oracle4TDE!";
ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY "Oracle4TDE!";
prompt 
prompt ###################################################
prompt ####   Open the Keystore  for PDB26 ###############
prompt ###################################################
prompt 
prompt 
alter session set container=PDB26;
ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY "Oracle4TDE!";
alter session set container=CDB$ROOT;
prompt 
prompt ##########################################################################
prompt ####   Convert the united keystore to autologin ##########################
prompt ##########################################################################
prompt 
ADMINISTER KEY MANAGEMENT CREATE AUTO_LOGIN KEYSTORE FROM KEYSTORE '/u01/app/oracle/wallets/CDB26/tde' IDENTIFIED BY "Oracle4TDE!";

The output should be like:

SQL> prompt alter system set WALLET='/u01/app/oracle/wallets/CDB26' scope=spfile;
alter system set WALLET='/u01/app/oracle/wallets/CDB26' scope=spfile
SQL> prompt
SQL> alter system set WALLET_ROOT='/u01/app/oracle/wallets/CDB26' scope=spfile;

System altered.

SQL> startup force;

ORACLE instance started.

Total System Global Area 1607700512 bytes
Fixed Size                  5009440 bytes
Variable Size             503316480 bytes
Database Buffers         1090519040 bytes
Redo Buffers                8855552 bytes
Database mounted.
Database opened.
SQL>
SQL> ##############################################################################
SQL> ####  set tde_configuration to use a file (vs OKV)                  ####
SQL> ##############################################################################
SQL>
SQL> alter system set tde_configuration='KEYSTORE_CONFIGURATION=FILE' scope=both
SQL>
SQL>
System altered.

SQL>
SQL> ##########################################################################
SQL> ####   Create the united Keystore and open the keystore for the CDB ######
SQL> ##########################################################################
SQL>
SQL> ADMINISTER KEY MANAGEMENT CREATE KEYSTORE '/u01/app/oracle/wallets/CDB26/tde' IDENTIFIED BY "Oracle4TDE!"
SQL> ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY "Oracle4TDE!"
SQL>
SQL>
keystore altered.

SQL>
keystore altered.

SQL>
SQL>
SQL> ###################################################
SQL> ####   Open the Keystore  for PDB26 ###############
SQL> ###################################################
SQL>
SQL> ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY "Oracle4TDE!"
SQL> alter session set container=PDB26
SQL>
SQL>
Session altered.

SQL>
keystore altered.

SQL>
Session altered.

SQL> ##########################################################################
SQL> ####   Convert the united keystore to autologin ##########################
SQL> ##########################################################################
SQL>
SQL> ADMINISTER KEY MANAGEMENT CREATE AUTO_LOGIN KEYSTORE FROM KEYSTORE '/u01/app/oracle/wallets/CDB26/tde' IDENTIFIED BY "Oracle4TDE!"

keystore altered.

Keep the following in mind:

  • Changing the spfile parameter requires a database bounce.
  • Set the wallet root location when you have a maintenance window and set the key.
  • This allows you to go down the encryption path later.
  • They don’t have to be done together.
  • Plan for a bounce before you start the encryption process.
  • After the database comes back up from the bounce the following tasks are performed by the script:
    • Set tde configuration parameter. In this case it is set to file (other choice is Oracle Key Vault aka OKV). What we are telling the database is : in wallet root location, under the tde directory, I’m going to be using a wallet file

For the keystore the following tasks are performed in this step:

  • Give it a wallet file
  • Give it a password
  • Open it
  • Changing to PDB26
  • Using a autologin wallet

Note the 2 files in the directory

  • .p12 is the password file     
    • Cannot access the file without the password     
    • Need to back this up when you backup the database     
    • It should not be with the database directories Use to add keys and make changes to the wallet
  • .sso is the auto login wallet
    • You do not want to backup this file
    • Anybody who has this will be able open the database and read the keys

Even if somebody got the database without the wallets, they can’t get the key that is protecting that database.

Notes:

We decide to using a unified wallet (default feature). This means the wallet that is used for the CDB contains the keys for the CDB and the PDBs. When you have Multi-Tenant the CDB and the PDB‘s all have independent keys. In this case :

  • The CDB has it’s own Master Encryption Key
  • The PDB has it’s own Master Encryption Key If there were a second PDB it would also have it’s own unique Master Encryption Key

The script also creates a second wallet, the autologin wallet. No password needed to read it. Database able to connect to it at startup. When restarted, it will auto read the wallet and pull any keys that are set in that wallet to do the encryption.

If you do not create an autologin wallet when you start the database, you need to manually open up the wallet using the password in order to access the keys.

Not as secure a method, but less effort when you bounce the database. Most customers use an auto login wallet, especially with RAC.

Check the wallet status:

set linesize 170;
column wrl_parameter format a50
column wrl_type heading 'Type' format a10
column status heading 'Status' format a30
column fully_backed_up heading 'Backed Up' format a10
column pdb_name heading 'PDB Name' format a10

 select b.name pdb_name,wrl_type,
wrl_parameter,
status,wallet_type,
keystore_mode,
fully_backed_up
from v$encryption_wallet a,v$containers b
where a.con_id = b.con_id(+);
exit;

The output should be:

PDB Name   Type       WRL_PARAMETER                                      Status                         WALLET_TYPE          KEYSTORE Backed Up
---------- ---------- -------------------------------------------------- ------------------------------ -------------------- -------- ----------
CDB$ROOT   FILE       /u01/app/oracle/wallets/CDB26/tde/                 OPEN_NO_MASTER_KEY             PASSWORD             NONE     UNDEFINED
PDB$SEED   FILE                                                          CLOSED                         UNKNOWN              UNITED   UNDEFINED
PDB26      FILE                                                          OPEN_NO_MASTER_KEY             PASSWORD             UNITED   UNDEFINED

The last time we ran this status check the value was NOT AVAILABLE. It has now evolved to OPEN_NO_MASTER_KEY since we are yet to set the key. As a result, while CDB26 and PDB26 both have the wallet open, there is no master key.

Task 4: Set The master Key

We will set the encryption key for the CDB and PDB, and will rely on the tag feature.

Tags are important to identify keys, especially when using OKV where keys are stored in a centralized vault and managed for multiple databases. In such instances, the tag allows to uniquely identify the encryption key.

Notes:

This is the point of no return: once you create a key for the database you can’t rollback it (without RMAN restore).

From this point forward, the database expects the wallet and encryption key to be there when the database starts up. The database knows there is a wallet and master encryption key associated with it.

If you don’t have the database access the wallet, you will get messages that it can’t access the key.

Be sure of the steps before you do this to a database that you use normally.

Each PDB also has its own unique key.

Now we can set encryption key for the CDB and PDBs:

set verify off
prompt
prompt
prompt ##############################################################################
prompt #### set the encryption key for the CDB    ####
prompt ##############################################################################
prompt
ADMINISTER KEY MANAGEMENT SET KEY FORCE KEYSTORE IDENTIFIED BY "Oracle4TDE!"  with backup  USING 'CDB26: MASTERKEY_FIRST';
prompt
prompt
prompt ##############################################################################
prompt #### set the encryption key for the PDB    ####
prompt ##############################################################################
prompt
alter session set container=PDB26;
ADMINISTER KEY MANAGEMENT SET KEY FORCE KEYSTORE IDENTIFIED BY "Oracle4TDE!"  with backup  USING 'PDB26: MASTERKEY_FIRST';
exit;

The output should be:

SQL>  ADMINISTER KEY MANAGEMENT SET KEY FORCE KEYSTORE IDENTIFIED BY "Oracle4TDE!"  with backup  USING 'CDB26: MASTERKEY_FIRST';

keystore altered.

SQL> alter session set container=PDB26;

Session altered.

SQL> ADMINISTER KEY MANAGEMENT SET KEY FORCE KEYSTORE IDENTIFIED BY "Oracle4TDE!"  with backup  USING 'PDB26: MASTERKEY_FIRST';

keystore altered.

We use the keyword FORCE because we use an autologin wallet. If we don’t use it we throw an error : ORA-46658: keystore not open in the container.

Check the new status of our wallets :

set linesize 170;
column wrl_parameter format a50
column wrl_type heading 'Type' format a10
column status heading 'Status' format a30
column fully_backed_up heading 'Backed Up' format a10
column pdb_name heading 'PDB Name' format a10

 select b.name pdb_name,wrl_type,
wrl_parameter,
status,wallet_type,
keystore_mode,
fully_backed_up
from v$encryption_wallet a,v$containers b
where a.con_id = b.con_id(+);
exit;

The output should be:

PDB Name   Type       WRL_PARAMETER                                      Status                         WALLET_TYPE          KEYSTORE Backed Up
---------- ---------- -------------------------------------------------- ------------------------------ -------------------- -------- ----------
CDB$ROOT   FILE       /u01/app/oracle/wallets/CDB26/tde/                 OPEN                           AUTOLOGIN            NONE     NO
PDB$SEED   FILE                                                          OPEN                           AUTOLOGIN            UNITED   NO
PDB26      FILE                                                          OPEN                           AUTOLOGIN            UNITED   NO

We can see that the status come to OPEN for all container.

Check now the status of tablespaces and keys:

set feedback off
set linesize 150
set pagesize 50
set heading on
column pdb_name heading "PDB Name" format a15
column tablespace_name heading "Tablespace Name" format a30
column masterkeyid_base64 heading "Master Key ID" format a60
column encrypted heading "Encrypted" format a10
column status heading "Status" format a10
column encryptionalg heading "Encryption Alg" format a15

break on pdb_name skip 1

select pdb_name,
       tablespace_name,encrypted,
       utl_raw.cast_to_varchar2( utl_encode.base64_encode('01'||substr(mkeyid,1,4)))
       || utl_raw.cast_to_varchar2( utl_encode.base64_encode(substr(mkeyid,5,length(mkeyid)))) masterkeyid_base64,
       status,
       encryptionalg
 FROM (select t.name tablespace_name,
              z.name pdb_name,
              t.con_id, encrypted,
              RAWTOHEX(x.mkid) mkeyid ,
              r.status status,
              r.encryptionalg encryptionalg
        from v$tablespace t,
             x$kcbtek x,
             v$containers z,
             cdb_tablespaces q,
             v$encrypted_tablespaces r
        where t.ts#=x.ts#
          and t.con_id=x.con_id
          and t.con_id=z.con_id
          and t.con_id = q.con_id
          and t.con_id = r.con_id(+)
          and t.ts# = r.ts#(+)
          and t.name = q.tablespace_name)
order by pdb_name,tablespace_name;

The output should be:

PDB Name        Tablespace Name                Encrypted  Master Key ID                                                Status     Encryption Alg
--------------- ------------------------------ ---------- ------------------------------------------------------------ ---------- ---------------
CDB$ROOT        SYSAUX                         NO         AR/omWDjKUCwvLr9YksXp5A=
                SYSTEM                         NO         AR/omWDjKUCwvLr9YksXp5A=
                TEMP                           NO         AR/omWDjKUCwvLr9YksXp5A=
                UNDOTBS1                       NO         AR/omWDjKUCwvLr9YksXp5A=
                USERS                          NO         AQAAAAAAAAAAAAAAAAAAAAA=

PDB26           SYSAUX                         NO         AZWgNOvpkktOoa8PVYU0iIg=
                SYSTEM                         NO         AZWgNOvpkktOoa8PVYU0iIg=
                TEMP                           NO         AZWgNOvpkktOoa8PVYU0iIg=
                UNDOTBS1                       NO         AZWgNOvpkktOoa8PVYU0iIg=
                USERS                          NO         AQAAAAAAAAAAAAAAAAAAAAA=

No tablespaces are encrypt yet.

And for the keys?

set linesize 170;
column activation_time heading 'Activation Time' format a22
column pdb_name heading 'PDB Name' format a15
column key_id heading 'Key ID' format a60


select  b.name pdb_name,
        to_char(a.activation_time,'dd-mon-yyyy hh:mi:ssam') activation_time,
        a.key_id
from v$encryption_keys a,v$containers b
where a.con_id = b.con_id(+);

The output should be:

PDB Name        Activation Time        Key ID
--------------- ---------------------- ------------------------------------------------------------
CDB$ROOT        10-nov-2026 03:04:08pm AR/omWDjKUCwvLr9YksXp5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
PDB26           10-nov-2026 03:05:47pm AZWgNOvpkktOoa8PVYU0iIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

You can see the Key ID relation between the two queries.

The master key id AQAAAAAAAAA is the default master key for user created tablespaces.

We are ready to encrypt the database!

Task 5: Encrypt The Tablespaces

In this section we will encrypt tablespaces. However before proceeding we need to set an encryption algorithm on the CDB.

By default the algorithm is :

  • AES128 for Oracle Database 19c
  • AES256 for Oracle Database 26ai

It is more secure to use AES256 by default, even in 19c. For this, you can set the hidden parameter "_TABLESPACE_ENCRYPTION_DEFAULT_ALGORITHM" like this:

alter system set "_TABLESPACE_ENCRYPTION_DEFAULT_ALGORITHM"='AES256' scope=both;

In Oracle 26ai this parameter is unhidden.

Execute the following settings:

set verify off
prompt
prompt
prompt ##############################################################################
prompt #### set the default encryption algorithm to AES256                       ####
prompt #### set the default to always encrypt new tablespaces                    ####
prompt ##############################################################################
prompt
alter system set "tablespace_encryption_default_algorithm" = 'AES256' scope = both;
alter system set encrypt_new_tablespaces = always scope = both;
prompt
exit;

The output should be:

##############################################################################
#### set the default encryption algorithm to AES256                       ####
#### set the default to always encrypt new tablespaces                    ####
##############################################################################

alter system set "tablespace_encryption_default_algorithm"='AES256' scope=both;
System altered.
alter system set encrypt_new_tablespaces=always scope=both;
System altered.

With this setup, any new tablespaces will be encrypted with AES256.

We are now ready to encrypt

This is an on-line encryption and will perform the following:

  • Sequentially going through all the data files associated with the tablespace and creating a new encrypted copy.
  • Keeping track of any changes to each data file during the process and applying them after the encryption is completed
  • Under the covers it replaces the current data file with the new data file while the database is up and running
  • When finished the space is reclaimed
alter tablespace USERS ENCRYPTION ONLINE USING 'AES256' ENCRYPT;
alter tablespace SYSAUX ENCRYPTION ONLINE USING 'AES256' ENCRYPT;
alter tablespace SYSTEM ENCRYPTION ONLINE USING 'AES128' ENCRYPT;
alter tablespace SYSTEM ENCRYPTION  USING 'AES256' rekey;
alter session set container=PDB26;
alter tablespace SYSAUX ENCRYPTION ONLINE USING 'AES256' ENCRYPT;
alter tablespace USERS ENCRYPTION ONLINE USING 'AES256' ENCRYPT;
alter tablespace SYSTEM ENCRYPTION ONLINE USING 'AES128' ENCRYPT;
alter tablespace SYSTEM ENCRYPTION  USING 'AES256' rekey;

It will take some times…

In this example, you can see that we encrypt SYSTEM tablespace with AES128 algorithm, and rekey it with AES256.

Notes:
  • You need to have enough additional space for the largest data file that is going to be encrypted because a second file will be created
  • This can be done in parallel, but more data files are created in parallel so keep your free space in mind
  • This can be at a later point in time
  • You don’t have to do all the tablespaces at once
  • When you are finished you need to do a full backup as an incremental will not see the tablespace as encrypted
  • The backup should be done as-soon-as it is done encrypting
  • If you do a restore to the data file before doing the full backup and applied the archive logs to bring it forward the restore would be unencrypted

Looking for the tablespace status;

set feedback off
set linesize 150
set pagesize 50
set heading on
column pdb_name heading "PDB Name" format a15
column tablespace_name heading "Tablespace Name" format a30
column masterkeyid_base64 heading "Master Key ID" format a60
column encrypted heading "Encrypted" format a10
column status heading "Status" format a10
column encryptionalg heading "Encryption Alg" format a15

break on pdb_name skip 1

select pdb_name,
       tablespace_name,encrypted,
       utl_raw.cast_to_varchar2( utl_encode.base64_encode('01'||substr(mkeyid,1,4)))
       || utl_raw.cast_to_varchar2( utl_encode.base64_encode(substr(mkeyid,5,length(mkeyid)))) masterkeyid_base64,
       status,
       encryptionalg
 FROM (select t.name tablespace_name,
              z.name pdb_name,
              t.con_id, encrypted,
              RAWTOHEX(x.mkid) mkeyid ,
              r.status status,
              r.encryptionalg encryptionalg
        from v$tablespace t,
             x$kcbtek x,
             v$containers z,
             cdb_tablespaces q,
             v$encrypted_tablespaces r
        where t.ts#=x.ts#
          and t.con_id=x.con_id
          and t.con_id=z.con_id
          and t.con_id = q.con_id
          and t.con_id = r.con_id(+)
          and t.ts# = r.ts#(+)
          and t.name = q.tablespace_name)
order by pdb_name,tablespace_name;

select  b.name pdb_name,
        to_char(a.activation_time,'dd-mon-yyyy hh:mi:ssam') activation_time,
         a.key_id
from v$encryption_keys a,v$containers b
where a.con_id = b.con_id(+);

The output should be:

PDB Name        Tablespace Name                Encrypted  Master Key ID                                                Status     Encryption Alg
--------------- ------------------------------ ---------- ------------------------------------------------------------ ---------- ---------------
CDB$ROOT        SYSAUX                         YES        AR/omWDjKUCwvLr9YksXp5A=                                     NORMAL     AES256
                SYSTEM                         YES        AR/omWDjKUCwvLr9YksXp5A=                                     NORMAL     AES256
                TEMP                           NO         AR/omWDjKUCwvLr9YksXp5A=
                UNDOTBS1                       NO         AR/omWDjKUCwvLr9YksXp5A=
                USERS                          YES        AR/omWDjKUCwvLr9YksXp5A=                                     NORMAL     AES256

PDB26           SYSAUX                         YES        AZWgNOvpkktOoa8PVYU0iIg=                                     NORMAL     AES256
                SYSTEM                         YES        AZWgNOvpkktOoa8PVYU0iIg=                                     NORMAL     AES256
                TEMP                           NO         AZWgNOvpkktOoa8PVYU0iIg=
                UNDOTBS1                       NO         AZWgNOvpkktOoa8PVYU0iIg=
                USERS                          YES        AZWgNOvpkktOoa8PVYU0iIg=                                     NORMAL     AES256
PDB Name        Activation Time        Key ID
--------------- ---------------------- ------------------------------------------------------------
CDB$ROOT        10-nov-2026 03:04:08pm AR/omWDjKUCwvLr9YksXp5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

PDB26           10-nov-2026 03:05:47pm AZWgNOvpkktOoa8PVYU0iIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

Note:

  • You can see the Master Encryption Key is set for SYSAUX and SYSTEM
  • It now shows as encrypted
  • It shows as encrypted with AES256
  • The keys starts with AR/om, which matches the key for the CDB
  • If you look at the PDB the Master Encryption Key begins with AZWgN0 and it matches the Key Id at the bottom
  • NOTICE: TEMP and UNDO were not encrypted
    • No reason to encrypt temp again because anything that gets encrypted will stay encrypted
    • The same thing happens with UNDO as it would inherit the starting point of encrypted data, so there is no reason to encrypt this as well
Key Takeaways
  • Protecting your data with Transparent Data Encryption (TDE) is essential to secure sensitive information in Oracle databases.
  • TDE does not require application changes, keeps data encrypted from users, and operates with minimal downtime.
  • The article guides you through tasks such as creating a wallet, setting a master key, and encrypting tablespaces.
  • It highlights the importance of managing encryption keys properly, especially when moving Pluggable Databases (PDBs).
  • Finally, it stresses that encrypting tablespaces ensures any data processed will remain secure throughout operations.

The post Using Oracle Transparent Data Encryption with Multitenant Databases appeared first on dbi services Blog.

Pages

Subscribe to Oracle FAQ aggregator