Sei sulla pagina 1di 70

Oracle Database: New Features and more!

Robert Pastijn
Senior Principal Product Manager

Server Technologies
Oracle 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.

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c
Agenda
1 Release and Patching Strategy
2 Marquee new features
3 Cool Features for DBAs
4 XE, Apex in ADB and more
5 Questions

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 3
Agenda
1 Release and Patching Strategy
2 Marquee new features
3 Cool Features for DBAs
4 XE, Apex in ADB and more
5 Questions

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 4
Lifetime Support Commitments and Plans

2009

2010

2011

2012

2013

2014

2015

2016

2017

2018

2019

2020

2021

2022

2023

2024

2025

2026

2027
Oracle 11.2 EXTENDED

Oracle 12.1 EXTENDED

12.2.0.1
Oracle 18
Oracle 19 EXTENDED

Premier Support Waived Extended Support Paid Extended Support

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 5
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
2016

2017

2018

2019

2020

2021

2022

2023

2024

2025

2026

2027
Oracle 12.2 EXTENDED

12.2.0.1

Oracle 18

Oracle 19 EXTENDED

“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. | Upgrade / Migrate / Consolidate to Oracle 19c 6
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
2016

2017

2018

2019

2020

2021

2022

2023

2024

2025

2026

2027
12.2.0.1
≧ 2 years

Oracle 18

≧ 2 years

Oracle 19 EXTENDED

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 7
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
2016

2017

2018

2019

2020

2021

2022

2023

2024

2025

2026
Oracle 19c - LONG TERM SUPPORT RELEASE

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 8
Patching since Oracle Database 12.2
Updates (RU) and Revisions (RUR)

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 9
Patching | Since Oracle Database 12.2
Base Release
Update 1
Optimizer / off Functional Fixes

Security Fixes Regression Fixes

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 10
Patching | Since Oracle Database 12.2 - Quarterly
Base Release
Update 1
Optimizer / off Functional Fixes

Security Fixes Regression Fixes

Update 2
Optimizer / off Functional Fixes

Security Fixes Regression Fixes

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 11
Patching | Since Oracle Database 12.2 - Alternative: Revisions
Base Release
Update 1 Update 1
Optimizer / off Functional Fixes
Optimizer / off Functional Fixes

Security Fixes Regression Fixes


Security Fixes Regression Fixes

Revision 1

Update 2
Optimizer / off Functional Fixes

Security Fixes Regression Fixes

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 12
Patching | Since Oracle Database 12.2 - Alternative: Revisions
Base Release
Update 1 Update 1 Update 1
Optimizer / off Functional Fixes Optimizer / off Functional Fixes
Optimizer / off Functional Fixes

Security Fixes Regression Fixes Security Fixes Regression Fixes


Security Fixes Regression Fixes

Revision 1 Revision 2

Update 2
Optimizer / off Functional Fixes

Security Fixes Regression Fixes

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 13
Patching | Since Oracle Database 12.2 - Alternative: Revisions
Base Release
Update 1 Update 1 Update 1
Optimizer / off Functional Fixes Optimizer / off Functional Fixes
Optimizer / off Functional Fixes

Security Fixes Regression Fixes Security Fixes Regression Fixes


Security Fixes Regression Fixes

Revision 1 Revision 2

Update 2 Update 2
Optimizer / off Functional Fixes
Optimizer / off Functional Fixes

Security Fixes Regression Fixes


Security Fixes Regression Fixes

Revision 1
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 14
Timeline Example | Future Projection
2018 2019 2020 2021
Production April July October January April July October January April July October January April July October

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.1.0

Patching
End 18c
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.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.1.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 New Feature Release 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 New Feature Release 21.1.0 21.2.0 21.3.0 21.4.0

21.2.1 21.3.1

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 15
More Information | Client Connectivity
• MOS Note: 207303.1
Client / Server Interoperability Support Matrix for Different Oracle Versions
Client Server Version
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. | Upgrade / Migrate / Consolidate to Oracle 19c 16
Core aim: Stability
Long Term Support Release for
the 12.2 family of products

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 17


Oracle Database as a Data Platform

Development Services Analytical Services


Node.js, Python, .NET, Java, PHP, SQL, R, Columnar In-Memory,
Advanced Analytics,
Ruby, PL/SQL, C, C++, Perl, Go, Machine Learning, AI
EBR, REST Services,
Advanded Queuing,
Data Support
APEX, SODA, Docker
Relational, JSON, XML,
Spatial, Graph, RDF,
Text, Binary. Object
Platform Services Stores, HDFS, Kafka,
NoSQL Stores
Cloud to On-Premise, Clustering,
Microservices, Sharding, Security, Infrastructure Services
High Availability, Isolation,
Public Cloud, Cloud at Customer,
Zero Data Loss, Administration Exadata, BDA, ZDLRA

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |


