0% found this document useful (0 votes)
214 views

Moving From Oracle Database SE2 To Enterprise Edition: Features and Benefits

Uploaded by

Pierre C Ribeiro
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
214 views

Moving From Oracle Database SE2 To Enterprise Edition: Features and Benefits

Uploaded by

Pierre C Ribeiro
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 54

Moving from Oracle Database SE2 to

Enterprise Edition
Features and Benefits

Name
Presenter’s Title
Organization, Division or Business Unit
Month 00, 2021
Oracle Database Editions
Options for any Use Case
ORACLE DATABASE
Enterprise Edition

ORACLE DATABASE
Standard Edition 2
ORACLE DATABASE High-volume (OLTP)
applications, query-
Personal Edition intensive data
ORACLE DATABASE warehouses
XE
Small business,
workgroup, web
applications
Named User
Development
Free Edition
Development
Edition
2 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.
Why Should Customers and ISVs Move from SE2 to EE?
Scaling, Performance, Availability, Security…
ASO, Label Security,
Database Vault Advanced
Compression
Multitenant
Partitioning

In Memory
Management
Packs
Active Data
RAC Guard

Limited to 2 sockets No Deployment Size Limits Additional Options

Provides Row Level Locking, Read Core Enterprise Edition provides a wealth Users may purchase
Consistency, Online Backups, Fail of additional features: additional options:
Safe, Stored Procedures, Advanced Disaster Recovery, Basic Compression,
Analytical SQL, JSON Document, Online Operations, Flash Back, SQL Real Application Clusters,
Active Directory Integration, XML, Caching, Fine Grained Auditing, Privilege Partitioning, Active Data
Multitenant Architecture etc. Analysis, Materialized View Query Guard, Advanced
Rewrite, etc. Security etc.
3 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.
Oracle Database Enterprise Edition
Additional Features and Benefits

Performance Management High Availability Security Storage

4 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Oracle Database Enterprise Edition
Additional Features and Benefits

Performance Management High Availability Security Storage

5 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Database In-Memory Base Level
Up to a 16GB IM column store without having to license the Database In-Memory option

See the value of Database In-Memory


System Global Area (SGA) • Limited IM features available with Base Level
Large Pool • only MEMCOMPRESS FOR QUERY LOW
Buffer
Cache • Excluded columns – all table columns populated
• Automatic In-Memory (AIM) is disabled
In-Memory Area
(Max 16GB) Available on:
Other • 20.3 pre-release and future versions
• 19c with the July 19.8 Release Update
• No backports to previous versions planned
Shared
Pool Enabled with INMEMORY_FORCE parameter
Log Buffer
• Must be set to BASE_LEVEL
INMEMORY_SIZE limited to a maximum of 16GB
Feature tracking reports usage as "In-Memory Base
Level"

6 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


IM Column Store With The Base Level Feature

INMEMORY_FORCE = BASE_LEVEL must be specified in the CDB initialization parameter file


Setting INMEMORY_FORCE = BASE_LEVEL at the PDB level is ignored
INMEMORY_FORCE = BASE_LEVEL cannot be set dynamically (it can be altered to the default dynamically)
IM Column Store is limited to 16GB per instance
• On RAC each instance can have up to 16GB
• Multitenant is limited to 16GB per CDB, PDBs can allocate out of the 16GB limit

In 19c: Resource Manager Automatically Enabled for Database In-Memory


When INMEMORY_SIZE is greater than 0, Oracle Database Resource Manager is automatically enabled
• Take advantage of In-Memory Dynamic Scans
Note: The Base Level feature supports non-CDB installs in 19c

7 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


SQL Plan Management
Enables the optimizer to automatically manage execution plans

Build SQL plan baseline — one or more accepted plans for each SQL statement
Optimizer can access and manage the plan history and SQL plan baselines of SQL statements
The optimizer uses the normal cost-based search method

In 19c: Automatic Resolution of SQL Plan Regressions — Automatic SPM Evolve Advisor

