<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdulrawof Totakhil</title>
    <description>The latest articles on DEV Community by Abdulrawof Totakhil (@abdulrawoftotakhil).</description>
    <link>https://dev.to/abdulrawoftotakhil</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4231825%2F005d310b-8551-4625-b018-cccb444c8a9c.png</url>
      <title>DEV Community: Abdulrawof Totakhil</title>
      <link>https://dev.to/abdulrawoftotakhil</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdulrawoftotakhil"/>
    <language>en</language>
    <item>
      <title>Oracle Enterprise Manager 24ai Troubleshooting: OMS, Agent Connectivity, Metric Uploads, and Monitoring Health</title>
      <dc:creator>Abdulrawof Totakhil</dc:creator>
      <pubDate>Fri, 27 Nov 2026 06:07:02 +0000</pubDate>
      <link>https://dev.to/abdulrawoftotakhil/oracle-enterprise-manager-24ai-troubleshooting-oms-agent-connectivity-metric-uploads-and-12eb</link>
      <guid>https://dev.to/abdulrawoftotakhil/oracle-enterprise-manager-24ai-troubleshooting-oms-agent-connectivity-metric-uploads-and-12eb</guid>
      <description>&lt;p&gt;Real Life DBA Investigation – investigation into unavailability of OMS and Management Repository together with resumption of Agent uploads.&lt;/p&gt;

&lt;p&gt;Technology: Oracle Enterprise Manager 24ai&lt;/p&gt;

&lt;p&gt;Operating System: Red Hat Enterprise Linux&lt;/p&gt;

&lt;p&gt;Date of investigation: November 25, 2026&lt;/p&gt;

&lt;p&gt;Investigation areas: OMS, Management Repository, Management Agents, connectivity and monitoring. Investigation was also conducted into re-establishing management functionality.&lt;/p&gt;

&lt;p&gt;Following the re-establishment of these management components, the Management Agent re-established connectivity with OMS. The Agent’s metric upload queue was also emptied.&lt;/p&gt;

&lt;p&gt;This article describes how the investigation was conducted, what was discovered, the remediation undertaken and includes relevant commands. Lessons were also learnt.&lt;/p&gt;

&lt;p&gt;All environment specific information has been anonymised for the public case study.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Overview of Oracle Enterprise Manager 24ai&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Oracle Enterprise Manager 24ai is a central management tool which can be used to monitor and manage Oracle technology.&lt;/p&gt;

&lt;p&gt;Within a Database environment, it can allow DBAs to monitor elements such as:&lt;/p&gt;

&lt;p&gt;Database availability.&lt;/p&gt;

&lt;p&gt;Host CPU and memory.&lt;/p&gt;

&lt;p&gt;Tablespaces and storage.&lt;/p&gt;

&lt;p&gt;Database performance.&lt;/p&gt;

&lt;p&gt;Database listener availability.&lt;/p&gt;

&lt;p&gt;Monitoring events and alerts.&lt;/p&gt;

&lt;p&gt;Backup and database management information.&lt;/p&gt;

&lt;p&gt;And Agent health.&lt;/p&gt;

&lt;p&gt;Being able to centrally manage and monitor information is a major benefit of OEM.&lt;/p&gt;

&lt;p&gt;However, several sub-components must all function for central monitoring to be realised. Where any of these sub-components are not functioning then the quality and/or availability of monitoring information may be impacted, despite the Oracle databases continuing to function.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;OEM Components&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Of key relevance to this investigation were:&lt;/p&gt;

&lt;p&gt;Oracle Management Service (OMS)&lt;/p&gt;

&lt;p&gt;This enables Enterprise Manager management functionality. It also analyses monitoring information and facilitates communication with Management Agents.&lt;/p&gt;

&lt;p&gt;Management Agent&lt;/p&gt;

&lt;p&gt;This gathers monitoring information relating to target(s).&lt;/p&gt;

&lt;p&gt;The Agent then communicates with OMS and uploads this information.&lt;/p&gt;

&lt;p&gt;Management Repository&lt;/p&gt;

&lt;p&gt;An Oracle database which is used by Enterprise Manager to hold its management, monitoring and configuration information.&lt;/p&gt;

&lt;p&gt;Oracle Net Listener&lt;/p&gt;

&lt;p&gt;This enables connection to the Management Repository database.&lt;/p&gt;

&lt;p&gt;Should neither of these – the Repository database and/or listener – be available then OMS might not be able to connect to the Repository database.&lt;/p&gt;

&lt;p&gt;Enterprise Manager Console&lt;/p&gt;

&lt;p&gt;This acts as a central location for viewing information about monitored items, along with relevant metrics and events.&lt;/p&gt;

&lt;p&gt;Basic monitoring structure&lt;/p&gt;

&lt;p&gt;Oracle Databases&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Linux Host(s)&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Management Agent&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Metric upload&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Oracle Management Service&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Management Repository (Repository database access)&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Enterprise Manager Console&lt;/p&gt;

&lt;p&gt;A key learning point from this structure is that each of Agent, OMS, the Management Repository database and Console have particular roles to play. Each should therefore be analysed for availability in its own right.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Initial investigation – OMS was unavailable&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I initially investigated the status of OEM.&lt;/p&gt;

&lt;p&gt;The following command was executed to analyse both the OMS configuration and status:&lt;/p&gt;

&lt;p&gt;$OMS_HOME/bin/emctl status oms -details&lt;/p&gt;

&lt;p&gt;Where $OMS_HOME is the authorised OMS installation location.&lt;/p&gt;

&lt;p&gt;Investigation outcome&lt;/p&gt;

&lt;p&gt;OMS Component   Status&lt;/p&gt;

&lt;p&gt;Oracle Management Service   Down&lt;/p&gt;

&lt;p&gt;WebTier Down&lt;/p&gt;

&lt;p&gt;JVMD Engine Down&lt;/p&gt;

&lt;p&gt;Management Repository database connectivity Failed&lt;/p&gt;

&lt;p&gt;Management Agent    Running&lt;/p&gt;

&lt;p&gt;Management Agent – OMS connectivity   Unavailable&lt;/p&gt;

&lt;p&gt;Agent metric uploads    Queued (549)&lt;/p&gt;

&lt;p&gt;Monitored items 41&lt;/p&gt;

&lt;p&gt;Further Weblogic administration status analysis also revealed that WebLogic had failed to start (FAILED_NOT_RESTARTABLE).&lt;/p&gt;

&lt;p&gt;Clearly then, OEM management functionality was not functioning as intended.&lt;/p&gt;

&lt;p&gt;However, the Management Agent was running.&lt;/p&gt;

&lt;p&gt;This was therefore a key consideration for further investigation.&lt;/p&gt;

&lt;p&gt;Although the Agent was running, it was not successfully communicating with OMS and so had queued metric information for upload.&lt;/p&gt;

&lt;p&gt;I then investigated why OMS was not functioning as intended.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Management Repository investigation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Oracle Enterprise Manager is reliant on the Management Repository database.&lt;/p&gt;

&lt;p&gt;Should this database become unavailable, OMS will not be able to carry out appropriate management functions relating to the Repository.&lt;/p&gt;

&lt;p&gt;During my investigation, the Management Repository was not accessible.&lt;/p&gt;

&lt;p&gt;I analysed both the Oracle Net Listener and database instance.&lt;/p&gt;

&lt;p&gt;Analysis of Oracle Net Listener&lt;/p&gt;

&lt;p&gt;lsnrctl status&lt;/p&gt;

&lt;p&gt;Initial analysis of the Listener resulted in several Oracle Net related errors being identified. These included:&lt;/p&gt;

&lt;p&gt;TNS-12541&lt;/p&gt;

&lt;p&gt;TNS-12560&lt;/p&gt;

&lt;p&gt;TNS-00511&lt;/p&gt;

&lt;p&gt;Analysis of TNS-12541&lt;/p&gt;

&lt;p&gt;This error is generated when a Listener cannot be located or contacted at the nominated location.&lt;/p&gt;

&lt;p&gt;This can arise due to:&lt;/p&gt;

&lt;p&gt;Non-running Listener.&lt;/p&gt;

&lt;p&gt;Incorrectly defined host and/or port.&lt;/p&gt;

&lt;p&gt;The nominated location not being accessible.&lt;/p&gt;

&lt;p&gt;Or due to network and/or operating system issues.&lt;/p&gt;

&lt;p&gt;During my investigation, it was also found that there was no currently running Listener for the expected Management Repository database location.&lt;/p&gt;

&lt;p&gt;Analysis of database instance&lt;/p&gt;

&lt;p&gt;Analysis of operating system processes did not identify a running PMON process for the expected Management Repository database instance.&lt;/p&gt;

&lt;p&gt;An initial SQLPlus administration connection also revealed that the database instance was in an idle state.&lt;/p&gt;

&lt;p&gt;Analysis of database availability then highlighted the following:&lt;/p&gt;

&lt;p&gt;ORA-01034: ORACLE not available&lt;/p&gt;

&lt;p&gt;This was a key investigation outcome.&lt;/p&gt;

&lt;p&gt;It demonstrated that the expected Management Repository database instance was not currently functioning in a manner suitable for database activity.&lt;/p&gt;

&lt;p&gt;Analysis&lt;/p&gt;

&lt;p&gt;Taken together, this investigation had shown that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The expected Listener for the Management Repository was not available.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Management Repository database instance was not functioning as expected.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Consequently, OMS could not successfully connect to the Repository.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Despite the Management Agent continuing to run, it was not able to successfully communicate with OMS and so had queued metric information for upload.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Clearly then, ensuring the availability of the Management Repository was key within the remediation process.&lt;/p&gt;

&lt;p&gt;However, this does not in itself provide a root cause for why the Management Repository database and Listener had become unavailable. Further investigation would be necessary in relation to the database, Listener, operating system and any relevant start/stop activity to determine this.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Why the Management Agent Was Still running&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Importantly, the fact that OMS was unavailable did not cause the Management Agent to stop.&lt;/p&gt;

&lt;p&gt;The Agent’s status was analysed using:&lt;/p&gt;

&lt;p&gt;$AGENT_INSTANCE_HOME/bin/emctl status agent&lt;/p&gt;

&lt;p&gt;It was shown that it was indeed running and was analysing 41 monitored items. However, as noted above, it was unable to communicate with OMS and so had queued metric information.&lt;/p&gt;

&lt;p&gt;What are metric uploads?&lt;/p&gt;

&lt;p&gt;The Management Agent gathers metrics and uploads these to OMS.&lt;/p&gt;

&lt;p&gt;Where there is an issue with this upload process then locally queued metric information may be retained.&lt;/p&gt;

&lt;p&gt;Depending on the nature of the issue, the Agent may continue to gather and/or queue metric information. Central monitoring may then become outdated.&lt;/p&gt;

&lt;p&gt;Initially, the Agent was identified as having queued 549 metric information items for upload.&lt;/p&gt;

&lt;p&gt;Later, prior to successful re- establishment of the upload process, this figure had risen to 572.&lt;/p&gt;

&lt;p&gt;This therefore demonstrated that whilst there had been an issue with Agent - OMS communication, metric information had been queued.&lt;/p&gt;

&lt;p&gt;Consequently, in addition to analysing Agent process availability, monitoring administrators should also analyse Agent metric upload activity.&lt;/p&gt;

&lt;p&gt;Whilst an Agent may be running, if its metric upload queue is growing then the overall monitoring environment is unlikely to be considered to be in good health.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Remediation – re-establishing Management Repository related functionality&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Having recognised the unavailability of the Management Repository, the appropriate order was adopted for re-establishing functionality.&lt;/p&gt;

&lt;p&gt;This comprised:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Re-establishing the Oracle Net Listener&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The relevant Listener was restarted.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Re-starting the Management Repository database&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Oracle database which holds the Management Repository was then restarted and analysed.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Re-analysis of Management Repository connectivity&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Prior to attempting to fully re-establish OMS functionality, database connectivity was re-analysed.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Re-starting Oracle Management Service&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;OMS was restarted and its constituent parts analysed.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Analysis of Management Agent - OMS connectivity&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Agent was analysed within the now re-established OMS environment.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Analysis of Agent metric uploads&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Agent metric upload functionality and its queue were analysed.&lt;/p&gt;

&lt;p&gt;Key observation&lt;/p&gt;

&lt;p&gt;Following re-establishment of the Management Repository, not all OMS components were initially shown to be healthy.&lt;/p&gt;

&lt;p&gt;Indeed, analysis revealed that although the WebTier had been re-established, OMS was still unavailable.&lt;/p&gt;

&lt;p&gt;This is a key point to recognise. Even where an underlying database related component has been re-established, it does not necessarily follow that all dependent application related components will also have been re-established.&lt;/p&gt;

&lt;p&gt;Following a controlled restart of relevant services, analysis then highlighted that all OMS components were now shown to be ‘Up’.&lt;/p&gt;

&lt;p&gt;This process was enacted within the authorised environment.&lt;/p&gt;

&lt;p&gt;Within production environments, re-starting of Management Repository databases, Listeners or OMS should be undertaken in accordance with appropriate incident and change management procedures.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Post-remediation OMS analysis&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Following implementation of the above remediation steps, OMS status was analysed.&lt;/p&gt;

&lt;p&gt;$OMS_HOME/bin/emctl status oms -details&lt;/p&gt;

&lt;p&gt;Remediation analysis outcomes&lt;/p&gt;

&lt;p&gt;OMS Component   Status&lt;/p&gt;

&lt;p&gt;WebTier Up&lt;/p&gt;

&lt;p&gt;Oracle Management Service   Up&lt;/p&gt;

&lt;p&gt;JVMD Engine Up&lt;/p&gt;

&lt;p&gt;Management Repository availability  Restored&lt;/p&gt;

&lt;p&gt;OMS endpoints   Listening&lt;/p&gt;

&lt;p&gt;Furthermore, detailed OMS analysis also highlighted the locations of the defined console and upload endpoints.&lt;/p&gt;

&lt;p&gt;Analysis of the network then confirmed that the relevant Listener and Enterprise Manager endpoints were accepting connections.&lt;/p&gt;

&lt;p&gt;Thus it was demonstrated that previously unavailable OEM components were now functioning.&lt;/p&gt;

&lt;p&gt;However, this represented only the first element of post-remediation analysis.&lt;/p&gt;

&lt;p&gt;Even where OMS is deemed to be healthy, it does not necessarily follow that all Management Agents are able to communicate effectively with it. Further analysis of the Agents was therefore undertaken.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Analysis of Management Agent - OMS connectivity&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Again, the Agent’s status was analysed:&lt;/p&gt;

&lt;p&gt;$AGENT_INSTANCE_HOME/bin/emctl status agent&lt;/p&gt;

&lt;p&gt;The Agent’s connectivity with OMS was then analysed using:&lt;/p&gt;

&lt;p&gt;$AGENT_INSTANCE_HOME/bin/emctl pingOMS&lt;/p&gt;

&lt;p&gt;Analysis of pingOMS&lt;/p&gt;

&lt;p&gt;Unlike the Linux ping command, the pingOMS command analyses application connectivity between the Management Agent and OMS.&lt;/p&gt;

&lt;p&gt;Generally, the Linux ping command is used to analyse whether an item is reachable via ICMP.&lt;/p&gt;

&lt;p&gt;In contrast, Enterprise Manager’s pingOMS command assesses application level connectivity between an Agent and OMS.&lt;/p&gt;

&lt;p&gt;Analysis outcome&lt;/p&gt;

&lt;p&gt;Following re-establishment of the management services, pingOMS analysis was successfully completed.&lt;/p&gt;

&lt;p&gt;The Agent’s heartbeat was also shown to be healthy.&lt;/p&gt;

&lt;p&gt;Final analysis highlighted that:&lt;/p&gt;

&lt;p&gt;Agent Heartbeat: Ok&lt;/p&gt;

&lt;p&gt;Analysis&lt;/p&gt;

&lt;p&gt;Successful completion of the pingOMS analysis had shown that the Agent was able to communicate with the now re-established OMS environment. This therefore represented an important development on the initial situation.&lt;/p&gt;

&lt;p&gt;Nonetheless, successful connectivity analysis does not, in itself, guarantee that queued metric information has been uploaded. Subsequent analysis of the Agent’s upload queue was therefore undertaken.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Analysis of Agent metric uploads&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Oracle Enterprise Manager includes functionality which can be used to immediately request Agent metric information to be uploaded.&lt;/p&gt;

&lt;p&gt;$AGENT_INSTANCE_HOME/bin/emctl upload agent&lt;/p&gt;

&lt;p&gt;This differs from the normal, scheduled upload process. As such, it should only be used by appropriately authorised personnel.&lt;/p&gt;

&lt;p&gt;Post such a request, the Agent’s status can again be analysed:&lt;/p&gt;

&lt;p&gt;$AGENT_INSTANCE_HOME/bin/emctl status agent&lt;/p&gt;

&lt;p&gt;Analysis outcome&lt;/p&gt;

&lt;p&gt;Prior to successful remediation, the Agent’s metric upload queue had grown to comprise 572 items.&lt;/p&gt;

&lt;p&gt;Following re-establishment of OMS and successful Agent - OMS connectivity, the upload request was successfully completed. Final analysis had shown that:&lt;/p&gt;

&lt;p&gt;0 metric items were queued for upload.&lt;/p&gt;

&lt;p&gt;Analysis&lt;/p&gt;

&lt;p&gt;There were now no queued metric information items for upload.&lt;/p&gt;

&lt;p&gt;This was an important point as, at the commencement of this investigation, the Agent had been identified as having queued a large number of items for upload. Furthermore, at that stage OMS had been unavailable.&lt;/p&gt;

&lt;p&gt;Comparison of pre- and post-remediation situations&lt;/p&gt;

&lt;p&gt;Pre-remediation Post-remediation&lt;/p&gt;

&lt;p&gt;OMS Down    Up&lt;/p&gt;

&lt;p&gt;WebTier Down    Up&lt;/p&gt;

&lt;p&gt;JVMD    Down    Up&lt;/p&gt;

&lt;p&gt;Management Repository   Unavailable Restored&lt;/p&gt;

&lt;p&gt;Management Agent    Running Running&lt;/p&gt;

&lt;p&gt;Management Agent - OMS connectivity Failed  Successful&lt;/p&gt;

&lt;p&gt;Management Agent heartbeat  OMS unreachable Ok&lt;/p&gt;

&lt;p&gt;Metric uploads  Queued (initially 549, and later 572)   0&lt;/p&gt;

&lt;p&gt;Monitored items 41  41&lt;/p&gt;

&lt;p&gt;These outcomes had therefore underpinned the conclusion that the previously recognised Agent - OMS communication and Agent metric upload issues had been resolved at the point of final analysis.&lt;/p&gt;

&lt;p&gt;Nevertheless, this does not in itself guarantee that each individual monitored item and metric and application service had been analysed.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Analysis of OMS security status&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Following remediation, the OMS status highlighted the following:&lt;/p&gt;

&lt;p&gt;Agent Upload is locked.&lt;/p&gt;

&lt;p&gt;OMS Console is locked.&lt;/p&gt;

&lt;p&gt;These may be misinterpreted.&lt;/p&gt;

&lt;p&gt;Whilst the term locked may initially appear to denote an issue, within Oracle Enterprise Manager it relates to security constraints on the use of an insecure HTTP channel.&lt;/p&gt;

&lt;p&gt;Agent Upload is locked&lt;/p&gt;

&lt;p&gt;This highlights that insecure HTTP is not permitted for Agent metric uploads. Secure Agents must communicate via the defined HTTPS channel.&lt;/p&gt;

&lt;p&gt;Not all Agent metric uploads are therefore prohibited.&lt;/p&gt;

&lt;p&gt;OMS Console is locked&lt;/p&gt;

&lt;p&gt;This emphasises that insecure HTTP is not allowed for accessing the OMS console. Rather, the console should be accessed via the defined secure HTTPS endpoint.&lt;/p&gt;

&lt;p&gt;Why is this important?&lt;/p&gt;

&lt;p&gt;Despite the highlighted security status, the Agent was able to successfully upload metrics to OMS. Hence, these status messages were not indicative of why the initial upload had failed. Rather, they illustrated how Enterprise Manager had been configured to securely communicate.&lt;/p&gt;

&lt;p&gt;A DBA should not override these security constraints solely to remove such messages.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Database and Monitoring Availability&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This investigation has illustrated that, in general, database availability and monitoring availability are distinct considerations.&lt;/p&gt;

&lt;p&gt;Consider these 3 scenarios:&lt;/p&gt;

&lt;p&gt;Scenario A – Database is available, OEM is unavailable&lt;/p&gt;

&lt;p&gt;Even where OEM is unavailable, an Oracle database may continue to process transactions. Nevertheless, central monitoring visibility may be impacted.&lt;/p&gt;

&lt;p&gt;Scenario B – Agent is available, OMS is unavailable&lt;/p&gt;

&lt;p&gt;The Agent may continue to run and queue metric information, where OMS is unable to accept uploads.&lt;/p&gt;

&lt;p&gt;This was in effect the situation experienced during this investigation.&lt;/p&gt;

&lt;p&gt;Scenario C – OMS and Agent are healthy, but a database or target is unavailable&lt;/p&gt;

&lt;p&gt;Whilst Enterprise Manager may be functioning well, it may highlight a genuine database or target unavailability.&lt;/p&gt;

&lt;p&gt;Each of these scenarios necessitates differing investigation approaches.&lt;/p&gt;

&lt;p&gt;A DBA should not simply re-start databases due to Enterprise Manager indicating a monitoring issue. Rather, it is important to firstly determine which element is impacted.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Useful commands&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Below is a summary of the commands which were used or were relevant to the investigation.&lt;/p&gt;

&lt;p&gt;OMS status&lt;/p&gt;

&lt;p&gt;$OMS_HOME/bin/emctl status oms -details&lt;/p&gt;

&lt;p&gt;Analyses OMS and its sub-component status.&lt;/p&gt;

