Kim 18c New Features
Kim 18c New Features
Kim 18c New Features
For IT Transformation
February 2019
Charles Kim
• Oracle ACE Director
• Founder and CEO of Viscosity
• Over 27 years of Oracle Expertise: Mission Critical Databases,
RAC, Data Guard, ASM, RMAN, Shareplex/GoldenGate
• Specialize in “Complex Data Replication & Integration” with Shareplex & GG
• President - IOUG Cloud Computing SIG
• Oracle Management Cloud Certified
• Blog Sites: http://DBAExpert.com/blog
• Oracle Exadata Certified Implementation Specialist, (2014, 2016)
• Oracle Certified RAC Expert
@ViscosityNA
My Core Expertise:
@ViscosityNA
DbA 3.0
Cloud DBA
Now the Autonomous DBA
The Changing Role of the DBA: Q&A with Oracle's Penny Avril
http://www.dbta.com/BigDataQuarterly/Articles/The-Changing-Role-of-the-
DBA-QandA-with-Oracles-Penny-Avril-120343.aspx
@ViscosityNA
Evolution of the DBA
Kind of DBA Timeline
RAC DBAs (MAA DBAs) 2000+ after 9.2 (but major spike with 10.2) + Data Guard
vDBA / vRAC DBA 2010+ Evolving role of a DBA in the virtual world
@ViscosityNA
Upgrade Plans
Upgrade to Oracle 19c? Upgrade to 18c?
• Factoids
• 19c is the Terminal Release of Oracle 12
• E-Business Suite Customers are told to
wait for Oracle 19c
12.2
• So what is the delimma?
18c
19c
@ViscosityNA
Why You Should Consider
Upgrading to Oracle 12.2 or 18c
11.2 Premier Support Ended - ULA?
12.1.0.2 Premier Support End
@ViscosityNA Even Oracle 19c ?
Hybrid Cloud
Journey For The Next 5-7 Years
@ViscosityNA
Oracle Database 12cR2 introduced on the Cloud 9/18/2016
On-Premise Oracle
Database 12cR2
released just under
6 months later on
February 13, 2018 @ViscosityNA
3/1/17 11
Oracle Release Dates
Oracle Database 11g Release 1 Aug 2007
Oracle 18c@ViscosityNA
– On-Premise July 2018
Upgrade to 12.2 from 11.2.0.4
@ViscosityNA
Oracle Database
Extended
Support
Fees
Waived
@ViscosityNA
End of Patching
http://www.oracle.com/us/support/library/oracle-lifetime-support-policy-faq-069234.pdf
@ViscosityNA
Oracle Database 18.4
Jan 2019
@ViscosityNA
Download 18c Now
@ViscosityNA
Oracle XE 18c*
FREE TO USE
Oracle 18c - Complete checklist for Manual Upgrade for Multitenant Architecture
Oracle Databases from 12.1.x.x to 18.x.x.x (Doc ID 2422161.1)
Oracle 18c - Complete Checklist for Upgrading to Oracle Database 18c (18.x) using
DBUA (Doc ID 2418576.1)
@ViscosityNA
Oracle Database 18c
Simplified Version Number Timelines With RUs and RURs
• 3 digit format
– Year.Update.Revision
@ViscosityNA
Oracle Database 18c
18c
Sample Version Number Timelines With RUs and RURs Oracle
Database
@ViscosityNA
Performance: Preserve Statistics
Gather accurate performance statistics from production
Accurate means: Starting at least 1 month before the upgrade
Use Automatic Workload Repository (AWR) Snapshots interval 30-60 minutes and
retention ~40 days
Extract AWR:
SQL> @?/rdbms/admin/awrextr.sql
MOS Note:1477599.1 Best Practices Around Data Collection For Performance Issues
• Ensure AWR retention is long enough to capture historical data for comparison
• Backup your database statistics, in case an older SQL plan needs restoring
• Definitely consider RAT for real workload testing, instead of synthetic workloads tests
• If upgrading older version of RAC to new version in place, special consideration need to
be understood
– 9i RAC to 12c RAC
– Upgrade to 12c GI stack first, Flex ASM or not
– Legacy clients may not support new Net connections
@ViscosityNA
Oracle Database 12c Release 2
Upgrade Paths
@ViscosityNA
Oracle Database 12c Release 2
For Super Old Versions
@ViscosityNA
Oracle Database 19c Extended Support
12.2.0.2
12.2.0.3
@ViscosityNA
@ViscosityNA
Oracle 19c (LiveSQL Released) - Jan 16, 2019
• https://blogs.oracle.com/oracle-database/oracle-database-19c-now-
available-on-livesql
@ViscosityNA
Oracle 19c
• Long Term Support
• EBS will be certified in Oracle 19c
• Customers are being told to go to Oracle 19c
• Here’s the ISSUE
• If you are on 11.2.0.4, you are already too late
• 19c will not come out until Q1 in Oracle Cloud
• 19c will probably come out summer of 2019
• Need to wait for the 1st RU before even considering 19c
Factoid
• As of Q4 2018, about 80% customer databases are on 11.2 and 12.1
• Oracle does not charge for extended support on Oracle Cloud
@ViscosityNA
Easy Connect Enhancements
• Add support for multiple hosts and ports in the connection strings
• Designed for easier load-balancing client connections
@ViscosityNA
Automated Testing of Query Plans
• NO DBA INTERVENTION NEEDED
• Companies no longer need to perform full regression tests … Hmmm
• Oracle 19c will “automagically” check built-in execution plans
against existing plans
• Then replace current plan with the faster plan
• Or keep the existing plan
• Idea is queries will run just as fast or better
@ViscosityNA
Automatic Indexing
• NO DBA INTERVENTION NEEDED
• One of the biggest 19c feature
• Fully automated
• Oracle will identify candidate indexes
• Oracle will first create those indexes as unusable and invisible (metadata only)
• Verify: oracle will ask the optimizer to test if those candidate indexes
improve the SQL performance
• Validate & Implement: If the performance is better for all statements when
indexed is used, it will become visible
@ViscosityNA
Data Guard DML Re-Direction
• RUN DML on ADG
@ViscosityNA
Additional 19c New Features
Duplicate a non-CDB createDuplicateDB command of DBCA in silent mode.
— Or an Oracle RAC database with dbca in Can be duplicated to a remote server with connectivity from the
silent mode source system (where DBCA is running) to the target remote
server.
Relocate a PDB to another CDB using DBCA RelocatePDB command of DBCA in silent mode
in silent mode
Starting with Oracle Database 19c, installation and configuration of Oracle Database Client
Simplified Image Based Oracle Database
software is an image-based installation.
Client Installation To install Oracle Database Client, create the new Oracle home, extract the image file into the
newly-created Oracle home, and run the setup wizard to register the Oracle Database product.
Starting with Oracle Grid Infrastructure 19c, the Oracle Grid Infrastructure installation wizard
Oracle Clusterware dry-run mode upgrade
(gridSetup.sh)
to check your system’s upgrade readiness
The wizard performs all of the system readiness checks as an actual upgrade
Enables you to verify if your system is ready for upgrade before you start the upgrade
In previous releases, getting the secondary to the same point in time as the primary requires a manual procedure to flash back
Flashback physical standby when the standby databases. A new parameter is introduced which enables the standby database to be flashed back automatically
when Flashback Database is performed on the primary database.
Restore points and GRP is stored in the control file and not propagated to the standby site
Propagate restore points to the standby
With Failover, the standby becomes the new primary and restore point information is LOST
ADG
MIRA + In-Memory
It its one or the other before
@ViscosityNA
Additional 19c New Features
Clear Flashback logs periodically to increase Starting in 19c, the management of space in the fast recovery area is simplified
FRA size predictability Oracle Database monitors flashback logs in the fast recovery area and automatically deletes flashback logs that are beyond the
retention period. When the retention target is reduced, flashback logs that are beyond the retention period are deleted
immediately.
In previous releases, getting the secondary to the same point in time as the primary requires a
Flashback physical standby when the
manual procedure to flash back standby databases. A new parameter is introduced which
primary database is flashed back enables the standby database to be flashed back automatically when Flashback Database is
performed on the primary database.
New Parameters for Tuning Automatic DATA_GUARD_MAX_IO_TIME sets the maximum number of seconds that can elapse
before a process is considered hung while performing a regular I/O operation in an
Outage Resolution Oracle Data Guard environment. Regular I/O operations include read, write, and
status operations.
@ViscosityNA
Additional 19c New Features
RAT at PDB Level Starting in 19c, capture and replay is supported at PDB level
@ViscosityNA
ZS Storage Appliance Racked System
Benefits
• dramatically shorten deployment and implementation time
• optimize performance and availability
• reduce risk and TCO
• Platinum Services are available used to back up Oracle Engineered Systems such
as Oracle Exadata
Why ZFS ZS7-2
The first ZFS Storage Appliance was released in January 2009
Sharded RAC
Logically partition data across instances in RAC
User Defined Sharding
@ViscosityNA
Really
19c
@ViscosityNA
18c
Oracle
!45
18c
Oracle
The database tools and processes write under the ORACLE_BASE path instead of
under the Oracle home directory.
A read-only Oracle home separates the software from the database configuration
information and log files.
This separation enables you to easily share the software across different deployments.
A read-only Oracle home also simplifies version control and standardization.
!46
Oracle Database 18c
New Features
Database In-Memory Support for External Tables Rolling patches for OJVM
-Great for HDFS
Integration with Active Directory (No OID) Per PDB Key storage
Authorization to database through Active Password-less schema creation
Directory user/group mappings to database No default passwords
schema users and roles
@ViscosityNA
Oracle Database 18c
Additional Features
@ViscosityNA
Oracle Database 18c
Additional Features
@ViscosityNA
Oracle Database 18c
Additional Features
Zero Downtime Database Upgrade New Default Location of Oracle Database Password File
* Gold Image Distribution among RHP Note that the new password file path is already in
Servers ORACLE_BASE, not ORACLE_HOME.
Concurrent SQL Execution with SQL Performance Designating a CDB Fleet Member
Analyzer (SPA) 1. Access the root of the CDB that you want to designate as a fleet
member:
ALTER SESSION SET CONTAINER = CDB$ROOT;
• SPA can run in parallel (by default, it is serial)
2. Create the database link to cdb1:
• Complete the SPA test faster. CREATE PUBLIC DATABASE LINK lead_link CONNECT TO C##CF1 IDENTIFIED BY
password USING 'lead_pod';
@ViscosityNA
18c
Oracle
Standby Nologging tells the database not to log operations that qualify to be done without
logging.
Standby Nologging tells the database to send the data blocks created by the
Nologging operation to each qualifying standby database in Data Guard configuration
This typically results in those standbys NOT having invalid blocks.
You can set standby no logging for load performance or data availability in the following
statements:
▪ALTER DATABASE
▪ALTER PLUGGABLE DATABASE
▪CREATE DATABASE
▪CREATE CONTROLFILE
!52
18c
Oracle
Database nologging extended for better use with Oracle Active Data Guard environment
(without significantly increasing the amount of redo generated).
There are two new nologging modes:
Standby Nologging for Load Performance – Standbys receive non-logged data
changes (minimum impact on loading speed at). Non-logged blocks automatically resolved by
managed standby recovery.
Standby Nologging for Data Availability - Standbys have data when primary load commits
(at the cost of throttling the speed of loading data at the primary), which means the standbys
never have any non-logged blocks to worry about.
Nologging can be used when loading data into your production databases without
compromising the integrity of Data Guard standby databases, pick your level of
synchronization between primary & standby databases.
!53
Automatic Correction of Non-logged Blocks at a Data Guard Standby
Database
2 Modes
• Standby Nologging for Data Availability - commit of a loading operation is delayed until all
standby have applied data
viscosityna.com @ViscosityNA 54
18c
Oracle
PDB Switchover Clause Database
• Reverses the roles between a refreshable clone PDB and a primary PDB.
• The former Refreshable clone PDB becomes the primary PDB, which can
now be opened in read write mode.
• The formerly primary PDB now is the refreshable clone and can only be
opened in READ ONLY mode.
• This command must be executed from the primary PDB.
• The dblink must point to the root CDB where the refreshable clone PDB
resides.
Multitenant Database
• Faster Upgrades
Follow Us Online!
Facebook.com/ViscosityNA
Linkedin.com/company/Viscosity-North-America
@ViscosityNA
Facebook.com/ViscosityNA
@Viscosity_NA
58