release strategy and cool features for dbas - oracle

Post on 12-Nov-2021

4 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Release Strategy and Cool Features for DBAs

28-ARP-2020

Mike DietrichMaster Product ManagerDatabase Upgrade and Migrations@MikeDietrichDE

Laura Garcia VillarrealOracle University PreSales Manager

Mike Dietrich

Master Product ManagerDatabase Upgrade and Migrations https://MikeDietrichDE.com

@MikeDietrichDECopyright © 2020 Oracle and/or its affiliates.

Slides | https://MikeDietrichDE.com

Copyright © 2020 Oracle and/or its affiliates.

Agenda

Release and Patching Strategy

Cool Features for DBAs

Further Information

Copyright © 2020 Oracle and/or its affiliates.

1

2

3

Don't do this | Outdated Versions

Copyright © 2020 Oracle and/or its affiliates.

Don't do this | Outdated Versions

Copyright © 2020 Oracle and/or its affiliates.

GA: 29-NOV-2006

Lifetime Support Policy

Copyright © 2020 Oracle and/or its affiliates.

2009

2010

2011

2012

2013

2014

2015

2016

2017

2018

2019

2020

2021

2022

2023

2024

2025

2026

2027

Oracle 18(12.2.0.2)

EXTENDED

EXTENDED

EXTENDED

Waived EXTENDEDOracle 11.2

Oracle 12.1

Oracle 12.2.0.1

Oracle 19(12.2.0.3)

Paid Extended SupportPremier Support Waived Extended Support

MARKETDRIVEN

Market Driven Support Limited Error Correction

LIMITED

Oracle 12.2 Release Family?

• Includes:• Oracle 12.2.0.1, Oracle 18c (12.2.0.2), Oracle 19c (12.2.0.3)

• MOS Note:742060.1 - The Single Source of Truth

Copyright © 2020 Oracle and/or its affiliates.

2016

2017

2018

2019

2020

2021

2022

2023

2024

2025

2026

2027

Oracle 18(12.2.0.2)

EXTENDED

12.2.0.1

Oracle 19(12.2.0.3)

LIMITED

Lifetime Support Policy Brochure

Copyright © 2020 Oracle and/or its affiliates.

• http://www.oracle.com/us/support/library/lifetime-support-technology-069183.pdf

Yearly Releases | 3 Number Format

Copyright © 2020 Oracle and/or its affiliates.

12.2.0.1.0 Year.Update.Revision 19.5.0

Old Format New Format

Basic Facts | Patch versus Upgrade

Copyright © 2020 Oracle and/or its affiliates.

Patch: Oracle 19.3.0 ⇢ Oracle 19.6.0opatch

Upgrade: Oracle 18.6.0 ⇢ Oracle 19.6.0dbupgrade or autoupgrade.jar

Patching since Oracle Database 12.2

Updates (RU) and Revisions (RUR)

Copyright © 2020 Oracle and/or its affiliates.

Patching | Release Update 1 (RU)

Copyright © 2020 Oracle and/or its affiliates.

Update 1

Security Fixes Regression Fixes

Optimizer / off Functional Fixes

Base Release

Base ReleasePatching | Release Update 2 (RU)

Copyright © 2020 Oracle and/or its affiliates.

Update 1

Security Fixes Regression Fixes

Optimizer / off Functional Fixes

Update 2

Security Fixes Regression Fixes

Optimizer / off Functional Fixes

Base ReleasePatching | Release Update Revision 1 (RUR)

Copyright © 2020 Oracle and/or its affiliates.

Update 1

Security Fixes Regression Fixes

Optimizer / off Functional Fixes

Update 2

Security Fixes Regression Fixes

Optimizer / off Functional Fixes

Update 1 Optimizer / off Functional Fixes

Revision 1

Security Fixes Regression Fixes

At the same date

Base ReleasePatching | Release Update Revision 2 (RUR)

Copyright © 2020 Oracle and/or its affiliates.

Update 1

Security Fixes Regression Fixes

Optimizer / off Functional Fixes

Update 2

Security Fixes Regression Fixes

Optimizer / off Functional Fixes

Update 1 Optimizer / off Functional Fixes

Revision 1

Security Fixes Regression 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

At the same date

Timeline Example

Yearly Releases, Updates and Revisions

Copyright © 2020 Oracle and/or its affiliates.

Timeline | April 2018

Copyright © 2020 Oracle and/or its affiliates.

April July October January April

18c 18.2.0 Beta - Update 1

Timeline | July 2018

Copyright © 2020 Oracle and/or its affiliates.

April July October January April

18c 18.2.0 18.3.0

18.2.1

Update - On-Prem GA

1. Revision

Timeline | October 2018

Copyright © 2020 Oracle and/or its affiliates.

April July October January April

18c 18.2.0 18.3.0 18.4.0

18.2.1 18.3.1

18.2.2

19c 19.1.0New Release

Update

1. Revision

2. Revision

Timeline Example | January 2019

Copyright © 2020 Oracle and/or its affiliates.

April July October January April

18c 18.2.0 18.3.0 18.4.0 18.5.0

18.2.1 18.3.1 18.4.1

18.2.2 18.3.2

19c 19.1.0 19.2.0

Timeline Example | April 2019

Copyright © 2020 Oracle and/or its affiliates.

April July October January April

18c 18.2.0 18.3.0 18.4.0 18.5.0 18.6.0

18.2.1 18.3.1 18.4.1 18.5.1

18.2.2 18.3.2 18.4.2

19c 19.1.0 19.2.0 19.3.0

Timeline Example | Future Projection 2022

Copyright © 2020 Oracle and/or its affiliates.

April July October January April July October January April July October January April July October

18c 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.15.0

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

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 18.13.2

19c 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.14.0 19.15.0 19.16.0 19.17.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.13.1 19.14.1 19.15.1 19.16.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 19.12.2 19.13.3 19.14.2 19.15.2

Pa

tchin

gE

nd

18c

2019 2020 2021 2022

Timeline Example | Much simpler: RUs only

Copyright © 2020 Oracle and/or its affiliates.

April July October January April July October January April July October January April July October

18c 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.15.0

19c 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.14.0 19.15.0 19.16.0 19.17.0

2019 2020 2021 2022

Attention | The RUR trap!

• You will consume RUs "secretly"

• Stay with RUs!

Copyright © 2020 Oracle and/or its affiliates.

Simple Example | RU vs RUR

• Example number of fixes• Every RU: 100 new fixes

• Every RUR: 25 new fixes

Copyright © 2020 Oracle and/or its affiliates.

Type April July October January April

RU 100 200 300 400 500

RUR-1 125 225 325 425

RUR-2 150 250 350

Copyright © 2020 Oracle and/or its affiliates.

Patching Strategy

• Why you really must patch

• Patching vs Upgrade

• OPatch vs Datapatch

• Types of Patches

Copyright © 2020 Oracle and/or its affiliates.

Security

The most important reason to upgrade and patch

Copyright © 2020 Oracle and/or its affiliates.

Ph

oto

by

Jose

Fo

nta

no

on

Un

spla

sh

Do We Really Need To Say This?

Copyright © 2020 Oracle and/or its affiliates.

Source: https://www.nytimes.com/2019/07/22/business/equifax-settlement.html?module=inline

"My database is not facing the internet"

Copyright © 2020 Oracle and/or its affiliates.

of malware is delivered

via email

92%

Basic Facts | opatch and datapatch

• opatch• Applies binary files to a home

• Database services must be down• RAC allows rolling patching node-by-node

• opatchauto for RAC environments

• datapatch• Applies SQL changes to a database

• Database must be up

Copyright © 2020 Oracle and/or its affiliates.

Basic Facts | Patch Inventory

• opatch lsinventory

• Tells you what is installed in your software home

• DBA_REGISTRY_SQLPATCH• View detailing information about SQL patches installed in the database

• DBMS_QOPATCH package provides access to • Patches installed in the Oracle Home

• Oracle Database 12.1 : FAQ on Queryable Patch Inventory (Doc ID 1530108.1)

Copyright © 2020 Oracle and/or its affiliates.

Finding the Right Patches | Quarterly

• https://www.oracle.com/technetwork/topics/security/alerts-086861.html

Copyright © 2020 Oracle and/or its affiliates.

Download Assistant - 1/3

• MOS Note: 2118136.2Download Reference for Oracle Database/GI Update, Revision, PSU ...

Copyright © 2020 Oracle and/or its affiliates.

Download Assistant - 2/3

• MOS Note: 2118136.2Download Reference for Oracle Database/GI Update, Revision, PSU ...

Copyright © 2020 Oracle and/or its affiliates.

Download Assistant - 3/3

• MOS Note: 2118136.2Download Reference for Oracle Database/GI Update, Revision, PSU ...

Copyright © 2020 Oracle and/or its affiliates.

Download OPatch

• Patch 6880880

Copyright © 2020 Oracle and/or its affiliates.

Summary

• Plan for quarterly patch bundles

• Always apply the most recent RU (Release Update)

• Use the most recent OPatch to apply it

Copyright © 2020 Oracle and/or its affiliates.

Agenda

Release and Patching Strategy

Cool Features for DBAs

Further Information

Copyright © 2020 Oracle and/or its affiliates.

1

2

3

• Rename or relocate datafiles online• Move between storage types

• Works with SYSTEM and SYSAUX, too

• In Oracle 12.1 and 12.2.0.1 be aware of:

• Bug 24836489 - DATAFILES ARE CREATED WRONG LOCATION IN OMF DEFINED PDB DATABASE

• Single fix available but not part of any RU

• Fixed with Oracle 18c

Copyright © 2020 Oracle and/or its affiliates.

Cool Features | Online Datafile Move

• Rename:

• Relocate:

• Copy:

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;

• Online table move

Copyright © 2020 Oracle and/or its affiliates.

Cool Features | Online Table Move

• Convert table into partitioned tablealter table EMPLOYEES_CONVERT

modify 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)));

;

alter table HR.JOBS

move ONLINE

tablespace HR_TBS;

Cool Features | Online Tablespace Encryption

• Online encryption of existing database tablespace files• alter tablespace <tbs>

encryption encrypt;

• Storage overhead: 2x largest file of tbs

• Full encryption of SYSTEM, SYSAUX, and UNDO tables (internal database structures)

• Offline tablespace encryption

• No storage overhead

• RMAN decrypted restore with 18c

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

Copyright © 2020 Oracle and/or its affiliates.

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

fghijklmnopqrstuvwxyz_abcdefghij

• Database name: ≤ 8 byte

• Disk Groups, PDBs, rollback segments and tablespace names ≤ 30 bytes

Copyright © 2020 Oracle and/or its affiliates.

Cool Features | LONG Identifiers

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

• DBMS_PRIVILEGE_CAPTURE

• Introduced in Oracle 12.1

• Now included in EE without extra license

• Documentation:• https://docs.oracle.com/database/121/DBLIC/editions.ht

m#DBLIC109

Copyright © 2020 Oracle and/or its affiliates.

Cool Features | Privilege Capture

• Example: Capture process• BEGIN DBMS_PRIVILEGE_CAPTURE.CREATE_CAPTURE(

name => 'COLLECT_USED_DEMOAPPS_PRIVS' , description => 'Find used privileges' , type => DBMS_PRIVILEGE_CAPTURE.G_CONTEXT , condition => 'SYS_CONTEXT (''USERENV'',''CURRENT_SCHEMA'') = ''DEMOAPPS''' );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;

• Then check DBA_USED_PRIVS and DBA_UNUSED_PRIVS

Spatial and Graph + Machine Learning

• Oracle Spatial and Graph (OSG) included with Oracle Database

• Oracle Machine Learning (Advanced Analytics) include as well• Since Dec 5, 2019

• Valid for all editions, includes Enterprise Edition, SE2 and DBCS

• Applies to all database versions back to Oracle 11.2.0.4

• https://mikedietrichde.com/2019/12/06/great-license-news-spatial-and-graph-machine-learning/

Copyright © 2020 Oracle and/or its affiliates.

Agenda

Release and Patching Strategy

Cool Features for DBAs

Further Information

Copyright © 2020 Oracle and/or its affiliates.

1

2

3

Further Information

Finally …

Copyright © 2020 Oracle and/or its affiliates.

Slides | https://MikeDietrichDE.com

Copyright © 2020 Oracle and/or its affiliates.

Next Seminar | Tomorrow, April 29

• https://mikedietrichde.com/2020/04/24/3-live-webinars-database-upgrade-and-more-april-28-29-and-30-2020/

Copyright © 2020 Oracle and/or its affiliates.

Copyright © 2020 Oracle and/or its affiliates.

55

Oracle UniversityTraining Solutions

Laura Garcia VillarrealOU PreSales ManagerApril 2020Laura.x.Garcia@oracle.com

Copyright © 2020 Oracle and/or its affiliates.

Introducing Oracle University

Learning Methods

Oracle Database New Features Training

Program Agenda

Introducing Oracle University

Oracle University is the official provider of training and certification for Oracle technologies and products.

Copyright © 2020 Oracle and/or its affiliates.

Oracle University Provides Training Options for Every Learner and Business

Training On Demand

Recorded courses available via streaming for 90 days

Learning Subscription

Digital learning modules available via streaming for 1 year

Classroom Training

Traditional instructor-led training

Live Virtual Class

Instructor-led courses via Internet

Self-study Learning Instructor-led Training

Blended LearningCombination of instructor-led and self-study learning

Copyright © 2020 Oracle and/or its affiliates.

Oracle Database New Features Training

education.oracle.com

Copyright © 2020 Oracle and/or its affiliates.

30% Discount on Oracle Learning Subscriptions until May 31st 2020

➢ Pre-recorded Videos

➢ Captions and transcript

➢ Skill Checks

➢ Virtual Labs

➢ Course Manual

➢ Ask the Instructor

Questions?

Thank you for your attention!

Copyright © 2020 Oracle and/or its affiliates.

Copyright © 2020 Oracle and/or its affiliates.

62

Contact Me

Laura Garcia VillarrealOU PreSales ManagerApril 2020Laura.x.Garcia@oracle.com

top related