&lt;p&gt;Management Agent status&lt;/p&gt;

&lt;p&gt;$AGENT_INSTANCE_HOME/bin/emctl status agent&lt;/p&gt;

&lt;p&gt;Analyses Management Agent availability, upload status and other relevant information.&lt;/p&gt;

&lt;p&gt;Management Agent - OMS connectivity&lt;/p&gt;

&lt;p&gt;$AGENT_INSTANCE_HOME/bin/emctl pingOMS&lt;/p&gt;

&lt;p&gt;Analyzes Management Agent - OMS connectivity.&lt;/p&gt;

&lt;p&gt;Management Agent metric upload&lt;/p&gt;

&lt;p&gt;$AGENT_INSTANCE_HOME/bin/emctl upload agent&lt;/p&gt;

&lt;p&gt;Requests immediate Agent metric information upload.&lt;/p&gt;

&lt;p&gt;Management Agent security&lt;/p&gt;

&lt;p&gt;$AGENT_INSTANCE_HOME/bin/emctl status agent -secure&lt;/p&gt;

&lt;p&gt;Analyzes secure Management Agent connectivity.&lt;/p&gt;

&lt;p&gt;Oracle Net Listener&lt;/p&gt;

&lt;p&gt;lsnrctl status&lt;/p&gt;

&lt;p&gt;Analyzes the Oracle Net Listener.&lt;/p&gt;

&lt;p&gt;Oracle database PMON processes&lt;/p&gt;

&lt;p&gt;ps -ef | grep '[p]mon’&lt;/p&gt;

&lt;p&gt;This helps to identify which Oracle database instance processes are currently running. Note that this is a helpful analytical guide but is not in itself a comprehensive method of analysing database availability.&lt;/p&gt;

&lt;p&gt;Network Listeners&lt;/p&gt;

&lt;p&gt;ss -lntp&lt;/p&gt;

&lt;p&gt;Shows TCP sockets which are listening. Where permitted, it also identifies relevant processes.&lt;/p&gt;

&lt;p&gt;Database availability&lt;/p&gt;

&lt;p&gt;Using an authorised SQLPlus connection:&lt;/p&gt;

&lt;p&gt;SELECT instance_name,&lt;/p&gt;

&lt;p&gt;status,&lt;/p&gt;

&lt;p&gt;database_status&lt;/p&gt;

&lt;p&gt;FROM v$instance;&lt;/p&gt;

&lt;p&gt;This can be a useful method of analysing database availability where the database is sufficiently available to accept a session and execute the query.&lt;/p&gt;

&lt;p&gt;Note&lt;/p&gt;

&lt;p&gt;Where investigating OMS, the above commands should be employed as part of an investigation approach. Merely analysing Agent metric uploads will not, for example, re-establish a missing Listener/Management Repository dependency.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Importance of understanding and addressing dependency order&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Several sub-components are relied upon within an Enterprise Manager environment.&lt;/p&gt;

&lt;p&gt;A basic example of the order in which these might be re-established is:&lt;/p&gt;

&lt;p&gt;Oracle Net Listener&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Management Repository database&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Oracle Management Service&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Management Agent connectivity&lt;/p&gt;

&lt;p&gt;│&lt;/p&gt;

&lt;p&gt;└─ Metric upload verification&lt;/p&gt;

&lt;p&gt;Please note though that in certain environments the Listener, Management Repository database, OMS and even Agents may be hosted on different servers. Additional high availability components may also be in place.&lt;/p&gt;

&lt;p&gt;Key though is that, in order to effectively re-establish functionality, a DBA should analyse and address dependencies in the correct order.&lt;/p&gt;

&lt;p&gt;During this investigation, the Listener and Management Repository database had both been unavailable. Following re-establishment of these, OMS could then be re-established. Subsequently, Agent connectivity and uploads could be analysed.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Creating a structured Monitoring Health investigation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Drawing on the above, a good investigation process should include an examination of several areas within an Enterprise Manager environment.&lt;/p&gt;

&lt;p&gt;Area    Investigation aim&lt;/p&gt;

&lt;p&gt;Management Repository   Database and connectivity availability&lt;/p&gt;

&lt;p&gt;Oracle Net Listener Appropriate endpoint is listening&lt;/p&gt;

&lt;p&gt;OMS Sub-components are functioning as expected&lt;/p&gt;

&lt;p&gt;Management Agent    Process is running and reporting&lt;/p&gt;

&lt;p&gt;Connectivity    Management Agent - OMS connectivity is successful&lt;/p&gt;

&lt;p&gt;Metric uploads  No unwarranted or increasing queuing&lt;/p&gt;

&lt;p&gt;Heartbeat   Current Management Agent - OMS connectivity&lt;/p&gt;

&lt;p&gt;Monitored items Important monitored items are correctly reporting&lt;/p&gt;

&lt;p&gt;Security    Secure communication is appropriately maintained&lt;/p&gt;

&lt;p&gt;As noted above, simply ensuring that a Management Agent and/or OMS process is running does not in itself guarantee good health.&lt;/p&gt;

&lt;p&gt;Rather, it is important to confirm that metric information can successfully flow through the Enterprise Manager process.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Learning points&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Lesson 1 – Investigate sub-components prior to re-starting&lt;/p&gt;

&lt;p&gt;Where OMS reports issues with connecting to a Management Repository, investigate the availability of the relevant database and Listener prior to implementing changes to Management Agents.&lt;/p&gt;

&lt;p&gt;Lesson 2 – A Management Agent can run when monitoring is not functioning well&lt;/p&gt;

&lt;p&gt;Throughout the investigation the Agent was running. However, it was unable to communicate with OMS. This therefore highlights that in addition to process availability, it is also essential to analyse connectivity.&lt;/p&gt;

&lt;p&gt;Lesson 3 – Agent metric upload queues are important&lt;/p&gt;

&lt;p&gt;Whilst there was an issue with Agent - OMS connectivity, the Agent’s metric upload queue had grown in size (to 572 from an initial 549). Post-remediation, this had reduced to 0. This was therefore valuable information which demonstrated that metric information uploading had resumed.&lt;/p&gt;

&lt;p&gt;Lesson 4 – Oracle Net errors can impact enterprise management&lt;/p&gt;

&lt;p&gt;As noted, Oracle Net errors such as TNS-12541 are not confined to just database connection issues. Where an application is reliant on an Oracle database then the availability of the relevant database Listener can also affect that application.&lt;/p&gt;

&lt;p&gt;Lesson 5 – Remediation should be analysed incrementally&lt;/p&gt;

&lt;p&gt;As previously noted, the Management Repository was re-established prior to OMS fully becoming healthy. Similarly, the WebTier was re-established ahead of all OMS components being shown to be ‘Up’. This therefore emphasises the importance of a DBA analysing both dependencies and component availability rather than assuming that execution of a single re-start command equates to full remediation.&lt;/p&gt;

&lt;p&gt;Lesson 6 – Correctly understand security messages&lt;/p&gt;

&lt;p&gt;As explained above, the ‘Agent Upload is locked’ and ‘OMS Console is locked’ messages were in-line with secure HTTPS settings and were not indicative of why the final secure Agent metric information upload had failed.&lt;/p&gt;

&lt;p&gt;Lesson 7 – Remediation and root cause investigation are different&lt;/p&gt;

&lt;p&gt;During investigation, it had been confirmed that the Listener and Management Repository database for the Management Repository were both unavailable. Subsequently, these had been re-established. However, the initial reason for their unavailability was not conclusively determined by analysing the available commands. In order to conduct a thorough root cause investigation, it would also be necessary to analyse relevant database, Listener, operating system and start/stop information.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;DBA best practice&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For an Enterprise Manager environment, the following best practice should also be followed.&lt;/p&gt;

&lt;p&gt;Monitor the monitoring environment&lt;/p&gt;

&lt;p&gt;Periodically analyse OMS, Agent connectivity, the Management Repository and metric upload information.&lt;/p&gt;

&lt;p&gt;Define and maintain start-up and remediation procedures.&lt;/p&gt;

&lt;p&gt;Understand dependencies so that components can be re-established in the appropriate order.&lt;/p&gt;

&lt;p&gt;Securely protect the Management Repository.&lt;/p&gt;

&lt;p&gt;Ensure that there is an authorised back-up and remediation strategy in place for the Management Repository database.&lt;/p&gt;

&lt;p&gt;Investigate Agent metric upload queues&lt;/p&gt;

&lt;p&gt;Even where an Agent process is running, increasing metric upload queues may indicate connectivity and/or processing issues.&lt;/p&gt;

&lt;p&gt;Avoid unnecessary re-starts&lt;/p&gt;

&lt;p&gt;Only re-start components which need to be re-established and do so in accordance with authorised procedures.&lt;/p&gt;

&lt;p&gt;Ensure secure communication is maintained.&lt;/p&gt;

&lt;p&gt;Do not override secure settings – for example, HTTPS – simply to remove messages such as ‘Agent Upload is locked’ or ‘OMS Console is locked’ from the status display.&lt;/p&gt;

&lt;p&gt;Post recovery verification&lt;/p&gt;

&lt;p&gt;Validate the Management Agent, confirm upload functionality is working and verify monitored entities are being monitored.&lt;/p&gt;

&lt;p&gt;Clearly define symptoms, diagnostics, remediation and analysis.&lt;/p&gt;

&lt;p&gt;—&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Concluding Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On the 25th November 2026, the Oracle Enterprise Manager 24ai  management services were not available.&lt;/p&gt;

&lt;p&gt;Although the Management Agent was still active, it was unable to communicate with the OMS.&lt;/p&gt;

&lt;p&gt;Initial investigation showed that neither the Management Repository listener nor database was available.&lt;/p&gt;

&lt;p&gt;Oracle Net and database errors were subsequently detected within the environment (for example: TNS-12541 and ORA-01034).&lt;/p&gt;

&lt;p&gt;Following re-establishment of the essential Repository services, controlled service procedures were implemented to re-activate the OMS.&lt;/p&gt;

&lt;p&gt;Finally, it was verified that:&lt;/p&gt;

&lt;p&gt;OMS, WebTier and JVMD were available.&lt;/p&gt;

&lt;p&gt;The Management Agent was able to communicate with the OMS.&lt;/p&gt;

&lt;p&gt;Agent heartbeat was healthy.&lt;/p&gt;

&lt;p&gt;Upload backlog had been cleared from a high of 572.&lt;/p&gt;

&lt;p&gt;There were still 41 monitored entities defined within the Agent.&lt;/p&gt;

&lt;p&gt;Secure console and upload functions continued to be active.&lt;/p&gt;

&lt;p&gt;It was therefore confirmed that the OMS communication and upload issues had been rectified.&lt;/p&gt;

&lt;p&gt;Furthermore, this incident illustrated the value of appreciating inter-dependencies and also the necessity to fully test a monitoring process from start to finish.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Whilst Oracle Enterprise Manager 24ai provides valuable monitoring functionality, it is reliant upon various different elements functioning appropriately.&lt;/p&gt;

&lt;p&gt;In addition to the Management Agents, the Management Repository, OMS, network connectivity and upload functionality, these all play a part in ensuring good monitoring.&lt;/p&gt;

&lt;p&gt;Within this investigation it was shown that even when the OMS is not available, the Management Agent can continue to function and store monitoring data.&lt;/p&gt;

&lt;p&gt;By locating the non-available Repository database and listener, re-establishing the relevant inter-related services and then confirming OMS communication and upload functionality, monitoring was successfully reinstated.&lt;/p&gt;

&lt;p&gt;Essentially, alongside verifying OEM Agent availability, it is crucial to also confirm OMS health, Repository availability, Management Agent communication and the flow of monitoring data to the management system.&lt;/p&gt;

&lt;p&gt;Good DBA monitoring practice should also encompass testing of the management systems health.&lt;/p&gt;

&lt;p&gt;—&lt;/p&gt;

&lt;p&gt;Oracle Documentation&lt;/p&gt;

&lt;p&gt;Oracle Enterprise Manager 24ai – Management Agent Commands&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/24.1/emadm/emctl-commands-management-agent.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/24.1/emadm/emctl-commands-management-agent.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle Enterprise Manager 24ai – Secure Communication&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/24.1/emsec/configuring-secure-communication.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/24.1/emsec/configuring-secure-communication.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle Enterprise Manager 24ai – Installation and Configuration&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/24.1/embsc/installing-oracle-enterprise-manager.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/24.1/embsc/installing-oracle-enterprise-manager.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle Enterprise Manager 24ai – Administrator’s Guide&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/24.1/emadm/index.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/24.1/emadm/index.html&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Abdulrawof Totakhil | Database Administrator
&lt;/h1&gt;

&lt;p&gt;Questions or collaboration? Let’s connect and share knowledge.&lt;/p&gt;

&lt;p&gt;🔗 &lt;a href="https://www.linkedin.com/in/abdulrawof-totakhil" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/abdulrawof-totakhil&lt;/a&gt;&lt;/p&gt;

</description>
      <category>oracle</category>
      <category>linux</category>
      <category>tutorial</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>Oracle RMAN vs Data Pump EXPDP/IMPDP</title>
      <dc:creator>Abdulrawof Totakhil</dc:creator>
      <pubDate>Thu, 26 Nov 2026 04:35:03 +0000</pubDate>
      <link>https://dev.to/abdulrawoftotakhil/oracle-rman-vs-data-pump-expdpimpdp-22a8</link>
      <guid>https://dev.to/abdulrawoftotakhil/oracle-rman-vs-data-pump-expdpimpdp-22a8</guid>
      <description>&lt;p&gt;*&lt;em&gt;Oracle 19c – RMAN and Data Pump&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
Physical Database Backup, Logical Database Export and Database Disaster Recovery for Oracle DBAs&lt;/p&gt;

&lt;p&gt;Technology: Oracle 19c Database&lt;/p&gt;

&lt;p&gt;Tools: Oracle Recovery Manager (RMAN), Data Pump Export (EXPDP), Data Pump Import (IMPDP)&lt;/p&gt;

&lt;p&gt;Professionals: Oracle DBA(s), Database Engineer(s), IT Operations staff.&lt;/p&gt;

&lt;p&gt;Introduction&lt;/p&gt;

&lt;p&gt;Ensuring that database data is secure and can be recovered is a core function of an Oracle DBA.&lt;/p&gt;

&lt;p&gt;Within Oracle, there are various technologies available for securing and transferring data, and two popular tools are RMAN and Oracle Data Pump (EXPDP/IMPDP).&lt;/p&gt;

&lt;p&gt;Whilst both can produce files representing database data, they function and are utilised in distinct ways.&lt;/p&gt;

&lt;p&gt;Suppose that you have generated an RMAN backup together with a Data Pump export of an Oracle 19c database.&lt;/p&gt;

&lt;p&gt;Could both be utilised for data recovery?&lt;/p&gt;

&lt;p&gt;What would happen if the total database were lost?&lt;/p&gt;

&lt;p&gt;Or, if a key database table had been incorrectly deleted?&lt;/p&gt;

&lt;p&gt;Can backups be transferred to another database server?&lt;/p&gt;

&lt;p&gt;Which is preferable for transitioning from an older version of Oracle to 19c?&lt;/p&gt;

&lt;p&gt;Is it necessary to utilise both RMAN and Data Pump?&lt;/p&gt;

&lt;p&gt;Understanding these areas is crucial for formulating a robust database backup, recovery and transfer solution.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle RMAN&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Oracle's native physical database recovery and backup tool is known as RMAN.&lt;/p&gt;

&lt;p&gt;It interacts with Oracle database and recovery data.&lt;/p&gt;

&lt;p&gt;Depending upon how RMAN is configured, it can back up database datafiles, control files, archived redo logs and the server parameter file.&lt;/p&gt;

&lt;p&gt;Primarily, RMAN is used to allow for the recovery of a database or parts of a database following issues such as:&lt;/p&gt;

&lt;p&gt;Storage related issues.&lt;/p&gt;

&lt;p&gt;Misplaced or corrupted datafiles.&lt;/p&gt;

&lt;p&gt;Database corruption.&lt;/p&gt;

&lt;p&gt;Unwanted data modification necessitating assisted point-in-time recovery.&lt;/p&gt;

&lt;p&gt;Replacement of database and/or storage hardware.&lt;/p&gt;

&lt;p&gt;Disaster recovery.&lt;/p&gt;

&lt;p&gt;How RMAN functions&lt;/p&gt;

&lt;p&gt;Below is a basic outline of how data is backed up by RMAN:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Oracle Database

|

v

RMAN reads Oracle data blocks

|

v

RMAN creates backup sets

or image copies

|

v

Backup storage

|

v

RMAN restore and recovery

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using 'backup sets’, RMAN produces backup files in Oracle's proprietary format.&lt;/p&gt;

&lt;p&gt;Alternatively, for ‘image copies’, RMAN will copy database data files and present them in the correct physical format.&lt;/p&gt;

&lt;p&gt;In addition to this, RMAN stores metadata about performed backups. This is held in the database's control file and can also be stored in a secondary 'recovery catalog’.&lt;/p&gt;

&lt;p&gt;Restore and Recover&lt;/p&gt;

&lt;p&gt;Within Oracle, 'restore' and 'recover' have distinct meanings.&lt;/p&gt;

&lt;p&gt;RESTORE&lt;/p&gt;

&lt;p&gt;Transfers database data files from a physical database back-up to a designated location.&lt;/p&gt;

&lt;p&gt;RECOVER&lt;/p&gt;

&lt;p&gt;Applies relevant redo data so that the restored files are transactions consistent at the required recovery point.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Database datafile lost

|

v

RESTORE the datafile

from an RMAN backup

|

v

RECOVER the datafile

using required redo

|

v

Database available again

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will depend on the nature of the issue, the required recovery, accessibility of back-ups and redo archives together with the database's condition.&lt;/p&gt;

&lt;p&gt;Different commands will often be required for different recoveries.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Data Pump&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This Oracle tool is used for logically exporting and importing database data and objects.&lt;/p&gt;

&lt;p&gt;The main command line interfaces are:&lt;/p&gt;

&lt;p&gt;EXPDP – Data Pump Export&lt;/p&gt;

&lt;p&gt;Used to export database data and objects to a Data Pump 'dump file set’.&lt;/p&gt;

&lt;p&gt;IMPDP – Data Pump Import&lt;/p&gt;

&lt;p&gt;Imports nominated database objects and data from a Data Pump export to a compatible Oracle database environment.&lt;/p&gt;

&lt;p&gt;Generally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Source Database

|

v

EXPDP

|

v

Data Pump dump files

|

v

IMPDP

|

v

Target Database

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Data Pump works in a logical manner.&lt;/p&gt;

&lt;p&gt;It can export database objects, such as tables, table data, indexes and constraints, together with further types of database object metadata where supported.&lt;/p&gt;

&lt;p&gt;The precise database objects exported will vary depending on the export type, privileges and configuration together with the types of database object that can be exported.&lt;/p&gt;

&lt;p&gt;Common situations for which Data Pump is well suited include:&lt;/p&gt;

&lt;p&gt;Transferring a database schema from one database to another.&lt;/p&gt;

&lt;p&gt;Exporting particular database tables.&lt;/p&gt;

&lt;p&gt;Producing a logical copy of application data.&lt;/p&gt;

&lt;p&gt;Assisting in a database transition.&lt;/p&gt;

&lt;p&gt;Refreshing a test database.&lt;/p&gt;

&lt;p&gt;Transferring compatible data between differing Oracle database versions.&lt;/p&gt;

&lt;p&gt;Maintaining logical exports for certain recovery scenarios.&lt;/p&gt;

&lt;p&gt;There are a number of Data Pump export types, for instance full, schema, table and tablespace exports.&lt;/p&gt;

&lt;p&gt;Nevertheless, a full Data Pump export is not equivalent to a full RMAN physical database back-up.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Physical database backup versus logical database export&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is a central topic in comparing RMAN and Data Pump.&lt;/p&gt;

&lt;p&gt;RMAN&lt;/p&gt;

&lt;p&gt;Undertakes physical database data backup.&lt;/p&gt;

&lt;p&gt;It can then facilitate recovery of database and database components.&lt;/p&gt;

&lt;p&gt;Data Pump&lt;/p&gt;

&lt;p&gt;Transfers database data and objects to a logical export format.&lt;/p&gt;

&lt;p&gt;Import subsequently re-creates database objects and populates them with exported data.&lt;/p&gt;

&lt;p&gt;Comparison&lt;/p&gt;

&lt;p&gt;RMAN Data Pump&lt;/p&gt;

&lt;p&gt;Primary function Physical database backup/ recovery Logical database export/import&lt;/p&gt;

&lt;p&gt;Interacts with Oracle database datafiles Yes No&lt;/p&gt;

&lt;p&gt;Can recover corrupt database datafiles Yes No&lt;/p&gt;

&lt;p&gt;Can export particular schemas Utilising diverse permitted recovery processes Yes&lt;/p&gt;

&lt;p&gt;Can export particular tables No (through standard backup file selection) Yes&lt;/p&gt;

&lt;p&gt;Supports database disaster recovery Yes (as part of an overall recovery strategy) Not a substitute for physical recovery&lt;/p&gt;

&lt;p&gt;Enables logical database transfer Limited to permitted RMAN recovery processes Yes&lt;/p&gt;

&lt;p&gt;Makes use of redo for media recovery Yes No&lt;/p&gt;

&lt;p&gt;Output type Backup sets or image copies Dump file sets&lt;/p&gt;

&lt;p&gt;Example&lt;/p&gt;

&lt;p&gt;Assume that a database holds details of customers, together with transactional and application data.&lt;/p&gt;

&lt;p&gt;Following misfortune, one or more Oracle database datafiles may become inaccessible. RMAN may then restore and Recover&lt;/p&gt;

&lt;p&gt;These datafiles utilising redo information.&lt;/p&gt;

&lt;p&gt;Conversely, if a specific application schema is to be relocated to a test database, Data Pump might prove to be the more easily utilised option.&lt;/p&gt;

