Oracle 12c Database New Features
Geert De Paep 2
Join the buzz:
• Wifi available
• Twitter
– #oracleopenxperience
– @oopenxperience 3
Disclaimer
• Oracle 12c is planned for 2013
– No documentation / presentations available yet
• Based on OOW sessions
• Based on OOW demogrounds
• Based on MLC (My Little Camera)
• Nothing is guaranteed to be included in
Oracle 12c production
• Nothing is guaranteed to be implemented as
RMAN - Recovery manager
• Restoring a datafile
– May require tapes+heads to be available
– May be slow
• 12c
– Recover from physical standby database
• Transfer files from physical sby to primary
• Advantages:
– Easier and faster restore
– Less dependent from backup infrastructure
RMAN
Backup 6
Recovery manager
• Accidental ‘drop table’, ‘truncate table’, wrong
script, human error, ...
• Pre 12c
– Import from older export file (if available)
– Restore older backup to extract table (+++work)
– Flashback physical standby (+work)
– ...
• 12c: Table recovery
– Restore + recover individual tables from rman
backup
– To any point in time
– Fast and easy
RMAN
Backup 7
Recovery manager
• Further RMAN improvements
– Automate the use of incremental backup to bring
a standby back in sync
• Now a complex and manual procedure
– Auto conversion for cross-platform backup/restore
• Cfr “convert database” statement
• Rman 12c
– Makes a lot of tasks easier
RMAN
Backup 8
Application continuity
• Traditional RAC failover
– TAF: queries are transparant, ins/upd/del not
– FCF: no tcpip timeouts
• Any sql gets “connection closed” and needs to
handle this (incl. select)
• 12c: “Real Transparant Failover Mechanism”
– For queries and transactions
– Currently only for java connection pool or plain jdbc
– 100% transparant failover
Inst1 Inst2 9
Data Guard - Global data services
• Failover: standby db becomes primary
– Clients have to be redirected
– No ‘out of the box’ solution until now
• Dns change, on role-change trigger, ldap,
tnsnames.ora, ...
• 12c: global data services
– Purpose: no client reconfiguration in case of
failover or switchover
– + other advantages
Stby
Prim 10
Global data services
• Features
– Awareness which site is primary
• Can connect clients always
to primary site
– Rule based
• Can direct applications to active data guard
• If active DG 1 not available go to other active DG or
primary
– Affinity
• Prefer local databases
• Any replication technology
– “Global load balancing and failover for replicated
databases”
Primary
Physical standby
open read only
LSNR Stby
Prim
Golden Gate 11
Data Guard – Far sync standby
• Far sync standby
– Instance with only standby and archive logs
– Acts as a ‘dispatcher’ for multiple standby’s
• Reduced WAN traffic
• Easier failover
– “validate database” before switchover
Primary Physical Standby’s
WAN
Network
Primary
Physical Standby’s
WAN
Network
Far sync
standby
Stby
Prim 12
Grid Infrastructure
• Pre 12c, every node has
– Cluster software
– ASM software
– One or more database instances
– Optionally ACFS (ASM cluster file system)
– Optionally applications running
• New concepts
– Flex Cluster
– Flex ASM
ASM
Mem + proc
DB
Mem + proc
DB
Mem + proc
/acfs
ASM
Mem + proc
DB
Mem + proc
DB
Mem + proc
/acfs
Big stack
Inst1 Inst2
ASM 13
Grid Infrastructure
• Flex cluster
– Group database + application
servers in one cluster
– However, application servers
• Do not need ASM instance
• Longer timeoutsSolution
• Light-weight stack
– No inter-node traffic
– Local storage or NFS
– Cloud!
• Integrated cluster solution
ASM
Mem + proc
DB
Mem + proc
DB
Mem + proc
/acfs
Appl. server
Mem + proc
Cluster
Light-weight
Inst1 Inst2
ASM 14
Grid Infrastructure
• Flex ASM
– 5 node-cluster
– Less than 5 nodes run ASM instance
• Database requests file mapping from remote
ASM
ASM
Mem + proc
DB
Mem + proc
ASM
Mem + proc
DB
Mem + proc
ASM
Mem + proc
DB
Mem + proc
ASM
Mem + proc
DB
Mem + proc
ASM
Mem + proc
DB
Mem + proc
Inst1 Inst2
ASM 15
ILM
• Scope
– Historical data – archiving - compression
– Applications usually work on recent data
– Older data may take a lot of place
• Solution pre 12c
– Move data to other tablespaces on other disks
– Change compression level
– Set tablespaces read only
– à Manually, scripts, 3rd party tools, ... 16
ILM – Oracle 12c
• “In-database archive”
– Archive infrequently used data within the database
• By marking data as archived
• Making rows ‘invisible’
– Query can choose to (not) see archived data
• Advanced data optimization
– Automatically move data based on policies
• Other tablespace, read only, compression level
– Online
–
alter table ... compress for query after 3 months of no modification 17
ILM
• Advanced compression
– Faster and smaller
– In-memory scan
• Data not expanded in memory during scan
• Up to 3x faster for low cardinality data
• Heat maps
– Track access (read and write) to tables/partitions/
rows
– Information used for ILM
100%
transparant 18
SQL Enhancements
• Duplicate indexes
– “ORA-01408: such column list already indexed”
– Can have both B-tree and bitmap index on same
column(s)
• WITH-plsql function
– 4-8x faster execution
WITH
function is_number(n varchar2)
return char is
begin
end
select * from
Geert De Paep 2
Join the buzz:
• Wifi available
– #oracleopenxperience
– @oopenxperience 3
Disclaimer
• Oracle 12c is planned for 2013
– No documentation / presentations available yet
• Based on OOW sessions
• Based on OOW demogrounds
• Based on MLC (My Little Camera)
• Nothing is guaranteed to be included in
Oracle 12c production
• Nothing is guaranteed to be implemented as
RMAN - Recovery manager
• Restoring a datafile
– May require tapes+heads to be available
– May be slow
• 12c
– Recover from physical standby database
• Transfer files from physical sby to primary
• Advantages:
– Easier and faster restore
– Less dependent from backup infrastructure
RMAN
Backup 6
Recovery manager
• Accidental ‘drop table’, ‘truncate table’, wrong
script, human error, ...
• Pre 12c
– Import from older export file (if available)
– Restore older backup to extract table (+++work)
– Flashback physical standby (+work)
– ...
• 12c: Table recovery
– Restore + recover individual tables from rman
backup
– To any point in time
– Fast and easy
RMAN
Backup 7
Recovery manager
• Further RMAN improvements
– Automate the use of incremental backup to bring
a standby back in sync
• Now a complex and manual procedure
– Auto conversion for cross-platform backup/restore
• Cfr “convert database” statement
• Rman 12c
– Makes a lot of tasks easier
RMAN
Backup 8
Application continuity
• Traditional RAC failover
– TAF: queries are transparant, ins/upd/del not
– FCF: no tcpip timeouts
• Any sql gets “connection closed” and needs to
handle this (incl. select)
• 12c: “Real Transparant Failover Mechanism”
– For queries and transactions
– Currently only for java connection pool or plain jdbc
– 100% transparant failover
Inst1 Inst2 9
Data Guard - Global data services
• Failover: standby db becomes primary
– Clients have to be redirected
– No ‘out of the box’ solution until now
• Dns change, on role-change trigger, ldap,
tnsnames.ora, ...
• 12c: global data services
– Purpose: no client reconfiguration in case of
failover or switchover
– + other advantages
Stby
Prim 10
Global data services
• Features
– Awareness which site is primary
• Can connect clients always
to primary site
– Rule based
• Can direct applications to active data guard
• If active DG 1 not available go to other active DG or
primary
– Affinity
• Prefer local databases
• Any replication technology
– “Global load balancing and failover for replicated
databases”
Primary
Physical standby
open read only
LSNR Stby
Prim
Golden Gate 11
Data Guard – Far sync standby
• Far sync standby
– Instance with only standby and archive logs
– Acts as a ‘dispatcher’ for multiple standby’s
• Reduced WAN traffic
• Easier failover
– “validate database” before switchover
Primary Physical Standby’s
WAN
Network
Primary
Physical Standby’s
WAN
Network
Far sync
standby
Stby
Prim 12
Grid Infrastructure
• Pre 12c, every node has
– Cluster software
– ASM software
– One or more database instances
– Optionally ACFS (ASM cluster file system)
– Optionally applications running
• New concepts
– Flex Cluster
– Flex ASM
ASM
Mem + proc
DB
Mem + proc
DB
Mem + proc
/acfs
ASM
Mem + proc
DB
Mem + proc
DB
Mem + proc
/acfs
Big stack
Inst1 Inst2
ASM 13
Grid Infrastructure
• Flex cluster
– Group database + application
servers in one cluster
– However, application servers
• Do not need ASM instance
• Longer timeoutsSolution
• Light-weight stack
– No inter-node traffic
– Local storage or NFS
– Cloud!
• Integrated cluster solution
ASM
Mem + proc
DB
Mem + proc
DB
Mem + proc
/acfs
Appl. server
Mem + proc
Cluster
Light-weight
Inst1 Inst2
ASM 14
Grid Infrastructure
• Flex ASM
– 5 node-cluster
– Less than 5 nodes run ASM instance
• Database requests file mapping from remote
ASM
ASM
Mem + proc
DB
Mem + proc
ASM
Mem + proc
DB
Mem + proc
ASM
Mem + proc
DB
Mem + proc
ASM
Mem + proc
DB
Mem + proc
ASM
Mem + proc
DB
Mem + proc
Inst1 Inst2
ASM 15
ILM
• Scope
– Historical data – archiving - compression
– Applications usually work on recent data
– Older data may take a lot of place
• Solution pre 12c
– Move data to other tablespaces on other disks
– Change compression level
– Set tablespaces read only
– à Manually, scripts, 3rd party tools, ... 16
ILM – Oracle 12c
• “In-database archive”
– Archive infrequently used data within the database
• By marking data as archived
• Making rows ‘invisible’
– Query can choose to (not) see archived data
• Advanced data optimization
– Automatically move data based on policies
• Other tablespace, read only, compression level
– Online
–
alter table ... compress for query after 3 months of no modification 17
ILM
• Advanced compression
– Faster and smaller
– In-memory scan
• Data not expanded in memory during scan
• Up to 3x faster for low cardinality data
• Heat maps
– Track access (read and write) to tables/partitions/
rows
– Information used for ILM
100%
transparant 18
SQL Enhancements
• Duplicate indexes
– “ORA-01408: such column list already indexed”
– Can have both B-tree and bitmap index on same
column(s)
• WITH-plsql function
– 4-8x faster execution
WITH
function is_number(n varchar2)
return char is
begin
end
select * from
No comments:
Post a Comment