oracle database: new features and more! · upgrade / migrate / consolidate to oracle 19c 14...
TRANSCRIPT
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Oracle Database: New Features and more!
Robert PastijnSenior Principal Product Manager
Server TechnologiesOracle Development
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
Upgrade / Migrate / Consolidate to Oracle 19c
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Agenda
Release and Patching Strategy
Marquee new features
Cool Features for DBAs
XE, Apex in ADB and more
Questions
Upgrade / Migrate / Consolidate to Oracle 19c 3
1
2
3
4
5
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Agenda
Release and Patching Strategy
Marquee new features
Cool Features for DBAs
XE, Apex in ADB and more
Questions
Upgrade / Migrate / Consolidate to Oracle 19c 4
1
2
3
4
5
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Lifetime Support Commitments and Plans
55Upgrade / Migrate / Consolidate to Oracle 19c
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
Oracle 18
EXTENDED
Oracle 11.2 EXTENDED
EXTENDEDOracle 12.1
12.2.0.1
Oracle 19
Paid Extended SupportPremier Support Waived Extended Support
▼
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Clarification 1 | Release Families
• The 18c and 19c releases are part of the Database 12.2 "Family" for Lifetime Support as if they were the 12.2.0.2 and 12.2.0.3 patch sets
• Patching end date for Oracle Database 18c will be determined once Oracle 19c is available on premises
6
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027EXTENDEDOracle 12.2
Oracle 18
EXTENDED
12.2.0.1
Oracle 19
Upgrade / Migrate / Consolidate to Oracle 19c
“Dates” for non-released software are fictional - see MOS 742060.1 for announcements and details
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Clarification 2 | Support for Annual Releases
• Annual releases get a minimum of 2 years patching after the succeeding release is available on all enterprise (non-Engineered Systems) platforms
• Similar to what patch sets received under the previous release model
7Upgrade / Migrate / Consolidate to Oracle 19c
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
Oracle 18
12.2.0.1
≧ 2 years
EXTENDEDOracle 19
≧ 2 years
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Clarification 3 | Long-Term Support Release
• The final release in a family will get longer term support
• Please check MOS Note 742060.1 for details
8
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Oracle 19c - LONG TERM SUPPORT RELEASE
Upgrade / Migrate / Consolidate to Oracle 19c
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Patching since Oracle Database 12.2Updates (RU) and Revisions (RUR)
Upgrade / Migrate / Consolidate to Oracle 19c 9
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 10
Patching | Since Oracle Database 12.2
Update 1
Security Fixes Regression Fixes
Optimizer / off Functional Fixes
Base Release
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Base Release
Upgrade / Migrate / Consolidate to Oracle 19c 11
Patching | Since Oracle Database 12.2 - Quarterly
Update 1
Security Fixes Regression Fixes
Optimizer / off Functional Fixes
Update 2
Security Fixes Regression Fixes
Optimizer / off Functional Fixes
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Base Release
Upgrade / Migrate / Consolidate to Oracle 19c 12
Patching | Since Oracle Database 12.2 - Alternative: Revisions
Update 1
Security Fixes Regression Fixes
Optimizer / off Functional Fixes
Update 1 Optimizer / off Functional Fixes
Revision 1
Security Fixes Regression Fixes
Update 2
Security Fixes Regression Fixes
Optimizer / off Functional Fixes
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Base Release
Upgrade / Migrate / Consolidate to Oracle 19c 13
Patching | Since Oracle Database 12.2 - Alternative: Revisions
Update 1
Security Fixes Regression Fixes
Optimizer / off Functional Fixes
Update 1 Optimizer / off Functional Fixes
Revision 1
Security Fixes Regression Fixes
Update 2
Security Fixes Regression Fixes
Optimizer / off Functional Fixes
Update 1 Optimizer / off Functional Fixes
Revision 2
Security Fixes Regression Fixes
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Base Release
Upgrade / Migrate / Consolidate to Oracle 19c 14
Patching | Since Oracle Database 12.2 - Alternative: Revisions
Update 1
Security Fixes Regression Fixes
Optimizer / off Functional Fixes
Update 1 Optimizer / off Functional Fixes
Revision 1
Security Fixes Regression Fixes
Update 2
Security Fixes Regression Fixes
Optimizer / off Functional Fixes
Update 1 Optimizer / off Functional Fixes
Revision 2
Security Fixes Regression Fixes
…
Update 2 Optimizer / off Functional Fixes
Revision 1
Security Fixes Regression Fixes
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 15
Timeline Example | Future Projection
Production April July October January April July October January April July October January April July October
18.1.0 18.2.0 18.3.0 18.4.0 18.5.0 18.6.0 18.7.0 18.8.0 18.9.0 18.10.0 18.11.0 18.12.0 18.13.0 18.14.0
18.2.1 18.3.1 18.4.1 18.5.1 18.6.1 18.7.1 18.8.1 18.9.1 18.10.1 18.11.1 18.12.1 18.13.1
18.2.2 18.3.2 18.4.2 18.5.2 18.6.2 18.7.2 18.8.2 18.9.2 18.10.2 18.11.2 18.12.2
19.1.0 19.1.0 19.2.0 19.3.0 19.4.0 19.5.0 19.6.0 19.7.0 19.8.0 19.9.0 19.10.0 19.11.0 19.12.0 19.13.0
19.3.1 19.4.1 19.5.1 19.6.1 19.7.1 19.8.1 19.9.1 19.10.1 19.11.1 19.12.1
19.3.2 19.4.2 19.5.2 19.6.2 19.7.2 19.8.2 19.9.1 19.10.2 19.11.2
20.1.0 20.1.0 20.2.0 20.3.0 20.4.0 20.5.0 20.6.0 20.7.0 20.8.0
20.2.1 20.3.1 20.4.1 20.5.1 20.6.1 20.7.1
20.2.2 20.3.2 20.4.2 20.5.2 20.6.2
21.1.0 21.1.0 21.2.0 21.3.0 21.4.0
21.2.1 21.3.1
New Feature Release
New Feature Release
Patchin
gEn
d 1
8c
2018 2019 2020 2021
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
More Information | Client Connectivity
• MOS Note: 207303.1Client / Server Interoperability Support Matrix for Different Oracle Versions
Upgrade / Migrate / Consolidate to Oracle 19c 16
ClientVersion
Server Version
19c 18c 12.2.0#10 12.1.0 11.2.0 11.1.0 10.2.0 10.1.0 9.2.0
19c Yes Yes Yes Yes Yes#9 No No No#3 No#3
18c Yes Yes Yes Yes Yes#9 No No No#3 No#3
12.2.0 Yes Yes Yes Yes Yes#9 No No No#3 No#3
12.1.0 Yes Yes Yes Yes Yes Was MDS#7 No#3 No#3
11.2.0 Yes#9 Yes#9 Yes#9 Yes Yes Was MDS#7 No Was#5
11.1.0 No No No Was Was Was Was#7 Was#6 Was#5
10.2.0 No#11 No#11 No#11 MDS#7#11 MDS#7#11 Was#7#11 MDS#11 Was Was#5
10.1.0#4 No No No No Was#6 Was#6 Was Was Was
9.2.0 No No No No#8 Was#5 Was#5 Was#5 Was Was
Yes Supported
Yes Supported but fixes only possible for customers with Extended Support .
MDS Supported, but fixes only possible for customer with a valid Market-Driven Support contract.
Was Was a supported combination but one of the releases is no longer covered by any of Premier Support, Primary Error Correct support, Extended Support, nor Extended Maintenance Support. Fixes are no longer possible.
No Has never been Supported
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Core aim: Stability
Long Term Support Release for the 12.2 family of products
17
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Development Services
Cloud to On-Premise, Clustering,
Microservices, Sharding, Security,
High Availability, Isolation,
Zero Data Loss, Administration
Data Support
Node.js, Python, .NET, Java, PHP,
Ruby, PL/SQL, C, C++, Perl, Go,
EBR, REST Services,
Advanded Queuing,
APEX, SODA, DockerRelational, JSON, XML, Spatial, Graph, RDF, Text, Binary. Object Stores, HDFS, Kafka, NoSQL Stores
Platform Services
Analytical Services
SQL, R, Columnar In-Memory, Advanced Analytics,Machine Learning, AI
Oracle Database as a Data Platform
Infrastructure Services
Public Cloud, Cloud at Customer, Exadata, BDA, ZDLRA
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Agenda
Release and Patching Strategy
Marquee new features
Cool Features for DBAs
XE, Apex in ADB and more
Questions
Upgrade / Migrate / Consolidate to Oracle 19c 19
1
2
3
4
5
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Marquee features and where we stand
Upgrade / Migrate / Consolidate to Oracle 19c 20
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• Introduced in 12.1.0.1 (2013)– Announced deprecation of non MT
• Improved in 12.2, 18c and 19c– More than xx new features
– All current DB functionality
– Only supported option in DBaaS
Marquee new features | Multitenant
Upgrade / Migrate / Consolidate to Oracle 19c 21
Massive Cost Savings and Cloud Agility with
Multitenant
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Marquee new features | Multitenant
• Announced with 12c initial release in July 2014– Now more than 5 years ago !
• New features in 19c and beyond only available on CDB architecture– More flexibility with Container Database Architecture
– No additional licenses needed for single pluggable database per CDB
– Limit (to prevent accidents) possible using init.ora parameter 'MAX_PDBS'
Next years release will NOT support non-CDB Architecture !
Upgrade / Migrate / Consolidate to Oracle 19c 22
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Multitenant database | Deployment options
• Works until 19c– Deprecated starting 20c
• One active PDB • Up to to 252 PDBs
– On-prem and non-Oracle Cloud
• Up to 4096 active PDBs
– Oracle Cloud, Exadata and Supercluster
CDB$ROOT
PDB$SEED
PDB1
CDB$ROOT
PDB$SEED
PDB1 PDB1 ...
DB
Stand Alone Single Tenant Multi Tenant
NEW IN
12.1
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Multitenant database | Licensing
• Same as in previous releases
• No extra license required
• Possible with SE and EE
• Requires EE
• License required
– Multitenant license or
– Cloud High Perf. Edition or
– Cloud Extreme Perf. Edition
CDB$ROOT
PDB$SEED
PDB1
CDB$ROOT
PDB$SEED
PDB1 PDB1 ...
DB
Stand Alone Single Tenant Multi Tenant
NEW IN
12.1
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Multitenant database | Journey
• 12.1.0.1 introduction– Multiple (pluggable) databases per container
database (CDB)
– Easy clone, copy and move inside or between CDBs on same or remote systems
– RAC, B&R, Data Guard, Golden Gate supported
– Not all (new) 12.1 functionality supported
From birth to 19c
Oracle Internal and Oracle Partner use only 25
NEW IN
12.1System Resources
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Multitenant database | Journey
• 12.2.0.1 – Local undo and temp tablespaces
– PDB Hot Cloning and (near zero downtime) refresh
– Multithreaded File Copy Operation
– Online Relocate (with connection forwarding)
– PDB OS Credentials
– Multiple Charactersets in a CDB
– PDB Archive files
– PDB Support for Database Vault, Heat Maps etc
– Memory Resource Management
– I/O rate limits for non-Exadata systems
From birth to 19c
Oracle Internal and Oracle Partner use only 26
– AWR and EM Express support for PDBs
– Flashback Pluggable Databases
– RMAN Subset Standby
– Data Guard Broker PDB Migration (or Failover)
– Cross-platform import of PDB
– Service level ACL for TCP Protocol
– Lockdown Profiles
– Application Containers
– Proxy PDBs
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
PDB Hot Clone
• PDB Hot Clone– Online test master instantiation
CRM
Oracle Cloud
Pricing Retail
On-Premises
27
Hot Clone
Snap Clone
Snap Clone
CRM CRM Dev1 CRM Dev2
Developers
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
PDB Refresh
• PDB Hot Clone– Online test master instantiation
• PDB Refresh– Incremental refresh of clone with latest
data
CRM
Oracle Cloud
Pricing Retail
On-Premises
28
CRM
Snap Clone
Snap Clone
CRM Dev1 CRM Dev2
Developers
TIME
Changes made to database
Cloned version no longer in sync
Only changes copied and applied
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• PDB Hot Clone – Online test master instantiation
• PDB Refresh– Incremental refresh of clone with latest
data
• PDB Relocate– Relocate with no downtime
29
PDB Relocate
29
CRM
HR
Oracle Cloud
Pricing Retail
On-Premises
CRM
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Multitenant database | Journey
• 18c– Refreshable PDB Switchover
– Dynamic Lockdown Profiles
– Snapshot Carousel
– CDB Fleet Management
– Enhanced Integration with Data Guard
From birth to 19c
Oracle Internal and Oracle Partner use only 30
Standby
Standby
PDB3 PDB4PDB1
Redo Repository
AsynchPDB
Refresh
Synchronous Data Guard Replication
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Multitenant database | Journey
• ADDM support per PDB
• PDB_GUID audit record in SYSLOG and Windows Event Viewer
• Audit Vault operations control
• Maximum number of Data Pump jobs per PDB
From birth to 19c
Upgrade / Migrate / Consolidate to Oracle 19c 31
Core aim: Stability
Long Term Support Release for the 12.2 family of products
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• Introduced in 12.1.0.1 (2013)– Announced deprecation of non MT
• Improved in 12.2, 18c and 19c– More than xx new features
– All current DB functionality
– Only supported option in DBaaS
Marquee new features | Database In Memory
Upgrade / Migrate / Consolidate to Oracle 19c 32
Massive Performance with Database In-Memory
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Breakthrough: Dual Format Database
• New in-memory column format runs Analytics 100x faster
• BOTH row and column formats for same table
• Simultaneously active and transactionally consistent
• Analytic queries automatically use super fast column format
• OLTP uses optimized row format
Buffer Cache New In-MemoryColumn Store
SALES SALES
RowFormat
ColumnFormat
SALES
Oracle Internal and Oracle Partner use only 33
NEW IN
12.1
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
In-Memory 18c Key changes
• Automatic In-Memory Management
• In-Memory For External Tables
• In-Memory for Extreme Capacity NVRAM Memory
• Many performance improvements:– In-Memory Dynamic Scans
– In-Memory Optimized Arithmetic
– Mixed workload performance improvements
34
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 35
Memory Optimized Row Store for OLTP Worloads
• Ultra-Fast key-based lookup: – Uses new lock-free In-memory hash
index
– Just declare table MEMOPTIMIZE FOR READ
• New low latency protocol with direct access to data engine
• Performance benefits:– Up to 4x throughput increase for
Primary Key based lookups
– 50% better response times
Look up ofRay’s ID(4004)
Example : Read Rays Balance
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• New streaming ingest:– Declare table
MEMOPTIMIZE FOR WRITE
– Clients perform low-latency write into in-memory buffer
– Buffered writes drained in background
– Very high throughput inserts since server issues deferred writes in large batches
• Performance:– 2x faster throughput than conventional
36
Memory Optimized Access for IoT Workloads
Example: Write Temperature Reading
IoT Client Optimized
Write
TempReadings
PeriodicBuffer Drain
BufferAppend Background
Drainers
In-Memory Ingest Buffer
Time Temp
05:50 52o
05:55 54o
06:00 54o
06:05 55o
Insert: <6:05AM, 55o >
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Agenda
Release and Patching Strategy
Marquee new features
Cool Features for DBAs
XE, Apex in ADB and more
Questions
Upgrade / Migrate / Consolidate to Oracle 19c 37
1
2
3
4
5
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• 32kB support for (N)VARCHAR2– Allows length >4000 byte
• But:– Above 3964 byte, data will be stored in
an inline SecureFile LOB• See:
http://www.ludovicocaldara.net/dba/extended-data-types-storage/
– Be aware of performance impact • See: https://blog.dbi-services.com/12c-
extended-datatypes-better-than-clob/
Cool Features | Extended VARCHAR2 / NVARCHAR2
Upgrade / Migrate / Consolidate to Oracle 19c 38
NEW IN
12.1
• Example:ALTER SYSTEM set
MAX_STRING_SIZE=EXTENDED
scope=SPFILE;
CREATE TABLE Applicants
(id NUMBER GENERATED AS IDENTITY,
first_name varchar2(30),
last_name varchar2(30),
application date,
CV varchar2(32767)
);
SHUTDOWN IMMEDIATE
STARTUP UPGRADE
@?/rdbms/admin/utl32k.sql
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• Oracle 12.1.0.2:– 1-30 bytes– CREATE TABLE
abcdefghijklmnopqrstuvwxyzabcd;
• Oracle 12.2.0.1:– 1-128 bytes
– If COMPATIBLE ≥ 12.2.0– CREATE TABLE
abcdefghijklmnopqrstuvwxyz_abcdefgh
ijklmnopqrstuvwxyz_abcdefghij …
– Database name: ≤ 8 byte
– Disk Groups, PDBs, rollback segments and tablespace names ≤ 30 bytes
• Be aware when exchanging data with lower releases
• Documentation:– https://docs.oracle.com/database/122/SQLRF/
Database-Object-Names-and-Qualifiers.htm#SQLRF51129
• See also:– https://mikedietrichde.com/2018/07/09/expor
t-with-data-pump-and-long-identifiers/
Cool Features | LONG Identifiers
Upgrade / Migrate / Consolidate to Oracle 19c 39
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• Rename or relocate datafiles online– Move between storage types
– Works with SYSTEM and SYSAUX, too
• Example:– Rename:
– Relocate:
– Copy:
Cool Features | Online Datafile Move
Upgrade / Migrate / Consolidate to Oracle 19c 40
NEW IN
12.1
ALTER DATABASE MOVE DATAFILE
'/data/user1.dbf' TO
'/data/user001.dbf';
ALTER DATABASE MOVE DATAFILE
'/data/user1.dbf' TO
'/test/user1.dbf';
ALTER DATABASE MOVE DATAFILE
'/data/user1.dbf' TO
'/test/user1.dbf' KEEP;
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• Online table move • Convert table into partitioned table
Cool Features | Online Table Move and Partitioning
Upgrade / Migrate / Consolidate to Oracle 19c 41
alter table EMPLOYEES_CONVERT modify
partition by range (EMPLOYEE_ID)
interval (100)
(partition P1 values less than (100),
partition P2 values less than (500))
ONLINEupdate indexes (IDX1_SAL LOCAL, IDX2_EMPID
global partition by range (EMPLOYEE_ID)
(partition IP1 values less than (MAXVALUE)));
alter table HR.JOBS move ONLINE
tablespace HR_TBS;
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• DBMS_PRIVILEGE_CAPTURE
– Capture privileges used
– Find privileges needed for application• Remove irrelevant privileges
• Requires Data Vault license
• Example: Capture process
• Then check:
– DBA_USED_PRIVS and DBA_UNUSED_PRIVS
Cool Features | Privilege Capture
Upgrade / Migrate / Consolidate to Oracle 19c 42
NEW IN
12.1
BEGIN DBMS_PRIVILEGE_CAPTURE.CREATE_CAPTURE(
name => 'COLLECT_USED_DEMOAPPS_PRIVS',
description => 'Find used privileges',
type => DBMS_PRIVILEGE_CAPTURE.G_CONTEXT,
condition => <syscontext = schema>);
END;
BEGIN DBMS_PRIVILEGE_CAPTURE.ENABLE_CAPTURE
('COLLECT_USED_DEMOAPPS_PRIVS');
END;
BEGIN DBMS_PRIVILEGE_CAPTURE.DISABLE_CAPTURE
('COLLECT_USED_DEMOAPPS_PRIVS');
END;
BEGIN DBMS_PRIVILEGE_CAPTURE.GENERATE_RESULT
('COLLECT_USED_DEMOAPPS_PRIVS');
END;
Constant Description
G_DATABASE Analyzes all privilege use, except privilegesused by the SYS user.
G_ROLE Analyzes privilege use for the specified roles
G_CONTEXT Analyzes privilege use when the condition parameter evaluates to TRUE
G_ROLE_AND_CONTEXT Analyzes privilege use for the specified roles when the condition parameter evaluates to TRUE
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• DBMS_PRIVILEGE_CAPTURE
– Capture privileges used
– Find privileges needed for application• Remove irrelevant privileges
• Requires Data Vault license
• Included in Enterprise Edition 18c– and up
• Example: Capture process
• Then check:
– DBA_USED_PRIVS and DBA_UNUSED_PRIVS
Cool Features | Privilege Capture
Upgrade / Migrate / Consolidate to Oracle 19c 43
BEGIN DBMS_PRIVILEGE_CAPTURE.CREATE_CAPTURE(
name => 'COLLECT_USED_DEMOAPPS_PRIVS',
description => 'Find used privileges',
type => DBMS_PRIVILEGE_CAPTURE.G_CONTEXT,
condition => <syscontext = schema>);
END;
BEGIN DBMS_PRIVILEGE_CAPTURE.ENABLE_CAPTURE
('COLLECT_USED_DEMOAPPS_PRIVS');
END;
BEGIN DBMS_PRIVILEGE_CAPTURE.DISABLE_CAPTURE
('COLLECT_USED_DEMOAPPS_PRIVS');
END;
BEGIN DBMS_PRIVILEGE_CAPTURE.GENERATE_RESULT
('COLLECT_USED_DEMOAPPS_PRIVS');
END;
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Cool Features | Incremental Statistics
Upgrade / Migrate / Consolidate to Oracle 19c 44
SYSAUX Tablespace
Sales Table
May 22nd 2018
May 23rd 2018
May 18th 2018
May 19th 2018
May 20th 2018
May 21st 2018
Partition level stats are gathered & synopsis created
Global stats generated by aggregating partition level statistics and synopsis
May 24th 2018
A new partition is added to the table & data is loaded
Gather partition statistics for new partition
Retrieve synopsis for each of the other partitions from SYSAUX
Global stats generated by aggregating the original
partition synopsis with the new one
NEW IN
12.1
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Cool Features | Incremental Statistics Enhancement
• Significantly smaller synopses with new algorithm– Default setting for 12.2 and up
• Old formats are not immediately replaced
– If older formats exist, pre-12.1 algorithm will be used (less accurate, larger)
– Statistics auto job will gradually re-gather statistics in new format
– Can also manually refresh all statistics for a table
• Example: – 8TB table with 84 partitions
• Size in Oracle 12.1.0.2: 167GB
• Size in Oracle 12.2.0.1: 7GB
Upgrade / Migrate / Consolidate to Oracle 19c 45
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Cool features |Real-Time Statistics
• Gather statistics as part of conventional DML (insert/update/merge)– Fast with negligible overhead
– Only most essential stats gatheredlike number of rows, min, max etc
• Gathering of full statistics is deferred– High frequency statistics gathering
– Automatic statistics gathering job
Real-time Statistics
Gathered Statistics
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• Online encryption of existing database tablespace files
‒ Storage overhead: 2x largest file of tbs
‒ Full encryption of internal tablespaces
‒ SYSTEM, SYSAUX, and UNDO
‒ Offline tablespace encryption
‒ No storage overhead
‒ RMAN decrypted restore with 18c
Cool Features | Online Tablespace Encryption
Upgrade / Migrate / Consolidate to Oracle 19c 47
SALESTABLESPACE
HCMTABLESPACE
HCMTABLESPACE
DF11233U*1$5Ha1qui%H1HSKQ112A14FASqw34£$1DF@£!1ahHH!DA45S& DD1
Acme 10 1/2/16Acme 3 1/3/16Acme 5 1/5/16Acme 12 1/7/16Acme 4 1/8/16Acme 2 1/9/16
alter tablespace <tablespace_name>
encryption encrypt;
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• NOLOGGING support for DWH
• Multiple observers
• Diagnostic and Tuning Pack support
• Transient Logical Standby:– Support for all data types but one (NT)
– Supports all object types
• MIRA - Multi Instance Redo Apply
– Use all nodes in your RAC cluster !
Cool Features | Data Guard
Upgrade / Migrate / Consolidate to Oracle 19c 48
Performance -Alpha testing
Apply Rate Mounted (MB/sec)
Apply RateOpen (MB/sec)
OLTP baseline –single node
160 150
OLTP using 8 nodes 1,680 1,510
Batch baseline –single node
1170 640
Batch using 8 nodes 4,620 4,380
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• Enable patching of GI without interrupting database operations
• Patches are applied out-of-place– Rolling fashion
– One node being patched at a time while the database instance(s) on that node remain up and running
• RAC with two or more nodes
Cool Features | Zero Impact Grid Infra Patching
Upgrade / Migrate / Consolidate to Oracle 19c 49
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Cool features | Connecting to the database
• Integration with Active Directory
• Password-less schema creation
• Schema-only Oracle accounts
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• External table definition provided at runtime– Similar to inline view
• No need to pre-create external tables that are used one time only
• Before:
• Now:
Cool Features | Inline External Tables
Upgrade / Migrate / Consolidate to Oracle 19c 51
CREATE TABLE sales_xt
(prod_id number, … )
TYPE ORACLE_LOADER
…
LOCATION 'new_sales_kw13')
REJECT LIMIT UNLIMITED );
INSERT INTO sales SELECT * FROM
sales_xt;
DROP TABLE sales_xt;
INSERT INTO sales
SELECT sales_xt.*
FROM EXTERNAL(
(prod_id number, … )
TYPE ORACLE_LOADER
…
LOCATION ’new_sales_kw13')
REJECT LIMIT UNLIMITED );
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• An expert system that implementsindexes based on what a skilled performance engineer would do
• Reinforcement Learning allows it to learn from its own actions as all candidate indexes are validatedbefore being implementing
• The entire process is fully automatic
• Transparency is equally important as sophisticated automation– All tuning activities are auditable
Cool features | Automatic Indexing
52
Monitor
Online Validation
Capture
Identify
Verify
Decide
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 53
Cool features | Oracle Hybrid Tables
Q4_2018Q3_2018Q2_2018Q1_2018Q4_2017Q3_2017Q2_2017Q1_2017Q4_2016
ORDERS
OBJECT STORAGE
TABLE PARTITIONED BY QUARTER
SQL HOT DATACOLD DATA
UPDATES
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Cool Features | Active Data Guard DML Redirection
• User can perform DML– Active Dataguard setup
– SYNC connection advised
• "Read Mostly" Standby– Slower DML performance
– For the occasional update
Perform DML on your standby database
54PRIMARY ACTIVE STANDBY
DML
DML applied on primary
Redo applied to standby
Clients datavisible
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Exadata Supports Docker!
Use cases:
• Host Oracle Applications– Segregated environment for Oracle Apps like Oracle R
– Cloud tooling agents can be also installed in a container making updates simpler
• Containerize agents and ISV apps– Customers deploy various agents that get affected by DB node upgrades
– Agents and ISV apps that are not compatible with the default OL version
• Support database releases for Test and Dev– Customers can deploy new database releases such as Database 18.1 for test
and dev
– Customers can spin up database containers for rapid provisioning of test/dev
55
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
New Install Approaches
• Oracle Database 18c RPM Install– Yum install from ULN
• Oracle Read Only Homes
• No click through client software install
• Oracle Docker images
56
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Cool features | AutoUpgrade Tool
57
Database Post-UpgradeStats Refresh Time Zone Adjustment /etc/oratab
Database UpgradeCommand Line
Database Pre-Checkspreupgrade.jar Automatic Fix-Ups
System ChecksSpace Check Requirements
UpgradeJob Manager
UpgradeDispatcher
config.cfg
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Agenda
Release and Patching Strategy
Marquee new features
Cool Features for DBAs
XE, Apex in ADB and more
Questions
Upgrade / Migrate / Consolidate to Oracle 19c 58
1
2
3
4
5
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Oracle 19c AutonomousHealthFramework
59
Powered By Applied Machine Learning
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 60
New Best PracticesAlerted
Oracle ORAchk – Collection Manager
Failed Check After Upgrade
mysvr01
mysvr01
mysvr01
mysvr01
mysvr01
mysvr01
mysvr01
mysvr01
mysvr01
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
1. Security Configuration• Data Encryption
• Auditing Policies
• Fine-grained Access Control
• Database and Listener Configuration
• OS File permissions
• Security Patches
2. Users and Entitlements• User Accounts, Privileges and Roles
3. Sensitive Data• Which type, where, how many
What does DBSAT Check?
For Oracle Databases 10g and later
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Summary Output with Prioritized Findings
Use Case: Is the Database Securely Configured?
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
EZConnect Improvements
• Simplification of Easy Connect syntax
• Easy Connect adaptor will now accept a list of name value pairs– For example: SDU, RETRY_COUNT, CONNECT_TIMEOUT, etc.)
• Will now enable multiple hosts/ports in the connect string– Typically used in load-balancing client connections.
Oracle Confidential – Internal63
$> sqlplus soe/soe@(DESCRIPTION=
(ADDRESS_LIST=
(LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=tcp)(HOST=salesserver1)(PORT=1522))
(ADDRESS=(PROTOCOL=tcp)(HOST=salesserver2)(PORT=1522))
(ADDRESS=(PROTOCOL=tcp)(HOST=salesserver3)(PORT=1522)))
(CONNECT_DATA=(SERVICE_NAME=sales.us.example.com)))
$> sqlplus soe/soe@//salesserver1,salesserver2,salesserver3:1522/sales.us.example.com$> sqlplus soe/soe@(DESCRIPTION=(retry_count=3) (connect_timeout=60)(transport_connect_timeout=30)
(ADDRESS=(PROTOCOL=tcp)(HOST=salesserver1)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=sales.us.example.com)))
$> sqlplus soe/soe@//salesserver1:1521/sales.us.example.com?connect_timeout=60&
transport_connect_timeout=30&retry_count=3
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
• Free to use
• Includes most EE features– no RAC, Data Guard, GoldenGate
• No support
• Resource limited:– 2 CPUs for foreground processes
– 2 GB memory (SGA + PGA)
– 12 GB user data
– 3 PDBs
65
Oracle Database 18c XEReleased Oct 20th 2018
oracle.com/xe
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Agenda
Release and Patching Strategy
Marquee new features
Cool Features for DBAs
XE, Apex in ADB and more
Questions
Upgrade / Migrate / Consolidate to Oracle 19c 66
1
2
3
4
5
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 67
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
Oracle Confidential – Internal/Restricted/Highly Restricted 68
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 69