Agenda
1 Release and Patching Strategy
2 Marquee new features
3 Cool Features for DBAs
4 XE, Apex in ADB and more
5 Questions

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 19
Marquee features and where we stand

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 20
Marquee new features | Multitenant
• 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
Massive Cost Savings and
Cloud Agility with
Multitenant

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 21
Marquee new features | Multitenant
Next years release will NOT support non-CDB Architecture !

• 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'

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 22
NEW IN
Multitenant database | Deployment options 12.1

Stand Alone Single Tenant Multi Tenant


• Works until 19c • One active PDB • Up to to 252 PDBs
– Deprecated starting 20c – On-prem and non-Oracle Cloud
• Up to 4096 active PDBs
– Oracle Cloud, Exadata and
Supercluster

PDB$
SEED
PDB1
PDB$
SEED
PDB1 PDB1 ...

DB CDB$ROOT CDB$ROOT

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |


NEW IN
Multitenant database | Licensing 12.1

Stand Alone Single Tenant Multi Tenant


• Same as in previous • No extra license required • Requires EE
releases
• Possible with SE and EE • License required
– Multitenant license or
– Cloud High Perf. Edition or
– Cloud Extreme Perf. Edition

PDB$
SEED
PDB1
PDB$
SEED
PDB1 PDB1 ...

DB CDB$ROOT CDB$ROOT

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |


NEW IN
Multitenant database | Journey 12.1
From birth to 19c System Resources

• 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

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Internal and Oracle Partner use only 25
Multitenant database | Journey
From birth to 19c

• 12.2.0.1
– Local undo and temp tablespaces – AWR and EM Express support for PDBs
– PDB Hot Cloning and (near zero downtime) refresh – Flashback Pluggable Databases
– Multithreaded File Copy Operation – RMAN Subset Standby
– Online Relocate (with connection forwarding) – Data Guard Broker PDB Migration (or Failover)
– PDB OS Credentials – Cross-platform import of PDB
– Multiple Charactersets in a CDB – Service level ACL for TCP Protocol
– PDB Archive files – Lockdown Profiles
– PDB Support for Database Vault, Heat Maps etc – Application Containers
– Memory Resource Management – Proxy PDBs
– I/O rate limits for non-Exadata systems

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Internal and Oracle Partner use only 26
PDB Hot Clone Snap Clone

Snap Clone
Oracle Cloud
CRM CRM Dev1 CRM Dev2
• PDB Hot Clone
– Online test master instantiation

Hot Clone Developers

Pricing Retail CRM

On-Premises
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 27
PDB Refresh Snap Clone

Snap Clone
Oracle Cloud
CRM CRM Dev1 CRM Dev2
• PDB Hot Clone Cloned version no longer in sync

– Online test master instantiation


• PDB Refresh
– Incremental refresh of clone with latest Only changes copied and applied
Developers
data
Pricing Retail CRM
Changes made to database

TIME
On-Premises
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 28
PDB Relocate
CRM HR
• PDB Hot Clone
– Online test master instantiation
• PDB Refresh
– Incremental refresh of clone with latest
data Oracle Cloud

• PDB Relocate Pricing Retail CRM

– Relocate with no downtime

On-Premises
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 29
Multitenant database | Journey
From birth to 19c

• 18c Standby
– Refreshable PDB Switchover
– Dynamic Lockdown Profiles PDB1 PDB3 PDB4

– Snapshot Carousel Standby


– CDB Fleet Management Asynch
– Enhanced Integration with Data Guard PDB
Refresh

Synchronous Data Guard Replication

Redo Repository

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Internal and Oracle Partner use only 30
Multitenant database | Journey
From birth to 19c

• 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

Core aim: Stability


Long Term Support Release for the
12.2 family of products

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 31
Marquee new features | Database In Memory
• 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
Massive Performance
with Database In-Memory

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 32
NEW IN

Breakthrough: Dual Format Database 12.1

Buffer Cache New In-Memory


Column Store • New in-memory column format
runs Analytics 100x faster
• BOTH row and column formats
for same table
SALES SALES
Row Column • Simultaneously active and
Format Format transactionally consistent
• Analytic queries automatically
use super fast column format
SALES
• OLTP uses optimized row format

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Internal and Oracle Partner use only 33
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

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 34