&lt;p&gt;The correct tool will depend on the aim.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Understanding RMAN full and incremental database backups&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;RMAN can back up a database either as a full or incremental backup.&lt;/p&gt;

&lt;p&gt;Full&lt;/p&gt;

&lt;p&gt;Database datafiles or database datafile blocks are backed up according to the chosen type of full backup.&lt;/p&gt;

&lt;p&gt;For instance:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;BACKUP&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: This is not standard SQL syntax.&lt;/p&gt;

&lt;p&gt;Level 0 incremental&lt;/p&gt;

&lt;p&gt;This forms a reference for subsequent incremental database backups.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;BACKUP&lt;/span&gt; &lt;span class="no"&gt;INCREMENTAL&lt;/span&gt; &lt;span class="no"&gt;LEVEL&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A level 0 incremental will comprise blocks that are relevant for the reference. It can then act as the parent for further level 1 incrementals.&lt;/p&gt;

&lt;p&gt;Level 1 incremental&lt;/p&gt;

&lt;p&gt;Blocks modified since the relevant parent backup (depending on whether the incremental is differential or cumulative) are backed up.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;BACKUP&lt;/span&gt; &lt;span class="no"&gt;INCREMENTAL&lt;/span&gt; &lt;span class="no"&gt;LEVEL&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Important note:&lt;/p&gt;

&lt;p&gt;Whilst both a standard RMAN full database backup and a level 0 incremental can in some instances hold comparable data, only the latter can act as a parent for incremental backups. A level 1 is not an independent, full database backup.&lt;/p&gt;

&lt;p&gt;Archived redo logs&lt;/p&gt;

&lt;p&gt;These are significant for enabling transactional recovery beyond the point-in-time identified by a database datafile's checkpoint.&lt;/p&gt;

&lt;p&gt;Typically, within a suitably configured ARCHIVELOG database, the following command may be issued:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;BACKUP&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt; &lt;span class="no"&gt;PLUS&lt;/span&gt; &lt;span class="no"&gt;ARCHIVELOG&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Suitable files and a valid recovery strategy are fundamental for successfully recovering from a backup.&lt;/p&gt;

&lt;p&gt;Please note that the above command actually executes a database back-up. It should therefore only be executed within a permitted laboratory or live environment and with sufficient storage capacity.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Understanding Data Pump export types&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A DBA can define the logical extent of a Data Pump export.&lt;/p&gt;

&lt;p&gt;Table export&lt;/p&gt;

&lt;p&gt;Exports nominated database tables.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
expdp lab_user@LABPDB \

&lt;span class="nv"&gt;TABLES&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;LAB_USER.TRAINING_ORDERS \

&lt;span class="nv"&gt;DIRECTORY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ACE_DP_DIR \

&lt;span class="nv"&gt;DUMPFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;orders_export.dmp \

&lt;span class="nv"&gt;LOGFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;orders_export.log

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Note: It is assumed that the relevant account, table, service and directory privileges are already in place.)&lt;/p&gt;

&lt;p&gt;Schema export&lt;/p&gt;

&lt;p&gt;Exports supported database objects associated with a nominated schema.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
expdp lab_user@LABPDB \

&lt;span class="nv"&gt;SCHEMAS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;LAB_USER \

&lt;span class="nv"&gt;DIRECTORY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ACE_DP_DIR \

&lt;span class="nv"&gt;DUMPFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;lab_schema.dmp \

&lt;span class="nv"&gt;LOGFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;lab_schema_export.log

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Full export&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
expdp authorized_admin@LABPDB \

&lt;span class="nv"&gt;FULL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;YES \

&lt;span class="nv"&gt;DIRECTORY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ACE_DP_DIR \

&lt;span class="nv"&gt;DUMPFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;full_export.dmp \

&lt;span class="nv"&gt;LOGFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;full_export.log

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Appropriate privileges are necessary and this export type will export supported logical database objects within the relevant database scope.&lt;/p&gt;

&lt;p&gt;Note: However, a full Data Pump export is not a comprehensive alternative to backing up database datafiles, control files, archived redo logs and all Oracle internal database data.&lt;/p&gt;

&lt;p&gt;Further to this, when connected to a PDB, only that PDB is exported and not automatically all PDBs within a CDB.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Total database failure scenario&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Imagine that a storage-related problem leads to unavailability of key Oracle database datafiles. Normal database functionality is thus compromised.&lt;/p&gt;

&lt;p&gt;Can Data Pump be used to recover the whole database?&lt;/p&gt;

&lt;p&gt;Although a Data Pump dump file could be utilised to re-generate exported application objects within an already running database environment, it is not able to directly recover lost database datafiles. Nor can it facilitate Oracle database recovery via media recovery.&lt;/p&gt;

&lt;p&gt;Can RMAN be used to recover the database?&lt;/p&gt;

&lt;p&gt;Indeed, RMAN is designed to facilitate such recovery.&lt;/p&gt;

&lt;p&gt;Provided that suitable database backups, redo information and control file data are available and that appropriate recovery methodologies can be applied, RMAN can both restore and recover a database.&lt;/p&gt;

&lt;p&gt;Basic recovery sequence&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Storage failure

|

v

Assess database and backup availability

|

v

Identify required RMAN backups

|

v

Restore required database files

|

v

Apply necessary recovery information

|

v

Open database as permitted

|

v

Verify application and data integrity

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Whilst the precise recovery actions will depend on the issue encountered, they should always adhere to a proven recovery methodology.&lt;/p&gt;

&lt;p&gt;Typically, RMAN will constitute the principle means of recovering from total database failure.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Incorrectly deleted table scenario&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now consider an alternative situation.&lt;/p&gt;

&lt;p&gt;An application table has been erroneously deleted.&lt;/p&gt;

&lt;p&gt;Which tool should be utilised?&lt;/p&gt;

&lt;p&gt;This will depend on the circumstances of the event and the recovery resources at a DBA's disposal.&lt;/p&gt;

&lt;p&gt;Option 1 – Oracle Flashback&lt;/p&gt;

&lt;p&gt;Where possible and appropriate, Oracle Flashback functionality can often be utilised to comparatively straightforwardly effect recovery.&lt;/p&gt;

&lt;p&gt;For example, if a table has been mistakenly dropped from a database with recycle-bin functionality enabled, it can usually be recovered via Flashback Drop. Other Flashback functionality may require further conditions to be met.&lt;/p&gt;

&lt;p&gt;Option 2 – Data Pump import&lt;/p&gt;

&lt;p&gt;Should the deleted table have been exported using a suitable Data Pump export, it could then be imported into an appropriate environment. However, the data will correspond to that captured within the export and may not represent the last committed state of data prior to the table being deleted.&lt;/p&gt;

&lt;p&gt;Option 3 – RMAN recovery&lt;/p&gt;

&lt;p&gt;RMAN offers advanced database recovery functionality including specific table recovery and point-in-time recovery methods. Feasibility will be affected by factors such as database backups, access to redo information, database configuration and recovery aims.&lt;/p&gt;

&lt;p&gt;Which is best?&lt;/p&gt;

&lt;p&gt;Generally speaking, there is no single definitive response.&lt;/p&gt;

&lt;p&gt;A DBA should ascertain:&lt;/p&gt;

&lt;p&gt;What has been deleted.&lt;/p&gt;

&lt;p&gt;When this occurred.&lt;/p&gt;

&lt;p&gt;Whether Oracle Flashback is available.&lt;/p&gt;

&lt;p&gt;Whether a suitable Data Pump export has been performed.&lt;/p&gt;

&lt;p&gt;Whether a suitable RMAN recovery point exists.&lt;/p&gt;

&lt;p&gt;What levels of data and service interruption can be tolerated.&lt;/p&gt;

&lt;p&gt;Although importing via Data Pump can sometimes prove a convenient way of recovering a singular table, this should not be automatically adopted without due consideration of recovery consistency and inter-dependencies.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Laboratory – Verifying RMAN database backups&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Below is a laboratory which demonstrates various RMAN verification methods.&lt;/p&gt;

&lt;p&gt;Environment: Authorised Oracle Database 19c test database.&lt;/p&gt;

&lt;p&gt;Step 1 – Determine database archiving mode&lt;/p&gt;

&lt;p&gt;Login to an authorised SQL session:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;log_mode&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;open_mode&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="nv"&gt;$database&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will show if the database is running in ARCHIVELOG or NOARCHIVELOG mode.&lt;/p&gt;

&lt;p&gt;This is significant as it influences the range of recovery options that are available.&lt;/p&gt;

&lt;p&gt;Step 2 – Launch RMAN&lt;/p&gt;

&lt;p&gt;On a correctly configured database server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
rman target /

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is assumed here that the OS account has been authorised for local RMAN login.&lt;/p&gt;

&lt;p&gt;Step 3 – View current backup listings&lt;/p&gt;

&lt;p&gt;At the RMAN command line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;LIST&lt;/span&gt; &lt;span class="no"&gt;BACKUP&lt;/span&gt; &lt;span class="no"&gt;SUMMARY&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Summary information regarding existing backups is then displayed.&lt;/p&gt;

&lt;p&gt;Step 4 – Assess backup needs&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;RESTORE&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt; &lt;span class="no"&gt;PREVIEW&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This aids in identifying which backups would be accessed for a database restore.&lt;/p&gt;

&lt;p&gt;Step 5 – Confirm restorability&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;RESTORE&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt; &lt;span class="no"&gt;VALIDATE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;RMAN ascertains whether it can read the backup material that is necessary for a requested database restore, without itself writing database data files.&lt;/p&gt;

&lt;p&gt;Significant I/O may occur during this process and so it should be undertaken at a suitable time, particularly within a multi-user environment.&lt;/p&gt;

&lt;p&gt;What to document&lt;/p&gt;

&lt;p&gt;Please detail within your laboratory report:&lt;/p&gt;

&lt;p&gt;Database version and archiving mode.&lt;/p&gt;

&lt;p&gt;RMAN's current backup listings.&lt;/p&gt;

&lt;p&gt;Information provided by a restore assessment.&lt;/p&gt;

&lt;p&gt;Verification outcomes.&lt;/p&gt;

&lt;p&gt;Any warnings or failures.&lt;/p&gt;

&lt;p&gt;Avoid including confidential or sensitive database and/or storage information.&lt;/p&gt;

&lt;p&gt;Important caveat&lt;/p&gt;

&lt;p&gt;Although beneficial, verification of a database backup is not a complete substitute for fully testing a database recovery within a dedicated test environment.&lt;/p&gt;

&lt;p&gt;Alongside verifying database backups, a DBA must also evaluate other elements integral to a comprehensive database recovery strategy. These include relevant redo logs, control file information, encryption keys and database configuration, as well as application verification.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Laboratory – Data Pump export and Import&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This laboratory illustrates a repeatable method of exporting and importing data. Please do not utilise live customer data, credentials or confidential database tables.&lt;/p&gt;

&lt;p&gt;Step 1 – Create a laboratory schema&lt;/p&gt;

&lt;p&gt;Within a permitted PDB test database, first establish a basic table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;training_orders&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="n"&gt;order_id&lt;/span&gt; &lt;span class="no"&gt;NUMBER&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;amount&lt;/span&gt; &lt;span class="no"&gt;NUMBER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;order_status&lt;/span&gt; &lt;span class="no"&gt;VARCHAR2&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, insert a small amount of test data:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt;

&lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;training_orders&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'PAID'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;training_orders&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;250&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'PENDING'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;training_orders&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'PAID'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dual&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;COMMIT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Confirm how many rows are present:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;total_orders&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;training_orders&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ideally, for the test data, this will return:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
TOTAL_ORDERS

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

3

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: Again, this is illustrative and not necessarily an actual outcome.&lt;/p&gt;

&lt;p&gt;Step 2 – Create a Data Pump directory&lt;/p&gt;

&lt;p&gt;Data Pump exports and imports data to and from an Oracle directory object, which in turn refers to a directory that is accessible to the database server. An administrator can view existing Oracle directory objects by executing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;directory_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;directory_path&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;all_directories&lt;/span&gt;

&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;directory_name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For this laboratory exercise, suppose that an authorised administrator has already established a directory object named:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
ACE_DP_DIR

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Furthermore, the relevant OS directory must exist and possess the correct read and write permissions.&lt;/p&gt;

&lt;p&gt;Step 3 – Export a laboratory schema&lt;/p&gt;

&lt;p&gt;Employing an Oracle client with Data Pump installed, log in using an account that is authorised for laboratory schema export.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
expdp lab_user@LABPDB \

&lt;span class="nv"&gt;SCHEMAS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;LAB_USER \

&lt;span class="nv"&gt;DIRECTORY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ACE_DP_DIR \

&lt;span class="nv"&gt;DUMPFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;lab_user_export.dmp \

&lt;span class="nv"&gt;LOGFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;lab_user_export.log \

&lt;span class="nv"&gt;FLASHBACK_TIME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;SYSTIMESTAMP

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, LAB_USER is the name of the laboratory schema.&lt;/p&gt;

&lt;p&gt;Securely input the database password when prompted; do not include it within publicly available commands or scripts.&lt;/p&gt;

&lt;p&gt;The FLASHBACK_TIME parameter enables an export to logically represent the state of supported tables at a nominated point in time. Successful implementation will rely upon the database and undo data-retention settings.&lt;/p&gt;

&lt;p&gt;Step 4 – Evaluate export results&lt;/p&gt;

&lt;p&gt;Refer to the Data Pump export log to determine if the export completed successfully and whether any errors arose.&lt;/p&gt;

&lt;p&gt;Ensure that a Data Pump dump file can be found on the database server or shared storage that Data Pump can access.&lt;/p&gt;

&lt;p&gt;Bear in mind that a Data Pump export log does not definitively confirm that all nominated database objects were successfully exported. Thus, it should be examined.&lt;/p&gt;

&lt;p&gt;Step 5 – Import into a dedicated target schema&lt;/p&gt;

&lt;p&gt;Establish a fresh, empty target schema entitled LAB_USER_RESTORE.&lt;/p&gt;

&lt;p&gt;Utilising an appropriately authorised Data Pump import account, the example below alters the source laboratory schema to be imported into the target schema:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
impdp authorized_admin@LABPDB \

&lt;span class="nv"&gt;DIRECTORY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ACE_DP_DIR \

&lt;span class="nv"&gt;DUMPFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;lab_user_export.dmp \

&lt;span class="nv"&gt;LOGFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;lab_user_import.log \

&lt;span class="nv"&gt;REMAP_SCHEMA&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;LAB_USER:LAB_USER_RESTORE

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Correct tablespace and quota settings must be in place for the target schema and the import account must have the right privileges.&lt;/p&gt;

&lt;p&gt;Again, it is assumed that neither the source nor target schema names coincide with other existing objects.&lt;/p&gt;

&lt;p&gt;Never conduct a database import within a live environment unless there has been approved change and a tested import methodology has been developed.&lt;/p&gt;

&lt;p&gt;Step 6 – Confirm imported data&lt;/p&gt;

&lt;p&gt;Post-import, execute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;restored_orders&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;lab_user_restore&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;training_orders&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the test data, ideally this will produce:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
RESTORED_ORDERS

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

3

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Compare this data with that of the source export.&lt;/p&gt;

&lt;p&gt;To further validate the import, also check:&lt;/p&gt;

&lt;p&gt;Structure of tables.&lt;/p&gt;

&lt;p&gt;Number of rows.&lt;/p&gt;

&lt;p&gt;Primary and foreign key constraints.&lt;/p&gt;

&lt;p&gt;Indexes.&lt;/p&gt;

&lt;p&gt;Permissions.&lt;/p&gt;

&lt;p&gt;Stored procedures and other inter-linked objects.&lt;/p&gt;

&lt;p&gt;Application functionality.&lt;/p&gt;

&lt;p&gt;Equivalence in row count does not necessarily indicate that an entire and successfully conducted logical database recovery has taken place.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Data Pump does not inherently offer continuous recovery&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Consider a scenario whereby a schema is exported at 10.00am. Thereafter, further database transactions are executed.&lt;/p&gt;

&lt;p&gt;At 4.00pm, a problem emerges.&lt;/p&gt;

&lt;p&gt;Should a DBA import data based on the 10.00am export, generally this will represent a snapshot of database data at that time. However, it will not automatically encompass any transactions that had been committed after the export.&lt;/p&gt;

&lt;p&gt;Hence it is evident that Data Pump exports should not be used in place of a well-designed RMAN and archived redo log backup strategy.&lt;/p&gt;

&lt;p&gt;Where suitable database backups and redo information are available, RMAN can typically allow for more detailed recovery.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using RMAN and Data Pump for database transitions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Alongside backup and recovery, it is also common for DBAs to be involved in transitioning databases between different environments and/or Oracle versions.&lt;/p&gt;

&lt;p&gt;Data Pump is especially well suited for facilitating logical database transitions.&lt;/p&gt;

&lt;p&gt;For instance, a DBA may be required to transfer an application schema from an older, but still supported version of Oracle to Oracle Database 19c.&lt;/p&gt;

&lt;p&gt;Generally, a Data Pump database transition will involve:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Source database

|

v

Check source version and compatibility

|

v

Prepare target Oracle 19c database/PDB

|

v

Export supported schema objects

|

v

Transfer and secure dump files

|

v

Import into target

|

v

Validate objects, data, and application

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Oracle provides Data Pump import and export functionality for transitioning supported data between differing database versions. Nevertheless, it is important to investigate the compatibility and limitations in relation to the particular source and destination database versions.&lt;/p&gt;

&lt;p&gt;Can RMAN directly import an older database backup into Oracle 19c?&lt;/p&gt;

&lt;p&gt;No.&lt;/p&gt;

&lt;p&gt;Unlike a Data Pump export, a physical database backup from an unspecified older Oracle version is not simply transferrable to a new Oracle 19c database. Some RMAN-based database transition and upgrade approaches are available, but each will have specific requirements and compatibility considerations.&lt;/p&gt;

&lt;p&gt;The correct database transition approach will depend on the source and destination database versions, together with the relevant platform and architecture and the supported Oracle upgrade route.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;RMAN and Data Pump within banking&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Within banking, where both data and database availability are of prime importance, a sound strategy should take into account both physical and logical aspects of recovery.&lt;/p&gt;

&lt;p&gt;Physical recovery strategy&lt;/p&gt;

&lt;p&gt;RMAN should feature within a thoroughly tested database back-up and recovery strategy. Key tasks are:&lt;/p&gt;

&lt;p&gt;Ensuring that appropriate database back-up types are carried out.&lt;/p&gt;

&lt;p&gt;Securing archive redo logs.&lt;/p&gt;

&lt;p&gt;Monitoring the progress of database back-ups.&lt;/p&gt;

&lt;p&gt;Verifying recoverability.&lt;/p&gt;

&lt;p&gt;Protecting database back-up storage.&lt;/p&gt;

&lt;p&gt;Testing database restoration and recovery.&lt;/p&gt;

&lt;p&gt;Maintaining documentation of recovery processes.&lt;br&gt;
Logical export&lt;/p&gt;

&lt;p&gt;Logical export can be utilised to further enhance a physical recovery strategy.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;p&gt;Export application schemas.&lt;/p&gt;

&lt;p&gt;Produce logical copies for authorised testing.&lt;/p&gt;

&lt;p&gt;Enable targeted migration.&lt;/p&gt;

&lt;p&gt;Ensure logical data is retained ahead of approved application updates.&lt;/p&gt;

&lt;p&gt;Transfer supported objects between environments.&lt;/p&gt;

&lt;p&gt;Security&lt;/p&gt;

&lt;p&gt;Backups and exports can include confidential data.&lt;/p&gt;

&lt;p&gt;Appropriate security, including encryption where necessary, should be applied to RMAN and Data Pump backups and exports. There should also be defined management of, and secure storage for, these items.&lt;/p&gt;

&lt;p&gt;Whilst a database should be backed up, it is also essential that those carrying out recovery can access and utilise back-ups effectively.&lt;/p&gt;

&lt;p&gt;Recovery Point and Time Objectives&lt;/p&gt;

&lt;p&gt;Two vital aspects of a recovery strategy are:&lt;/p&gt;

&lt;p&gt;Recovery Point Objective&lt;/p&gt;

&lt;p&gt;The maximum period of data that can be lost.&lt;/p&gt;

&lt;p&gt;Recovery Time Objective&lt;/p&gt;

&lt;p&gt;The maximum period of time that a service can be disrupted.&lt;/p&gt;

&lt;p&gt;For example, if a business states that:&lt;/p&gt;

&lt;p&gt;RPO = 15 minutes&lt;/p&gt;

&lt;p&gt;RTO = 2 hours&lt;/p&gt;

&lt;p&gt;Then a recovery strategy should seek to ensure that no more than 15 minutes worth of data is lost and that the relevant service can be restored within 2 hours.&lt;/p&gt;

&lt;p&gt;Please note that these are aspirational goals.&lt;/p&gt;

&lt;p&gt;It is the responsibility of the DBA to confirm that the backup and recovery strategy can achieve these goals.&lt;/p&gt;

&lt;p&gt;Typically, a daily Data Pump export would not meet a 15 minute RPO.&lt;/p&gt;

&lt;p&gt;Depending on business needs, a combination of RMAN, archive redo log capability, high availability and/or a standby database, together with other techniques, could be suitable to achieve the desired outcome.&lt;/p&gt;

&lt;p&gt;Common DBA errors&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using EXPDP as a complete disaster recovery technique&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;EXPDP is a logical export facility.&lt;/p&gt;