SPM searches top SQL statements


• Checks AWR for top SQL
• Looks for alternative plans in all available sources
• Adds unaccepted plans to the Plan History
• Tests the execution of as many plans as possible during the maintenance window

8 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Adaptive Execution Plans
Good SQL execution without intervention

Oracle E-Business Suite Reports • Plan decision deferred until runtime


• Final decision is based on statistics collected
Elapsed Time

during execution
• If statistics prove to be out of range, sub-plans
can be swapped
• Bad effects of skew eliminated
PAXEXCPD PAXEXCPS ZXXVATEX INVTRDST OEXOEOSR

HJ

HJ
Table scan
NL Threshold exceeded, plan
T2
switches

Table scan T1 Table scan T2


Table scan Index Scan
T1 T2

9 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Parallel Query/DML
SQL> select /*+ parallel(c,4)*/
2 cust_first_name, count(*)
Parallel queries and parallel subqueries in SELECT 3 from customers c
statements (full table scans, fast full index scans, ...) 4 group by cust_first_name;
Parallel DML uses parallel execution mechanisms to
speed up or scale up large DML operations against QC Parallel Execution
Coordinator
large database tables and indexes
• Execute in parallel the query portions of DDL
(CREATE INDEX, CREATE TABLE AS group group group group Slave Set 1
SELECT, ...) and DML statements (INSERT, UPDATE, by by by by
DELETE, and MERGE)
• The term parallel execution (PX) is used when
speaking about parallel running statements scan scan scan scan Slave Set 2

You can also query external tables in parallel

Granule

Granule

Granule
Granule

Granule

Granule
Granule

Granule
Granule

Granule
Table
CUSTOMERS
In 19c: Parallel query for In-
Memory external tables

10 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


PL/SQL Function Result Cache

Oracle Database automatically detects all data sources (tables and views) that are queried while a result-cached
function is running
If changes to any of these data sources are committed, FUNCTION one_employee (employee_id_in
the cached result becomes invalid across all instances IN employees.employee_id%TYPE)
RETURN employees%ROWTYPE
Best candidates for result-caching are functions that
RESULT_CACHE RELIES_ON (employees)
are invoked frequently but depend on information that IS
changes infrequently or never l_employee employees%ROWTYPE;
BEGIN
...
RESULT_CACHE
• store each record retrieved for a specific employee ID number
• when execute function with employee ID previously stored, do not execute the function body
• retrieve record from the cache and return data immediately
RELIES_ON
• if any session commits changes to table, any data in result cache invalidated
• next function call executes the query and retrieve new data from table

11 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Bitmapped index, bitmapped join index, and bitmap plan conversions
Query performance for Data Warehousing and Business Intelligence

Bitmap Index Bitmap Join Index Bitmap Conversion

Database stores a bitmap for each Bitmap index for the join of two or Bitmap entry to table row
index key more tables Conversion from entry to row (TO
Each index key stores pointers to Space efficient way to reduce the ROWID), or vice versa (FROM
multiple rows volume of data that must be joined ROWID)
In a conventional B-tree index, one by performing restrictions in Optimizer uses conversion
index entry points to a single row advance whenever it retrieves row from
Bitmap operations: table using bitmap index entry
• Single value lookup
• Range scan
• Full scan

In 18c: Adaptive Query Plans: Bitmap Index Pruning (uses some/not others)
Adaptive plans prune indexes that do not significantly reduce number of matched rows
12 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.
Benefits

• Improved Performance for Analytic Queries and Mixed Workloads with Database In-Memory
• Database uses only tested and verified plans with SQL Plan Management
• Adaptive Execution Plans means the plan or a portion of it will be automatically adapted to avoid suboptimal
performance
• Speed up access to data by using Parallel Execution multiple processes
• The PL/SQL Function Result Cache result is much faster retrieval
• Bitmap join indexes are much more efficient in storage than materialized join views, an alternative for
materializing joins in advance

13 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


More Features

Feature Function Documentation