Memory Optimized Row Store for OLTP Worloads

• Ultra-Fast key-based lookup:


Example : Read Rays Balance – Uses new lock-free In-memory hash
index
– Just declare table MEMOPTIMIZE FOR
READ
• New low latency protocol with
Look up of
Ray’s ID
direct access to data engine
(4004)
• Performance benefits:
– Up to 4x throughput increase for
Primary Key based lookups
– 50% better response times

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 35


Memory Optimized Access for IoT Workloads
Example: Write Temperature Reading
• New streaming ingest:
IoT Client – Declare table
Insert:
<6:05AM, 55o >
Optimized
Write
MEMOPTIMIZE FOR WRITE
– Clients perform low-latency write into
In-Memory
Ingest Buffer in-memory buffer
Buffer
Time Temp
– Buffered writes drained in background
05:50 52o
Append
05:55 54o
Background
Drainers – Very high throughput inserts since
06:00 54o server issues deferred writes in large
06:05 55o batches
Periodic
Buffer Drain
• Performance:
Temp – 2x faster throughput than conventional
Readings

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 36


Agenda
1 Release and Patching Strategy
2 Marquee new features
3 Cool Features for DBAs
4 XE, Apex in ADB and more
5 Questions

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 37
NEW IN
Cool Features | Extended VARCHAR2 / NVARCHAR2 12.1

• 32kB support for (N)VARCHAR2 • Example:


– Allows length >4000 byte ALTER SYSTEM set
MAX_STRING_SIZE=EXTENDED
scope=SPFILE;

• But: SHUTDOWN IMMEDIATE


STARTUP UPGRADE
– Above 3964 byte, data will be stored in @?/rdbms/admin/utl32k.sql
an inline SecureFile LOB
• See: CREATE TABLE Applicants
http://www.ludovicocaldara.net/dba/extend (id NUMBER GENERATED AS IDENTITY,
ed-data-types-storage/ first_name varchar2(30),
last_name varchar2(30),
– Be aware of performance impact application date,
• See: https://blog.dbi-services.com/12c- CV varchar2(32767)
extended-datatypes-better-than-clob/ );

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 38
Cool Features | LONG Identifiers
• Oracle 12.1.0.2: • Be aware when exchanging data
– 1-30 bytes with lower releases
– CREATE TABLE
abcdefghijklmnopqrstuvwxyzabcd;
• Documentation:
– https://docs.oracle.com/database/122/SQLRF/
• Oracle 12.2.0.1: Database-Object-Names-and-
Qualifiers.htm#SQLRF51129
– 1-128 bytes
– If COMPATIBLE ≥ 12.2.0 • See also:
– CREATE TABLE – https://mikedietrichde.com/2018/07/09/expor
abcdefghijklmnopqrstuvwxyz_abcdefgh t-with-data-pump-and-long-identifiers/
ijklmnopqrstuvwxyz_abcdefghij …
– Database name: ≤ 8 byte
– Disk Groups, PDBs, rollback segments and
tablespace names ≤ 30 bytes

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 39
NEW IN
Cool Features | Online Datafile Move 12.1

• Rename or relocate datafiles online • Example:


– Move between storage types – Rename:
– Works with SYSTEM and SYSAUX, too ALTER DATABASE MOVE DATAFILE
'/data/user1.dbf' TO
'/data/user001.dbf';
– Relocate:
ALTER DATABASE MOVE DATAFILE
'/data/user1.dbf' TO
'/test/user1.dbf';
– Copy:
ALTER DATABASE MOVE DATAFILE
'/data/user1.dbf' TO
'/test/user1.dbf' KEEP;

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 40
Cool Features | Online Table Move and Partitioning
• Online table move • Convert table into partitioned table
alter table HR.JOBS move ONLINE alter table EMPLOYEES_CONVERT modify
tablespace HR_TBS; partition by range (EMPLOYEE_ID)
interval (100)
(partition P1 values less than (100),
partition P2 values less than (500))
ONLINE
update indexes (IDX1_SAL LOCAL, IDX2_EMPID
global partition by range (EMPLOYEE_ID)
(partition IP1 values less than (MAXVALUE)));

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 41
NEW IN
Cool Features | Privilege Capture 12.1

• DBMS_PRIVILEGE_CAPTURE • Example: Capture process