&lt;p&gt;It should not be used as an alternative to physical recovery.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Believing that because an RMAN backup has been successfully run, it can always be used for recovery&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Even if an RMAN backup completes successfully, this does not always ensure that full recovery can be achieved. Undertake suitable validation and recovery testing.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Failing to confirm archive redo logs are available&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Where it is necessary to recover data beyond the point-in-time of the last backup, archive redo logs can be crucial. The DBA needs to be aware of the backup and archive log management settings.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Importing a dump without confirming suitability&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;During a Data Pump import, issues such as mismatched schema, database version, character set, permissions and/or functionality can prevent a successful import. Always analyse the particular migration requirements.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Considering that because IMPDP was successfully run, the application is now in a fit state&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Logical imports need to be validated. Assess data, objects, permissions and application operation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Conducting recovery tests within production&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Generally, recovery testing should occur within a secure, dedicated test environment and under appropriate control. Within production, recovery tasks must be executed under an authorised incident or change management process.&lt;/p&gt;

&lt;p&gt;Best practice for DBAs&lt;/p&gt;

&lt;p&gt;An ideal Oracle DBA will utilise the correct technology for each task.&lt;/p&gt;

&lt;p&gt;Physical recovery can be achieved using well-tested RMAN strategies and relevant supporting information.&lt;/p&gt;

&lt;p&gt;For logical export and migration, Data Pump should be used ensuring that suitable validation, permissions and compatibility are in place.&lt;/p&gt;

&lt;p&gt;Information should be recorded for both physical and logical recovery/migration, covering:&lt;/p&gt;

&lt;p&gt;The recovery/migration goal.&lt;/p&gt;

&lt;p&gt;Source and destination environments.&lt;/p&gt;

&lt;p&gt;Oracle database versions.&lt;/p&gt;

&lt;p&gt;Conditions/requirements.&lt;/p&gt;

&lt;p&gt;Commands.&lt;/p&gt;

&lt;p&gt;Outcomes.&lt;/p&gt;

&lt;p&gt;Notes and constraints.&lt;/p&gt;

&lt;p&gt;Validation steps.&lt;/p&gt;

&lt;p&gt;Methods of rollback/recovery.&lt;/p&gt;

&lt;p&gt;Above all, even if a good quality backup or export is achieved, it is vital to confirm that the relevant data and services can indeed be recovered in line with the business’ goals.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Both Oracle Recovery Manager and Data Pump are valuable tools for Oracle Database Administrators. However, they address distinct areas.&lt;/p&gt;

&lt;p&gt;RMAN is used for physical Oracle database file backup and recovery.&lt;/p&gt;

&lt;p&gt;Data Pump is used for logical export together with import and for migration of database objects and data.&lt;/p&gt;

&lt;p&gt;Neither RMAN nor Data Pump should be chosen merely for their ability to generate a file which can be referred to as a backup.&lt;/p&gt;

&lt;p&gt;The right option will depend on what is to be recovered, the acceptable level of data loss and the desired speed of service resumption together with the available recovery techniques.&lt;/p&gt;

&lt;p&gt;For a DBA, key practice is to establish a robust physical recovery strategy using RMAN. Data Pump should then be used to enable logical data transfer and for some recovery situations. Both should be tested and their constraints analysed. Never consider that because a backup has been generated, recovery will automatically succeed.&lt;/p&gt;

&lt;p&gt;Oracle Documentation&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database 19c – Introduction to Backup and Recovery&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/introduction-backup-recovery.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/introduction-backup-recovery.html&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database 19c – Getting Started with RMAN&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/getting-started-rman.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/getting-started-rman.html&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database 19c – Validating Database Files and Backups&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/validating-database-files-backups.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/validating-database-files-backups.html&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database 19c – Overview of Oracle Data Pump&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-overview.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-overview.html&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database 19c – Data Pump Export&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database 19c – Data Pump Import&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/datapump-import-utility.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/datapump-import-utility.html&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database 19c – Performing Complete Database Recovery&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/rman-complete-database-recovery.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/rman-complete-database-recovery.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Abdulrawof Totakhil&lt;br&gt;
Database Administrator&lt;br&gt;
For questions or collaboration, let's connect on LinkedIn.&lt;br&gt;
🔗 &lt;a href="https://www.linkedin.com/in/abdulrawof-totakhil%E2%81%A0%EF%BF%BC" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/abdulrawof-totakhil⁠￼&lt;/a&gt; &lt;/p&gt;

</description>
      <category>oracle</category>
      <category>database</category>
      <category>sql</category>
      <category>learning</category>
    </item>
    <item>
      <title>Why Oracle Database Users Disappear: Understanding CDB_USERS and DBA_USERS in Oracle 19c</title>
      <dc:creator>Abdulrawof Totakhil</dc:creator>
      <pubDate>Sat, 21 Nov 2026 04:11:50 +0000</pubDate>
      <link>https://dev.to/abdulrawoftotakhil/why-oracle-database-users-disappear-understanding-cdbusers-and-dbausers-in-oracle-19c-4na2</link>
      <guid>https://dev.to/abdulrawoftotakhil/why-oracle-database-users-disappear-understanding-cdbusers-and-dbausers-in-oracle-19c-4na2</guid>
      <description>&lt;p&gt;&lt;strong&gt;A Practical DBA Troubleshooting Guide for Local Users, Common Users, CDBs and PDBs&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technology:&lt;/strong&gt; Oracle Database 19c&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Environment:&lt;/strong&gt; Oracle Multitenant Architecture&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical Focus:&lt;/strong&gt; Database User Management, SQL, Troubleshooting and Security&lt;/p&gt;




&lt;p&gt;When you manage Oracle Database 19c, you might see that a database user does not appear when you query &lt;code&gt;DBA_USERS&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;At first, this result might make you think the database user is missing.&lt;/p&gt;

&lt;p&gt;In Oracle multitenant architecture, this outcome does not always mean the user was deleted or never created.&lt;/p&gt;

&lt;p&gt;The account could live inside a Pluggable Database (PDB), while you are connected to the Container Database root, &lt;code&gt;CDB$ROOT&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Knowing this difference matters for database administration, application access control, troubleshooting and security.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Understanding Oracle Multitenant Architecture
&lt;/h2&gt;

&lt;p&gt;Oracle Database 19c runs an architecture.&lt;/p&gt;

&lt;p&gt;In this design, a Container Database (CDB) can hold Pluggable Databases (PDBs).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Oracle Database 19c

+-- CDB$ROOT

|   |

|   +-- Common users and CDB administration

|

+-- PDB$SEED

|   |

|   +-- Template for creating PDBs

|

+-- LABPDB

|

+-- Application schemas

+-- Local database users

+-- Application tables

+-- Database objects

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;CDB$ROOT is the main container of the CDB.&lt;/p&gt;

&lt;p&gt;CDB$ROOT stores Oracle system. Handles database-wide administration tasks.&lt;/p&gt;

&lt;p&gt;A Pluggable Database is a database container that holds application schemas, user accounts and data.&lt;/p&gt;

&lt;p&gt;Each PDB can keep its local user accounts.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;PDB$SEED&lt;/code&gt; is a system template used when you create PDBs.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;PDB$SEED&lt;/code&gt; is usually read-only.&lt;/p&gt;

&lt;p&gt;A database session works inside a current container.&lt;/p&gt;

&lt;p&gt;The container you are connected to determines which database users, schemas and objects you can see.&lt;/p&gt;

&lt;p&gt;If you are connected to the CDB root, do not assume that querying &lt;code&gt;DBA_USERS&lt;/code&gt; will show all users in every PDB.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Understanding Common Users and Local Users
&lt;/h2&gt;

&lt;p&gt;Oracle setups separate common users from local users.&lt;/p&gt;

&lt;p&gt;A common user can live in containers within its defined scope.&lt;/p&gt;

&lt;p&gt;In a CDB, common users usually get the &lt;code&gt;C##&lt;/code&gt; prefix unless you change the naming rule.&lt;/p&gt;

&lt;p&gt;Common users can get privileges that apply across containers, based on how the privileges were granted.&lt;/p&gt;

&lt;p&gt;A common user does not automatically own all database objects.&lt;/p&gt;

&lt;p&gt;A local user belongs to one PDB.&lt;/p&gt;

&lt;p&gt;For example, the user &lt;code&gt;LAB_READER&lt;/code&gt; may exist in &lt;code&gt;LABPDB&lt;/code&gt; but not in &lt;code&gt;CDB$ROOT&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can. Manage a local user inside its PDB, if you have the right admin rights.&lt;/p&gt;

&lt;p&gt;Oracle gives you a &lt;code&gt;COMMON&lt;/code&gt; column in its user dictionary views.&lt;/p&gt;

&lt;p&gt;Common | Meaning |&lt;/p&gt;

&lt;p&gt;|--------|---------|&lt;/p&gt;

&lt;p&gt;| YES     Common user |&lt;/p&gt;

&lt;p&gt;| NO      Local user |&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;common&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;account_status&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you run the query in the right PDB, a local user will normally have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
COMMON = NO

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. The Problem: User Not Found in DBA_USERS
&lt;/h2&gt;

&lt;p&gt;Consider a DBA checking whether an application account exists.&lt;/p&gt;

&lt;p&gt;The DBA connects to the CDB root and executes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;account_status&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Illustrative result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
no rows selected

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Conclusion should not be made immediately that the user has been deleted.&lt;/p&gt;

&lt;p&gt;The database session may be connected to the container.&lt;/p&gt;

&lt;p&gt;The next step should be to confirm where the current session is connected.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Step 1. Identify the Current Container
&lt;/h2&gt;

&lt;p&gt;Oracle SQL*Plus provides a command to identify the current container.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;SHOW&lt;/span&gt; &lt;span class="no"&gt;CON_NAME&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
CON_NAME

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

CDB$ROOT

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Result indicates that the current session is connected to the CDB root.&lt;/p&gt;

&lt;p&gt;Alternatively, use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="no"&gt;SYS_CONTEXT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="s1"&gt;'USERENV'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s1"&gt;'CON_NAME'&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;current_container&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dual&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Query can be useful in tools that do not support SQL*Plus SHOW commands.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why should DBAs check this first?
&lt;/h3&gt;

&lt;p&gt;Because a query may return information depending on the current container.&lt;/p&gt;

&lt;p&gt;Before troubleshooting missing users or objects, confirm the current container.&lt;/p&gt;

&lt;p&gt;Simple step can prevent account recreation, privilege changes and confusion.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Step 2. Check Available PDBs
&lt;/h2&gt;

&lt;p&gt;From an administrative session in the CDB root, execute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;SHOW&lt;/span&gt; &lt;span class="no"&gt;PDBS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Displays the PDBs known to the database, together with their open mode.&lt;/p&gt;

&lt;p&gt;A SQL alternative is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;con_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;open_mode&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="nv"&gt;$containers&lt;/span&gt;

&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;con_id&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
CON_ID  NAME       OPEN_MODE

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

1       CDB$ROOT   READ WRITE

2       PDB$SEED   READ ONLY

3       LABPDB     READ WRITE

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CON_ID column identifies the database container.&lt;/p&gt;

&lt;p&gt;Typical identifiers are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;1&lt;/code&gt;: CDB root&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;2&lt;/code&gt;: PDB seed&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;3&lt;/code&gt; and higher: PDBs and supported container types&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An important point is that the container ID must be obtained from the database rather than assumed.&lt;/p&gt;

&lt;p&gt;For example, LABPDB is shown as container 3 here for demonstration.&lt;/p&gt;

&lt;p&gt;Your environment may use another container name or ID.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Step 3. Locate the User Using CDB_USERS
&lt;/h2&gt;

&lt;p&gt;The dictionary view is useful for investigating database users across containers.&lt;/p&gt;

&lt;p&gt;From the CDB root, a privileged session can execute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;con_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;common&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;account_status&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;cdb_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;

&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;con_id&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Illustrative result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
CON_ID  USERNAME     COMMON  ACCOUNT_STATUS

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

3       LAB_READER   NO      OPEN

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What does this result mean?
&lt;/h3&gt;

&lt;p&gt;Result indicates that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The account exists in container ID 3.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is an user (COMMON = NO).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Its account status is OPEN.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Result demonstrates why the account did not appear in the earlier root-level DBA_USERS query.&lt;/p&gt;

&lt;p&gt;The account was associated with a PDB than the root.&lt;/p&gt;

&lt;h3&gt;
  
  
  security consideration
&lt;/h3&gt;

&lt;p&gt;Oracle restricts access to data dictionary views.&lt;/p&gt;

&lt;p&gt;A common user querying CDB_USERS from the root may see the containers allowed by its privileges and CONTAINER_DATA configuration.&lt;/p&gt;

&lt;p&gt;Therefore, a missing row in CDB_USERS is not always proof that a user does not exist.&lt;/p&gt;

&lt;p&gt;If the expected account's absent, verify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The database sessions current container.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dictionary query privileges.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Applicable container-data visibility.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Whether the relevant PDB is open and accessible.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Whether the query uses the username.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For this reason, it is helpful to perform troubleshooting using an authorized administrative account.&lt;/p&gt;

&lt;p&gt;Do not grant privileges simply to make a troubleshooting query succeed.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Step 4. Verify the User Inside Its PDB
&lt;/h2&gt;

&lt;p&gt;After you have found the PDB, connect directly to that PDB or change to it with an account that has the needed privileges.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;SESSION&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="no"&gt;CONTAINER&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;LABPDB&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This change to the session is administrative. Needs the right privileges.&lt;/p&gt;

&lt;p&gt;Confirm the session:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;SHOW&lt;/span&gt; &lt;span class="no"&gt;CON_NAME&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
CON_NAME

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

LABPDB

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now execute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;account_status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;common&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Expected example output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
USERNAME     ACCOUNT_STATUS  COMMON

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

LAB_READER   OPEN            NO

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The user becomes visible because the session is now connected to the PDB that holds the account.&lt;/p&gt;

&lt;h3&gt;
  
  
  lesson
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;DBA_USERS&lt;/code&gt; is not malfunctioning.&lt;/p&gt;

&lt;p&gt;The query result depends on the container.&lt;/p&gt;

&lt;p&gt;When fixing user accounts in Oracle 19c, always check if the account is local to a PDB.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Reproducible Laboratory Demonstration
&lt;/h2&gt;

&lt;p&gt;This example lets administrators see how things work in a test environment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; This section has a command that changes the database. Use it in a lab that is meant for testing. Do not create accounts or change containers in production without the approval.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1. Connect to the lab PDB
&lt;/h3&gt;

&lt;p&gt;With an admin session, switch to the lab PDB:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;SESSION&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="no"&gt;CONTAINER&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;LABPDB&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify the current container:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;SHOW&lt;/span&gt; &lt;span class="no"&gt;CON_NAME&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2. Create a schema‑only user
&lt;/h3&gt;

&lt;p&gt;To demo without storing a password in the article, create a schema-only account:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;USER&lt;/span&gt; &lt;span class="no"&gt;LAB_READER&lt;/span&gt; &lt;span class="no"&gt;NO&lt;/span&gt; &lt;span class="no"&gt;AUTHENTICATION&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A schema- account does not have a normal password and cannot log in by itself.&lt;/p&gt;

&lt;p&gt;The schema‑only account is useful because we want to show user metadata, not test authentication.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;USER&lt;/code&gt; command requires the appropriate administrative privilege.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3. Verify the account in the PDB
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;account_status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;authentication_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;common&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check that the account appears.&lt;/p&gt;

&lt;p&gt;For a schema- account, the &lt;code&gt;AUTHENTICATION_TYPE&lt;/code&gt; column should identify &lt;code&gt;NONE&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The account should also be marked as local.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4. Switch to the root
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;SESSION&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="no"&gt;CONTAINER&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;CDB&lt;/span&gt;&lt;span class="nv"&gt;$ROOT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 5. Query DBA_USERS
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;account_status&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For this local-only account, the expected result in the root is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
no rows selected

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 6. Query CDB_USERS
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;con_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;common&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;cdb_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With sufficient dictionary access and container visibility, this query should identify the PDB that holds the account.&lt;/p&gt;

&lt;p&gt;The exact output depends on the environment, user privileges and container configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7. Record the result
&lt;/h3&gt;

&lt;p&gt;Capture the SQL outputs. Compare the two views.&lt;/p&gt;

&lt;p&gt;The difference demonstrates the importance of understanding container context in an environment.&lt;/p&gt;

&lt;p&gt;Any cleanup, such as dropping the laboratory account, should be performed after confirming that it is the intended disposable test account and that cleanup is authorized.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. DBA_USERS vs CDB_USERS. Key Differences
&lt;/h2&gt;

&lt;p&gt;The following table summarizes the important differences.&lt;/p&gt;

&lt;p&gt;| Feature DBA_USERS | CDB_USERS |&lt;/p&gt;

&lt;p&gt;|---|---|---|&lt;/p&gt;

&lt;p&gt;| User information | Current container | multiple containers |&lt;/p&gt;

&lt;p&gt;| CON_ID column | No | Yes |&lt;/p&gt;

&lt;p&gt;Local users in other PDBs | Not displayed | Visible when permitted |&lt;/p&gt;

&lt;p&gt;| Current container matters | Yes | Yes |&lt;/p&gt;

&lt;p&gt;Dictionary privileges required | Yes | Yes |&lt;/p&gt;

&lt;p&gt;| Suitable for Container‑level account checks | CDB‑wide account investigation |&lt;/p&gt;

&lt;h3&gt;
  
  
  When should DBA_USERS be used?
&lt;/h3&gt;

&lt;p&gt;Use &lt;code&gt;DBA_USERS&lt;/code&gt; to check account information inside the container that is currently connected to your database session.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Confirm whether a user exists in a PDB using &lt;code&gt;DBA_USERS&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check an accounts status with &lt;code&gt;DBA_USERS&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Review authentication configuration via &lt;code&gt;DBA_USERS&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Investigate local application accounts using &lt;code&gt;DBA_USERS&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  When should CDB_USERS be used?
&lt;/h3&gt;

&lt;p&gt;Use &lt;code&gt;CDB_USERS&lt;/code&gt; to identify user accounts across containers from the CDB root when the session has the visibility.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Find which PDB contains an username using &lt;code&gt;CDB_USERS&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Compare account metadata across PDBs with &lt;code&gt;CDB_USERS&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Review common users through &lt;code&gt;CDB_USERS&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Support multitenant account inventory work with &lt;code&gt;CDB_USERS&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  10. Other Reasons a Database User Might Not Appear
&lt;/h2&gt;

&lt;p&gt;Container context is a cause of missing-user confusion, but it is not the only possible explanation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Incorrect username spelling
&lt;/h3&gt;

&lt;p&gt;Oracle normally stores user identifiers in uppercase.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;USER&lt;/span&gt; &lt;span class="n"&gt;lab_reader&lt;/span&gt; &lt;span class="no"&gt;NO&lt;/span&gt; &lt;span class="no"&gt;AUTHENTICATION&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The name is generally stored as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
LAB_READER

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A search that uses lowercase text may return no rows if the comparison is case-sensitive.&lt;/p&gt;

&lt;p&gt;A diagnostic query can use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="nb"&gt;UPPER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;LIKE&lt;/span&gt; &lt;span class="s1"&gt;'%LAB%'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Be careful with quoted, case- user identifiers because applying &lt;code&gt;UPPER()&lt;/code&gt; is not equivalent to an exact search.&lt;/p&gt;

&lt;h3&gt;
  
  
  Connected to the PDB service
&lt;/h3&gt;

&lt;p&gt;A client may connect using an incorrect service name.&lt;/p&gt;

&lt;p&gt;This can place the session in a PDB from the intended one.&lt;/p&gt;

&lt;p&gt;Verify the container after connecting.&lt;/p&gt;

&lt;h3&gt;
  
  
  Account. Is locked
&lt;/h3&gt;

&lt;p&gt;A locked account still exists in the data dictionary.&lt;/p&gt;

&lt;p&gt;To review its status:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;account_status&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An account marked &lt;code&gt;LOCKED&lt;/code&gt; or &lt;code&gt;EXPIRED&lt;/code&gt; is not the same as a missing account.&lt;/p&gt;

&lt;p&gt;Avoid unlocking or changing authentication settings until the access requirement has been reviewed and approved.&lt;/p&gt;

&lt;h3&gt;
  
  
  dictionary privileges
&lt;/h3&gt;

&lt;p&gt;A user may not have permission to query &lt;code&gt;DBA_USERS&lt;/code&gt; or &lt;code&gt;CDB_USERS&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The database may raise a privilege‑related error than displaying the expected information.&lt;/p&gt;

&lt;p&gt;The solution is to use an account or request appropriately scoped dictionary access.&lt;/p&gt;

&lt;p&gt;Broad roles such as &lt;code&gt;DBA&lt;/code&gt; should not be granted merely to run a query.&lt;/p&gt;

&lt;h3&gt;
  
  
  Restricted container visibility
&lt;/h3&gt;

&lt;p&gt;when a user can query &lt;code&gt;CDB_USERS&lt;/code&gt;, the result may not contain rows from every PDB.&lt;/p&gt;

&lt;p&gt;Oracles container-data security rules influence visibility.&lt;/p&gt;

&lt;p&gt;A complete investigation may require an administrator to review those settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  11. Security and Banking Database Considerations
&lt;/h2&gt;

&lt;p&gt;Correctly identifying a users container is especially important in enterprise environments.&lt;/p&gt;

&lt;p&gt;Database accounts should be managed according to the principle of privilege.&lt;/p&gt;

&lt;p&gt;This means granting users the access necessary for their responsibilities.&lt;/p&gt;

&lt;p&gt;In an environment, account reviews should also consider whether the privilege is local or common.&lt;/p&gt;

&lt;p&gt;Some practical recommendations include:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Identify the PDB before making account changes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Verify the accounts existence and status before recreating it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Avoid granting roles or system privileges.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Confirm whether required privileges apply locally or across containers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Review account changes through authorized change‑management processes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Maintain audit records for administrative activity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Avoid sharing database usernames, credentials, connection details or infrastructure identifiers publicly.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When preparing technical articles, use fictional account names and laboratory environments.&lt;/p&gt;

&lt;p&gt;The objective is to explain Oracle behavior without disclosing operational information.&lt;/p&gt;