Client Side Query Cache Caching of query result sets in client memory, transparently kept 19c Documentation
consistent with changes on server side
Concurrent Execution of UNION and Parallel Execution enhancements for Data Warehousing 19c Documentation
UNION ALL Branches
In-memory Parallel Execution Setting parameter PARALLEL_DEGREE_POLICY to AUTO 19c Documentation
Enables parallel statements to leverage the SGA to cache object blocks
Parallel Statement Queuing By default, it operates as a FIFO queue, but you can modify the default 19c Documentation
behavior with a resource plan
Parallel statistics gathering Identify large tables and define a specific degree of parallelism (DOP) 19c Documentation

Query Results Cache Memory pool within the shared pool, that holds result sets and not data 19c Documentation
blocks
Summary management— Rewrite queries to use materialized views rather than detail tables to 19c Documentation
Materialized View Query Rewrite improve response time

14 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Oracle Database Enterprise Edition
Additional Features and Benefits

Performance Management High Availability Security Storage

15 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Database Resource Manager

Resource Manager manages CPU usage by controlling the database load to a very precise level
By default, this level is set to the number of CPUs
Configure Resource Manager to manage workloads differently by configuring consumer groups and resource plans
• Consumer group — collection of sessions that are managed as a unit
• Consumer group mapping rules — automatically map sessions to a consumer group
attributes used include the session’s service, module, action, Oracle username, client username, and program name
• Resource plan — specifies how the CPU should be shared among consumer groups
allocates percentages of the CPU to consumer groups
specifies how unused CPU is redistributed
• Resource plan directive — CPU allocation for Resource Plan
“DAYTIME”
each consumer group in resource plan

Directive 1 Directive 2 Directive 3


75% of CPU 15% of CPU 10% of CPU
In 18c: New RM directive
PQ_TIMEOUT_ACTION Consumer Group
Consumer Group Consumer Group
“OTHER_GROUPS
“OLTP” “REPORTING”

16 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.
Online Table Redefinition
Copy table Transform
Source Result
DBMS_REDEFINITION allows you to Table Table
reorganize and redefine tables online Store
• Add/drop/rename/reorder columns Updates
Continuous
• Switch physical storage structures queries & updates Update tracking Transform
updates
• Reorganize & transform data while online

Additional Benefits of using DBMS_REDEFINITION


• Fault Tolerant (resume at point of failure) and track changes to enable fast rollback to prior definition
• Entire redefinition process runs without acquiring Exclusive DDL lock
• Monitor reorganization using V$ONLINE_REDEF

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


Online Index Rebuild
Create and rebuild indexes online

Update base tables at the same time you are building or rebuilding indexes on that table
DDL operations are not allowed
ONLINE clause to allow DML operations on the table or partition during rebuilding of the index
Not available for bitmap join index or cluster index

ALTER INDEX emp_name REBUILD ONLINE;

Lock acquired on target table for very small amount of time

18 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Online Operations
All Index Maintenance Operations are now Online

Create index online, rebuild index online, rebuild index partition online
11.2 & Prior Add Column, Add Constraint enable novalidate
Online move partition
Drop index online
12.1 Set unused column online, alter column visible/invisible,
Alter index unusable online, alter index visible/invisible
Alter index parallel/noparallel
Alter table move online for non-partitioned tables
Alter table from non-partitioned to partitioned online
12.2 Alter table split partition online
Create table for exchange (usable for online partition exchange)
Move/merge/split partition maintenance operations can now do data filtering
Alter table modify partitioned table to a different partitioning method (e.g., hash to range)
18c, 19c Alter table merge partition/sub-partition online

19 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Parallel index build/scans
Optimize performance by creating indexes in parallel

Use PARALLEL clause in the CREATE INDEX statement to specify DOP for creating the index
• If the DOP is not specified, number of CPUs is used as DOP
• If no PARALLEL clause, index creation is done serially
Multiple processes work simultaneously to create the index

Query Processes Set 1 Query Processes Set 2 PX Coordinator

• Scan table • Sort the keys • Concatenate index pieces


(which are ordered)
• Extract key-rowid pairs • Build index pieces in the
usual fashion • Form the final index
• Send each pair based on key

Optionally specify that no redo and undo logging should occur during index creation
Can significantly improve performance but temporarily renders the index unrecoverable

20 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Benefits

• Solve database problems associated with high CPU loads using Database Resource Manager
• Database Resource Manager manages the database load so that all CPUs are utilized
• Online table redefinition offers administrators unprecedented flexibility to transform both data and table
structure while allowing users full access to the database
• Rebuilding indexes online enables users to update base tables at the same time that you are rebuilding
• Oracle Database Enterprise Edition can create the index more quickly in parallel than if a single server process
created the index serially

21 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


More Features

Feature Function Documentation

Parallel Data Pump Export/Import Multiple worker processes can perform intertable and interpartition 19c Documentation on Oracl
parallelism to load and unload tables in multiple, parallel, direct-path e Data Pump Performance
streams
Oracle Data Pump uses parallelism to build indexes and load package
bodies
Parallel spatial index builds CREATE INDEX geom_idx1 19c Documentation
ON dest_table(GET_GEOMETRY(CURR_LONGITUDE,
CURR_LATITUDE))
INDEXTYPE IS MDSYS.SPATIAL_INDEX_V2 LOCAL
PARALLEL;
Online Datafile Move Relocate a datafile while users are actively accessing data with ALTER 19c Documentation
DATABASE MOVE DATAFILE ...
Maintain data availability during storage migration
Online table organization CREATE TABLE statement ORGANIZATION clause — specify the order 19c Documentation
in which the table data rows are stored
Messaging Gateway administration Interface for creating Messaging Gateway agents, managing agents, 19c Documentation
package DBMS_MGWADM creating messaging system links, registering non-Oracle queues, and
setting up propagation jobs

22 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Oracle Database Enterprise Edition
Additional Features and Benefits

Performance Management High Availability Security Storage

23 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Oracle Data Guard Rolling Upgrades
Patch Set, Database, and Operating System 1
Preparation Preparation

• Bourne shell script named physru, which 2


automates a majority of the operations of the rolling Guaranteed
PROD PSTBY
Restore Point
upgrade, is available for download by means of My
Oracle Support Note 949322.1 Logminer Keep Identity
LSTBY
• Reduce planned downtime by enabling the upgrade Build
synchronize
to new release or patch sets in rolling fashion 3 Upgrade
• Total database downtime limited to the small Flashback Database
synchronize
4
amount of time required to switchover switchover
To Guaranteed LSTBY PROD
• Via Transient Logical Rolling Upgrade process Restore Point

Convert to PSTBY
Physical Standby

5
Restart w/ New
$OH PSTBY PROD
synchronize
6

PROD switchover PSTBY

24 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Transaction Guard

Better user experience when Transaction Guard is


1. Database
adopted to return the real commit outcome
Request
1. Client submits a request to the application 5. Committed
2. Application submits database calls to Oracle (or not)
database
3. An error or timeout occurs due a failure in the 2. Database
Call
underlying system or networks when a request is
underway. Standard error handling traps this
3. Errors or
exception Timeouts 4. Force Commit
Outcome
4. Error handling invokes Transaction Guard to return
the commit outcome of the last in-flight work on
that session
5. A reliable commit outcome is returned rather than
the ambiguous error, so users know whether the
work succeeded or did not succeed Transaction
Guard

25 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Data Guard
New features Oracle 19c

Feature Function Documentation