– Capture privileges used BEGIN DBMS_PRIVILEGE_CAPTURE.CREATE_CAPTURE(
name => 'COLLECT_USED_DEMOAPPS_PRIVS',
description => 'Find used privileges',
– Find privileges needed for application type => DBMS_PRIVILEGE_CAPTURE.G_CONTEXT,
condition => <syscontext = schema>);
• Remove irrelevant privileges END;

• Requires Data Vault license BEGIN DBMS_PRIVILEGE_CAPTURE.ENABLE_CAPTURE


('COLLECT_USED_DEMOAPPS_PRIVS');
END;
Constant Description
BEGIN DBMS_PRIVILEGE_CAPTURE.DISABLE_CAPTURE
G_DATABASE Analyzes all privilege use, except privileges ('COLLECT_USED_DEMOAPPS_PRIVS');
used by the SYS user. END;
G_ROLE Analyzes privilege use for the specified roles
BEGIN DBMS_PRIVILEGE_CAPTURE.GENERATE_RESULT
G_CONTEXT Analyzes privilege use when the condition ('COLLECT_USED_DEMOAPPS_PRIVS');
parameter evaluates to TRUE END;

G_ROLE_AND_CONTEXT Analyzes privilege use for the specified roles


when the condition parameter evaluates to • Then check:
TRUE
– DBA_USED_PRIVS and DBA_UNUSED_PRIVS

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 42
Cool Features | Privilege Capture
• DBMS_PRIVILEGE_CAPTURE • Example: Capture process
– Capture privileges used BEGIN DBMS_PRIVILEGE_CAPTURE.CREATE_CAPTURE(
name => 'COLLECT_USED_DEMOAPPS_PRIVS',
description => 'Find used privileges',
– Find privileges needed for application type => DBMS_PRIVILEGE_CAPTURE.G_CONTEXT,
condition => <syscontext = schema>);
• Remove irrelevant privileges END;

• Requires Data Vault license BEGIN DBMS_PRIVILEGE_CAPTURE.ENABLE_CAPTURE


('COLLECT_USED_DEMOAPPS_PRIVS');
END;

BEGIN DBMS_PRIVILEGE_CAPTURE.DISABLE_CAPTURE
('COLLECT_USED_DEMOAPPS_PRIVS');
• Included in Enterprise Edition 18c END;

– and up BEGIN DBMS_PRIVILEGE_CAPTURE.GENERATE_RESULT


('COLLECT_USED_DEMOAPPS_PRIVS');
END;

• Then check:
– DBA_USED_PRIVS and DBA_UNUSED_PRIVS

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 43
NEW IN
Cool Features | Incremental Statistics 12.1

Sales Table
 Partition level stats are gathered & synopsis created

May 18th 2018


 Global stats generated by aggregating the original
partition synopsis with the new one


May 19th 2018
Global stats generated by aggregating partition
level statistics and synopsis
May 20th 2018

May 21st 2018


May 22nd 2018
Retrieve synopsis for each of the other partitions from SYSAUX
May 23rd 2018

May 24th 2018


 Gather partition statistics for new partition

 A new partition is added to


the table & data is loaded SYSAUX Tablespace

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 44
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

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 45
Cool features |Real-Time Statistics
• Gather statistics as part of conventional Gathered Statistics
DML (insert/update/merge)
– Fast with negligible overhead
– Only most essential stats gathered Real-time Statistics
like number of rows, min, max etc
• Gathering of full statistics is deferred
– High frequency statistics gathering
– Automatic statistics gathering job

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |


Cool Features | Online Tablespace Encryption
• Online encryption of existing database
tablespace files
alter tablespace <tablespace_name>
encryption encrypt;

‒ Storage overhead: 2x largest file of tbs


‒ Full encryption of internal tablespaces
‒ SYSTEM, SYSAUX, and UNDO
‒ Offline tablespace encryption Acme 10 1/2/16 SALES DF11233U*1
Acme 3 1/3/16 $5Ha1qui%H1
TABLESPACE
‒ No storage overhead Acme 5 1/5/16
Acme 12 1/7/16
HSKQ112A14
FASqw34£$1
Acme 4 1/8/16 DF@£!1ahHH!
Acme 2 1/9/16 HCM DA45S& DD1
‒ RMAN decrypted restore with 18c TABLESPACE

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 47
Cool Features | Data Guard
• NOLOGGING support for DWH • MIRA - Multi Instance Redo Apply
• Multiple observers Performance -
Alpha testing
Apply Rate
Mounted
Apply Rate
Open (MB/sec)
(MB/sec)
• Diagnostic and Tuning Pack support OLTP baseline – 160 150
• Transient Logical Standby: single node
OLTP using 8 nodes 1,680 1,510
– Support for all data types but one (NT)
– Supports all object types Batch baseline –
single node
1170 640