&lt;h2&gt;
  
  
  12. SQL Troubleshooting Checklist
&lt;/h2&gt;

&lt;p&gt;The following read‑only checks provide a starting point for investigating missing user accounts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check the container
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="no"&gt;SYS_CONTEXT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="s1"&gt;'USERENV'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s1"&gt;'CON_NAME'&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;current_container&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dual&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Check whether the target account exists in the container
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;account_status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;common&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Search across containers
&lt;/h3&gt;

&lt;p&gt;Run from the root with the required privileges:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;con_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the text that the user provided:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="n"&gt;account_status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;cdb_users&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'LAB_READER'&lt;/span&gt;

&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;con_id&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  Map container IDs to container names
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;con_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;open_mode&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="nv"&gt;$containers&lt;/span&gt;

&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;con_id&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Confirm the session user
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="no"&gt;SYS_CONTEXT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="s1"&gt;'USERENV'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s1"&gt;'SESSION_USER'&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;session_user&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dual&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Together, these checks together help figure out where the session is connected, whether the account is visible and which container should be examined next.&lt;/p&gt;

&lt;h2&gt;
  
  
  13. Suggested Original Screenshots
&lt;/h2&gt;

&lt;p&gt;To give technical proof, a practical article should show screenshots from real Oracle SQL execution.&lt;/p&gt;

&lt;h3&gt;
  
  
  Screenshot 1. Current container
&lt;/h3&gt;

&lt;p&gt;Display the result of &lt;code&gt;SHOW CON_NAME&lt;/code&gt; or the equivalent SQL query.&lt;/p&gt;

&lt;h3&gt;
  
  
  Screenshot 2. Root DBA_USERS result
&lt;/h3&gt;

&lt;p&gt;Display the result of searching for the account from &lt;code&gt;CDB$ROOT&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Screenshot 3. CDB_USERS result
&lt;/h3&gt;

&lt;p&gt;Display the account with its &lt;code&gt;CON_ID&lt;/code&gt; value.&lt;/p&gt;

&lt;h3&gt;
  
  
  Screenshot 4. PDB DBA_USERS result
&lt;/h3&gt;

&lt;p&gt;Display the local account found from the relevant PDB.&lt;/p&gt;

&lt;h3&gt;
  
  
  Screenshot 5. Comparison
&lt;/h3&gt;

&lt;p&gt;If useful, include a concise table explaining the different results.&lt;/p&gt;

&lt;p&gt;All screenshots should be laboratory execution evidence. Example outputs printed in this guide are illustrative. Are not substitutes for original screenshots.&lt;/p&gt;

&lt;h2&gt;
  
  
  14. Lessons Learned
&lt;/h2&gt;

&lt;p&gt;This type of issue shows useful Oracle DBA principles.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, always check the container.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A database user may exist in a PDB when a query against &lt;code&gt;DBA_USERS&lt;/code&gt; in the root returns no rows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, understand the purpose of each view.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;DBA_USERS&lt;/code&gt; is useful for the container, while &lt;code&gt;CDB_USERS&lt;/code&gt; supports container‑aware investigations from the root.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Third, understand common users.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A local account does not automatically exist in every PDB or in the root.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fourth, verify visibility and privileges.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Access to dictionary information is controlled by Oracle security rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fifth, avoid account changes.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before creating a replacement user or granting privileges, establish whether the original user already exists in another container.&lt;/p&gt;

&lt;p&gt;These principles can reduce troubleshooting errors. Support more consistent database administration.&lt;/p&gt;

&lt;p&gt;Oracle Database 19c multitenant architecture introduces a distinction between database-wide administration and container‑specific user management.&lt;/p&gt;

&lt;p&gt;When a database account appears to be missing, the first troubleshooting step should be to identify the container.&lt;/p&gt;

&lt;p&gt;A local user may not appear in &lt;code&gt;DBA_USERS&lt;/code&gt; when the DBA is connected to &lt;code&gt;CDB$ROOT&lt;/code&gt;, even though the account exists in a PDB.&lt;/p&gt;

&lt;p&gt;With privileges and container visibility, &lt;code&gt;CDB_USERS&lt;/code&gt; can help identify the container associated with that account.&lt;/p&gt;

&lt;p&gt;The main takeaway is simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before concluding that an Oracle Database user does not exist, verify the container and investigate the account using the appropriate data dictionary views.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This approach supports troubleshooting, effective account administration and safer management of Oracle multitenant databases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Official Oracle Documentation
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Oracle Database 19c. Multitenant Architecture Overview&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/overview-of-the-multitenant-architecture.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/overview-of-the-multitenant-architecture.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Oracle Database 19c. Creating User Accounts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/creating-user-accounts.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/creating-user-accounts.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Oracle Database 19c. CDB Views&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/cdb_-views.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/cdb_-views.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Oracle Database 19c. DBA_USERS Reference&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/DBA_USERS.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/DBA_USERS.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Oracle Database 19c. Monitoring CDBs and PDBs&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/viewing-information-about-cdbs-and-pdbs-with-sql-plus.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/viewing-information-about-cdbs-and-pdbs-with-sql-plus.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Oracle Database 19c. Schema- Accounts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/schema-only-accounts.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/schema-only-accounts.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Technical reference prepared with AI assistance. The laboratory outputs shown are illustrative unless separately documented by execution evidence. This document should not be represented as authored content for a program that prohibits AI‑generated submissions.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>database</category>
      <category>oracle</category>
      <category>sql</category>
    </item>
    <item>
      <title>Oracle SQL Developer 26.2 Startup Failure on Windows: Fixing Netigso Errors and Recovering Database Connections</title>
      <dc:creator>Abdulrawof Totakhil</dc:creator>
      <pubDate>Tue, 17 Nov 2026 06:57:21 +0000</pubDate>
      <link>https://dev.to/abdulrawoftotakhil/oracle-sql-developer-262-startup-failure-on-windows-fixing-netigso-errors-and-recovering-database-1gei</link>
      <guid>https://dev.to/abdulrawoftotakhil/oracle-sql-developer-262-startup-failure-on-windows-fixing-netigso-errors-and-recovering-database-1gei</guid>
      <description>&lt;p&gt;Oracle SQL Developer 26.2 Fails To Start On Windows – Fixing Netigso Errors &amp;amp; Recovering Connections&lt;/p&gt;

&lt;p&gt;A practical example of troubleshooting an Oracle SQL Developer error when launching the application. This includes checking the ZIP archive, Java libraries, user profile and moving connections.&lt;/p&gt;

&lt;p&gt;Windows x64 Environment&lt;/p&gt;

&lt;p&gt;Oracle SQL Developer 26.2.0.186.2220&lt;/p&gt;

&lt;p&gt;Previous version SQL Developer 24.3&lt;/p&gt;

&lt;p&gt;Date: 15th November 2026&lt;/p&gt;

&lt;p&gt;Topic: Oracle Database tools &amp;amp; Windows Troubleshooting.&lt;/p&gt;

&lt;p&gt;Introduction&lt;/p&gt;

&lt;p&gt;Oracle SQL Developer is a tool used by DBAs and Developers to interact with Oracle databases. This allows SQL to be run, database objects managed and general administration tasks performed.&lt;/p&gt;

&lt;p&gt;Although upgrading to a newer version of SQL Developer should be a simple task, sometimes the application can have issues launching.&lt;/p&gt;

&lt;p&gt;Example&lt;/p&gt;

&lt;p&gt;When attempting to install Oracle SQL Developer 26.2 on a Windows workstation.&lt;/p&gt;

&lt;p&gt;Upon trying to launch the application there were errors relating to multiple software modules failing to be loaded.&lt;/p&gt;

&lt;p&gt;The application raised an initial warning:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Warning - could not install some modules

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There were also additional messages relating to Netigso and missing software bundles.&lt;/p&gt;

&lt;p&gt;At first this appeared to indicate that there was an issue with the archive not being fully downloaded, or the application missing some files.&lt;/p&gt;

&lt;p&gt;Further investigation showed that the downloaded archive had the correct checksum when compared to Oracle. The chosen Java libraries were also present.&lt;/p&gt;

&lt;p&gt;The issue was resolved by backing up and refreshing the SQL Developer user profile.&lt;/p&gt;

&lt;p&gt;This article covers how the issue was investigated, the commands used, the results and how DBAs should be cautious when dealing with similar errors.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Understanding The Issue&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The version of Oracle SQL Developer we had was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
26.2.0.186.2220

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Installed on Windows using the ZIP archive.&lt;/p&gt;

&lt;p&gt;ZIP Archive:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
sqldeveloper-26.2.0.186.2220-x64.zip

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Extracted application folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
C:\oracle\SQLDeveloper26.2\sqldeveloper

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Upon attempting to launch the application there were errors relating to several modules not being initialised.&lt;/p&gt;

&lt;p&gt;Errors:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Warning - could not install some modules

org.netbeans.InvalidException: Netigso

Not found bundle: oracle.jewt_core

Not found bundle: oracle.external.jdbc

Not found bundle: oracle.ide.editor

Not found bundle: oracle.javatools_jdk

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What Is Netigso?&lt;/p&gt;

&lt;p&gt;Netigso is used by NetBeans to allow modules to be integrated into the application.&lt;/p&gt;

&lt;p&gt;Oracle SQL Developer uses multiple modules.&lt;/p&gt;

&lt;p&gt;If some modules are not loaded or initialised correctly then SQL Developer will raise warnings and fail to launch.&lt;/p&gt;

&lt;p&gt;It is important to note that just because there is an error related to a missing bundle does not mean that the file is not present.&lt;/p&gt;

&lt;p&gt;The module may be present however there may be another issue preventing it from loading.&lt;/p&gt;

&lt;p&gt;It may not be best practice to replace the files.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Checking The ZIP Archive&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first thing to do was check that the SQL Developer ZIP file had been downloaded correctly.&lt;/p&gt;

&lt;p&gt;The issue with modules failing to load could be due to the archive being corrupt.&lt;/p&gt;

&lt;p&gt;Oracle will provide checksums for their downloadable archives.&lt;/p&gt;

&lt;p&gt;A checksum is used to help confirm that the file you have downloaded is the correct one.&lt;/p&gt;

&lt;p&gt;Step 1 – Launch PowerShell&lt;/p&gt;

&lt;p&gt;Open PowerShell on your Windows workstation.&lt;/p&gt;

&lt;p&gt;Navigate to the folder containing the Oracle SQL Developer archive file, or enter the full path.&lt;/p&gt;

&lt;p&gt;Step 2 – Get File Checksum&lt;/p&gt;

&lt;p&gt;Run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;
&lt;span class="nv"&gt;$zip&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"C:\oracle\sqldeveloper-26.2.0.186.2220-x64.zip"&lt;/span&gt;

&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FileHash&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="nv"&gt;$zip&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Algorithm&lt;/span&gt; &lt;span class="no"&gt;SHA1&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The SHA1 value for this example was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
6A1BCA6CD756B821C11E92B821DB73A6AEB67D02

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Which matched the value provided on Oracle’s download page for the x64 Windows version.&lt;/p&gt;

&lt;p&gt;What Does This Mean?&lt;/p&gt;

&lt;p&gt;This confirms that the ZIP file was the same as the one provided by Oracle.&lt;/p&gt;

&lt;p&gt;This makes it less likely that the issue was to do with the download being incomplete or modified.&lt;/p&gt;

&lt;p&gt;Lesson learnt&lt;/p&gt;

&lt;p&gt;Always check the software package has the correct checksum provided by the vendor. This will help to avoid having to reinstall, or download multiple times.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Checking Application Libraries&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now we know that the ZIP has the correct checksum we can now check that some of the important .jar files are present.&lt;/p&gt;

&lt;p&gt;.java Archive Files normally use the .jar extension.&lt;/p&gt;

&lt;p&gt;There are many .jar files within SQL Developer.&lt;/p&gt;

&lt;p&gt;Multiple errors were raised relating to modules and Java libraries.&lt;/p&gt;

&lt;p&gt;Step 1 – Find Installation Folder&lt;/p&gt;

&lt;p&gt;The application had been extracted to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
C:\oracle\SQLDeveloper26.2\sqldeveloper

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 2 – Check 5 JAR Files&lt;/p&gt;

&lt;p&gt;The below PowerShell script will check that 5 JAR files are present.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;
&lt;span class="nv"&gt;$base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"C:\oracle\SQLDeveloper26.2\sqldeveloper"&lt;/span&gt;

@&lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="s2"&gt;"external\oracle.jewt-core.jar"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s2"&gt;"external\oracle.external.jdbc.jar"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s2"&gt;"external\oracle.external.woodstox.jar"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s2"&gt;"ide\lib\annotations.jar"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s2"&gt;"jdev\lib\jdkver.jar"&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;ForEach&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;PSCustomObject&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;@&lt;span class="p"&gt;{&lt;/span&gt;

&lt;span class="nc"&gt;File&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$_&lt;/span&gt;

&lt;span class="nc"&gt;Exists&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Test&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Join&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="nv"&gt;$base&lt;/span&gt; &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Results&lt;/p&gt;

&lt;p&gt;Java Library | Present&lt;/p&gt;

&lt;p&gt;--- | ---&lt;/p&gt;

&lt;p&gt;oracle.jewt-core.jar | True&lt;/p&gt;

&lt;p&gt;oracle.external.jdbc.jar | True&lt;/p&gt;

&lt;p&gt;oracle.external.woodstox.jar | True&lt;/p&gt;

&lt;p&gt;annotations.jar | True&lt;/p&gt;

&lt;p&gt;jdkver.jar | True&lt;/p&gt;

&lt;p&gt;All 5 JAR files were present.&lt;/p&gt;

&lt;p&gt;What Does This Prove?&lt;/p&gt;

&lt;p&gt;That all 5 JAR files are present.&lt;/p&gt;

&lt;p&gt;Although it does not prove that they are all correct, or that the modules can all be loaded, when combined with the ZIP having the correct checksum it shows that there may be an issue with something else.&lt;/p&gt;

&lt;p&gt;We do not need to copy random JAR files from another SQL Developer installation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Understanding SQL Developer User Settings On Windows&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Oracle SQL Developer stores some user settings in a separate folder.&lt;/p&gt;

&lt;p&gt;This may be your application settings, connections, UI settings etc.&lt;/p&gt;

&lt;p&gt;The user settings on Windows are usually located in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
%APPDATA%\SQL Developer\

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the SQL Developer 26.2 version this was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
%APPDATA%\SQL Developer\system26.2.0.186.2220

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is important as even though the application files may be correct, the user settings may have an impact on the application launching.&lt;/p&gt;

&lt;p&gt;The next controlled action we can take is to refresh the user profile for this version.&lt;/p&gt;

&lt;p&gt;Why Backup?&lt;/p&gt;

&lt;p&gt;The user settings folder may contain important settings.&lt;/p&gt;

&lt;p&gt;Removing this folder straight away may make it difficult to get back to your previous settings.&lt;/p&gt;

&lt;p&gt;It is better to rename the folder.&lt;/p&gt;

&lt;p&gt;This will make it easier to revert.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fixing The Issue By Refreshing User Profile&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ensure SQL Developer is closed.&lt;/p&gt;

&lt;p&gt;IMPORTANT! These commands will affect your chosen version user profile. Ensure you backup any settings or connections you need.&lt;/p&gt;

&lt;p&gt;Step 1 – Close SQL Developer&lt;/p&gt;

&lt;p&gt;Ensure that SQL Developer 26.2 is closed.&lt;/p&gt;

&lt;p&gt;If you need to, ensure that no processes are running for the application before renaming the configuration folder.&lt;/p&gt;

&lt;p&gt;Step 2 – Find User Profile Folder&lt;/p&gt;

&lt;p&gt;Open PowerShell and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;
&lt;span class="nv"&gt;$profile&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Join&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="nv"&gt;$env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;APPDATA&lt;/span&gt; &lt;span class="sb"&gt;`

"SQL Developer\system26.2.0.186.2220"

Test-Path -LiteralPath $profile

&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the folder exists you will receive:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
True

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ensure that this is the correct version of SQL Developer.&lt;/p&gt;

&lt;p&gt;Step 3 – Rename User Profile&lt;/p&gt;

&lt;p&gt;Rather than delete the folder, we will rename it with a timestamp.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;
&lt;span class="nv"&gt;$profile&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Join&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="nv"&gt;$env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;APPDATA&lt;/span&gt; &lt;span class="sb"&gt;`

"SQL Developer\system26.2.0.186.2220"

if (Test-Path -LiteralPath $profile) {

$backupName = "system26.2.0.186.2220.backup-" +

(Get-Date -Format "yyyyMMddHHmmss")

Rename-Item -LiteralPath $profile `&lt;/span&gt;

&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NewName&lt;/span&gt; &lt;span class="nv"&gt;$backupName&lt;/span&gt;

&lt;span class="nc"&gt;Write&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Host&lt;/span&gt; &lt;span class="s2"&gt;"Profile backed up as:"&lt;/span&gt; &lt;span class="nv"&gt;$backupName&lt;/span&gt;

&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

&lt;span class="nc"&gt;Write&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Host&lt;/span&gt; &lt;span class="s2"&gt;"Profile folder not found."&lt;/span&gt;

&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 4 – Launch SQL Developer 26.2&lt;/p&gt;

&lt;p&gt;Launch the application from the installation folder.&lt;/p&gt;

&lt;p&gt;E.g:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
C:\oracle\SQLDeveloper26.2\sqldeveloper\sqldeveloper.exe

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will be asked if you want to import settings from a previous installation. In this example we chose No to ensure we had a clean configuration.&lt;/p&gt;

&lt;p&gt;A new user profile was created.&lt;/p&gt;

&lt;p&gt;Step 5 – Confirm Application Launched Successfully&lt;/p&gt;

&lt;p&gt;The application launched successfully.&lt;/p&gt;

&lt;p&gt;The Welcome Page opened, and we could confirm that we had the correct version installed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Help &amp;gt; About

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The version shown was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
26.2.0.186.2220

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What Was The Fix?&lt;/p&gt;

&lt;p&gt;By renaming and replacing the user profile we were able to get the application to launch successfully.&lt;/p&gt;

&lt;p&gt;Although we do need to be careful with our conclusions.&lt;/p&gt;

&lt;p&gt;We were unable to confirm what the exact cause was of the Netigso error on launch.&lt;/p&gt;

&lt;p&gt;We can confirm that the previous user profile had an impact on the issue however we cannot confirm what file in the configuration was causing the error.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Confirm Previous Version Of SQL Developer Works&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We also had Oracle SQL Developer 24.3 installed on the workstation.&lt;/p&gt;

&lt;p&gt;Sometimes when upgrading an application you may worry that the new version will affect the previous working version.&lt;/p&gt;

&lt;p&gt;In this case we were able to use SQL Developer 24.3 as the new installation was in a separate application folder, and we only renamed the user settings folder for version 26.2.&lt;/p&gt;

&lt;p&gt;Best Practice&lt;/p&gt;

&lt;p&gt;When testing a new version of SQL Developer:&lt;/p&gt;

&lt;p&gt;Have a separate installation folder.&lt;/p&gt;

&lt;p&gt;Keep the previous working version until you have confirmed the new version works.&lt;/p&gt;

&lt;p&gt;Backup any user configuration folders.&lt;/p&gt;

&lt;p&gt;Ensure that any critical connections are still working.&lt;/p&gt;

&lt;p&gt;Only remove older versions once you have accepted the upgrade (based on your maintenance policy).&lt;/p&gt;

&lt;p&gt;This means that if the new application does not meet your requirements you can go back to your previous tools.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Moving Connections From 24.3 To 26.2&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once we had launched SQL Developer 26.2 we needed to ensure that we kept our connections.&lt;/p&gt;

&lt;p&gt;SQL Developer allows you to export connections from one installation and import them.&lt;/p&gt;

&lt;p&gt;This should only be done for authorised connection profiles.&lt;/p&gt;

&lt;p&gt;Step 1 – Launch SQL Developer 24.3&lt;/p&gt;

&lt;p&gt;Launch SQL Developer 24.3.&lt;/p&gt;

&lt;p&gt;Navigate to the Connections panel.&lt;/p&gt;

&lt;p&gt;Step 2 – Export Connections&lt;/p&gt;

&lt;p&gt;Right click on the Connections node and select:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Export Connections

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Select the connections you wish to move.&lt;/p&gt;

&lt;p&gt;Complete the wizard and save the connections in a JSON file.&lt;/p&gt;

&lt;p&gt;Store this file somewhere secure. Connection files may contain sensitive information.&lt;/p&gt;

&lt;p&gt;Where possible ensure that you have password protection enabled.&lt;/p&gt;

&lt;p&gt;Step 3 – Launch SQL Developer 26.2&lt;/p&gt;

&lt;p&gt;Launch the recovered SQL Developer 26.2.&lt;/p&gt;

&lt;p&gt;Navigate to the Connections panel.&lt;/p&gt;

&lt;p&gt;Step 4 – Import Connections&lt;/p&gt;

&lt;p&gt;Right click on the Connections node and select:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Import Connections

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Select the connection file you wish to import and complete the wizard.&lt;/p&gt;

&lt;p&gt;Your connections should now appear in the Connections navigator.&lt;/p&gt;

&lt;p&gt;Step 5 – Confirm Connections&lt;/p&gt;

&lt;p&gt;Check all important connections.&lt;/p&gt;

&lt;p&gt;Ensure that the connection properties are correct. If authorised, check the connections work.&lt;/p&gt;

&lt;p&gt;Pay particular attention to connections using:&lt;/p&gt;

&lt;p&gt;TNS Aliases&lt;/p&gt;

&lt;p&gt;Oracle Wallet files&lt;/p&gt;

&lt;p&gt;SSH or network tunnels&lt;/p&gt;

&lt;p&gt;External authentication&lt;/p&gt;

&lt;p&gt;Custom JDBC properties&lt;/p&gt;

&lt;p&gt;Connection settings for the environment.&lt;/p&gt;

&lt;p&gt;Just because you have moved a connection profile does not mean that all external files, passwords, network access and authentication have been moved.&lt;/p&gt;

&lt;p&gt;Other Things To Consider&lt;/p&gt;

&lt;p&gt;There may be other things you want to keep from SQL Developer. This can include:&lt;/p&gt;

&lt;p&gt;SQL History&lt;/p&gt;

&lt;p&gt;Snippets&lt;/p&gt;

&lt;p&gt;Reports&lt;/p&gt;

&lt;p&gt;Templates&lt;/p&gt;

&lt;p&gt;Preferences&lt;/p&gt;

&lt;p&gt;These should be checked separately as the connection export is not intended to move all application user data.&lt;/p&gt;

&lt;p&gt;Note: The original troubleshooting confirmed that SQL Developer 26.2 launched successfully and that SQL Developer 24.3 was still working. The export/import process is guidance to help you move your connections, it was not confirmed that all connections were tested.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Summary Of Troubleshooting&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Below is a summary of what we found.&lt;/p&gt;

&lt;p&gt;Step | Findings | Outcome&lt;/p&gt;

&lt;p&gt;--- | --- | ---&lt;/p&gt;

&lt;p&gt;Launch SQL Developer 26.2 | Module installation warnings | Fail&lt;/p&gt;

&lt;p&gt;Review Netigso messages | Multiple bundles not available | Error&lt;/p&gt;

&lt;p&gt;Check ZIP | SHA1 matched Oracle | Pass&lt;/p&gt;

&lt;p&gt;Check 5 JAR files | All 5 JAR files present | Pass&lt;/p&gt;

&lt;p&gt;Backup old 26.2 profile | Renamed existing settings folder | Complete&lt;/p&gt;

&lt;p&gt;Launch with fresh profile | Application launched | Success&lt;/p&gt;

&lt;p&gt;Check Help &amp;gt; About | Version 26.2.0.186.2220 | Confirmed&lt;/p&gt;

&lt;p&gt;Check previous version | SQL Developer 24.3 still works | Confirmed&lt;/p&gt;

&lt;p&gt;The main thing we found was that by refreshing the user profile for version 26.2 we were able to use the application. Despite the warnings suggesting modules were not available.&lt;/p&gt;

&lt;p&gt;This shows that it is important to investigate multiple factors when troubleshooting an application.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Screenshots &amp;amp; Evidence&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Including screenshots in a technical troubleshooting article helps to make it more useful. Below are the screenshots we should include from the original issue.&lt;/p&gt;

&lt;p&gt;Screenshot 1 – Application Error&lt;/p&gt;

&lt;p&gt;A screenshot of the initial warning. This should show that some modules couldn’t be installed.&lt;/p&gt;

&lt;p&gt;Include Netigso messages if available.&lt;/p&gt;

&lt;p&gt;Remove any personal details from your Windows account.&lt;/p&gt;

&lt;p&gt;Screenshot 2 – Check ZIP&lt;/p&gt;

&lt;p&gt;A screenshot of the Get-FileHash command in PowerShell. This should show that the checksum matches Oracle.&lt;/p&gt;

&lt;p&gt;Screenshot 3 – Check JAR Files&lt;/p&gt;

&lt;p&gt;A screenshot of the PowerShell output confirming that the 5 application libraries are present.&lt;/p&gt;

&lt;p&gt;Screenshot 4 – Application Launched&lt;/p&gt;

&lt;p&gt;A screenshot of the Welcome Page for SQL Developer 26.2.&lt;/p&gt;

&lt;p&gt;Screenshot 5 – Application Version&lt;/p&gt;

&lt;p&gt;A screenshot of the Help &amp;gt; About screen confirming the version.&lt;/p&gt;

&lt;p&gt;Ensure that the screenshots are original, clear and relevant. Do not fake any screenshots showing a success. Do not include any connection details for your live databases.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Lessons Learnt&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We learnt a few lessons from this troubleshooting.&lt;/p&gt;

&lt;p&gt;Missing Bundle Doesn’t Mean Missing File&lt;/p&gt;

&lt;p&gt;The initial error suggested that the application couldn’t find the required modules. However by checking we confirmed that the chosen JAR files were present.&lt;/p&gt;

&lt;p&gt;Always Check The Archive&lt;/p&gt;

&lt;p&gt;Comparing the checksum is a great first step. Often you will be able to avoid downloading the package multiple times as it will match the published checksum.&lt;/p&gt;

&lt;p&gt;Backup Before Refreshing&lt;/p&gt;

&lt;p&gt;It is better to rename the user settings folder. This means that if you need to get back to your previous settings you can.&lt;/p&gt;

&lt;p&gt;Keep Previous Working Application&lt;/p&gt;

&lt;p&gt;By keeping SQL Developer 24.3 we were able to investigate the new version. This is useful when troubleshooting tools used for operational activities.&lt;/p&gt;

&lt;p&gt;Document Troubleshooting&lt;/p&gt;

&lt;p&gt;When troubleshooting an issue it is important to document what you have done. This will help other DBAs understand what was checked to resolve the issue. Avoid assuming anything without verifying it.&lt;/p&gt;

&lt;p&gt;Application May Be Recovered But Not Root Cause&lt;/p&gt;

&lt;p&gt;Whilst we were able to recover the application we were unable to prove what the exact root cause was. By creating a fresh profile we were able to resolve the issue. A deeper investigation would be required to determine what part of the profile was causing the Netigso error.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Troubleshooting Checklist&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When troubleshooting an Oracle SQL Developer launch error on Windows:&lt;/p&gt;

&lt;p&gt;Check what version &amp;amp; package you have installed.&lt;/p&gt;

&lt;p&gt;Check relevant Java requirements.&lt;/p&gt;

&lt;p&gt;Compare download checksum to vendor.&lt;/p&gt;

&lt;p&gt;Check application files have been extracted into the correct folder.&lt;/p&gt;

&lt;p&gt;Check what error you are receiving.&lt;/p&gt;

&lt;p&gt;Check relevant application libraries.&lt;/p&gt;

&lt;p&gt;Backup version specific user profile.&lt;/p&gt;

&lt;p&gt;Test application with fresh profile.&lt;/p&gt;

&lt;p&gt;Do not overwrite previous working installation.&lt;/p&gt;

&lt;p&gt;Confirm application launched &amp;amp; version.&lt;/p&gt;

&lt;p&gt;Carefully restore required connection profiles.&lt;/p&gt;

&lt;p&gt;Document &amp;amp; remove sensitive details.&lt;/p&gt;

&lt;p&gt;Not all launch errors will have the same cause. Refreshing the profile may be one option.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Oracle SQL Developer launch errors can be tricky to troubleshoot. In this article we looked at an example of Oracle SQL Developer 26.2 on Windows. We had issues with the application not launching and had errors relating to Netigso modules.&lt;/p&gt;

&lt;p&gt;We confirmed that the downloaded installation ZIP had the correct checksum from Oracle. We also confirmed that the 5 JAR files were present.&lt;/p&gt;

&lt;p&gt;By renaming the version specific user profile and creating a fresh profile we were able to get the application to launch successfully. We also confirmed that the previous SQL Developer 24.3 installation was still working.&lt;/p&gt;

&lt;p&gt;The main takeaway from this is by taking a methodical approach, being cautious when recovering the configuration and keeping the existing settings we can have a safer and more effective solution.&lt;/p&gt;

&lt;p&gt;By documenting the steps taken this can be a useful reference for DBAs in the future.&lt;/p&gt;

&lt;p&gt;References&lt;/p&gt;

&lt;p&gt;Oracle SQL Developer Downloads&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.oracle.com/database/sqldeveloper/technologies/download/" rel="noopener noreferrer"&gt;https://www.oracle.com/database/sqldeveloper/technologies/download/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Official installation packages, versions &amp;amp; download checksums.&lt;/p&gt;

&lt;p&gt;Oracle SQL Developer 26.2 Installation Guide&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/sql-developer/26.2/rptig/index.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/sql-developer/26.2/rptig/index.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Installation requirements &amp;amp; guidance.&lt;/p&gt;

&lt;p&gt;Migrating Information From Previous Releases&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/sql-developer/26.2/rptig/migrating-information-previous-releases.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/sql-developer/26.2/rptig/migrating-information-previous-releases.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle guidance for keeping connections &amp;amp; information when moving between versions.&lt;/p&gt;

&lt;p&gt;SQL Developer Concepts &amp;amp; Usage&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/sql-developer/26.2/rptug/sql-developer-concepts-usage.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/sql-developer/26.2/rptug/sql-developer-concepts-usage.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Abdulrawof Totakhil&lt;br&gt;
Database Administrator&lt;br&gt;
For questions or collaboration, let's connect on LinkedIn.&lt;br&gt;
🔗 &lt;a href="https://www.linkedin.com/in/abdulrawof-totakhil%E2%81%A0%EF%BF%BC" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/abdulrawof-totakhil⁠￼&lt;/a&gt;&lt;/p&gt;

</description>
      <category>oracle</category>
      <category>database</category>
      <category>microsoft</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Verify Oracle Database 19c Release Update Patching in CDB and PDB Environments</title>
      <dc:creator>Abdulrawof Totakhil</dc:creator>
      <pubDate>Sat, 14 Nov 2026 05:46:09 +0000</pubDate>
      <link>https://dev.to/abdulrawoftotakhil/how-to-verify-oracle-database-19c-release-update-patching-in-cdb-and-pdb-environments-1k6</link>
      <guid>https://dev.to/abdulrawoftotakhil/how-to-verify-oracle-database-19c-release-update-patching-in-cdb-and-pdb-environments-1k6</guid>
      <description>&lt;p&gt;Oracle Database 19c Release Update Verification&lt;/p&gt;

&lt;p&gt;Technology – Oracle Database 19c, Release Update (19.32), Multitenant.&lt;/p&gt;

&lt;p&gt;Lab Date – 12th November 2026.&lt;/p&gt;

&lt;p&gt;Overview&lt;/p&gt;

&lt;p&gt;Applying a Release Update to your Oracle Database is an important part of the DBA role.&lt;/p&gt;

&lt;p&gt;However, simply applying a patch may not mean that all parts of your database will run as expected.&lt;/p&gt;

&lt;p&gt;The DBA should verify that the patch has been applied successfully, in Oracle 19c (especially with the multi-tenant architecture), by checking at different levels.&lt;/p&gt;

&lt;p&gt;Even though the patch may have been applied to the Oracle Home, we also need to check that the SQL have been applied. We should also ensure that our Container Database (CDB) and Pluggable Databases (PDBs) are open and running correctly.&lt;/p&gt;

&lt;p&gt;This guide will demonstrate how to verify that this is the case using a combination of Oracle OPatch, SQLPlus, Dictionary Views and SQL.&lt;/p&gt;

&lt;p&gt;Lab Evidence&lt;/p&gt;

&lt;p&gt;The aim of this guide is to demonstrate how you can verify that your patch has been applied successfully.&lt;/p&gt;

&lt;p&gt;Oracle Database 19c Test Environment&lt;/p&gt;

&lt;p&gt;I carried out my verification in a test environment with the following setup:&lt;/p&gt;

&lt;p&gt;Section&lt;/p&gt;

&lt;p&gt;Details&lt;/p&gt;

&lt;p&gt;Database&lt;/p&gt;

&lt;p&gt;Oracle Database 19c&lt;/p&gt;

&lt;p&gt;Release Update&lt;/p&gt;

&lt;p&gt;19.32&lt;/p&gt;

&lt;p&gt;Patch ID&lt;/p&gt;

&lt;p&gt;39472050&lt;/p&gt;

&lt;p&gt;Architecture&lt;/p&gt;

&lt;p&gt;Container Database (with Pluggable Database)&lt;/p&gt;

&lt;p&gt;Verification Tool&lt;/p&gt;

&lt;p&gt;SQLPlus&lt;/p&gt;

&lt;p&gt;Verification&lt;/p&gt;

&lt;p&gt;Patch was applied to Database via SQL. PDB status was confirmed. PDB was confirmed to be ‘Saved’.&lt;/p&gt;

&lt;p&gt;As the database contains sensitive information, we should not include any database names, server names or anything specific to the infrastructure.&lt;/p&gt;

&lt;p&gt;The SQL examples will include generic names.&lt;/p&gt;

&lt;p&gt;Why Patch Verification Is Important&lt;/p&gt;

&lt;p&gt;Oracle will release patches to fix any issues relating to defects, security, stability and other issues.&lt;/p&gt;

&lt;p&gt;A Release Update (RU) is a cumulative patch provided as part of Oracle’s regular maintenance cycle.&lt;/p&gt;

&lt;p&gt;As a DBA there are 3 key areas we should consider:&lt;/p&gt;

&lt;p&gt;Oracle Home Patches&lt;/p&gt;

&lt;p&gt;Oracle Home contains all of the required binaries, executables, libraries and tools needed for the database.&lt;/p&gt;

&lt;p&gt;We can use the OPatch tool to identify what patches have been applied.&lt;/p&gt;

&lt;p&gt;SQL Patches&lt;/p&gt;

&lt;p&gt;Some patches will require SQL to be applied to the database dictionary or components.&lt;/p&gt;

&lt;p&gt;Oracle provide us with a tool called datapatch to APPLY these SQL patches.&lt;/p&gt;

&lt;p&gt;The database will have a registry showing what SQL patches have been applied.&lt;/p&gt;

&lt;p&gt;Database Running Correctly&lt;/p&gt;

&lt;p&gt;Even though the registry may show that the patch was applied successfully, we should also verify that the database and PDBs are running correctly.&lt;/p&gt;

&lt;p&gt;For example, the PDB may not be available for applications as it is still mounted.&lt;/p&gt;

&lt;p&gt;Or the PDB may be open successfully but not have any saved state so will remain mounted after the instance is restarted.&lt;/p&gt;

&lt;p&gt;Therefore multiple checks are required to verify that the patch was applied successfully.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Home Patch Verification&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An important first step is to check what patches have been applied to your Oracle Home.&lt;/p&gt;

&lt;p&gt;Login to your database server with the correct owner account for the Oracle software.&lt;/p&gt;

&lt;p&gt;Ensure that you have the correct Oracle Home set up.&lt;/p&gt;

&lt;p&gt;echo $ORACLE_HOME&lt;/p&gt;

&lt;p&gt;Run the following command:&lt;/p&gt;

&lt;p&gt;$ORACLE_HOME/OPatch/opatch lspatches&lt;/p&gt;

&lt;p&gt;For detailed information run:&lt;/p&gt;

&lt;p&gt;$ORACLE_HOME/OPatch/opatch lsinventory&lt;/p&gt;

&lt;p&gt;This can give us information about the patch IDs, descriptions and software that have been applied.&lt;/p&gt;

&lt;p&gt;Our Oracle Database 19c Release Update (19.32) patch ID was:&lt;/p&gt;

&lt;p&gt;39472050&lt;/p&gt;

&lt;p&gt;Patch Description:&lt;/p&gt;

&lt;p&gt;Database Release Update: 19.32.0.0.260721&lt;/p&gt;

&lt;p&gt;Why This Is Important&lt;/p&gt;

&lt;p&gt;This will help us identify whether the correct binaries have been applied for our patch. However, this alone will not tell us if the SQL patches were successfully applied to all of the database containers. Therefore we should now check the SQL patches.&lt;/p&gt;

&lt;p&gt;[Note: The lab material I used for this article shows that the SQL registry was successful. However, I did not have a standalone test OPatch inventory to compare. The commands above will help you verify the inventory.]&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check SQL Patches In CDB &amp;amp; PDB&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Oracle Database provide dictionary views to allow you to check what SQL patches have been applied.&lt;/p&gt;

&lt;p&gt;One of the most important views is:&lt;/p&gt;

&lt;p&gt;CDB_REGISTRY_SQLPATCH&lt;/p&gt;

&lt;p&gt;Login to the CDB root with a valid admin session.&lt;/p&gt;

&lt;p&gt;First, check what container you are in.&lt;/p&gt;

&lt;p&gt;SHOW CON_NAME;&lt;/p&gt;

&lt;p&gt;Now run the following command:&lt;/p&gt;

&lt;p&gt;SELECT&lt;/p&gt;

&lt;p&gt;con_id,&lt;/p&gt;

&lt;p&gt;patch_id,&lt;/p&gt;

&lt;p&gt;action,&lt;/p&gt;

&lt;p&gt;status,&lt;/p&gt;

&lt;p&gt;action_time&lt;/p&gt;

&lt;p&gt;FROM cdb_registry_sqlpatch&lt;/p&gt;

&lt;p&gt;ORDER BY action_time DESC, con_id;&lt;/p&gt;

&lt;p&gt;Column Details&lt;/p&gt;

&lt;p&gt;Column&lt;/p&gt;

&lt;p&gt;Description&lt;/p&gt;

&lt;p&gt;CON_ID&lt;/p&gt;

&lt;p&gt;Container ID identifying the database container&lt;/p&gt;

&lt;p&gt;PATCH_ID&lt;/p&gt;

&lt;p&gt;Patch ID identifying the patch&lt;/p&gt;

&lt;p&gt;ACTION&lt;/p&gt;

&lt;p&gt;Whether the patch was Applied or Rolled Back.&lt;/p&gt;

&lt;p&gt;STATUS&lt;/p&gt;

&lt;p&gt;Status of the patch.&lt;/p&gt;

&lt;p&gt;ACTION_TIME&lt;/p&gt;

&lt;p&gt;Time of action.&lt;/p&gt;

&lt;p&gt;To specifically check for our Oracle Database Release Update (19.32) run:&lt;/p&gt;

&lt;p&gt;SELECT&lt;/p&gt;

&lt;p&gt;con_id,&lt;/p&gt;

&lt;p&gt;patch_id,&lt;/p&gt;

&lt;p&gt;action,&lt;/p&gt;

&lt;p&gt;status&lt;/p&gt;

&lt;p&gt;FROM cdb_registry_sqlpatch&lt;/p&gt;

&lt;p&gt;WHERE patch_id = 39472050&lt;/p&gt;

&lt;p&gt;ORDER BY con_id;&lt;/p&gt;

&lt;p&gt;Lab Result&lt;/p&gt;

&lt;p&gt;The SQLPlus command above returned:&lt;/p&gt;

&lt;p&gt;CON_ID PATCH_ID ACTION STATUS&lt;/p&gt;

&lt;p&gt;1 39472050 APPLY SUCCESS&lt;/p&gt;

&lt;p&gt;3 39472050 APPLY SUCCESS&lt;/p&gt;

&lt;p&gt;This proves that the SQL patch was successfully applied to both the CDB root and test PDB.&lt;/p&gt;

&lt;p&gt;In this environment the container ID 1 was the CDB root and the container ID 3 was the user PDB.&lt;/p&gt;

&lt;p&gt;Important Note&lt;/p&gt;

&lt;p&gt;The SUCCESS means that the datapatch was applied successfully. However, this is just showing the history of the patch. We should also check whether there has been a more recent rollback or failure.&lt;/p&gt;

&lt;p&gt;You cannot always assume that the latest patch state will be displayed as there may be an older successful row.&lt;/p&gt;

&lt;p&gt;Also notice that there is no separate row for the PDB Seed. Do not assume that the PDB Seed has been patched successfully or not based on this output. You should review the relevant datapatch logs and patch documentation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Confirm PDB Open Mode&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Having checked the SQL patches we should now check the current status of our pluggable databases.&lt;/p&gt;

&lt;p&gt;In Oracle Database 19c, we have a multi-tenant architecture meaning we can have multiple PDB’s within the CDB.&lt;/p&gt;

&lt;p&gt;Each PDB will have their own open mode.&lt;/p&gt;

&lt;p&gt;Login to SQLPlus and run:&lt;/p&gt;

&lt;p&gt;SHOW PDBS;&lt;/p&gt;

&lt;p&gt;Or:&lt;/p&gt;

&lt;p&gt;SELECT&lt;/p&gt;

&lt;p&gt;con_id,&lt;/p&gt;

&lt;p&gt;name,&lt;/p&gt;

&lt;p&gt;open_mode,&lt;/p&gt;

&lt;p&gt;restricted&lt;/p&gt;

&lt;p&gt;FROM v$pdbs&lt;/p&gt;

&lt;p&gt;ORDER BY con_id;&lt;/p&gt;

&lt;p&gt;What The Output Means&lt;/p&gt;

&lt;p&gt;READ WRITE&lt;/p&gt;

&lt;p&gt;The PDB is open and can be used for reading and writing. This depends on user permissions and application.&lt;/p&gt;

&lt;p&gt;READ ONLY&lt;/p&gt;

&lt;p&gt;The PDB is open but cannot be used for normal data changes in applications.&lt;/p&gt;

&lt;p&gt;MOUNTED&lt;/p&gt;

&lt;p&gt;The PDB is not open.&lt;/p&gt;

&lt;p&gt;RESTRICTED&lt;/p&gt;

&lt;p&gt;If Restricted is set to YES then only users with the required privilege will have access.&lt;/p&gt;

&lt;p&gt;Lab Result&lt;/p&gt;

&lt;p&gt;Our test showed:&lt;/p&gt;

&lt;p&gt;Container Open Mode Restricted&lt;/p&gt;

&lt;p&gt;PDB Seed READ ONLY NO&lt;/p&gt;

&lt;p&gt;User PDB READ WRITE NO&lt;/p&gt;

&lt;p&gt;This proves that our test PDB was open in Read Write mode and was not restricted.&lt;/p&gt;

&lt;p&gt;Opening PDB If Required&lt;/p&gt;

&lt;p&gt;If a valid DBA decides that the PDB needs to be opened run the following command from the correct admin context:&lt;/p&gt;

&lt;p&gt;-- Make sure to change LAB_PDB to correct PDB name.&lt;/p&gt;

&lt;p&gt;-- Admin command to change database.&lt;/p&gt;

&lt;p&gt;ALTER PLUGGABLE DATABASE LAB_PDB OPEN READ WRITE;&lt;/p&gt;

&lt;p&gt;Do not run this command unless you have confirmed what state you want the database in and any change control.&lt;/p&gt;

&lt;p&gt;Opening a PDB is an operational command and does not prove that the database was patched successfully.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Confirm PDB Saved State&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Another important part of verifying the patch is confirming that the PDB has a saved open state.&lt;/p&gt;

&lt;p&gt;Whilst the PDB could be manually opened during maintenance/testing, the open mode may not be saved when the instance is restarted.&lt;/p&gt;

&lt;p&gt;Oracle provide us with a way to save the desired open mode.&lt;/p&gt;

&lt;p&gt;Within a valid test environment an administrator can run:&lt;/p&gt;

&lt;p&gt;-- Make sure to change LAB_PDB to correct PDB name.&lt;/p&gt;

&lt;p&gt;ALTER PLUGGABLE DATABASE LAB_PDB SAVE STATE;&lt;/p&gt;

&lt;p&gt;This can be checked using:&lt;/p&gt;

&lt;p&gt;SELECT&lt;/p&gt;

&lt;p&gt;con_name,&lt;/p&gt;

&lt;p&gt;instance_name,&lt;/p&gt;

&lt;p&gt;state&lt;/p&gt;

&lt;p&gt;FROM dba_pdb_saved_states&lt;/p&gt;

&lt;p&gt;ORDER BY con_name;&lt;/p&gt;

&lt;p&gt;Explanation&lt;/p&gt;

&lt;p&gt;CON_NAME – Name of PDB.&lt;/p&gt;

&lt;p&gt;INSTANCE_NAME – Name of database instance the state was saved.&lt;/p&gt;

&lt;p&gt;STATE – Describes the open mode of the PDB.&lt;/p&gt;

&lt;p&gt;Lab Result&lt;/p&gt;

&lt;p&gt;The verification showed that the test PDB had a saved state:&lt;/p&gt;

&lt;p&gt;STATE&lt;/p&gt;




&lt;p&gt;OPEN&lt;/p&gt;

&lt;p&gt;This proves that the PDB had a saved open state.&lt;/p&gt;

&lt;p&gt;Why This Is Important&lt;/p&gt;

&lt;p&gt;During planned maintenance the DBA may restart the database instance successfully but find that an application PDB is still mounted.&lt;/p&gt;

&lt;p&gt;This can mean applications cannot connect.&lt;/p&gt;

&lt;p&gt;By checking that the PDB has a saved state we can identify whether it has been configured to open in the desired mode.&lt;/p&gt;

&lt;p&gt;In a multi-instance/RAC environment we should also check that the saved state is being applied to the correct instances.&lt;/p&gt;

&lt;p&gt;Whilst this proves that there is a saved state configuration, a controlled restart and application connectivity would give stronger evidence.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Real Test Results &amp;amp; Screenshots&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We should base our report around the evidence of what was executed.&lt;/p&gt;

&lt;p&gt;From our lab we had the following:&lt;/p&gt;

&lt;p&gt;Verification Summary&lt;/p&gt;

&lt;p&gt;Verification Result Interpretation&lt;/p&gt;

&lt;p&gt;Oracle SQL Patch ID 39472050 Database RU 19.32&lt;/p&gt;

&lt;p&gt;CDB Root SQL Patch APPLIED/SUCCESS SQL Patch applied successfully&lt;/p&gt;

&lt;p&gt;User PDB SQL Patch APPLIED/SUCCESS SQL Patch applied successfully&lt;/p&gt;

&lt;p&gt;PDB Open Mode READ WRITE Open in Read Write mode&lt;/p&gt;

&lt;p&gt;PDB Restricted NO Not restricted&lt;/p&gt;

&lt;p&gt;PDB Saved State OPEN Open state saved&lt;/p&gt;

&lt;p&gt;OPatch Inventory (Oracle Home)&lt;/p&gt;

&lt;p&gt;Not verified in this evidence. Will need to run inventory.&lt;/p&gt;

&lt;p&gt;This proves that we have carried out the SQL Patch and PDB checks.&lt;/p&gt;

&lt;p&gt;However, this does not prove that we have full application compatibility, that the database can be restored and recovered and that there are no issues at runtime.&lt;/p&gt;

&lt;p&gt;Screenshot 1 – SQL Patch Registry&lt;/p&gt;

&lt;p&gt;[Insert original SQLPlus screenshot]&lt;/p&gt;

&lt;p&gt;This should show you have queried the CDB_REGISTRY_SQLPATCH view. Include Patch ID, container ID’s, action and status.&lt;/p&gt;

&lt;p&gt;Remove/obscure any unnecessary information.&lt;/p&gt;

&lt;p&gt;Screenshot 2 – PDB Open Status&lt;/p&gt;

&lt;p&gt;[Insert original SHOW PDBS screenshot]&lt;/p&gt;

&lt;p&gt;This should show that the test PDB is in Read Write mode and not restricted.&lt;/p&gt;

&lt;p&gt;Screenshot 3 – PDB Saved State&lt;/p&gt;

&lt;p&gt;[Insert original DBA_PDB_SAVED_STATES result]&lt;/p&gt;

&lt;p&gt;This should show that the PDB has a saved OPEN state.&lt;/p&gt;

&lt;p&gt;Screenshot 4 – OPatch Inventory&lt;/p&gt;

&lt;p&gt;Only add if ran separately.&lt;/p&gt;

&lt;p&gt;Having a current OPatch inventory can help strengthen your article. This proves that both the binaries and SQL have been verified.&lt;/p&gt;

&lt;p&gt;Do not make up a screenshot, use a real one.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Key Takeaways &amp;amp; Best Practice&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We should have a structured approach to verifying our Oracle Database after applying a patch.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check Binaries &amp;amp; SQL&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Whilst having a successful OPatch and datapatch are related they are separate.&lt;/p&gt;

&lt;p&gt;Use OPatch inventory to confirm what software patches have been applied. Use SQL Patch registry to confirm what SQL have been applied to the database.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check All Relevant Containers&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Within a multi-tenant environment we should consider the CDB root and user PDBs.&lt;/p&gt;

&lt;p&gt;Check that all relevant containers have the correct Patch Status.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Database Availability&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When verifying your patch you should also check that the database is available.&lt;/p&gt;

&lt;p&gt;A PDB may have been patched successfully but still be mounted.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check PDB Saved State&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After carrying out maintenance, confirm that the PDB starts in the correct way.&lt;/p&gt;

&lt;p&gt;If required, save the desired open state and check the relevant dictionary entry.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check Errors &amp;amp; Patch Logs&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If there are any unexpected statuses in the patch registry, datapatch failures or discrepancies between the OPatch inventory and database SQL patch history investigate further.&lt;/p&gt;

&lt;p&gt;Don’t blindly re-run any patching tools without understanding what the current state is and what the patch README says.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Application Checks&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Just because the database has been patched successfully does not mean that the applications will run as expected.&lt;/p&gt;

&lt;p&gt;A full maintenance process should include valid checks to ensure applications can connect, critical functions are working and any relevant integration dependencies.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep Evidence&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Have a valid maintenance document detailing what patches have been applied, what results were achieved, what queries were run to verify and the time. This should be detailed enough to help troubleshoot any issues but should not expose any confidential information.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Recommended Post-Patch Checklist&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The following is a summary of what we should verify:&lt;/p&gt;

&lt;p&gt;Verification Expected Evidence&lt;/p&gt;

&lt;p&gt;Correct Oracle Home Environment &amp;amp; Inventory&lt;/p&gt;

&lt;p&gt;Check RU Binaries Applied OPatch shows correct patch&lt;/p&gt;

&lt;p&gt;Check SQL Patch Registry Latest applicable patch was applied successfully&lt;/p&gt;

&lt;p&gt;Check CDB &amp;amp; PDB’s Checked relevant containers&lt;/p&gt;

&lt;p&gt;Check PDB Open Mode Confirmed that PDB is open in correct mode&lt;/p&gt;

&lt;p&gt;Check Restricted Matches intended access&lt;/p&gt;

&lt;p&gt;Check PDB Saved State Confirmed that PDB has correct saved state&lt;/p&gt;

&lt;p&gt;Check Datapatch Logs No unresolved patch failures&lt;/p&gt;

&lt;p&gt;Check Database Components Investigate any unexpected invalid components&lt;/p&gt;

&lt;p&gt;Application Checks Critical functions tested&lt;/p&gt;

&lt;p&gt;Final Evidence Valid maintenance documentation&lt;/p&gt;

&lt;p&gt;These are all complimentary checks and not all were proven from the lab evidence above.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;We should not simply take it at face value that our Oracle Database has been patched successfully based on what the installer says. In an Oracle Database 19c multi-tenant environment we should check the Oracle Home inventory, SQL patch history, PDB availability and saved start up states.&lt;/p&gt;

&lt;p&gt;Our lab results proved that we had SQL patches applied to our Oracle Database RU 19.32. The CDB root and user PDB had APPLIED/SUCCESS.&lt;/p&gt;

&lt;p&gt;Our test PDB was confirmed to be open in Read Write mode, not restricted and had an OPEN saved state.&lt;/p&gt;

&lt;p&gt;This provides us with useful evidence.&lt;/p&gt;

&lt;p&gt;Overall we should have a reliable process for maintaining our patches. This includes verifying our software, database and operational checks, along with clear documentation. Having a structured checklist can help DBA’s identify any incomplete steps when maintaining.&lt;/p&gt;

&lt;p&gt;References&lt;/p&gt;

&lt;p&gt;Oracle Database Patch Maintenance (Release 19c and later)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/dbptc/index.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/dbptc/index.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle Database 19c – DBA_REGISTRY_SQLPATCH&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/DBA_REGISTRY_SQLPATCH.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/DBA_REGISTRY_SQLPATCH.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle Database 19c – DBA_PDB_SAVED_STATES&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/DBA_PDB_SAVED_STATES.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/DBA_PDB_SAVED_STATES.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle Database 19c – Administering Pluggable Databases&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/administering-pdbs-with-sql-plus.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/administering-pdbs-with-sql-plus.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle Database 19c RU 19.32 – Oracle Linux 9 &amp;amp; RHEL 9 Install Guidance&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/rnrdm/installing-oracle-database-19c-oracle-linux-9-and-red-hat-enterprise-linux-9.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/rnrdm/installing-oracle-database-19c-oracle-linux-9-and-red-hat-enterprise-linux-9.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Abdulrawof Totakhil&lt;br&gt;
Database Administrator&lt;br&gt;
For questions or collaboration, let's connect on LinkedIn.&lt;br&gt;
🔗 &lt;a href="https://www.linkedin.com/in/abdulrawof-totakhil%E2%81%A0%EF%BF%BC" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/abdulrawof-totakhil⁠￼&lt;/a&gt;&lt;/p&gt;

</description>
      <category>database</category>
      <category>sql</category>
      <category>oracle</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Detecting Duplicate Email Records Using Oracle AI Database 26ai and SQL</title>
      <dc:creator>Abdulrawof Totakhil</dc:creator>
      <pubDate>Wed, 11 Nov 2026 12:33:54 +0000</pubDate>
      <link>https://dev.to/abdulrawoftotakhil/detecting-duplicate-email-records-using-oracle-ai-database-26ai-and-sql-3k47</link>
      <guid>https://dev.to/abdulrawoftotakhil/detecting-duplicate-email-records-using-oracle-ai-database-26ai-and-sql-3k47</guid>
      <description>&lt;p&gt;Identifying duplicate email records in Oracle AI Database 26ai using SQL&lt;/p&gt;

&lt;p&gt;An example of data quality using Oracle FreeSQL, SQL normalisation and duplicate detection along with synthetic testing.&lt;/p&gt;

&lt;p&gt;Oracle FreeSQL&lt;/p&gt;

&lt;p&gt;Oracle Human Resources (HR) Example&lt;/p&gt;

&lt;p&gt;October 19th 2026&lt;/p&gt;

&lt;p&gt;Introduction&lt;/p&gt;

&lt;p&gt;Duplicates are a common issue when trying to ensure quality data within databases.&lt;/p&gt;

&lt;p&gt;An example of this is when there are different values which represent the same data.&lt;/p&gt;

&lt;p&gt;For example we may have the following two values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
john@example.com

JOHN@EXAMPLE.COM

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Whilst they are different in terms of uppercase and spacing, in a business application we may want them to be seen as duplicates.&lt;/p&gt;

&lt;p&gt;We may not get the expected results by just comparing them using SQL.&lt;/p&gt;

&lt;p&gt;In this example we will focus on identifying potential duplicate email records in Oracle AI Database 26ai using SQL.&lt;/p&gt;

&lt;p&gt;We will use Oracle FreeSQL, the public HR example and synthetic testing data.&lt;/p&gt;

&lt;p&gt;This example provides an insight into how we can normalise, aggregate and conditionally report on data to help us carry out real world data quality checks.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Data Quality Challenge&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Within any application, we may have different ways of entering email addresses for employees, customers or accounts.&lt;/p&gt;

&lt;p&gt;Some may have uppercase characters and some may have unnecessary spaces.&lt;/p&gt;

&lt;p&gt;Without normalising these values we may not recognise that there are records that need to be reviewed.&lt;/p&gt;

&lt;p&gt;Having duplicate email addresses can cause issues such as:&lt;/p&gt;

&lt;p&gt;Confusion with identifying users within the application.&lt;/p&gt;

&lt;p&gt;Incorrect number of unique contacts.&lt;/p&gt;

&lt;p&gt;Repeated alerts.&lt;/p&gt;

&lt;p&gt;Issues with reconciliation between systems.&lt;/p&gt;

&lt;p&gt;Unexpected results when migrating/integrating data.&lt;/p&gt;

&lt;p&gt;However, not all applications will have duplicate values and we want to ensure that our results can be validated against business requirements.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle FreeSQL Lab&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The example has been carried out using Oracle FreeSQL and using the Oracle AI Database 26ai worksheet.&lt;/p&gt;

&lt;p&gt;We have used the public Oracle HR example and are using read only SQL statements.&lt;/p&gt;

&lt;p&gt;Our source table is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;HR&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;EMPLOYEES&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the email field is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="no"&gt;EMAIL&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We did not need to make any changes to our employee records, create any objects in production or access any sensitive enterprise data.&lt;/p&gt;

&lt;p&gt;Our source SQL and evidence can be found in a public GitHub repo to ensure we can recreate our example.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Normalising Email Addresses (Oracle SQL)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The key concept in this example is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="nb"&gt;UPPER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;TRIM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using two functions within Oracle SQL.&lt;/p&gt;

&lt;p&gt;TRIM()&lt;/p&gt;

&lt;p&gt;The TRIM() function will remove any standard leading and trailing spaces from a string. If no other characters are specified.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;TRIM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'  john@example.com  '&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;cleaned_email&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dual&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Will give the result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
john@example.com

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;UPPER()&lt;/p&gt;

&lt;p&gt;The UPPER() function will convert letters to uppercase.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;UPPER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'john@example.com'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;normalized_email&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dual&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Will give the result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
JOHN@EXAMPLE.COM

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Combining Both&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;UPPER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;TRIM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'  john@example.com  '&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;normalized_email&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dual&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Will give the result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
JOHN@EXAMPLE.COM

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This can be applied to our email field within our application.&lt;/p&gt;

&lt;p&gt;Please note that this is just an example of how we can match values. In reality we may need to consider if our application requires case sensitive emails, Unicode, internationalised emails and normalisation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identifying Duplicate Email Groups&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once we have normalised our values we can now identify any records that have duplicate values.&lt;/p&gt;

&lt;p&gt;A basic query will be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt;

&lt;span class="nb"&gt;UPPER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;TRIM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;normalized_email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;record_count&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;hr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;employees&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="k"&gt;IS&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;

&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="nb"&gt;UPPER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;TRIM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;HAVING&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;record_count&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will:&lt;/p&gt;

&lt;p&gt;Trim the values removing any leading/trailing standard spaces.&lt;/p&gt;

&lt;p&gt;Standardise the case using the UPPER() function.&lt;/p&gt;

&lt;p&gt;Group any values that are the same.&lt;/p&gt;

&lt;p&gt;Count how many records there are in each group using:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;COUNT()&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Only show groups that have more than one record using:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;HAVING COUNT() &amp;gt; 1&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If there are any values returned then these will be potential duplicates to check.&lt;/p&gt;

&lt;p&gt;As this will show us the email addresses we only want to do this if we are allowed to view them. In our full project we have used a different method to report.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Privacy Focused Duplicate Audit&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The query used in our lab was designed to not return any actual email addresses.&lt;/p&gt;

&lt;p&gt;Instead we have calculated:&lt;/p&gt;

&lt;p&gt;Duplicate Groups&lt;/p&gt;

&lt;p&gt;Total Employees Affected&lt;/p&gt;

&lt;p&gt;Extra Duplicate Rows&lt;/p&gt;

&lt;p&gt;Our core query for the published lab is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;WITH&lt;/span&gt; &lt;span class="n"&gt;normalized_emails&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt;

&lt;span class="nb"&gt;UPPER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;TRIM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;normalized_email&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;hr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;employees&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="k"&gt;IS&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;duplicate_groups&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt;

&lt;span class="n"&gt;normalized_email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;group_size&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;normalized_emails&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;normalized_email&lt;/span&gt; &lt;span class="k"&gt;IS&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;

&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;normalized_email&lt;/span&gt;

&lt;span class="k"&gt;HAVING&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;summary&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt;

&lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) AS duplicate_group_count,

NVL(SUM(group_size), 0) AS affected_employee_count,

NVL(SUM(group_size - 1), 0) AS extra_duplicate_rows

FROM duplicate_groups

)

SELECT

duplicate_group_count,

affected_employee_count,

extra_duplicate_rows AS issue_count,

CASE

WHEN duplicate_group_count = 0 THEN 'PASS'

ELSE 'REVIEW'

END AS status

FROM summary;

&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This uses Common Table Expressions (CTEs) to break down our logic.&lt;/p&gt;

&lt;p&gt;Normalise our values.&lt;/p&gt;

&lt;p&gt;Identify any duplicate groups and how many are in each group.&lt;/p&gt;

&lt;p&gt;Calculate our metrics.&lt;/p&gt;

&lt;p&gt;Return a concise data quality report.&lt;/p&gt;

&lt;p&gt;We have used the NVL() function to ensure that if there are no duplicate groups, we will get a 0 rather than a NULL.&lt;/p&gt;

&lt;p&gt;We have also used a CASE statement to classify our result as either a PASS or REVIEW.&lt;/p&gt;

&lt;p&gt;We have been conservative with our results and if we receive a REVIEW result we cannot assume that our application data is violating any business rules.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using Oracle HR Example&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first time we ran our query we used the public Oracle HR example.&lt;/p&gt;

&lt;p&gt;The results from our read only audit were:&lt;/p&gt;

&lt;p&gt;Metric&lt;/p&gt;

&lt;p&gt;Result&lt;/p&gt;

&lt;p&gt;Duplicate Groups&lt;/p&gt;

&lt;p&gt;0&lt;/p&gt;

&lt;p&gt;Total Employees Affected&lt;/p&gt;

&lt;p&gt;0&lt;/p&gt;

&lt;p&gt;Extra Duplicate Rows&lt;/p&gt;

&lt;p&gt;0&lt;/p&gt;

&lt;p&gt;Status&lt;/p&gt;

&lt;p&gt;PASS&lt;/p&gt;

&lt;p&gt;As we have implemented our normalisation rule there were no duplicate groups in the sample HR data.&lt;/p&gt;

&lt;p&gt;Whilst this is a good negative test, it doesn't show that our query will identify duplicates.&lt;/p&gt;

&lt;p&gt;We therefore needed another test.&lt;/p&gt;

&lt;p&gt;Screenshot of original Oracle FreeSQL output showing our audit of the public HR example with status PASS.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using Synthetic Duplicate Records&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We ran a positive test using 6 fictional email records.&lt;/p&gt;

&lt;p&gt;Of which we had:&lt;/p&gt;

&lt;p&gt;2 duplicate groups that would become the same once case and spaces were normalised.&lt;/p&gt;

&lt;p&gt;1 unique email.&lt;/p&gt;

&lt;p&gt;1 NULL.&lt;/p&gt;

&lt;p&gt;Our synthetic query used inline SQL data so we didn't make any changes to the HR example tables.&lt;/p&gt;

&lt;p&gt;The results were:&lt;/p&gt;

&lt;p&gt;Metric&lt;/p&gt;

&lt;p&gt;Result&lt;/p&gt;

&lt;p&gt;Total Synthetic Records&lt;/p&gt;

&lt;p&gt;6&lt;/p&gt;

&lt;p&gt;Duplicate Groups&lt;/p&gt;

&lt;p&gt;2&lt;/p&gt;

&lt;p&gt;Total Affected&lt;/p&gt;

&lt;p&gt;4&lt;/p&gt;

&lt;p&gt;Extra Duplicate Rows&lt;/p&gt;

&lt;p&gt;2&lt;/p&gt;

&lt;p&gt;Status&lt;/p&gt;

&lt;p&gt;REVIEW&lt;/p&gt;

&lt;p&gt;Why did we have 4 total affected?&lt;/p&gt;

&lt;p&gt;We had 2 duplicate groups with 2 records each.&lt;/p&gt;

&lt;p&gt;Therefore:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
2 duplicate groups × 2 records = 4 affected records

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To calculate our extra duplicate rows we take 1 record from each group.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Group 1: 2 records - 1 = 1 extra row

Group 2: 2 records - 1 = 1 extra row

Total extra rows = 2

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Therefore our query can identify potential duplicates even if they are just different in terms of case or spaces.&lt;/p&gt;

&lt;p&gt;Screenshot of original Oracle FreeSQL synthetic test showing 2 duplicate groups, 4 total affected and status REVIEW.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Comparing Both Tests&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Our two tests in the lab gave us some good contrasting results.&lt;/p&gt;

&lt;p&gt;Metric&lt;/p&gt;

&lt;p&gt;Public HR Example&lt;/p&gt;

&lt;p&gt;Synthetic Duplicate Data&lt;/p&gt;

&lt;p&gt;Duplicate Groups&lt;/p&gt;

&lt;p&gt;0&lt;/p&gt;

&lt;p&gt;2&lt;/p&gt;

&lt;p&gt;Total Affected&lt;/p&gt;

&lt;p&gt;0&lt;/p&gt;

&lt;p&gt;4&lt;/p&gt;

&lt;p&gt;Status&lt;/p&gt;

&lt;p&gt;PASS&lt;/p&gt;

&lt;p&gt;REVIEW&lt;/p&gt;

&lt;p&gt;Our first test shows us what will happen if there are no duplicate groups found. Our second test shows us what happens if we have intentionally added duplicate looking records.&lt;/p&gt;

&lt;p&gt;It is useful to run both tests. We cannot assume that our query will work correctly if we get no results.&lt;/p&gt;

&lt;p&gt;By carrying out a controlled positive test we can easily validate that our query is doing what we expect.&lt;/p&gt;

&lt;p&gt;Both results can be found in our evidence folder within our GitHub project.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Real World Considerations&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Whilst an email duplicate audit can help with overall data quality there are some considerations to make.&lt;/p&gt;

&lt;p&gt;Read Only Diagnostic&lt;/p&gt;

&lt;p&gt;We should first identify and report the records that need to be reviewed. We shouldn't automatically delete/change any records without HAVING valid business requirements and an approved remediation process.&lt;/p&gt;

&lt;p&gt;Privacy&lt;/p&gt;

&lt;p&gt;Email addresses can contain personal data.&lt;/p&gt;

&lt;p&gt;We may prefer to report aggregated results rather than full email addresses. If we do need to review records at a detailed level we should ensure this is only accessible by authorised individuals.&lt;/p&gt;

&lt;p&gt;Business Rules&lt;/p&gt;

&lt;p&gt;Just because 2 records have the same email address, doesn't mean they are duplicates. An application may allow multiple accounts to have the same organisational email address.&lt;/p&gt;

&lt;p&gt;The business owner will need to decide if they are genuine.&lt;/p&gt;

&lt;p&gt;Performance&lt;/p&gt;

&lt;p&gt;Applying the UPPER(TRIM()) function to a large amount of records can cause extra overhead. If this query needs to be run regularly in production we should consider the performance. We should run this against some realistic test data and review the execution plan. We may consider adding indexes or HAVING a suitable normalised data model.&lt;/p&gt;

&lt;p&gt;Limitations of Normalisation&lt;/p&gt;

&lt;p&gt;This example only covers case changes and standard spaces. It does not cover full Unicode normalisation, specific email rules by provider or complex identity matching.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What Have We learnt?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We have demonstrated some key concepts.&lt;/p&gt;

&lt;p&gt;Don't rely on exact matches for your data quality checks. Small formatting changes can impact matching.&lt;/p&gt;

&lt;p&gt;Aggregating data using SQL can help us turn individual records into meaningful data quality metrics.&lt;/p&gt;

&lt;p&gt;Negative and positive testing can be useful. We can run our query against clean data to see what happens if there are no issues. We can also run our query against intentionally duplicated data.&lt;/p&gt;

&lt;p&gt;Reporting suspected issues as a REVIEW can be more appropriate.&lt;/p&gt;

&lt;p&gt;This example shows us how we can create a useful aggregated diagnostic within our database without exposing any email addresses.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Further Improvements&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We could improve our lab by:&lt;/p&gt;

&lt;p&gt;Testing extra white space and internationalised email addresses.&lt;/p&gt;

&lt;p&gt;Testing case insensitive matching against application specific unique rules.&lt;/p&gt;

&lt;p&gt;Considering the performance of our query if we have a large amount of data. We could investigate the correct indexing strategy.&lt;/p&gt;

&lt;p&gt;Implementing approved data quality controls within a scheduled monitoring process. Ensuring we have the correct authorisations, logging and reviewing processes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Source Code &amp;amp; Evidence&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Our full SQL Diagnostics and Data Quality Toolkit can be found on GitHub:&lt;/p&gt;

&lt;p&gt;Oracle AI Database 26ai – SQL Diagnostics and Data Quality Toolkit&lt;/p&gt;

&lt;p&gt;This contains our duplicate email audit query, synthetic positive test, screenshots, CSV results and documentation.&lt;/p&gt;

&lt;p&gt;Our duplicate email control can be found under DQ-005.&lt;/p&gt;

&lt;p&gt;It was created as an additional control and does not effect the original 12 control status scorecard from our project.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Identifying potential duplicates is an important part of ensuring we have reliable data within our application.&lt;/p&gt;

&lt;p&gt;Our lab shows how we can use Oracle SQL functions such as TRIM(), UPPER(), GROUP BY, HAVING and CASE to identify matching values and summarise our data quality findings.&lt;/p&gt;

&lt;p&gt;We had no duplicate groups from our public HR example and 2 groups affecting 4 records from our synthetic positive test.&lt;/p&gt;

&lt;p&gt;Overall we have learnt that we should have clear normalisation rules, correct testing, privacy focused reporting and validation against business rules when identifying duplicates.&lt;/p&gt;

&lt;p&gt;The techniques shown in this example will be useful examples for any Oracle SQL Developers or DBA's wanting to add transparent read only data quality checks.&lt;/p&gt;

&lt;p&gt;References&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database SQL Language Reference – UPPER&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/sqlrf/UPPER.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/26/sqlrf/UPPER.html&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database SQL Language Reference – TRIM&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/sqlrf/TRIM.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/26/sqlrf/TRIM.html&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle Database SQL Language Reference – SELECT, GROUP BY and HAVING&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/sqlrf/SELECT.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/26/sqlrf/SELECT.html&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Oracle FreeSQL&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://freesql.com" rel="noopener noreferrer"&gt;https://freesql.com&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Source code &amp;amp; evidence&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://github.com/abdulrawof-totakhil/oracle-26ai-sql-diagnostics-toolkit" rel="noopener noreferrer"&gt;https://github.com/abdulrawof-totakhil/oracle-26ai-sql-diagnostics-toolkit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;AI Assisted Technical Reference. Results from lab have been taken from contributors recorded Oracle FreeSQL evidence. This is not an Oracle ACE submission.&lt;/p&gt;

</description>
      <category>oracle</category>
      <category>tutorial</category>
      <category>database</category>
      <category>sql</category>
    </item>
    <item>
      <title>Building a Backup and Disaster Recovery Readiness Checker with Oracle AI Database 26ai</title>
      <dc:creator>Abdulrawof Totakhil</dc:creator>
      <pubDate>Sat, 07 Nov 2026 09:46:15 +0000</pubDate>
      <link>https://dev.to/abdulrawoftotakhil/building-a-backup-and-disaster-recovery-readiness-checker-with-oracle-ai-database-26ai-1cm3</link>
      <guid>https://dev.to/abdulrawoftotakhil/building-a-backup-and-disaster-recovery-readiness-checker-with-oracle-ai-database-26ai-1cm3</guid>
      <description>&lt;p&gt;Hands-on SQL tutorial using Oracle FreeSQL, Analytic functions, Risk Readiness and JSON.&lt;/p&gt;

&lt;p&gt;By Abdulrawof Totakhil&lt;/p&gt;

&lt;p&gt;DBA | Oracle ACE Apprentice | Oracle Certified Professional&lt;/p&gt;

&lt;p&gt;Introduction:&lt;/p&gt;

&lt;p&gt;How can you quickly determine whether your backups and disaster recovery monitoring is in a state that needs attention?&lt;/p&gt;

&lt;p&gt;Your backups could be out-of-date. Or you could have too much apply lag on your standby database. Or worst CASE, your monitoring is no longer providing any data.&lt;/p&gt;

&lt;p&gt;Each of which should be handled differently.&lt;/p&gt;

&lt;p&gt;I have created an original SQL Backup and Disaster Recovery Readiness Toolkit using Oracle AI Database 26ai and Oracle FreeSQL.&lt;/p&gt;

&lt;p&gt;The aim is to create a small lab that will take the simulated monitoring data and provide a meaningful readiness status.&lt;/p&gt;

&lt;p&gt;As this is using fictional data, you can follow along without needing access to actual systems.&lt;/p&gt;

&lt;p&gt;Please note this is a learning project and will not connect to RMAN, Oracle Data Guard, perform any recovery actions or prove any disaster recovery capabilities.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Understanding the Problem&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;As a DBA, you should ask yourself.&lt;/p&gt;

&lt;p&gt;Do you have a successful backup? Is it out of date? Is your apply lag on standby within the acceptable limits? Are your monitoring samples recent enough?&lt;/p&gt;

&lt;p&gt;You should not just receive a green report.&lt;/p&gt;

&lt;p&gt;For example, if your monitoring collector last reported a 5 minute apply lag but it has been several hours since it was reported. Although the apply lag was an acceptable figure, it is no longer recent.&lt;/p&gt;

&lt;p&gt;This is why I have created this project to ensure we are getting the right status and information.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Lab Design&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I have designed 3 tables.&lt;/p&gt;

&lt;p&gt;Table Description&lt;/p&gt;

&lt;p&gt;ACE26_DR_ASSETS_P7 Fictional assets with monitoring policies.&lt;/p&gt;

&lt;p&gt;ACE26_DR_BACKUPS_P7 Simulated successful and failed backups.&lt;/p&gt;

&lt;p&gt;ACE26_DR_APPLY_P7 Simulated apply lag, transport lag and sample times.&lt;/p&gt;

&lt;p&gt;There are 7 fictional assets in our lab (DEMO_A to DEMO_G).&lt;/p&gt;

&lt;p&gt;We have added 9 synthetic backups and 7 replication monitoring samples.&lt;/p&gt;

&lt;p&gt;These tables are used to create a view ACE26_DR_HEALTH_P7, which will provide us with the readiness statuses. We can then use this in a dashboard query, risk summary, DBA action list and JSON.&lt;/p&gt;

&lt;p&gt;All data has been created for this learning project.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Monitoring Limits&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For this demonstration, we have set the following example limits.&lt;/p&gt;

&lt;p&gt;Metric Example Limit&lt;/p&gt;

&lt;p&gt;Successful Backup Age 24 Hours&lt;/p&gt;

&lt;p&gt;Standby Apply Lag 15 Minutes&lt;/p&gt;

&lt;p&gt;Monitoring Sample Age 30 Minutes&lt;/p&gt;

&lt;p&gt;These are for our lab only. In production you should decide the monitoring limits based on your business recovery requirements, database design, workloads, processes and risk.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Most Recent Successful Backup&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One of the key parts of this design is finding the most recent successful backup.&lt;/p&gt;

&lt;p&gt;I used Oracle SQL Analytic function ROW_NUMBER().&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt;

&lt;span class="n"&gt;asset_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;backup_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;backup_end_time&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="nb"&gt;ROW_NUMBER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;OVER&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="k"&gt;PARTITION&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;asset_id&lt;/span&gt;

&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;backup_end_time&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;backup_id&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;backup_rank&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;ace26_dr_backups_p7&lt;/span&gt;

&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;backup_status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'SUCCESS'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We use PARTITION BY asset_id to separate the backups BY asset. ORDER BY backup_end_time DESC will ORDER the most recent backup first. Finally we have backup_id DESC to tie break.&lt;/p&gt;

&lt;p&gt;The ROW_NUMBER() function then ranks the most recent successful backup as 1.&lt;/p&gt;

&lt;p&gt;In our full view we can select backup_rank = 1 to get this record.&lt;/p&gt;

&lt;p&gt;We only want to get successful records so we can filter on this.&lt;/p&gt;

&lt;p&gt;There is also a limitation to this. We are only finding the most recent successful backup, meaning we won’t automatically be alerted to any failed backups newer than this. In the future it would be good to monitor the most recent backup job result.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Readiness Status&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I have created 7 readiness statuses.&lt;/p&gt;

&lt;p&gt;Asset Readiness Priority&lt;/p&gt;

&lt;p&gt;DEMO_A HEALTHY 3&lt;/p&gt;

&lt;p&gt;DEMO_B BACKUP_STALE 2&lt;/p&gt;

&lt;p&gt;DEMO_C APPLY_LAG_BREACH 2&lt;/p&gt;

&lt;p&gt;DEMO_D MULTIPLE_BREACHES 1&lt;/p&gt;

&lt;p&gt;DEMO_E NO_SUCCESSFUL_BACKUP 1&lt;/p&gt;

&lt;p&gt;DEMO_F NO_REPLICATION_SAMPLE 1&lt;/p&gt;

&lt;p&gt;DEMO_G STALE_METRICS 1&lt;/p&gt;

&lt;p&gt;Priority 1 means we need to urgently investigate based on our fictional policies. Priority 2 means there is an issue to investigate. Priority 3 means everything is ok.&lt;/p&gt;

&lt;p&gt;The ORDER is important.&lt;/p&gt;

&lt;p&gt;If there is no successful backup, we will get this in our report. We will not check if the replication samples are acceptable.&lt;/p&gt;

&lt;p&gt;If there is a stale sample, we will get STALE_METRICS.&lt;/p&gt;

&lt;p&gt;These were created using CASE statements in Oracle SQL.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;DBA Actions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Not only is it useful to know there is an issue but we can make our report more useful BY providing recommendations.&lt;/p&gt;

&lt;p&gt;I have created a SQL action list to provide recommendations based on the readiness status.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt;

&lt;span class="n"&gt;asset_tag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;risk_status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="n"&gt;priority_rank&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="k"&gt;CASE&lt;/span&gt; &lt;span class="n"&gt;risk_status&lt;/span&gt;

&lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="s1"&gt;'BACKUP_STALE'&lt;/span&gt;

&lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Review backup schedule and latest successful backup'&lt;/span&gt;

&lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="s1"&gt;'APPLY_LAG_BREACH'&lt;/span&gt;

&lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Investigate archive transport, apply process and network conditions'&lt;/span&gt;

&lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="s1"&gt;'STALE_METRICS'&lt;/span&gt;

&lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Restore monitoring collection and verify data freshness'&lt;/span&gt;

&lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="s1"&gt;'HEALTHY'&lt;/span&gt;

&lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Continue routine monitoring'&lt;/span&gt;

&lt;span class="k"&gt;ELSE&lt;/span&gt; &lt;span class="s1"&gt;'Manual investigation required'&lt;/span&gt;

&lt;span class="k"&gt;END&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;recommended_action&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;ace26_dr_health_p7&lt;/span&gt;

&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;priority_rank&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;asset_tag&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Below is an example of the full action list.&lt;/p&gt;

&lt;p&gt;There are additional recommendations for no backups, no samples and multiple breaches.&lt;/p&gt;

&lt;p&gt;The idea is to take the monitoring data and provide a plan for investigation.&lt;/p&gt;

&lt;p&gt;These are just examples and should not replace any DBA diagnosis or approved processes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;JSON Readiness Report&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I also wanted to show how we can convert relational SQL data into structured JSON.&lt;/p&gt;

&lt;p&gt;Oracle provides SQL/JSON functions such as JSON_OBJECT and JSON_ARRAYAGG.&lt;/p&gt;

&lt;p&gt;Using these, we can create a report showing each asset status, priority, backup age, apply lag, transport lag and sample age.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="no"&gt;JSON_ARRAYAGG&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="no"&gt;JSON_OBJECT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;

&lt;span class="s1"&gt;'assetTag'&lt;/span&gt; &lt;span class="no"&gt;VALUE&lt;/span&gt; &lt;span class="n"&gt;asset_tag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s1"&gt;'riskStatus'&lt;/span&gt; &lt;span class="no"&gt;VALUE&lt;/span&gt; &lt;span class="n"&gt;risk_status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s1"&gt;'priority'&lt;/span&gt; &lt;span class="no"&gt;VALUE&lt;/span&gt; &lt;span class="n"&gt;priority_rank&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s1"&gt;'backupAgeHours'&lt;/span&gt; &lt;span class="no"&gt;VALUE&lt;/span&gt; &lt;span class="n"&gt;backup_age_hours&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s1"&gt;'applyLagMinutes'&lt;/span&gt; &lt;span class="no"&gt;VALUE&lt;/span&gt; &lt;span class="n"&gt;apply_lag_minutes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s1"&gt;'transportLagMinutes'&lt;/span&gt; &lt;span class="no"&gt;VALUE&lt;/span&gt; &lt;span class="n"&gt;transport_lag_minutes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

&lt;span class="s1"&gt;'sampleAgeMinutes'&lt;/span&gt; &lt;span class="no"&gt;VALUE&lt;/span&gt; &lt;span class="n"&gt;sample_age_minutes&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;priority_rank&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;asset_tag&lt;/span&gt;

&lt;span class="k"&gt;RETURNING&lt;/span&gt; &lt;span class="no"&gt;CLOB&lt;/span&gt;

&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;dr_readiness_json&lt;/span&gt;

&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;ace26_dr_health_p7&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will produce a JSON array showing our current readiness status.&lt;/p&gt;

&lt;p&gt;This shows how Oracle SQL can be used to format data for external reporting. Using the RETURNING CLOB clause means that we can return character large object data.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Testing&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On 30th October 2026 I ran the main demonstration in Oracle FreeSQL.&lt;/p&gt;

&lt;p&gt;This involved creating tables, inserting synthetic data, creating readiness view, dashboard report, action recommendations, JSON and final verification.&lt;/p&gt;

&lt;p&gt;We got the following results.&lt;/p&gt;

&lt;p&gt;Verification Outcome&lt;/p&gt;

&lt;p&gt;Total Fictional Assets 7&lt;/p&gt;

&lt;p&gt;Assets to Investigate 6&lt;/p&gt;

&lt;p&gt;Validation Errors 0&lt;/p&gt;

&lt;p&gt;Final SQL Verification PASS&lt;/p&gt;

&lt;p&gt;This verified that we had the right amount of assets, unique asset IDs and that the readiness statuses matched the priority.&lt;/p&gt;

&lt;p&gt;This returned a PASS.&lt;/p&gt;

&lt;p&gt;However, this only verifies that the SQL checks for readiness statuses are correct. This does not prove that a real database is recoverable or that Data Guard is available.&lt;/p&gt;

&lt;p&gt;Evidence of the run can be seen in the public GitHub repo.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Key Takeaways&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A successful backup is not the same as a successful restore.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Whilst monitoring backups is useful, we need to actually test restores.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Monitoring samples should be recent.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Old monitoring samples can give a false sense of security. You should consider how fresh your data is.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Your Readiness Report should have clear priorities.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Operational teams need to know what to investigate.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You can use SQL for decision making monitoring.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Using analytic functions, CASE statements, aggregations and JSON we can create a structured operational report from relational data.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Be careful with time based checks.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Our lab uses LOCALTIMESTAMP. As we are calculating how old the monitoring samples are during the query run, some statuses will change over time.&lt;/p&gt;

&lt;p&gt;We noticed the 7 original statuses shortly after inserting the synthetic data. If we were to run the report again later, we may see different results. This is expected.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Limitations / Future Improvements&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This has been kept simple and safe for learning.&lt;/p&gt;

&lt;p&gt;This does not validate RMAN restores, connect to Oracle Data Guard, check the status of Data Guard Broker, measure true RPO/RTO or failover.&lt;/p&gt;

&lt;p&gt;Future improvements could include tracking the most recent failed backup job, adding trend analysis, additional transport lag policies and monitoring adapter for an authorised test environment.&lt;/p&gt;

&lt;p&gt;If deployed in reality you would need to ensure security was reviewed, data was collected, limits were set for your environment and recovery tested.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Source Code&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The full project can be found on GitHub.&lt;/p&gt;

&lt;p&gt;Oracle AI Database 26ai Backup and DR Readiness SQL Toolkit&lt;/p&gt;

&lt;p&gt;This contains the SQL scripts, sample data, testing files, documentation and original Oracle FreeSQL screenshots.&lt;/p&gt;

&lt;p&gt;You can recreate our lab using the instructions in the README file using a disposable Oracle FreeSQL 26ai schema.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Creating this project has allowed me to look into how we can use Oracle SQL to check simulated backup and disaster recovery monitoring.&lt;/p&gt;

&lt;p&gt;The main takeaway is that you need to consider more than if there is monitoring data. You should consider if it is recent, if there are any breaches, missing data and how important each issue is to operations.&lt;/p&gt;

&lt;p&gt;I hope this example helps other Oracle DBA’s and learners look into monitoring using SQL.&lt;/p&gt;

&lt;p&gt;Any technical feedback or suggestions are welcome.&lt;/p&gt;

&lt;p&gt;References:&lt;/p&gt;

&lt;p&gt;Oracle SQL ROW_NUMBER() Documentation&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/sqlrf/ROW_NUMBER.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/26/sqlrf/ROW_NUMBER.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle SQL/JSON Generation Documentation&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/adjsn/overview-JSON-generation.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/26/adjsn/overview-JSON-generation.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GitHub Repo&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/abdulrawof-totakhil/oracle-26ai-DR-readiness-toolkit" rel="noopener noreferrer"&gt;https://github.com/abdulrawof-totakhil/oracle-26ai-DR-readiness-toolkit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By Abdulrawof Totakhil&lt;/p&gt;

&lt;p&gt;Oracle ACE Apprentice | Oracle Certified Professional&lt;/p&gt;

&lt;p&gt;Let’s Connect &amp;amp; Share Knowledge&lt;/p&gt;

&lt;p&gt;For further questions, technical discussions, collaboration, or knowledge sharing, feel free to connect with me on LinkedIn.&lt;/p&gt;

&lt;p&gt;🔗 &lt;a href="https://www.linkedin.com/in/abdulrawof-totakhil" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/abdulrawof-totakhil&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s learn, share, and grow together!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>database</category>
      <category>sql</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