Dynamically Change Oracle Data Avoid disabling fast-start failover to move to a new target standby, that exposes the 19c Documentation
Guard Broker Fast-Start Failover broker configuration to a period where automatic failover cannot be used at all. Use
SET FAST_START FAILOVER TARGET command to dynamically change the fast-
Target
start failover target standby database
Finer Granularity Supplemental Reduces the overhead in terms of resource usage and redo generation when only some 19c New Features Documentation
Logging of the tables in the database require supplemental logging such as in an Oracle
GoldenGate partial replication configuration
New Parameters to Tune Automatic Two new parameters DATA_GUARD_MAX_IO_TIME and DATA_GUARD_MAX_IO_TIME
Outage Resolution with Oracle Data DATA_GUARD_MAX_LONGIO_TIME to tune waits times for a specific Oracle Data DATA_GUARD_MAX_LONGIO_
Guard configuration based on the user network and disk I/O behavior TIME
Guard
Observe-only Mode for Oracle Data Use fast-start failover observe-only mode during configuration to test and tune 19c Documentation
Guard Broker's Fast-Start Failover properties more precisely, and discover what circumstances in your environment will
cause an automatic failover to occur
Simplified Database Parameter Manage all Oracle Data Guard-related parameter settings using SQL*Plus ALTER 19c Documentation
Management in Oracle Data Guard SYSTEM command or the new EDIT DATABASE ... SET PARAMETER
Broker command in DGMGRL (immediately executed on target db)

26 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Flashback Database
Rewind Button for Oracle Databases

Fast rewind button, quickly returning a database to a previous point in time (PITR)
Eliminate time consuming restore and roll forward using a backup and archived logs

Use case: Flashback


Database
• Iterative testing when used with Oracle restore points
• A restore point can be set, database changes implemented Batch Wrong
UPDATE
• Test workload run to assess impact Update
• Discard changes and return the database to original
• Different modifications can be made DB @ T1 DB @ T2
• Test workload run a second time
• Compare the impact of the different configuration changes

Flashback database operates at the CDB level or the PDB level

27 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Flashback Table
Recover a table to a previous point in time

Repair logical corruptions


When a logical corruption is limited to one or a set of tables instead of the entire database
Recover one table or the set of tables from human or application error

@T1 Col-1 Col-.. Col-n


Error investigation — use Flashback Query
Row-1 abby 1234 officer
• View data as of previous point in time
Row-2 ben 8834 mgr

Row-3 charlie 9837 officer


Data consistency — Flashback Transaction Row-n tom 8793 vp Wrong
• Back-out a transaction, and optionally, all of its UPDATE
dependent transactions @T2 Col-1 Col-.. Col-n
Row-1 abby 1234 vp
Row-2 ben 8834 vp

Flashback Row-3 charlie 9837 vp


Database Row-n tom 8793 vp

28 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Cross-platform Backup and Recovery
Simplified Platform Migration

• RMAN BACKUP and RESTORE commands feature


new options to create a cross-platform compatible Source Destination
Database (AIX) Database (Solaris)
backup and to restore the same on a different
platform
• Includes from Big-Endian systems (AIX, HP-UX)
to Little-Endian systems (Exadata and Intel X86)
• Minimizes read-only impact with multiple
incremental backups
• Also useful for instantiating standby databases and
GoldenGate replicas

Backup to Disk/Tape
Restore (optional
(data files, optional
endian conversion,
endian conversion,
metadata import)
metadata export)

29 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Block change tracking for fast incremental backup

• Records changed blocks in the block change


tracking file to improve the performance of
incremental backups
• RMAN uses block change tracking file to identify
the changed blocks that need to be backed up List of changed
• Eliminates scanning all data blocks to identify blocks 101100110010
Change
which blocks have changed CTWR 100001011101
tracking file
001011010010
• Recommended for backup strategy that involves Redo generation
incremental backups SGA Redo log
• Does not change the commands used to perform
incremental backups

30 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Benefits

• Oracle Data Guard Rolling Upgrades for Patch Set, Database, and Operating System reduces planned downtime
• By adopting Transaction Guard end users receive the real response rather than ambiguous errors
• Oracle Database 19c new features for Data Guard simplify the complexity, reduce time, effort, and human errors,
and eliminate delays in redo transport and gap resolution
• Flashback Database helps minimize downtime due to accidental Schema Drop or unwanted Data removal
• Flashback Table avoids downtime due to accidental Table Drop or Update
• Cross-platform Backup and Recovery reduces operational complexity using cross-platform transportable
tablespace and cross-platform transportable database methods to migrate data between platforms
• Block change tracking improves the performance of incremental backups