Batch using 8 nodes 4,620 4,380

– Use all nodes in your RAC cluster !

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 48
Cool Features | Zero Impact Grid Infra Patching
• 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

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 49
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. |


Cool Features | Inline External Tables
• External table definition provided • Before: CREATE TABLE sales_xt
(prod_id number, … )
at runtime TYPE ORACLE_LOADER
– Similar to inline view …
LOCATION 'new_sales_kw13')
• No need to pre-create external REJECT LIMIT UNLIMITED );
INSERT INTO sales SELECT * FROM
tables that are used one time only sales_xt;
DROP TABLE sales_xt;

• Now: 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. | Upgrade / Migrate / Consolidate to Oracle 19c 51
Cool features | Automatic Indexing
• An expert system that implements
Capture indexes based on what a skilled
performance engineer would do
• Reinforcement Learning allows it to
Monitor Identify
learn from its own actions as all
candidate indexes are validated
before being implementing
Online Verify • The entire process is fully automatic
Validation
• Transparency is equally important as
sophisticated automation
Decide – All tuning activities are auditable
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 52
Cool features | Oracle Hybrid Tables

COLD DATA SQL HOT DATA


ORDERS
Q4_2016 Q1_2017 Q2_2017 Q3_2017 Q4_2017 Q1_2018 Q2_2018 Q3_2018 Q4_2018

UPDATES

TABLE PARTITIONED BY QUARTER

OBJECT STORAGE

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 53


Cool Features | Active Data Guard DML Redirection
Perform DML on your standby database

• User can perform DML


– Active Dataguard setup DML Clients data
visible
– SYNC connection advised

DML applied on primary


• "Read Mostly" Standby
– Slower DML performance Redo applied to standby
– For the occasional update

PRIMARY ACTIVE STANDBY 54

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

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 55


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

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 56


Cool features | AutoUpgrade Tool
System Checks
Space Check Requirements

config.cfg
Database Pre-Checks
preupgrade.jar Automatic Fix-Ups
Upgrade
Job Manager
Database Upgrade
Command Line
Upgrade
Dispatcher Database Post-Upgrade
Stats Refresh Time Zone Adjustment /etc/oratab

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 57


Agenda
1 Release and Patching Strategy
2 Marquee new features
3 Cool Features for DBAs
4 XE, Apex in ADB and more
5 Questions

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 58
Oracle 19c
Autonomous
Health
Framework

Powered By Applied Machine Learning

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 59


Oracle ORAchk – Collection Manager

mysvr01

mysvr01

mysvr01

mysvr01

mysvr01

New Best
mysvr01 Practices
Alerted
mysvr01

mysvr01

mysvr01

Failed Check After Upgrade


Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 60
What does DBSAT Check?
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
For Oracle Databases
3. Sensitive Data 10g and later
• Which type, where, how many

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |


Use Case: Is the Database Securely Configured?
Summary Output with Prioritized Findings

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.
Oracle63
Confidential – Internal
(DESCRIPTION=
$> sqlplus soe/soe@//salesserver1:1521/sales.us.example.com?connect_timeout=60&
soe/soe@//salesserver1,salesserver2,salesserver3:1522/sales.us.example.com
soe/soe@(DESCRIPTION=
soe/soe@
transport_connect_timeout=30&retry_count=3
(retry_count=3)
(ADDRESS_LIST= (connect_timeout=60)(transport_connect_timeout=30)
(ADDRESS=(PROTOCOL=tcp)(HOST=salesserver1)(PORT=1521))
(LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=tcp)(HOST=salesserver1)(PORT=1522))
(CONNECT_DATA=(SERVICE_NAME=sales.us.example.com)))
(ADDRESS=(PROTOCOL=tcp)(HOST=salesserver2)(PORT=1522))
(ADDRESS=(PROTOCOL=tcp)(HOST=salesserver3)(PORT=1522)))
(CONNECT_DATA=(SERVICE_NAME=sales.us.example.com)))

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |


Web SQLDeveloper

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |


Oracle Database 18c XE
Released Oct 20th 2018
• 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 oracle.com/xe

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 65


Agenda
1 Release and Patching Strategy
2 Marquee new features
3 Cool Features for DBAs
4 XE, Apex in ADB and more
5 Questions

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 66
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 67
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.

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 68
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Upgrade / Migrate / Consolidate to Oracle 19c 69

Potrebbero piacerti anche