Top Banner
Marco Gralike & Lucas Jellema 15th July 2013 An overview of Oracle Database 12c (12.1)
62
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: An AMIS overview of database 12c

Marco Gralike & Lucas Jellema

15th July 2013

An overview of Oracle Database 12c (12.1)

Page 2: An AMIS overview of database 12c

Outline

• History, customer demand, market trends

• The Fourth Dimension: Time

• Availability: Application continuity and more

• Data masking (data redaction)

• Security

• Big Data: R and SQL Pattern Matching

• Multi Tenancy

• For cloud environments

• For efficient administration

• Automatic data optimization (& ILM)

• Administration Tooling: Database Express

• Migration to 12c

• Goodies

Page 3: An AMIS overview of database 12c

Database release history

2009 2012 2013 2014

12c R1

2010 2011

11g R2

11gR1: August 2007

10gR2: September 2005

10gR1: January 2004

September

2009

June

2013

Page 4: An AMIS overview of database 12c

Version 6 July 1988

• New Architecture • Performance (first SMP)

• Availability

• Parallel Server

• TPO

• PL/SQL

• V6 Lays Architectural Groundwork for the Future

– This was a rewrite of the entire database

Page 5: An AMIS overview of database 12c

Oracle Database Innovation

Audit Vault

Database Vault Grid Computing

Self Managing Database

XML Database

Oracle Data Guard

Real Application Clusters

Flashback Query

Virtual Private Database

Built in Java VM

Partitioning Support

Built in Messaging

Object Relational Support

Multimedia Support

Data Warehousing Optimizations

Parallel Operations

Distributed SQL & Transaction Support

Cluster and MPP Support

Multi-version Read Consistency

Client/Server Support

Platform Portability

Commercial SQL Implementation

1977 2007

30 years of

sustained

innovation …

… continuing with

Oracle Database 12c

Page 6: An AMIS overview of database 12c

The first major architecture change since 1988

Multitenant architecture

Page 7: An AMIS overview of database 12c

DBA is resource intensive

Page 8: An AMIS overview of database 12c

Managing dozens of databases means…

– Installing

– Configuring

– Securing

– Monitoring

– Patching

– Upgrading

– Backing up

• many database instances on potentially a large number of machines

• Using dedicated resources for each individual database instance

– 20 processes

– Memory for SGA

– Disk space for generic objects such as most of the SYS schema

Page 9: An AMIS overview of database 12c

Work in progress….

The Uber Database

Page 10: An AMIS overview of database 12c

C is for…

Complete

Complementary

Cloud

Consolidation

Container

Crowd

Control

Core

Central

Page 11: An AMIS overview of database 12c

Oracle Database Architecture

Multi Version Read Consistency

Rollback, Undo, Concurrency, ORA-1555

Page 12: An AMIS overview of database 12c
Page 13: An AMIS overview of database 12c

Flashback

• Introduced in 9i

• Based on UNDO

• Initially only for recovery

• As of 11g – Total Recall option with

Flashback Data Archive

– Controlled history keeping

• Look back into history

– Query trends (version history)

– Difference reporting

– Audit trails (Replace journaling tables) • Require trick for transaction history: WHO?

• Also: when is the start of history?

• By the way: Flashback Data Archive requires EE & Advanced

Compression database option

Page 14: An AMIS overview of database 12c

The Fourth Dimension: Time

In Oracle Database 12c R1:

• User-created Flashback Data Archive contents

• Import and Export of History

• Tracking of transaction (session) context

• Flashback Data Archive available in every edition of the database

Page 15: An AMIS overview of database 12c

The Fourth Dimension: Time Part 2

• Support for SQL 2011 Temporal Validity

• Record state associated with business start and end date (time)

– Instead of Transaction date (time)

• Tables can be associated with Periods – based on a pair of columns

• Flashback queries against these tables can query for valid records at a certain point in time

• Not just looking back in time but also looking ahead!

SELECT *

FROM EMP AS OF PERIOD FOR user_time

TO_TIMESTAMP('01-DEC-2013 09.00.00 AM')

Page 16: An AMIS overview of database 12c

Availability

• Ever more DDL operations can be performed without taking a lock

– Metadata-only Defaults for NULL columns

– Invisible Indexes

– Online move of a partition

– Cascade Truncate

– DROP INDEX ONLINE, DROP CONSTRAINT ONLINE, SET UNUSED COLUMN

ONLINE, ALTER INDEX UNUSABLE ONLINE, ALTER INDEX [VISIBLE | INVISIBLE]

• Reduced limitations with Edition Based Redefinition

– No reason not to use EBR for PL/SQL and Views in order to achieve zero-down time

application upgrade

• Parallel Upgrade

• Transaction Guard

• Application Continuity

Page 17: An AMIS overview of database 12c

Transaction Outcome Unknown

Page 18: An AMIS overview of database 12c

Application Continuity

• Outages cause in-flight work to be lost, and leave users not knowing what happened

• Often leads to

– users seeing errors

– data re-entry

– duplicate submissions

– rebooting mid-tiers

Before:

Page 19: An AMIS overview of database 12c

Transaction Guard

• Known outcome for every transaction

• At-most-once transaction execution

• Used by Application Continuity

• Available for JDBC-thin, OCI, OCCI, ODP.net

• Without Transaction Guard, retries can cause logical corruption

Page 20: An AMIS overview of database 12c

Application Continuity

• Improves end user experience

• Improves developer productivity

• Application transparent when using Oracle stack

• Enabled with WebLogic Server, Peoplesoft, Fusion Apps, Siebel(possibly)

Page 21: An AMIS overview of database 12c

Data Masking

• Gartner reports that: data masking should be mandatory for enterprises using copies of sensitive production data for application development, analytics or training.

• They also believe the market is expanding into production and unstructured data protection.

Page 22: An AMIS overview of database 12c

Data Redaction

• At runtime, you can optionally have the query results modified to reset/scramble/randomize sensitive data

– Through ‘data redaction’ policies associated with tables and view and applied at

query time

• Because the data is masked in real-time, Data Redaction is well suited to environments in which data is constantly changing.

• You can create the Data Redaction policies in one central location and easily manage them from there.

SQL

engine SQL

POLICY

POLICY

RESULTS

Page 23: An AMIS overview of database 12c

Security

• PL/SQL security refinement

– Whitelist to specify which program units may invoke a prcoedure

– Roles attached to invoker rights program units

– Prevent automatic inheritance of invoker’s privileges in invoker rights unit

• View with invoker rights

• Digest Authentication for DBMS_EPG

• Real Application Security - a database authorization model that enables end-to-end security for multitier applications

– privilege delegation, role-based constraints, time-based access control, code-

based security, multi-level authorization, negative grants, authorization on user

interface artifacts, access constraints on relational data, and application users

auditing

• Run-Time Privilege Analysis (Privilege Capture)

• Unified Context-Based Database Audit Architecture

Page 24: An AMIS overview of database 12c

Big Data

• Spatial and Semantic Query are merged into Spatial and

Graph

• Oracle Text is enhanced in many ways

• Enterprise R is further extended

• SQL Pattern Matching has been introduced

– Inspired by CQL

– Look for patterns in subsequent rows in the result set using regular

expressions

(go beyond Analytic Functions)

Page 25: An AMIS overview of database 12c

Other Database Development enhancements

• SQL evolution

– APPLY, Top-N and Pagination

• SQL PL/SQL integration

– WITH, UDF, Call Stack API

• Improved Defaults • SQL Text Expansion • Improved JDBC integration

Page 26: An AMIS overview of database 12c

A glimpse into the future…

Page 27: An AMIS overview of database 12c

Marco Gralike & Lucas Jellema

15th July 2013

An overview of Oracle Database 12c (12.1)

Page 28: An AMIS overview of database 12c

Multitenant Architecture

Page 29: An AMIS overview of database 12c

Multitenant Architecture

Page 30: An AMIS overview of database 12c

Multitenant Architecture

Page 31: An AMIS overview of database 12c

Multitenant Architecture

Page 32: An AMIS overview of database 12c

Multitenant Architecture

Page 33: An AMIS overview of database 12c

Multitenant Architecture

Page 34: An AMIS overview of database 12c

Multitenant Architecture

Page 35: An AMIS overview of database 12c

35

Common Data Dictionary

Page 36: An AMIS overview of database 12c

36

Oracle Data and User Data

Page 37: An AMIS overview of database 12c

37

Horizontally Partitioned

Page 38: An AMIS overview of database 12c

38

Multitenant Architecture

Page 39: An AMIS overview of database 12c

39

Multitenant Scalability

0

0.5

1

1.5

2

2.5

3

CRM HCM ERP BI

GB

Pluggable Database

MEMORY

0

0.5

1

1.5

2

2.5

3

CRM HCM ERP BI DW

GB

Pluggable Database

MEMORY

Only small increments in memory as additional PDBs are added

0

0.5

1

1.5

2

2.5

3

CRM HCM ERP

GB

MEMORY

Page 40: An AMIS overview of database 12c

40

Files in the CDB

Page 41: An AMIS overview of database 12c

41

Fast Provisioning

Page 42: An AMIS overview of database 12c

42

Simplified Patching

Page 43: An AMIS overview of database 12c

43

Fast Cloning a PDB

PDBs can be cloned from

remote CDBs

PDBs can be cloned from

within the same CDB

Page 44: An AMIS overview of database 12c

44

Cloning a PDB

Page 45: An AMIS overview of database 12c

45

Upgrades

Page 46: An AMIS overview of database 12c

46

Multitenant Agility

GOLD

SILVER

BRONZE

RAC, Data Guard, Daily Incrementals

Data Guard, Daily Incrementals

Weekly Full Backups

Page 47: An AMIS overview of database 12c

47

Database as a Service

RAC, Data Guard,

Daily Incrementals

Data Guard

Daily Incrementals

GOLD

SILVER

BRONZE Weekly Full

Backups

Page 48: An AMIS overview of database 12c

48

Notes

• Database National Characterset

• Database Option License (25 juni 2013)

– 17,500$ per CPU

– 350$ per Named User Plus

• No extra cost for: 1 CDB + 1 PDB

• CDB ORA-00600 / ORA-07445

Page 49: An AMIS overview of database 12c

Automatic Data Optimization

Page 50: An AMIS overview of database 12c

50

Heat Map

• Automatically tracks usage information at the row and segment levels

• ALTER SYSTEM SET HEAT_MAP = ON | OFF;

• Package DBMS_HEAT_MAP

• V$HEAT_MAP_SEGMENT Real-time Segment Access Information

• Views:

ALL/DBA/USER _HEAT_MAP_SEGMENT

ALL/DBA/USER _HEAT_MAP_SEQ_HISTOGRAM

DBA_HEATMAP_TOP_OBJECTS

Top 1000 objects

DBA_HEATMAP_TOP_TABLESPACES

Top 100 Tablespaces

Page 51: An AMIS overview of database 12c

51

Automatic Data Optimization

• Automate compression or movement of data

• Via CREATE and ALTER TABLE SQL statements

• Heat Map must be enabled

• Policy based levels:

– Row

– Segment

– Tablespace

• Default Compression Mappings:

– COMPRESS ADVANCED on a heap table maps to standard compression for indexes

and LOW for LOB segments.

– COMPRESS FOR QUERY LOW/QUERY HIGH on a heap table maps to standard

compression for indexes and MEDIUM for LOB segments.

– COMPRESS FOR ARCHIVE LOW/ARCHIVE HIGH on a heap table maps to

standard compression for indexes and HIGH for LOB segments.

Page 52: An AMIS overview of database 12c

52

Automatic Data Optimization

Page 53: An AMIS overview of database 12c

XML DB

Page 54: An AMIS overview of database 12c

54

XML DB

• XQuery Update

– Replaces all “old” update methods

• XQuery Full Text

– Full Text Index

– XML (Schema) Aware

• Compatibility across the Board

– Dataguard

– GoldenGate

– DataPump

– DBFS

• Parallel XMLType

Page 55: An AMIS overview of database 12c

Database Express

Page 56: An AMIS overview of database 12c

56

Database Express

• “Replacement” for DB Console

• Adobe Flash

• Subset features OEM 12c

• Build-in / footprint 20MB

• Limited regarding Management

• Extended regarding Performance insight

• Diagnostic & Tuning Pack

Page 57: An AMIS overview of database 12c

57

Database Express

Page 58: An AMIS overview of database 12c

58

New: Real Time ADDM

Page 59: An AMIS overview of database 12c

Stuff you always wanted…

Page 60: An AMIS overview of database 12c

Goodies you always wanted…?

• EXPORT BY VIEW

• ALTER DATABASE MOVE datafile ONLINE!

• Multiple indexes on the SAME column

– can be used when…

• B-Tree versus Bitmap

• Different partitioning strategies

• Unique versus nonunique

• Privilege Capture…

Page 61: An AMIS overview of database 12c

Privilege Capture

• DBMS_PRIVILEGE_CAPTURE

– CREATE_CAPTURE

– ENABLE_CAPTURE

– DISABLE_CAPTURE

– GENERATE_RESULT

– DROP_CAPTURE

• Role needed “CAPTURE_ADMIN”

• DBMS_PRIVILEGE_CAPTURE.GENERATE_RESULT populates

– DBA_USED_xxx

– DBA_USED_xxx_PATH

– DBA_UNUSED_xxx

– DBA_UNUSED_xxx_PATH

Page 62: An AMIS overview of database 12c

62