31 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


More Features

Feature Function Documentation

Oracle Data Guard Redo Apply — applies redo data on the standby database using standard 19c Data Guard Concepts an
recovery techniques d Administration
SQL Apply — first transforms received redo data into SQL statements,
then executes generated SQL statements on logical standby database
Snapshot Standby — receives and archives, but does not apply, redo data
from primary database. Redo received is applied when it is converted back
into physical standby, after discarding all local updates
Flashback Transaction and Back out transaction +dependent transactions; mechanism to view all Flashback Transaction and
Flashback Transaction Query changes made to database at transaction level Flashback Transaction Quer
y
Lost Write Protection Shadow (bigfile) tablespace used by any tablespace or data file enabled My Oracle Support Note 
for shadow lost write protection 1302539.1

Duplexed backup sets RMAN creates multiple, identical copies of backups, using BACKUP ... 19c Documentation
COPIES command

32 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


More Features

Feature Function Documentation

Parallel backup and recovery RMAN reads or writes in parallel depending on number of channels 19c Documentation
available for a device type
Tablespace point-in-time recovery RMAN automatic TSPITR — quickly recover tablespaces to an earlier 19c Documentation
time, not affecting state of other ts/objects
Recovering tables and table RMAN recovers tables or table partitions to specified point in time, not 19c Documentation
partitions from RMAN backups affecting remaining database objects
Trial recovery Apply redo like normal media recovery, but never write changes to disk, 19c Documentation
always roll back changes; only in memory
If stuck recovery or similar problem, marks data block as corrupt in
MEMORY when this allows recovery to proceed
Block-level media recovery Provides lower mean time to recover (MTTR) by recovering only corrupt 19c Documentation
data blocks
Fast-start fault recovery Simple recovery time configuration from instance/system failure using 19c Documentation
FAST_START_MTTR_TARGET
Database manages incremental checkpoint writes in an attempt to meet the
target

33 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Oracle Database Enterprise Edition
Additional Features and Benefits

Performance Management High Availability Security Storage

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


Privilege Analysis

Keep
Used Roles/Privileges
DBA Create …
Select …
Custom Update …
DBA role
applications
…. Audit, Consider Removing
Unused Roles/Privileges

• Track privilege/role usage by a database user for a period of time


• Identify and consider removing unused privileges
• Minimal performance impact — processing done during report generation
• Designed to work in test, development, and production databases
• Moved to core database in November 2018. No dependency on Database Vault Licensing.

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


Unused Privileges Report

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


Oracle Real Application Security (RAS)
Application user session propagated to the database

Support Application Users and Sessions


• Schema-less user, Security and application context in DB

Support Application Privileges and Roles


• E.g., ViewSalary, RequestLeave, ApproveLeave privileges
• E.g., Manager, HR_Rep, Approver roles

Support fine-grained data access control on rows and columns


• Based on user operation execution context
• Enforce security close to data

37 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Real Application Security Concepts

Data Realms Policy Components


A group of rows representing a business object • Each Data Realm has an associated Access Control
• All Employees List (ACL) with grants
• My own employee record • Data Security policy is a collection of Data Realms
• All employees under my report and ACLs
Assign privileges to columns
Application Role
• viewSSN for SSN column
- Manager
• viewSalary for Salary column

viewSalary
Select Data Realm Access Control List
- Employees under - Grant select to Manager
my report - Grant viewSalary to Manager
Employees
table
Application Privilege
- select, viewSalary
Under
my report

38 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Real Application Security
Administration Tool

Employees
table

1. All records
2. My record Privilege
3. My reports Grants

Restricted
Salary & SSN
Columns

39 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Virtual Private Database

Used when standard object privileges and associated SELECT NAME, SALARY FROM
database roles are insufficient to meet security HR.EMPLOYEES;
requirements

Can be used in combination with "application context"


to enforce sophisticated row and/or column level
security requirements for privacy and regulatory Context VPD Policy,
Function
compliance

Policy creates predicate to append to SQL statement SELECT NAME, SALARY FROM
HR.EMPLOYEES
based on user or role context
WHERE EMP_ID = ‘001’;
• SQL with appended predicate is executed
EXEMPT
• Subset of table/view rows and columns are returned ACCESS
• Can also redact column results POLICY

40 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Technology Comparison

Technology Features When to use


RAS • Declarative • As part of new Java/APEX application
• Application User, Roles, Privileges development
• Enterprise application features

VPD • Programmatic • Simple requirements


• Data is part of record to filter

OLS* • Declarative • Application security model aligns with


• Data and User Labels OLS
• Adjudication • Sharing data across applications

41 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Benefits

• Privilege analysis helps improve the security of applications and operations by identifying unused or excessive
privileges
• Privileges required by database administrators can easily be identified by analyzing the privileges used while performing
common administration activities
• Privileges required by applications can be easily identified by running privilege analysis during an application
connection to the database
• Real Application Security strengthens overall application and data security and ultimately reduces application
development time by moving security controls from the application layer to where the data resides in the
database
Enforcement of application security at the database layer increases security for data by enforcing application security logic
regardless of the access path to the database
• Virtual Private Database prevents SQL injection attacks from application layer

42 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


More Features

Feature Function Documentation

Transparent Sensitive Data A way to find and classify table columns that hold sensitive information 19c Documentation
Protection Find the table columns, classify data, and create policy to protect data as a
whole for a given class
TSDP policy protects sensitive data by using either Oracle Data Redaction
or VPD settings
Fine-grained auditing (FGA) Enables audit policies to be associated with columns in application tables, 19c Documentation
along with conditions to generate audit record — using the FGA API
Complements Unified Audit by enabling audit conditions to be associated
with specific columns
Audit trail records created by FGA can be captured and analyzed in Oracle
Audit Vault and Database Firewall

43 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Oracle Database Enterprise Edition
Additional Features and Benefits

Performance Management High Availability Security Storage

44 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Basic Table Compression
INVOICE_ID CUST_NAME CUST_ADDR SALES_AMT

1233033 Meyer 11 Homestead Rd 13.99


Compression during bulk load operations only (Direct
Load, CTAS…) 1212300 Meyer 11 Homestead Rd 1.99

Data modified using conventional DML not 1243012 Meyer 11 Homestead Rd 1.99
compressed 9923032 McGryen 3 Main Street 1.99
Modified data will degrade compression ratio over 9833023 McGryen 3 Main Street 1.99
time unless table is recompressed
2133056 McGryen 3 Main Street 1.99
Ideal for Data Warehouse applications
Not intended for use with active OLTP data Compressed Block Not Compressed

Customers report 2x to 4x compression ratios


Meyer 11 Homestead Rd | 1.99
McGryen 3 Main Street
Block Header 1233033 · · 13.99 | 1212300 · 1233033 Meyer 11 Homestead Rd
· · | 1243012 · · · | 9923032 13.99 | 1212300 Meyer 11
9833023 · · · 2133056 Homestead Rd 1.99 | 1243012
Symbol Table Meyer 11 Homestead Rd 1.99 |
9923032 McGryen 3 Main Street
Raw Data 1.99 | 9833023 McGryen 3 Main
Street 1.99 | 2133056 McGryen
3 Main Street 1.99
Free Space

45 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Unused Block Compression in Backups

RMAN skips reading, and backing up, any database blocks that are not currently allocated to some database object
• regardless of whether those blocks had previously been allocated.
• if table is dropped, RMAN will not back up space occupied by that table until new objects are created in that space
Unused block compression is used automatically when the following conditions are true:
• COMPATIBLE initialization parameter is set to 10.2 or higher
• There are currently no guaranteed restore points defined for the database
• Data file is locally managed
Compression block
• Data file backed up to a backup set
as part of a full backup or a level 0
incremental backup
• Backup set is created on disk, or Oracle
RMAN
Secure Backup is the media manager

