Why 12c How and why upgrade now

Why 12c How and why upgrade now
Why 12c
How and why upgrade now
Andy Cleverly [email protected]
Director Database Technology
Oracle EMEA Technology
Copyright © 2014 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 © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted
2
Release Roadmap
Today
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
AUG 2015
JAN 2015
Oracle 12.1
JAN 2018
JUN 2018
(GA: Jun 2013)
Premier Support
2014
2013
AUG 2012
2012
(GA: Sep 2009)
2011
Oracle 11.2
2010
(GA: Aug 2007)
2009
2008
2007
Oracle 11.1
Waived Extended
JUN 2021
Extended Support
Oracle Database 12c Release 2
Targeted for Release 1HCY2016
(MOS Note 742060.1 )
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Sustaining Support
Extended Support for Oracle Database 11.2
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Database Patch Set Roadmap
• Release Schedule of Current Database Releases MOS Note.742060.1
1x 3x 1x
11.1.0.7
11.2.0.2
11.2.0.3
11.2.0.4
12.1.0.2
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Database 12c Release 1 (12.1.0.2)
1
Oracle Database 12c Overview
2
Oracle Database In-Memory
3
Oracle Database 12c for the Developer
4
Oracle Database 12c for Big Data
5
Oracle Multitenant
6
Other Improvements
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
6
Oracle Database 12c (12.1.0.1)
Oracle Multitenant
•
Database consolidation
•
Fast Provisioning
•
Manage many as one
Oracle Automatic Data Optimization
•
Smart Compression
•
Automate Tiering
Data Guard Far Sync
•
Zero data loss over large distances
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
7
Oracle Database 12c (12.1.0.1)
Application Continuity
•
Replay of failed transaction
Data Redaction
•
Masks application data dynamically
•
Transparent to application
Pattern Matching
•
Sophisticated inter row pattern analysis
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
8
Oracle Database 12c Release 1 (12.1.0.2)
Exploit memory to
improve
performance
Simplify access to
Big Data
Improve
application
developers
experience
Continue to
improve
consolidation
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
9
Oracle Database 12c Release 1 (12.1.0.2)
1
Oracle Database 12c Overview
2
Oracle Database In-Memory
3
Oracle Database 12c for the Developer
4
Oracle Database 12c for Big Data
5
Oracle Multitenant
6
Other Improvements
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
10
Oracle Database In-Memory Goals
Real Time
Analytics
Accelerate OLTP
No Changes to
Applications
Exploit latest
generation
hardware
CPU
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Row Format Databases vs. Column Format Databases
SALES
Row
– Example: Insert or query a sales order
– Fast processing few rows, many columns
SALES
Column
Transactions run faster on row format
Analytics run faster on column format
– Example : Report on sales totals by region
– Fast accessing few columns, many rows
Until Now Must Choose One Format and Suffer Tradeoffs
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
12
Oracle In-Memory Columnar Technology
Pure In-Memory Columnar
• Pure in-memory column format
• Not persistent, and no logging
• Quick to change data: fast
OLTP
•
2x to 20x compression
•
Enabled at table or partition
level
•
Available on all hardware
platforms
SALES
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
13
Scans Billions of Rows per Second per CPU Core
Memory
REGION
Example:
Find all sales
in region of CA
Load
multiple
region
values
• Scans use fast SIMD vector
instructions
Vector Register
CPU
• Each CPU core scans local
in-memory columns
CA
CA
CA
CA
Vector
Compare
all values
an 1 cycle
•
Originally designed for
graphics & science
• Billions of rows/sec scan
rate per CPU core
> 100x Faster
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
14
Oracle Database 12c Release 1 (12.1.0.2)
1
Oracle Database 12c Overview
2
Oracle Database In-Memory
3
Oracle Database 12c for the Developer
4
Oracle Database 12c for Big Data
5
Oracle Multitenant
6
Other Improvements
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
15
Oracle Database 12c Release 1 (12.1.0.2)
Flexible Schema development
Oracle Database 12c
JSON
Via RESTful service
SQL
JSON
Via Native APIs
Data persisted in database
In JSON
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Data analyzed via SQL
Querying JSON
Sample JSON in column customers.document
{
select
"firstName": "John",
“lastName”: "Smith",
"age": 25,
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021“,
"isBusiness" : false},
Simplified
syntax for
simple queries
c.document.firstName,
c.document.lastName,
c.document.address.city,
c.document.phoneNumbers
from customers c;
"phoneNumbers": [
{
{
"type": "home",
"number": "212 555-1234“ },
"type": "fax",
"number": "646
555-4567“ } ]
}
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle REST Data Services
Enabling RESTful access to Oracle Database
• Provides data access consistent with modern App Dev frameworks
•
•
•
•
Can map standard http(s) URI RESTful gets and posts to SQL
Can declaratively returns results in JSON format
JavaScript framework friendly
Can support high numbers of end users
• Services
•
•
•
•
HTTP(s) relational data access
Oracle JSON collection based schemaless access
Oracle NoSQL access over HTTP
Oracle APEX mid-tier, web toolkit applications, mod_plsql replacement
• Formally known as Oracle APEX Listener
• Supported feature of the Oracle Database since 2010
• Ships with Oracle Database 12c Release 1 (12.1.0.2)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle REST Data Services
Schemaless development using JSON Collection API (12.1.0.2)
Oracle REST Data Services
URI
JSON
Transform
JSON Collection API
Pass Back
Auto Generated SQL
JSON
Oracle Database
HTTP(S) client
•
•
Data stored in Oracle Database as JSON documents
App Developer make standard HTTP(S) calls to JSON Collection APIs
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle REST Data Services
Serving JSON results from relational data
Oracle REST Data Services
URI
JSON
Transform
Map and Bind
Transform to JSON
SQL
SQL Result Set
HTTP(S) client
Oracle Database
Data stored in standard relational tables and columns
Oracle REST Data Services (ORDS) Developer defines URI<>SQL mapping
App Developer calls named URI over HTTP(S) gets and posts
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle REST Data Services
Serving JSON results with Oracle NoSQL Database (ORDS 3.1)
Oracle REST Data Services
URI
JSON
Transform
NoSQL API
Pass Back
Key-Value Lookup
JSON
HTTP(S) client
Oracle NoSQL
Database
Oracle REST Data Services provides HTTP(s) access to Oracle NoSQL
Oracle NoSQL is embedded within ORDS and can also access remote DB
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Database 12c Release 1 (12.1.0.2)
1
Oracle Database 12c Overview
2
Oracle Database In-Memory
3
Oracle Database 12c for the Developer
4
Oracle Database 12c for Big Data
5
Oracle Multitenant
6
Other Improvements
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
23
SQL is Critical
“….the complexity of dealing with a
non-ACID data store in every part of
our business logic would be too
great, and there was simply no way
our business could function without
SQL queries.”
Google, VLDB 2013
https://www.linkedin.com/groups/Find-out-why-Google-decided-4434815.S.273792742
“[Facebook] started in the Hadoop
world. We are now bringing in
relational to enhance that. ... [we]
realized that using the wrong
technology for certain kinds of
problems can be difficult.”
Ken Rudin, Facebook, TDWI 2013
http://tdwi.org/articles/2013/05/06/facebooks-relational-platform.aspx
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
24
Oracle Support for Any Data Management System
Hadoop
NoSQL
Change the Business
Scale the Business
Scale-out, low cost store
Collect any data
Map-reduce, SQL
Analytic applications
Relational
Run the Business
Scale-out, low cost store
Collect key-value data
Find data by key
Web applications
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Scale-out and scale-up
Collect any data
SQL
Transactional and analytic
applications for the enterprise
Secure and highly available
25
Overcoming Barriers to Adoption of New Technologies
INTEGRATION
SKILLS
SECURITY
SQL
Engineered
Systems
SQL on
All Data
Database
Security on
All Data
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Confidential
26
Oracle Big Data SQL
One fast SQL query, on all your data.
Oracle SQL on Hadoop and beyond
• With a Smart Scan service as in Exadata
• With native SQL operators
• With the security and certainty of Oracle Database
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted
27
Accessing Big Data
Select w.sess_id,
w.cust_id,
w.page_id
From web_logs w
Where w.source_country = ‘Brazil’
And w.category = ‘TV’
And w.channel = ‘Mobile’
Without SQL Push Down
Request for Data
100’s of Terabytes of Data
WEB_LOGS
Hadoop Cluster
Low utilization of
available resources
All columns and rows from the
table are returned
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
High load on
database server
28
Big Data SQL Push Down
Select w.sess_id,
w.cust_id,
w.page_id
From web_logs w
Where w.source_country = ‘Brazil’
And w.category = ‘TV’
And w.channel = ‘Mobile’
With SQL Push Down
Big Data SQL Server
SQL shipped to BDA
10’s of Gigabytes of Data
WEB_LOGS
Hadoop Cluster
Only columns and rows needed to
answer query are returned
Good utilization of
available resources.
SQL executed on
Hadoop cluster
Lower load on Server,
Faster response
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
29
Select w.sess_id,
w.cust_id,
w.page_id,
c.name
From web_logs w, customers c
Where w.source_country = ‘Brazil’
And w.category = ‘TV’
And w.channel = ‘Mobile’
And c.customer_id = w.cust_id
Big Data SQL Push Down
With SQL Push Down
Big Data SQL Server
SQL shipped to BDA
10’s of Gigabytes of Data
WEB_LOGS
CUSTOMERS
Hadoop Cluster
Only columns and rows needed to
answer query are returned
Good utilization of
available resources.
SQL executed on
Hadoop cluster
Data joined between
CUSTOMERS and
WEB_LOGS on server
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
30
Select w.sess_id,
w.cust_id,
w.page_id,
c.name
From web_logs w, customers c
Where w.source_country = ‘Brazil’
And w.category = ‘TV’
And w.channel = ‘Mobile’
And c.customer_id = w.cust_id
Big Data SQL Push Down
With SQL Push Down
Big Data SQL Server
SQL Push Downs supported by Big Data SQL
SQL shipped to BDA
WEB_LOGS
• Hadoop scans (InputFormat, SerDe)
• JSON 10’s
parsing
of Gigabytes of Data
• WHERE clause evaluation
• Column projection
• Bloom filters for faster join
Only columns and rows needed to
Hadoop Cluster
CUSTOMERS
answer query are returned
Good utilization of
available resources.
SQL executed on
Hadoop cluster
Data joined between
CUSTOMERS and
WEB_LOGS on server
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
31
New Data Sources for Oracle External Tables
CREATE TABLE web_logs
(click VARCHAR2(4000))
ORGANIZATION EXTERNAL
( TYPE ORACLE_HIVE
DEFAULT DIRECTORY Dir1
ACCESS PARAMETERS
(
com.oracle.bigdata.tablename logs
com.oracle.bigdata.cluster mycluster)
)
REJECT LIMIT UNLIMITED
• New set of properties
– ORACLE_HIVE and ORACLE_HDFS access drivers
– Identify a Hadoop cluster, data source, column
mapping, error handling, overflow handling,
logging
• New table metadata passed from Oracle DDL
to Hadoop readers at query execution
• Architected for extensibility
– StorageHandler capability enables future support
for other data sources
– Examples: MongoDB, HBase, Oracle NoSQL DB
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
32
Oracle Database 12c Release 1 (12.1.0.2)
1
Oracle Database 12c Overview
2
Oracle Database In-Memory
3
Oracle Database 12c for the Developer
4
Oracle Database 12c for Big Data
5
Oracle Multitenant
6
Other Improvements
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
33
Oracle Multitenant
New architecture for consolidating databases and simplifying operations
DW
ERP
CRM
Self-contained PDB for each application
•
•
•
Applications run unchanged
Rapid provisioning (via clones)
Portability (via pluggability)
Common operations performed at CDB
level
•
•
Manage many as one (upgrade, HA, backup)
Granular control when appropriate
Shared memory and background
processes
•
More applications per server
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
34
Multitenant Provides Agility for New Projects
Fast Provisioning, Snapshot Clones
Seed
PDB
New PDB
From Seed
Original
PDB
Time Taken to Provision New Database
25
Clone
of PDB
Snapshot 20
Clone of PDB
15
10
5
New
GL
GL-2
GL-3
0
Non CDB
PDB
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Snapshot Clone
35
Multitenant for Provisioning
Fast cloning of PDBs
GL-1
GL
GL-2
OE
AP-1
AP
AP-2
PO-1
PO
•
PDBs can be cloned from
within the same CDB
•
PDBs can be cloned from
remote CDBs
•
PDBs can be cloned from
non-CDBs
•
Thinly provision snapshot
clones in seconds
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
36
Multitenant Cloning – Types and Platforms
Flavors
Subset Clone
Remote Clone
over DB link
Multitenant Cloning
Metadata
Only clone
Types
Full Clones
Supported on all platforms
File System Agnostic
(CloneDB=TRUE)
Source in Read-only if child
exists
Exadata Sparse clones
Snapshot clones
ACFS
ZFSSA
Copy-on-write - Source
opened in read write after
clone is created
Snapshot clone syntax:
create pluggable database PDB2 from PDB1 snapshot
copy
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Netapp
EMC
37
Copy-on-Write Basics
Much more efficient storage of substantially similar files
my_file
• File is collection of data blocks
• And headers
• Copy file requires only copy of header
– Much more efficient storage
– Minimal IO to create copy
• Only copy block when changed
my_file_copy
cp my_file my_file_copy
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Multitenant New Features in 12.1.0.2
Cloning
•
Subset by tablespace
•
Metadata-only clone
•
Remote clone (including
snapshots)
•
File system-agnostic cloning via
dNFS (clonedb = true)
•
New “standbys” clause
•
•
PRIMARY
SQL
New SQL clause to aggregate
data across PDBs
select ENAME from
containers(scott.EMP)
where CON_ID in (45, 49);
Cross PDB Queries
(all | none)
Nologging clause at PDB level
STANDBY
Standby & Logging
•
Additional
Features
•
Flashback data archive
•
Temporal SQL Support
•
Compatible with DB In-Memory
•
Maintains state of PDBs
between CDB restarts
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
39
Oracle Database 12c Release 1 (12.1.0.2)
1
Oracle Database 12c Overview
2
Oracle Database In-Memory
3
Oracle Database 12c for the Developer
4
Oracle Database 12c for Big Data
5
Oracle Multitenant
6
Other Improvements
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
40
Performance Improvements
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
41
Advanced Index Compression
• Compresses indexes to reduce their overall storage requirement
– Less space required on disk
– Better use of the database cache
• Indexes are compressed by between 1 – 3 times
• Little or no discernable overhead
• Compression Advisor extended to describe the possible benefits of this
feature
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
42
Attribute Clustering
Ordering of data so that rows are stored near one another based on column values
Benefits :
• Improved query performance and concurrency
– Reduced physical data access trough smart IO
– Significant IO reduction for highly selective operations
• Optimized space utilization
– Less need for indexes
– Improved compression ratios through data clustering
• Full application transparency
– Any application will benefit
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
43
X
Zone Maps
Persisted storage index
• Stores minimum and maximum of specified columns
• Analogous to a coarse index structure
– Much more compact than an index
– Zone maps filter out what you don’t need, indexes find what you do need
• Significant performance benefits with complete application transparency
– IO reduction for table scans with predicates on the table itself or even a joined table
using join zone maps (a.k.a. “hierarchical zone map”)
• Benefits are most significant with ordered data
– Used in combination with attribute clustering or data that is naturally ordered
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
44
1,2,3...
Approximate Count Distinct
• Not every query requires a completely accurate result
– “How many distinct individuals visited our website last week?”
• New SQL function for approximate results for COUNT DISTINCT aggregates
– APPROX_COUNT_DISTINCT()
• Approximate results can be significantly faster and use less resources than
exact calculations
– 5x to 50x ++ times faster (depending upon number of distinct values and complexity
of SQL)
– Accuracy > 97% (with 95% confidence)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
45
Rapid Home Provisioning
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Rapid Home Provisioning
Install Once Use Many
• Patching is complex and time consuming
– Even when automated
• New way to deploy upgrades
– Create reference homes on Centralized Home Server
• Apply patches once (Enterprise) on Home Server
• Distribute homes on-demand or policy
– Fast and Efficient
• Rapid distribution (network efficient)
• Space efficient (snapshots)
• Local caches
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
47
Oracle Rapid Home Provisioning
Oracle Enterprise Manager
Database Cloud
Provisioning
Cluster
Monitoring and Configuration
Cluster
Capacity and Resource
Patching
Cluster
Performance and Tuning
Service Level
NFS Mount
Application
Cluster
Cluster
Cluster
Database
Grid
Service
Catalog
S/W Distribution
Grid Home
Server
Local Gold Image
Differential Copy
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
48
Some of Tom Kytes favourite 12c features
More online operations
Easier Reorgs
32k Strings
Application continuity
Adaptive exectution plans
SqlCL ***New***
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
More Online Operations
• DROP INDEX ONLINE
• DROP CONSTRAINT ONLINE
• SET UNUSED COLUMN ONLINE
• ALTER INDEX UNUSABLE ONLINE
• ALTER INDEX [VISIBLE | INVISIBLE]
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Easier Reorgs
In a single command you canI
• Move table tablespaces
• Move index tablespaces
• Move lob tablespaces
• Implement table compression
• Implement index key compression
• Implement lob compression
• Convert to securelfile
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Easier Reorgs
ops$tkyte%ORA12CR1> begin
2 dbms_redefinition.redef_table
3 ( uname
=> user,
4
tname
=> 'T',
5
table_compression_type => 'row store compress advanced',
6
table_part_tablespace => 'TEST' );
7 end;
8 /
PL/SQL procedure successfully completed.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
32k Strings
• Varchar2, NVarchar2 and Raw datatypes may be upto 32k in size, like in
PL/SQL
• Compatible = 12.0.0.0 or higher
• Max_String_Size init.ora set to EXTENDED (default is not this)
• Not supported in clustered and index organized tables
• Will be stored out of line (LOB) but work just like long strings to your
program
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Transaction Guard
FIRST RDBMS to preserve COMMIT outcome
1. Request
5. Guaranteed Outcome
2. Calls
4. Enforce Outcome
3. FAN or errors
• 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
Oracle Database 12c Release 1
54
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Application Continuity
First RDBMS to mask planned/unplanned outages
• Improves end user experience
1. Request
5. Success
• Improves developer productivity
• Application transparent when
using Oracle stack
2. Calls
4. Replay
3. FAN or errors
• Enabled with WebLogic Server,
Peoplesoft, Fusion Apps,
Siebel(possibly)
Oracle Database 12c Release 1
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Adaptive Execution Plans
HJ
Table scan
T2
Threshold
exceeded, plan switches
NL
Table scan
T1
Index Scan
T2
HJ
Table scan
T1
Plan decision deferred until
runtime
Final decision is based on
statistics collected during
execution
If statistics prove to be out of
range, sub-plans can be swapped
Bad effects of skew eliminated
Table scan
T2
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Time to turn back the clock a bit…to 1985
We release Oracle Database version 5
The client-server model is born
And a little program makes it debutIwith roots going back to 1982
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL*Plus?
Statement completion?
SqlCL
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL History?
SqlCL
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Upgrade/Migrate Older Oracle Releases
Oracle 5/6/7/8
exp/imp
Less
Downtime?
Near-Zero
Downtime?
Oracle 8i
Oracle 9i
Transportable
Tablespaces
Same platform only
Oracle 9.2
Oracle 10.1
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
+Golden Gate
Upgrade Options to Oracle Database 12c
Oracle 10.2
expdp/impdp
Less
Downtime?
DBUA
Transient
Standby
Oracle 11.1
catctl.pl
Oracle 11.2.0.2
Oracle 11.2.0.3/4
HW
Logical
Standby
Near-Zero
Downtime?
+
Golden
Gate
Transportable
Tablespaces
Full Transportable
Export/Import
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
RMAN Inc
Bck
+
Migration Options to Oracle Database 12c
Oracle 10.2
Less
Downtime?
expdp/impdp
Near-Zero
Downtime?
CTAS, COPY
Oracle 11.1
SQL*Loader
Oracle 11.2.0.1/2
Oracle 11.2.0.3/4
TDB
Only same
Endianness
Transportable
Tablespaces
Full Transportable
Export/Import
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
+
Golden
Gate
RMAN Inc
Bck
+
Concept Transportable Tablespaces
impdp
"'"sys/sys
as sysdba
sysdba"'"…
"'"…
expdp
"'"sys/sys
as sysdba"'"
…
TRANSPORT_DATAFILES=…
TRANSPORT_TABLESPACES=TS1,TS2
…
• TTS feature available since Oracle 8i
• Cross platform support since Oracle 10g
Read Write
Self Contained?
Read Only
75TB
75TB
Oracle 10.2.0.4
48 hrs
IBM AIX
Oracle 11.2.0.4
OL5.8 64bit
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Concept Transportable Tablespaces xTTS
• Cross platform support
– V$TRANSPORTABLE_PLATFORM
LITTLE ENDIAN PLATFORMS
HP IA Open VMS
HP Open VMS
HP Tru64 UNIX
BIG ENDIAN PLATFORMS
Linux IA (32-bit)
Linux IA (64-bit)
Linux x86 64-bit
Microsoft Windows IA (64-bit)
Microsoft Windows x86 64-bit
Microsoft Windows IA (32-bit)
Solaris Operating System (x86)
Solaris Operating System (x86-64)
Apple Mac OS
RMAN
FILE
COPY
CONVERT
HP-UX (64-bit)
HP-UX IA (64-bit)
FILE
AIX-Based Systems (64-bit)
IBM zSeries Based Linux
IBM Power Based Linux
COPY
Solaris[tm] OE (32-bit)
Solaris[tm] OE (64-bit)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Upgrade/Migration: Transportable Tablespaces
Rebuild meta information
(views, synonyms, trigger, roles etc)
SOURCE Database 10.2.0.4
DESTINATION Database 11.2.0.4
VIEWS
VIEWS
Read Only
SCOT
T
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
SCOT
T
HUGO
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Speed Up Transportable Tablespaces
• Usually the biggest pain points with TTS
– Downtime due to:
• Duration to copy very large amounts of data
• Duration to convert many tablespaces cross Endianness
• New technique: Avoid the copy & convert phase
– RMAN can convert incremental backups cross platform
•
•
•
•
Available since Oracle 11.2.0.3 for Exadata only
Available for Linux x86-64 with Oracle 11.2.0.4
Available on all platforms starting with Oracle 12c
See MOS Note:1389592.1 for description and Linux perl scripts
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Transportable Tablespace with Incremental Backups
impdp"'"sys/sys
"'"sys/sysasassysdba"'"
sysdba
sysdba"'"…
"'"…
expdp
…
TRANSPORT_DATAFILES=…
TRANSPORT_TABLESPACES=TS1,TS2
…
Convert and apply
backups
Downtime!!!
SOURCE Database 10.2.0.5
DESTINATION Database 11.2.0.4
Read Write
VIEWS
VIEWS
Read Only
SCOT
T
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Data Pump
SCOT
T
HUGO
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Full Transportable Export/Import
• Combining:
– Transportable Tablespaces with
– Data Pump taking care of all meta information with optional
– RMAN incremental backups to decrease downtime
• One
Command
Migration FULL=Y TRANSPORTABLE=ALWAYS …
impdp
… VERSION=12
• This works:
– Cross platform
– With or without Oracle Multitenant
– Source can be Oracle 11.2.0.3/4 or newer
– Target must be at least Oracle 12.1.0.1
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Full Transportable Export/Import with Copies
SOURCE Database 11.2.0.3
DESTINATION Database 12.1.0.1
VIEWS
VIEWS
Read Only
SCOT
T
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Data Pump
SCOT
T
HUGO
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Full Transportable Export/Import with Backups
Convert and apply
backups
SOURCE Database 11.2.0.3
DESTINATION Database 12.1.0.1
VIEWS
VIEWS
Read Only
SCOT
T
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Data Pump
SCOT
T
HUGO
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SYSTEM
SYSAUX
UNDO
TEMP
CODE
PRIVS
Summary
• Oracle Database 12c (12.1.0.2) will have premier support into 2018
• Upgrading to Oracle Database 12c gets you lots of new features
• Oracle Database 12c is stable and in production at customers worldwide
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Resources
• Download slides from:
–http://blogs.oracle.com/UPGRADE
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Database 12c New Features Guide
• http://docs.oracle.com/cd/E16655_01/server.121/e17906/toc.htm
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted
74
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement