Oracle Database 19c (Your Next ORACLE_HOME)
Oracle Database 19c (Your Next ORACLE_HOME)
Y V Ravi Kumar
Oracle Certified Master
Patterns 1
Y V Ravi Kumar (YVR)
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/2
Oracle Database 19c (Your next ORACLE_HOME)
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/3
Why upgrade to Oracle 12cR2 (12.2) Release Family ?
Oracle 12c (Oracle 12.2.0.1), Oracle 18c (12.2.0.2), Oracle 19c (12.2.0.3)
o Upgrading from Oracle 11g (11.2.0.4), Oracle 12c (12.1.0.2) to Oracle 19c
(12.2.0.3), only name implies to Oracle 19c but it is Oracle 12cR2 family.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/4
Oracle Database Release and Support Timelines
Oracle 11g and Oracle 12c are in Market Driven Support (MDS) ending in Y2025.
Always check My Oracle Support (MOS) Note 742060.1 for the latest schedule
Oracle Database 11.2 Market Driven Support (MDS) - (Doc ID 2728619.1)
MDS: This is a new limited type of support aimed for products that are about to leave Extended Support and
move to Sustaining Support.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/5
Direct Upgrade to Oracle 19c (Autougrade Tool)
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/6
Backwards Compatible (Autougrade Tool)
❖ Autoupgrade made upgrading easy. Now Autoupgrade made patching just as easy.
Always use the latest version of AutoUpgrade Download from My Oracle Support (2485457.1)
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/7
Autoupgrade Patching Feature
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/8
Distributed Database Upgrade via RAC using Autoupgrade
❖ This feature spreads the upgrade workload of CDB databases across the RAC nodes. It reduces the
number of upgrades performed on one specific nodes and spreads that workload across multiple
nodes in the cluster taking advantage of available resources in the RAC nodes.
$ cat RACDB.cfg
global.autoupg_log_dir=/u01/app/oracle/cfgtoollogs/autoupgrade
upg1.log_dir=/u01/app/oracle/cfgtoollogs/autoupgrade/ RACDB
upg1.source_home=/u01/app/oracle/product/12.2.0.1
upg1.target_home=/u01/app/oracle/product/19
upg1.sid= RACDB
upg1.tune_setting=distributed_upgrade=true
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/9
Distributed Database Upgrade via RAC using Autoupgrade
❖ Specifies that AutoUpgrade performs a distributed upgrade. A distributed upgrade leverages the
resources of the Oracle Clusterware cluster member nodes to perform the upgrades of PDBs
more rapidly on the cluster.
❖ upg1.log_dir=/u01/app/oracle/cfgtoollogs/autoupgrade/RACDB
upg1.source_home=/u01/app/oracle/product/12.2.0.1
upg1.target_home=/u01/app/oracle/product/19 upg1.sid=RACDB
upg1.tune_setting=distributed_upgrade=true,active_nodes_limit=n
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
10
Deprecated in Oracle 19c GI
Oracle 12c
(12.1.0.2)
Oracle 12c
(12.1.0.2)
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
11
19c Database Self-Guided Upgrade with Best Practices
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
12
Database Features and Licensing App
https://apex.oracle.com/database-features/
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
13
DryRun validation of Clusterware upgrade
Oracle GI installation wizard, gridsetup.sh now enables you to perform a dry-run mode upgrade to check system’s
readiness for upgrade.
In dry-run upgrade mode, the wizard performs all readiness checks that it performs in an actual upgrade, allowing you
to verify if the system is ready for upgrade.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
14
DryRun validation of Clusterware upgrade
Check the gridSetupActions<timestamp>.log file for errors and fix errors reported in the log file.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
15
DryRun validation of Clusterware upgrade
❖ Use dry-run upgrade mode of Oracle GI installation, gridSetup.sh, to configure the Grid Home and copy
the binaries to the rest of the nodes.
❖ This step will take some time to complete, by doing it at this point, we are reducing the downtime
required during the actual Grid Infrastructure Upgrade.
❖ Actual upgrade it will skip GI software copy to the other cluster nodes.
Execute Dry-
Run Mode in
Interactive
Mode
Execute Dry-
Run Mode in
Silent Mode
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
16
Zero-Downtime Oracle Grid Infrastructure Patching
Oracle 19c GI (19.6.0) running on Oracle Linux 8.0 with no ACFS/AFD configured.
• Existing GI Home: /u01/app/19.3.0/grid with applied Oracle 19c (19.6.0) RU
• Existing RDBMS Home: /u01/app/oracle/product/19.3.0/db_1 with applied Oracle 19c (19.6.0) RU
Install Oracle 19c GI (19.3.0) and apply Oracle 19c (19.7.0) RU in a separate GI Home
• New GI Home: /u01/app/19.7.0/grid
• ./gridSetup.sh -applyPSU /home/oracle/30899722
• Chose the option "Install Software only" and select all the nodes.
Zero-Downtime Oracle Grid Infrastructure Patching (ZDOGIP) (Doc ID 2635015.1)
Switching the Grid Infrastructure Home
• Run the gridSetup.sh from the target home
• /u01/app/19.7.0/grid/gridSetup.sh -SwitchGridhome
• Execute the following script in all cluster nodes
• /u01/app/19.7.0/grid/root.sh -transparent -nodriverupdate
Finally Oracle GI will be Oracle 19c (19.7.0) and Oracle RDBMS will be Oracle 19c (19.6.0)
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
17
Zero-Downtime Oracle Grid Infrastructure Patching
This script
has to
execute
from
target
home only
in one
node
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
18
Zero-Downtime Oracle Grid Infrastructure Patching
This feature is recommended for the configurations that do *not* have (ACFS/AFD/OKA/OLFS).
This script
execute in
all the
cluster
nodes
with
specified
options
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
19
Zero-Downtime Oracle Grid Infrastructure Patching
https://yvrk1973.blogspot.com/2020/08/oracle-19c-1960-zero-downtime-oracle.html
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
20
Oracle Database 19c Important Recommended One-off Patches
The information below lists additional patches(includes both rolling and non-rolling) recommended to be installed on top
of each RU.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
21
Data Pump Recommended Proactive Patches (DPBPs)
❖ The Data Pump Bundled Patch (DPBP)can be installed while the database is running, provided that Data Pump or the DBMS_METADATA
procedures are not currently in use. It is a Non-Binary Online Patch, but it is not a RAC Rolling Patch.
Data Pump Recommended Proactive Patches For 19.10 and Above (Doc ID 2819284.1)
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
22
Monthly Recommended Patches (MRPs)
❖ Customer get access to recommended, well-tested, one-off patches without having to request a
patch bundle after the release of an RU.
❖ MRPs replace Release Update Revisions (RURs).
❖ MRPs are available on Linux only.
❖ MRP1 for Oracle 19c (19.17) ships in Nov 2022.
❖ Reducing the number of one-off patches
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
23
Monthly Recommended Patches (MRPs)
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
24
Oracle 19c - Active Data Guard DML Redirection
DML Re-direction is automatically performed from an ADG standby to the primary without compromising
Atomicity, Consistency, Isolation, and Durability (ACID).
Incidental Data Manipulation Language (DML) operations can be run on Active Data Guard standby
databases. This allows more applications to benefit from using an Active Data Guard standby database when
some writes are required.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
25
Oracle 19c - Active Data Guard DML Redirection
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
26
Oracle 19c - Active Data Guard DML Redirection
❖ DML redirection helps in load balancing between the primary and standby databases. When incidental DML is
issued on an Active Data Guard standby database, the update is passed to the primary database where it is
executed. The resulting redo of the transaction updates the standby database after which control is returned to the
application.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
27
Running PL/SQL Operations Active Data Guard Databases
o PL/SQL blocks that you run on Active Data Guard Standby databases can be
redirected to and run on the primary database.
o You can configure automatic redirection for PL/SQL operations only at the
session level.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
28
Dynamic Services Fallback Option in 19c
A Service fails over to an available instance when there are no preferred instances available.
For a dynamic service that is placed using preferred and available settings, you can now specify that the
service should fall back to a preferred instance when it becomes available.
This option allows for more control in placing dynamic database services and ensures that a given
service is available on a preferred instance as much as possible.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
29
Dynamic Services Fallback Option in 19c
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
30
Status of Dynamic Service
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
31
Oracle 19c - Active Data Guard - Multi-Instance Redo Apply
Multi-Instance Redo Apply (MIRA) starting with Oracle 12cR2 (12.2), MIRA greatly improves scalability of redo
apply for Oracle RAC databases
The ApplyInstances property lets you specify how many physical standby instances run Redo Apply.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
32
Oracle 19c - Active Data Guard - Multi-Instance Redo Apply
https://www.oracle.com/br/technical-resources/articles/multi-instances-redo-apply.html
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
33
Oracle 19c - Active Data Guard - Multi-Instance Redo Apply
Recommended Bundle Patch for MIRA(Multi Instance Redo Apply) (Doc ID 2710939.1)
NOTE:
1. If the Bundle Patch is not available or conflicts with your version, contact Oracle support to request a Patch.
2. Most of the bug fix are included in 19.11.0.0.210420DBRU except few. Discussion going on with development to get
an inclusion.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
34
Replicating Restore Points from Primary to Physical Standby
Restore points that are created on a primary database are automatically replicated to the physical standby
database.
The Restore points created on the physical standby database are called replicated restore points.
Oracle database automatically replicates restore points from a primary database to the physical standby
database when the following conditions are met:
• The compatible parameter should be set to 19.0.0 or higher.
• The primary database is open.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
35
Replicating Restore Points from Primary to Physical Standby
The naming convention for a replicated restore point uses the name of the restore point on the physical standby
database suffixed with _PRIMARY
The MRP manages the creation and maintenance of replicated restore points.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
36
Oracle 19c – Export and Import Broker Configuration
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
37
Oracle 19c – Starting Observers as Background Processes
❖ To run an observer as a background process, use the DGMGRL command START OBSERVER IN BACKGROUND.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
38
Oracle 19c – Starting Observers as Background Processes
❖ To run an observer as a background process, use the DGMGRL command START OBSERVER IN BACKGROUND.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
39
Oracle 19c – Configuring Fast-Start Failover in Observe-only Mode
The observe-only mode for fast-start failover enables you to test how fast-start failover will work in your
environment.
• Observe-only mode has no impact on your current configuration or on applications.
• In this mode, no actual changes are made to you broker configuration.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
40
Oracle 19c – Data Guard Broker – New Commands
New commands are available to set, modify, and display the value of initialization parameters.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
41
Data Guard Database Nologging Improvements
Note: You Cannot use Multi-Instance Redo Apply (MIRA) when Standby Nologging for Data availability (OR)
Standby Nologging for Load Performance are enabled on the primary.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
42
Data Guard Database Nologging Improvements
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
43
Automatic Flashback of a Standby After a Primary RESETLOGS
A physical standby database that is in a mounted state can automatically follow the primary database after a
RESETLOGS operation on the primary database.
When flashback or point-in-time recovery is performed either on a primary database or a PDB in the primary
database.
• The primary database or PDB is moved to previous point in time.
• The primary database is then opened with the RESETLOGS option.
• A new incarnation of the primary database or the PDB in the primary is created.
https://yvrk1973.blogspot.com/2021/10/oracle-19c-automatic-flashback-of.html
For the physical standby database to automatically follow the primary, the MRP:
• Detects the new incarnation.
• Flashes back the standby or the PDB on the standby to the same point in time as that of the primary or the
PDB on the primary.
• Restarts the standby recovery and moves the standby to the new branch of redo.
Oracle RAC sizes its internal data structures to accommodate hundreds of PDBs in the same Container
Database (CDB) instance.
Container Database running smaller number of PDBs need to consider the following best practices in
order to ensure good performance and availability.
Versions
18.1 to
Oracle Real Application Clusters (RAC) CDBs where the number of actual PDB’s is lower than the
19.7
TARGET_PDBS parameter setting can inadvertently be subject to a negative performance.
Set the parameter TARGET_PDBS to the number of PDBs that are planned to be running in the CDB. Please
do not add seed and root in this count.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
45
Hint Usage Reporting - Oracle 19c
Hint Usage Report is a new feature from 19c which helps to determine from the execution plan output which
are all the hints are used by the Optimizer and not used by the Optimizer.
In releases before Oracle Database 19c, it could be difficult to determine why the optimizer did not use hints.
The hint usage report solves this problem. Oracle Database includes a hint usage reporting mechanism from 19c
that reports whether hints are used during plan generation or not.
In some cases, the report explains why a hint was not used or ignored, for example, a syntax error or conflict
between hints.
You can generate hint usage reports with the standard DBMS_XPLAN display functions.
This is also useful in diagnosing plan reproducibility issues with SPM baselines or SQL profiles to identify
which hint(s) are not getting used.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
46
Hint Usage Reporting - Oracle 19c
https://github.com/oracle-samples/db-sample-schemas/releases/tag/v19.2
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
47
Hint Usage Reporting - Oracle 19c
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
48
Hint Usage Reporting - Oracle 19c
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
49
Hint Usage Reporting - Oracle 19c
3.
The hint INDEX(e emp_idx) is unused
Hint Usage Reporting - 19c New Feature (Doc IDbecause the specified index does not
2735444.1)
exist.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
50
Creating database clone from RMAN full backup and upgrade to 19c
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
51
Creating database clone from RMAN full backup and upgrade to 19c
INFO: 2020-07-18 14:24:58: Please check the logfile '/opt/gDBClone/out/log/gDBClone_30868.log' for more details
MacroStep1 - Getting information and validating setup...
INFO: 2020-07-18 14:24:59: Validating environment
INFO: 2020-07-18 14:24:59: Checking superuser usage
INFO: 2020-07-18 14:24:59: Checking if target database name 'PRODUPG' is a valid name
INFO: 2020-07-18 14:24:59: Checking if target database home 'OraDb19700_home1' exists
INFO: 2020-07-18 14:24:59: Checking if Oracle Restart
INFO: 2020-07-18 14:24:59: Checking source backup location /u01/BACKUP/PROD/...
INFO: 2020-07-18 14:24:59: Getting ORACLE_BASE path from orabase
INFO: 2020-07-18 14:24:59: Checking if target database 'PRODUPG' exists
INFO: 2020-07-18 14:24:59: Checking 'PRODUPG' snapshot existence on '/u02/app/oracle/oradata/datastore'
INFO: 2020-07-18 14:24:59: Checking registered instance 'PRODUPG'
INFO: 2020-07-18 14:25:30: Checking listener on 'rcvm-scan:1521'
INFO: 2020-07-18 14:25:30: Checking ACFS command options
INFO: 2020-07-18 14:25:30: Checking if '/u02/app/oracle/oradata/datastore' is an ACFS file system
INFO: 2020-07-18 14:25:30: Checking if '/u03/app/oracle' is an ACFS file system
SUCCESS: 2020-07-18 14:25:39: Environment validation complete
MacroStep2 - Setting up clone environment...
INFO: 2020-07-18 14:25:39: Creating local pfile
INFO: 2020-07-18 14:25:39: Creating local password file
INFO: 2020-07-18 14:25:39: Creating local Audit folder
INFO: 2020-07-18 14:25:39: Checking local auxiliary listener
INFO: 2020-07-18 14:25:39: Creating local auxiliary listener
INFO: 2020-07-18 14:25:39: Starting auxiliary listener
INFO: 2020-07-18 14:25:39: Sleeping 60 secs, please wait
INFO: 2020-07-18 14:26:39: Setting up ACFS storage
INFO: 2020-07-18 14:26:39: Creating dynamic scripts
INFO: 2020-07-18 14:26:42: Cloning to target ACFS from backup location '/u01/BACKUP/PROD/'
INFO: 2020-07-18 14:26:42: Creating RMAN script for spfile target to ACFS
INFO: 2020-07-18 14:26:42: Instantiating clone database
SUCCESS: 2020-07-18 14:26:42: Environment setup complete
MacroStep3 - Cloning database 'PROD'...
INFO: 2020-07-18 14:26:42: Database clone from backup in progress, please wait
INFO: 2020-07-18 14:26:42: (this can take a while depending on database size and/or network speed)
INFO: 2020-07-18 14:29:24: Cloned database restore until SCN:2618982 done successfully
INFO: 2020-07-18 14:29:24: Moving spfile
INFO: 2020-07-18 14:29:52: Register 'PRODUPG' database as cluster resource
INFO: 2020-07-18 14:29:55: Updating spfile
INFO: 2020-07-18 14:30:00: Updating local pfile
INFO: 2020-07-18 14:30:00: Performing required actions for upgrade
INFO: 2020-07-18 14:30:00: ...Starting database 'PRODUPG' for upgrade
INFO: 2020-07-18 14:30:15: ...Opening database 'PRODUPG' for upgrade
INFO: 2020-07-18 14:30:31: ...Performing catalog upgrade, this can take a while, see '/opt/gDBClone/out/log'
INFO: 2020-07-18 15:06:51: ...Starting database 'PRODUPG'
INFO: 2020-07-18 15:07:10: ...Performing post upgrade scripts, this can take a while, see '/opt/gDBClone/out/log’
-----------------------------------------------------------------
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
52
Creating database clone from RMAN full backup and upgrade to 19c
CATALOG Oracle Database Catalog Views 19.0.0.0.0 UPGRADED
CATPROC Oracle Database Packages and Types 19.0.0.0.0 UPGRADED
JAVAVM JServer JAVA Virtual Machine 19.0.0.0.0 UPGRADED
XML Oracle XDK 19.0.0.0.0 UPGRADED
CATJAVA Oracle Database Java Packages 19.0.0.0.0 UPGRADED
APS OLAP Analytic Workspace 19.0.0.0.0 UPGRADED
RAC Oracle Real Application Clusters 19.0.0.0.0 UPGRADED
OWM Oracle Workspace Manager 19.0.0.0.0 UPGRADED
CONTEXT Oracle Text 19.0.0.0.0 UPGRADED
XDB Oracle XML Database 19.0.0.0.0 UPGRADED
ORDIM Oracle Multimedia 19.0.0.0.0 UPGRADED
SDO Spatial 19.0.0.0.0 UPGRADED
XOQ Oracle OLAP API 19.0.0.0.0 UPGRADED
AMD OLAP Catalog 11.2.0.4.0 OPTION OFF
APEX Oracle Application Express 3.2.1.00.1 VALID
------------------------------------------------------------------
SUCCESS: 2020-07-18 15:07:42: Clone database upgraded successfully
INFO: 2020-07-18 15:07:42: Checking database name
INFO: 2020-07-18 15:07:42: Modifying DB instance
INFO: 2020-07-18 15:07:44: Setup ACFS dependency
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
53
ASM Filter Driver (ASMFD) for Device Management
OS Kernel Driver
o Reject non-Oracle I/O
o Stops OS utilities from overwriting ASM disks
o Protects database files
o Configure during installation
o Reduce OS resource usage
o Fewer open file descriptors
o Faster node recovery
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
54
Oracle ACFS and AFD | Certification Matrix
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
55
Oracle Golden Gate HUB MAA Configuration - ACFS
Oracle ACFS, as part of Oracle Grid Infrastructure, is integrated with Oracle ASM, Oracle ADVM and Oracle
Clusterware.
Oracle Golden Gate deployments stored on ACFS with continuous snapshot replication.
Starting with Oracle ACFS 12c R1, ACFS can be used to store Oracle Database files
Oracle ACFS offers support for multiple Operating Systems such as Oracle Linux, Redhat, Novell SLES,
Solaris and IBM AIX.
Acfsutil repl commands can be run as non-root user (19c)
The combination of RAC, Data Guard and ACFS Replication provides comprehensive site and Disaster Recovery
policies for all files inside and outside of the database.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
56
Oracle 19c GI with ASMFD, Kernel 4.1.12 & Oracle Linux 7.8
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
57
Oracle 19c GI with ASMFD, Kernel 5.4.17 & Oracle Linux 8.2
https://yvrk1973.blogspot.com/2020/12/oracle-19c-199-with-asmfd-kernel-5417.html
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
58
ACFS Replication between Primary HUB and Standby HUB
Primary RAC: Oracle 19c (19.8) Physical Standby RAC: Oracle 19c (19.8)
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
59
UEK6 SUPPORT FOR ACFS/AFD (System Patch) in 19.10 onwards
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
60
Mounting ACFS File Systems RAC Secondary
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
61
Restarting RAC Secondary – ACFS Filesystems
Secondary RAC:
▪ When you restart secondary
[oracle@rac-s1 ~]$ df -h | grep acfs
RAC, ACFS Secondary /dev/asm/acfs_vol-269 19G 267M 19G 2% /acfs_vol
Filesystems will be mounted
[oracle@rac-s2 ~]$ df -h | grep acfs
on both the nodes /dev/asm/acfs_vol-269 19G 267M 19G 2% /acfs_vol
automatically. [root@rac-s2 ~]# srvctl stop filesystem -d /dev/asm/acfs_vol-269 -n rac-s2
[root@rac-s2 ~]# df -h
▪ Ensure it will be mounted on Filesystem Size Used Avail Use% Mounted on
only one node. /dev/mapper/vg_racs2-lv_root 77G 44G 30G 61% /
tmpfs 4.9G 1.3G 3.7G 26% /dev/shm
/dev/sda1 477M 56M 396M 13% /boot
▪ We have started replication /dev/mapper/vg_racs2-lv_home 27G 2.2G 23G 9% /home
[root@rac-s2 ~]#
from Primary ACFS
Primary RAC:
Filesystems using one of the
cluster node. [root@rac-p1 ~]# /sbin/acfsutil repl init primary -C -s oracle@rac-s1 -m /acfs_vol/ /acfs_vol/
[root@rac-p1 ~]#
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
62
Oracle ASMLib Software Update and Support Policy
• ASMLib is free, optional software for the Automatic Storage Management (ASM) feature of Oracle
Database that simplifies the management and discovery of ASM disks and makes I/O processing and
kernel resource usage with ASM storage more efficient.
• It eliminates the need for the DBA to directly manage potentially thousands of Oracle database files,
requiring only the management of groups of disks allocated to the Oracle Database.
• ASMLib is not mandatory for the Automatic Storage Management (ASM) feature of Oracle Database on
Linux and all features and functionality of ASM will work without ASMLib.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
63
Oracle 19c – Hybrid Partitioned Tables
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
64
Important Notes from My Oracle Support (MOS)
❖ Always check My Oracle Support (MOS) Note 742060.1 for the latest schedule
❖ Data Pump Recommended Proactive Patches For 19.10 and Above Note 2819284.1
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
65
Oracle 19c - DBUA in Silent Mode
DBUA performs major release upgrade of oracle database that are supported for direct upgrade.
Please refer more details: Oracle 19c - DBUA In Silent Mode (Doc ID 2548985.1)
DBUA has option to upgrade timezone information, make user tablespaces to read only, take RMAN backup
before upgrade starts.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
66
Oracle 19c - Silent Modes
You can now create a duplicate of an Oracle Database by using the createDuplicateDB command of Database
Configuration Assistant (DBCA) in silent mode.
Ability to Create a PDB by Cloning a Remote PDB Using DBCA in Silent Mode
You can now create a pluggable database (PDB) by cloning a remote PDB using the createFromRemotePDB
parameter of the createPluggableDatabase command of Database Configuration Assistant (DBCA) in silent
mode.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
67
Oracle 19c - Silent Modes
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
68
Oracle 19c - Silent Modes
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
69
Oracle 19c - Silent Modes
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
70
Oracle 19c - Silent Modes
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
71
Deprecated Leaf Nodes in Oracle 19c GI
Leaf nodes are no longer supported in the Flex Cluster Architecture in Oracle Grid Infrastructure.
• In Oracle Grid Infrastructure 19c and later releases, all nodes in a Flex Cluster function as hub nodes.
• The capabilities offered by Leaf nodes in the original implementation of the Flex Cluster architecture can as easily
served by hub nodes.
In Oracle GI 12.2, Oracle announced that it would no longer support the placement of the OCR and voting files directly
on a shared file system.
• Starting with Oracle GI 19c, the desupport for direct OCR and voting disk file placement pm shared file systems is
rescinded for Oracle Standalone Clusters.
• Secure Cluster Communication protects the cluster interconnect from common security threats when used
together with Single Network Support.
• The increased security for the cluster interconnect is invoked automatically as part of a new Oracle GI 19c
deployment or an upgrade to Oracle GI 19c.
• Database administrators or cluster administrators do not need to make any configuration changes for this
feature.
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
72
Oracle 19c – RAT and SQL Quarantine
• However, they may still want to retain the ability to manually quarantine specific SQL statements when needed.
• Therefore, a solution is needed that disables only the automatic creation of SQL quarantine entries, while keeping the overall quarantine
functionality enabled for manual use.
• The fix of Unpublished Bug 30104721 (which is included in 19.27DBRU) introduces 2 parameters
• - optimizer_capture_sql_quarantine: if set to false would disable the automatic creation of SQL Quarantine configurations after
resource manager termination of a SQL query execution. This would be FALSE by default.
• - optimizer_use_sql_quarantine: if set to FALSE would disable the use of existing SQL Quarantine configurations in a database. This
would be TRUE by default, there by allowing user to manually create and use SQL Quarantine configurations.
• So we can install patch 30104721 or apply 19.27DBRU or higher to keep the SQL quarantine functionality but disable the auto-creation
of quarantine configuration.
Included the
parameters
in 23ai
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
74
Quick links
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
75
Thanks for your TIME
@yvrk1973
https://yvrk1973.blogspot.com
https://www.linkedin.com/in/yv-ravikumar
Patterns
https://medium.com/@yvrk1973 Hands-on Articles - > https://yvrk1973.blogspot.com/
76