Datafile Backup set

46 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Prefix Compression
Also called Key Compression

Eliminates duplicate copies of index prefix columns


having many repeated rows within a leaf block
ANALYZE INDEX will give advice on whether and
how many columns to choose
Number of prefix columns to consider specified by
DBA at index create time (or rebuild time)
Constant for all index leaf blocks
Supports Index Organized Tables (IOT’s)
Enable prefix compression using the COMPRESS
clause while:
• Creating an index-organized table
• Moving an index-organized table
Customers experience: 2x compression ratios

47 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Enterprise Edition Storage Features
Summary

Basic Table Compression


• Optimized for relational data
• Higher disk space reduction than standard compression algorithms
• No negative impact on query performance

Unused Block Compression in Backups


• RMAN completely eliminates the blocks from the backup
• Rather than compressing the data in the blocks

Prefix Compression
• Eliminates duplicate copies of pre-defined number of index prefix columns at index leaf block level
• An effective way to permanently reduce index size, both on disk and in cache

48 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Benefits

• Basic Table Compression is a free data compression capability for data that is never, or very rarely, modified
• Skipping unused data blocks where possible, enables RMAN to back up datafiles using less space, and can make
I/O more efficient
• Prefix Compression has the potential to substantially reduce the overall size of indexes
• Effective way to permanently reduce the index size, both on disk and in cache
• Helps both multi-column unique indexes and non-unique indexes alike
• One of the most critical index optimization features available to DBAs for effectively managing the space used by the
indexes

49 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


More Features

Feature Function Documentation

Attribute Clustering Table-level directive that clusters data in close physical proximity based 19c Documentation
on the content of certain columns
Applies to any kind of direct path operation, such as a bulk insert or a
move operation
Business Benefit: Storing data that logically belongs together in close
physical proximity can greatly reduce the amount of data to be processed
and can lead to better compression ratios
Deferred Segment Creation Initial segment creation for partitioned tables and indexes can be deferred 19c Documentation
until data is first inserted into an object
Individual partitions will not be physically created before data is inserted
for the first time
Business Benefit: Several prepackaged applications are delivered with
large schemas containing many partitioned tables and indexes. With
deferred segment creation for partitioned tables, empty database objects
do not consume any space, reducing the installation footprint and
speeding up the installation.

50 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Why Choose Enterprise Edition over Standard Edition?

Performance Management High Availability Security Storage

51 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Thank you

<Email address>
<LinkedIn URL>
<Twitter handle>

52 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.


Licensing Information

https://docs.oracle.com/en/database/oracle/oracle-database/19/dblic/Licensing-Information.html#GUID-B6113390-
9586-46D7-9008-DCC9EDA45AB4

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


Oracle Database Editions

ORACLE DATABASE ORACLE DATABASE ORACLE DATABASE ORACLE DATABSE


EE SE2 PERSONAL EDITION XE
Target High-volume online Small business, workgroup Development Development
transaction processing (OLTP) and web applications
applications, query-intensive
data warehouses.

CPU Limits 1 CPU to Unlimited 2 CPU Sockets N/A 2 Cores


Memory Limits Unlimited* Unlimited* Unlimited* 2GB SGA
Storage Limits Unlimited* Unlimited* Unlimited* 12GB Storage
Database Options All options can be licensed None All options available minus All options available minus
RAC and Diagnostic and Data Guard & RAC
Tuning Pack
Licensed By Core Socket Named User Free
Platform Support Linux, Windows, Solaris, AIX, Linux, Windows, Solaris, Windows and Linux Windows and Linux
HP-UX AIX, HP-UX
* Limited by underlying operating system

54 Copyright © 2021, Oracle and/or its affiliates. All rights reserved.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy