SlideShare una empresa de Scribd logo
1 de 39
Descargar para leer sin conexión
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
What a DBA needs to know about
the differences between Oracle physical and logical
Database replication
Presenter: Mike Donovan
Global Digital Business Development
Dbvisit Software Ltd
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Introduction
Mike Donovan @dbvisitmike
Global Digital Business Development
Been with Dbvisit for 7+ years
Based in Auckland, New Zealand
Past Experience:
• DBA
• Developer/programmer
• Technical presenter
• Speaker at OOW, Collaborate
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Dbvisit Software
• Database replication is our world
• Dedicated software company
• High level of Oracle database expertise
• Deep bench of professional and technical services providers
• HQ in New Zealand, US subsidiary, partners throughout the world
• Worldwide leader in disaster recovery solutions for Oracle Standard Edition
• 7+ years of exceptional growth (since inception)
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Dbvisit product lineup
World-leading Disaster Recovery
Solution for the
Oracle SE database
Affordable Alternative to GoldenGate: –
Data Replication for
Oracle-sourced databases
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Objective
1. Understanding the differences between logical and
physical replication
2. Understanding the advantages and disadvantages
of each
3. Understanding how they work and the underlying
concepts
4. Understanding the use cases of each
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Replication Use cases to consider
Disaster Recovery
DRaaS
Data Distribution
HA
Hybrid cloud
Zero downtime
Migration (cloud)
Reporting Databases
BI
Real time dashboards
Digital business
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Historic Replication options available
1. Trigger based
• Changes to source database are required
• Performance impact
• A lot more maintenance
2. Redo log based
• No changes to source database
• Lower impact to source environment
• Less maintenance
• DDL changes can be replicated
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
What is Redo?
Contains history of all database changes
1. Basic goal: recover database
2. Written from redo log buffer first and then to redo log (after
commit, 3 seconds or 1/3 full)
Redo log buffersDatabase buffers
Redo
Database Files
1
2
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
What is redo
• Online redo: instance/crash recovery
• Archive redo: media recovery
• Every change is written to redo before data files
• Allows to replay changes
• Optimized for recovery and for performance
• Binary format
• Even when dumped to text, still very cryptic
ALTER SYSTEM DUMP LOGFILE 'filename';
• REDO RECORD - Thread:1 RBA: 0x000068.00000015.008c LEN: 0x02e0 VLD: 0x09 CON_UID:
3345156736
• SCN: 0x0000.002d22c4 SUBSCN: 1 07/08/2014 15:58:58
• CHANGE #1 CON_ID:3 TYP:0 CLS:1 AFN:13 DBA:0x034000bb OBJ:95424 SCN:0x0000.00285536
SEQ:2 OP:11.2 ENC:0 RBL:0
• fb: --H-FL-- lb: 0x1 cc: 4
• col 0: [ 7] 54 45 5f 54 45 53 54
• col 1: [ 8] 54 65 73 74 20 6a 6f 62
• CHANGE #2 CON_ID:1 TYP:0 CLS:19 AFN:4 DBA:0x01000090 OBJ:4294967295 SCN:0x0000.002d228d
SEQ:1 OP:5.2 ENC:0 RBL:0
• ktudh redo: slt: 0x0013 sqn: 0x000008d3 flg: 0x0052 siz: 112 fbi: 0
• uba: 0x01003327.0187.04 pxid: 0x0000.000.00000000 pdbid:3345156736
• CHANGE #4 CON_ID:1 TYP:0 CLS:19 AFN:4 DBA:0x01000090 OBJ:4294967295 SCN:0x0000.002d22c4
SEQ:1 OP:5.4 ENC:0 RBL:0
• ktucm redo: slt: 0x0013 sqn: 0x000008d3 srt: 0 sta: 9 flg: 0x2
• CHANGE #5 CON_ID:1 TYP:0 CLS:20 AFN:4 DBA:0x01003327 OBJ:4294967295 SCN:0x0000.002d228c
SEQ:1 OP:5.1 ENC:0 RBL:0
• ktudb redo: siz: 112 spc: 7776 flg: 0x0012 seq: 0x0187 rec: 0x04
• xid: 0x0002.013.000008d3
• ktubl redo: slt: 19 rci: 0 opc: 11.1 [objn: 95424 objd: 95424 tsn: 3]
• Undo type: Regular undo Begin trans Last buffer split: No
• Temp Object: No
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
What is Redo?
Redo will include:
1. Change record. Changes made by Insert, Update, Delete,
Merge (DML)
• Change vectors. These describe the transition of a
database block from one state to another.
2. DDL
Redo does not include:
1. Actual text from DML
2. Select statements
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Redo - Most important
– Does not contain SQL !
– Contains operations to database blocks
– There are 150 different redo operations
– They are in binary format specific to OS and endianness
– They are specific to the database SID and DBID
– They are specific to the Oracle version
– Transactions are not necessarily in order
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Basic structure of redo
• Since 9i, redo is used by LogMiner and Streams
• More information needed:
How do you assemble row pieces together
• How do you identify row if you cannot use rowid
Answer: supplemental logging
• Adds row assembly information
• Adds primary key information (or whatever you specify)
• Oracle also added actual DDL text to redo
This is visible in the text dump
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Two Oracle Replication Types
Based on Oracle Redo:
Physical Replication
• Binary copy
• Example - Data Guard, Dbvisit Standby
Logical Replication
• Logical copy
• Example - GoldenGate, Dbvisit Replicate
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Oracle replication based on redo
Physical Replication
• Use complete redo blocks for replication
• Information is unaltered
• Target applies binary changes (redo blocks)
• Target is in constant “recovery” mode
TargetSource
Redo log buffersDatabase buffers
(Archived)
Redo
Recovery
process
Database files
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Oracle replication based on redo
Logical Replication
• Mining of Redo - Extract information from redo blocks for replication
• Information is altered/transformed into SQL
• SQL is applied at target
• Target is normal read/write database
Source Target
Redo log buffers
Database buffers
(Archived)
Redo
Mine Process Apply Process
SQL
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Two Oracle Replication Types compared
Block changes
Binary parsed
redo
(Archived)
Redo Mine Process Apply Process
Read/Write mode
SQL
Whole redo
Extract Process Recover Process
Recovery mode
Physical Replication
Logical Replication
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Two Oracle Replication Types
1 - Physical Replication
• Use database block level (redo) to keep up to date
• Physically the replicated database is same as source database
• 100% binary copy, structure and data
• Referred to as primary (source) and standby database (target)
• Standby database is in constant recovery mode
• Examples
– Oracle Data Guard (Oracle Enterprise Edition only)
– Dbvisit Standby (Oracle XE, SE1, SE, EE)
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Physical Replication
Advantages
• 100% binary copy, structure and data
– rowid, indexes, FK, security, DB links
• Offload backup to standby database
• Recover data files from standby database
• Applying changes to standby is fast and efficient
• Standby server can have fewer resources
• Easy to create standby database using rman or third party tool
• Easy to manage
• Low admin overhead
• Standby database can be used for read only queries
• Roll reversal or graceful switchover is possible
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Physical Replication
Disadvantages
• Replication is all or nothing
• Same OS must be used
• Same Oracle version must be used
• When Standby database is in recovery mode it is unusable
• NOLOGGING changes break the standby database
• All Archives are needed, no single sequence can be skipped
• Activation (failover) of standby database breaks the link with primary
• Failover can cause data loss
• When standby database is in read only mode, it cannot apply latest changes
(unless you have Active Data Guard)
• No indexes can be added to standby database
• No security settings can be added to standby database
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Two Oracle Replication Types
2 - Logical Replication
• Uses SQL statements to keep database up to date
• Replicated database has the same data
• Separate physical database structure
• Examples:
– Oracle GoldenGate
– Streams
– Dbvisit Replicate
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Logical Replication
Advantages
• Subset of data can be replicated
• Across different OS and Oracle versions
• Target database is normal read-write database
• Different indexes and security policies can be employed
• Target database can be non-Oracle (Hadoop, MySQL MS SQL
etc)
• Target database can be used for other applications
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Logical Replication
Disadvantages
• Not as efficient as physical replication
• Need the same resources as source database (if everything is replicated)
• SQL is applied which can cause potential conflicts and locks
• SQL applied is not the same as on source
• Database not the same structure (tablespaces, indexes, partitions, MV)
• Not everything is replicated (Data types, passwords, sequences, rowid)
• Requires data-instantiation (data is in sync before replication starts)
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Database requirements
Physical replication
• Force logging is recommended
Logical replication
• Force logging is recommended
• Supplemental logging must be turned on
Any changes not recorded in redo will not be replicated !
• Direct load
• APPEND hint in SQL statement
INSERT /*+ APPEND */ INTO emp
SELECT * FROM t_emp;
COMMIT;
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Deeper dive
Logical Replication
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
How does redo log mining logical replication work
1. Redo logs are mined for LCR* as Oracle is writing to the
logs (real time)
2. LCR are pieced together in correct order (ie row chaining,
row migration, RAC)
3. Filtered LCR are written to a file or a queue
4. Transferred to target server
5. Translated to SQL statements
6. Run against target database
* Logical Change Record - describes a change to a row
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Typical logical replication flow
Mine
Mines the redo logs and converts
into a parsed log
PLOG
Parsed logs – binary files specific to
solution (trail file in OGG)
Platform independent
Apply
Converts parsed log data into
target DB native SQL
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Conversion process
Set based SQL operations on the source database are
converted to row-by-row SQL changes on the target database.
Why?
– This is the way that Oracle writes to the Redo
– Redo does not contains SQL, it contains db block changes
Observations:
– SQL is not the same on source as on target
– True for all logical replication based solutions
– Each SQL on target only affects 1 row
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Logical replication principle
Observations:
1. Source SQL updates 2 rows, then 2 individual update
statements are produced
2. PK has been added to the WHERE to ensure row-by-row
3. Price formula has been replaced by hardcoded value
Source Target
update PRICES set PRICE = PRICE -
(PRICE * .10)
where PRODUCT_CAT = 'OLD_STOCK';
update PRICES set PRICE = 10
where PROD_ID = 101;
update PRICES set PRICE = 23
where PROD_ID = 102;
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Considerations with logical based replication
Commit strategies
1. Optimistic commit (do not wait for commit before mining
and applying)
2. Wait for commit before applying (do not wait for commit
before mining)
3. Wait for commit before mining and applying
Examples of products with above strategies:
1. Dbvisit Replicate
2. Streams
3. GoldenGate
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Considerations with logical based replication
Generic
1. Replicated data is same order as source (based on SCN)
2. Transaction integrity is maintained (replication is serial)
3. Be-aware of triggers on target database
4. Atomic transactions are maintained (commit & rollback)
5. Conflict detection warn of data divergence
6. Conflicts pauses the whole replication to ensure integrity
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Deeper dive
Physical Replication
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Standby protection modes
There are three protection modes for the primary database with physical replication:
Maximum Performance: Transfer of redo information to the standby server is asynchronous, so it
does not impact on performance of the primary.
Available in SE & SE1
Maximum Availability: Transactions on the primary do not commit until redo information has been
written to the online redo log and the standby redo logs of at least one standby location.
Not available in SE & SE1
Maximum Protection: Transactions on the primary do not commit until redo information has been
written to the online redo log and the standby redo logs of at least one standby location. If not
suitable standby location is available, the primary database shuts down.
Not available in SE & SE1
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Keeping the standby database up to date
Standby databases are held up to date by applying archive (redo) log files
 Standby database is in constant recovery mode
 For Oracle EE, online redo (using standby redo) or archive logs can be used
 For Oracle SE and SE1, only archive logs are used (no standby redo logs)
 Uses standby controlfile
 Oracle EE
sqlplus> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
 Oracle SE and SE1
sqlplus> recover standby database
 Archive log files from ALL threads are needed with RAC
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Considerations with physical based replication
1. Failover should not be treated lightly (data can be lost)
2. Archive missing or NOLOGGING invalidates standby
database
3. Database patching requires standby database consideration
4. Requires regular DR testing
5. Graceful switchover (or role reversing) is useful for
minimizing downtime during planned maintenance
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Replication Use cases
Disaster Recovery
DRaaS
Data Distribution
HA
Hybrid cloud
Zero downtime
Migration (cloud)
Reporting Databases
BI
Real time dashboards
Digital business
Physical Replication Logical Replication Logical Replication Logical Replication
Logical Replication Physical Replication
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Covered Objective
1. Understand the differences between logical and
physical replication
2. Understand the advantages and disadvantages of
each
3. Understand how they work and the underlying
concepts
4. Understand the use cases of each
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Trusted in 80+ countries…. . .
…. . . By 800+ companies.
© 2 0 1 5 D b v i s i t
S o f t w a r e L i m i t e d |
d b v i s i t . c o m
Thank you - Q&A

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Postgres: The NoSQL Cake You Can Eat
Postgres: The NoSQL Cake You Can EatPostgres: The NoSQL Cake You Can Eat
Postgres: The NoSQL Cake You Can Eat
 
MySQL Cluster Scaling to a Billion Queries
MySQL Cluster Scaling to a Billion QueriesMySQL Cluster Scaling to a Billion Queries
MySQL Cluster Scaling to a Billion Queries
 
Track B-3 解構大數據架構 - 大數據系統的伺服器與網路資源規劃
Track B-3 解構大數據架構 - 大數據系統的伺服器與網路資源規劃Track B-3 解構大數據架構 - 大數據系統的伺服器與網路資源規劃
Track B-3 解構大數據架構 - 大數據系統的伺服器與網路資源規劃
 
10/ EnterpriseDB @ OPEN'16
10/ EnterpriseDB @ OPEN'16 10/ EnterpriseDB @ OPEN'16
10/ EnterpriseDB @ OPEN'16
 
Deep Dive On Intel Optane SSDs And New Server Platforms
Deep Dive On Intel Optane SSDs And New Server PlatformsDeep Dive On Intel Optane SSDs And New Server Platforms
Deep Dive On Intel Optane SSDs And New Server Platforms
 
FAQ
FAQFAQ
FAQ
 
Developing Software for Persistent Memory / Willhalm Thomas (Intel)
Developing Software for Persistent Memory / Willhalm Thomas (Intel)Developing Software for Persistent Memory / Willhalm Thomas (Intel)
Developing Software for Persistent Memory / Willhalm Thomas (Intel)
 
9/ IBM POWER @ OPEN'16
9/ IBM POWER @ OPEN'169/ IBM POWER @ OPEN'16
9/ IBM POWER @ OPEN'16
 
Walk Through a Software Defined Everything PoC
Walk Through a Software Defined Everything PoCWalk Through a Software Defined Everything PoC
Walk Through a Software Defined Everything PoC
 
The Future of Postgres Sharding / Bruce Momjian (PostgreSQL)
The Future of Postgres Sharding / Bruce Momjian (PostgreSQL)The Future of Postgres Sharding / Bruce Momjian (PostgreSQL)
The Future of Postgres Sharding / Bruce Momjian (PostgreSQL)
 
Red Hat® Ceph Storage and Network Solutions for Software Defined Infrastructure
Red Hat® Ceph Storage and Network Solutions for Software Defined InfrastructureRed Hat® Ceph Storage and Network Solutions for Software Defined Infrastructure
Red Hat® Ceph Storage and Network Solutions for Software Defined Infrastructure
 
IBM Power9 Features and Specifications
IBM Power9 Features and SpecificationsIBM Power9 Features and Specifications
IBM Power9 Features and Specifications
 
Integrating data stored in rdbms and hadoop
Integrating data stored in rdbms and hadoopIntegrating data stored in rdbms and hadoop
Integrating data stored in rdbms and hadoop
 
Oracle big data appliance and solutions
Oracle big data appliance and solutionsOracle big data appliance and solutions
Oracle big data appliance and solutions
 
Couchbase Performance Benchmarking
Couchbase Performance BenchmarkingCouchbase Performance Benchmarking
Couchbase Performance Benchmarking
 
Migration DB2 to EDB - Project Experience
 Migration DB2 to EDB - Project Experience Migration DB2 to EDB - Project Experience
Migration DB2 to EDB - Project Experience
 
Leveraging docker for hadoop build automation and big data stack provisioning
Leveraging docker for hadoop build automation and big data stack provisioningLeveraging docker for hadoop build automation and big data stack provisioning
Leveraging docker for hadoop build automation and big data stack provisioning
 
Red hat Storage Day LA - Designing Ceph Clusters Using Intel-Based Hardware
Red hat Storage Day LA - Designing Ceph Clusters Using Intel-Based HardwareRed hat Storage Day LA - Designing Ceph Clusters Using Intel-Based Hardware
Red hat Storage Day LA - Designing Ceph Clusters Using Intel-Based Hardware
 
How can you successfully migrate to hosted private cloud 2020
How can you successfully migrate to hosted private cloud 2020How can you successfully migrate to hosted private cloud 2020
How can you successfully migrate to hosted private cloud 2020
 
Oracle Cloud Infrastructure – Storage
Oracle Cloud Infrastructure – StorageOracle Cloud Infrastructure – Storage
Oracle Cloud Infrastructure – Storage
 

Destacado

[DB tech showcase Tokyo 2015] B37 :オンプレミスからAWS上のSAP HANAまで高信頼DBシステム構築にHAクラスタリ...
[DB tech showcase Tokyo 2015] B37 :オンプレミスからAWS上のSAP HANAまで高信頼DBシステム構築にHAクラスタリ...[DB tech showcase Tokyo 2015] B37 :オンプレミスからAWS上のSAP HANAまで高信頼DBシステム構築にHAクラスタリ...
[DB tech showcase Tokyo 2015] B37 :オンプレミスからAWS上のSAP HANAまで高信頼DBシステム構築にHAクラスタリ...
Funada Yasunobu
 

Destacado (20)

[db tech showcase Tokyo 2015] C27:楽天MySQL Backup Structure by 楽天株式会社 粟田啓介
[db tech showcase Tokyo 2015] C27:楽天MySQL Backup Structure by 楽天株式会社 粟田啓介[db tech showcase Tokyo 2015] C27:楽天MySQL Backup Structure by 楽天株式会社 粟田啓介
[db tech showcase Tokyo 2015] C27:楽天MySQL Backup Structure by 楽天株式会社 粟田啓介
 
[db tech showcase Tokyo 2015] C15:DevOps MySQL in カカクコム~ OSSによる可用性担保とリアルタイムパフ...
[db tech showcase Tokyo 2015] C15:DevOps MySQL in カカクコム~ OSSによる可用性担保とリアルタイムパフ...[db tech showcase Tokyo 2015] C15:DevOps MySQL in カカクコム~ OSSによる可用性担保とリアルタイムパフ...
[db tech showcase Tokyo 2015] C15:DevOps MySQL in カカクコム~ OSSによる可用性担保とリアルタイムパフ...
 
[db tech showcase Tokyo 2015] E15:Hadoop大量データ処理技術と日立匿名化技術によるプライバシー保護とデータ活用 by...
[db tech showcase Tokyo 2015] E15:Hadoop大量データ処理技術と日立匿名化技術によるプライバシー保護とデータ活用 by...[db tech showcase Tokyo 2015] E15:Hadoop大量データ処理技術と日立匿名化技術によるプライバシー保護とデータ活用 by...
[db tech showcase Tokyo 2015] E15:Hadoop大量データ処理技術と日立匿名化技術によるプライバシー保護とデータ活用 by...
 
DBTS2015 Tokyo DBAが知っておくべき最新テクノロジー
DBTS2015 Tokyo DBAが知っておくべき最新テクノロジーDBTS2015 Tokyo DBAが知っておくべき最新テクノロジー
DBTS2015 Tokyo DBAが知っておくべき最新テクノロジー
 
[db tech showcase Tokyo 2015] C17:MySQL Cluster ユーザー事例紹介~JR東日本情報システム様における導入事例...
[db tech showcase Tokyo 2015] C17:MySQL Cluster ユーザー事例紹介~JR東日本情報システム様における導入事例...[db tech showcase Tokyo 2015] C17:MySQL Cluster ユーザー事例紹介~JR東日本情報システム様における導入事例...
[db tech showcase Tokyo 2015] C17:MySQL Cluster ユーザー事例紹介~JR東日本情報システム様における導入事例...
 
[DB tech showcase Tokyo 2015] B37 :オンプレミスからAWS上のSAP HANAまで高信頼DBシステム構築にHAクラスタリ...
[DB tech showcase Tokyo 2015] B37 :オンプレミスからAWS上のSAP HANAまで高信頼DBシステム構築にHAクラスタリ...[DB tech showcase Tokyo 2015] B37 :オンプレミスからAWS上のSAP HANAまで高信頼DBシステム構築にHAクラスタリ...
[DB tech showcase Tokyo 2015] B37 :オンプレミスからAWS上のSAP HANAまで高信頼DBシステム構築にHAクラスタリ...
 
[db tech showcase Tokyo 2015] C32:「データ一貫性にこだわる日立のインメモリ分散KVS~こだわりの理由と実現方法とは~」 ...
[db tech showcase Tokyo 2015] C32:「データ一貫性にこだわる日立のインメモリ分散KVS~こだわりの理由と実現方法とは~」 ...[db tech showcase Tokyo 2015] C32:「データ一貫性にこだわる日立のインメモリ分散KVS~こだわりの理由と実現方法とは~」 ...
[db tech showcase Tokyo 2015] C32:「データ一貫性にこだわる日立のインメモリ分散KVS~こだわりの理由と実現方法とは~」 ...
 
[db tech showcase Tokyo 2015] D13:PCIeフラッシュで、高可用性高性能データベースシステム?! by 株式会社HGSTジ...
[db tech showcase Tokyo 2015] D13:PCIeフラッシュで、高可用性高性能データベースシステム?! by 株式会社HGSTジ...[db tech showcase Tokyo 2015] D13:PCIeフラッシュで、高可用性高性能データベースシステム?! by 株式会社HGSTジ...
[db tech showcase Tokyo 2015] D13:PCIeフラッシュで、高可用性高性能データベースシステム?! by 株式会社HGSTジ...
 
[db tech showcase Tokyo 2015] D32:HPの全方位インメモリDB化に向けた取り組みとSAP HANAインメモリDB の効果を...
[db tech showcase Tokyo 2015] D32:HPの全方位インメモリDB化に向けた取り組みとSAP HANAインメモリDB の効果を...[db tech showcase Tokyo 2015] D32:HPの全方位インメモリDB化に向けた取り組みとSAP HANAインメモリDB の効果を...
[db tech showcase Tokyo 2015] D32:HPの全方位インメモリDB化に向けた取り組みとSAP HANAインメモリDB の効果を...
 
[db tech showcase Tokyo 2015] D23:MySQLはドキュメントデータベースになり、HTTPもしゃべる - MySQL Lab...
[db tech showcase Tokyo 2015] D23:MySQLはドキュメントデータベースになり、HTTPもしゃべる - MySQL Lab...[db tech showcase Tokyo 2015] D23:MySQLはドキュメントデータベースになり、HTTPもしゃべる - MySQL Lab...
[db tech showcase Tokyo 2015] D23:MySQLはドキュメントデータベースになり、HTTPもしゃべる - MySQL Lab...
 
[db tech showcase Tokyo 2015] B34:データの仮想化を具体化するIBMのロジカルデータウェアハウス by 日本アイ・ビー・エ...
[db tech showcase Tokyo 2015] B34:データの仮想化を具体化するIBMのロジカルデータウェアハウス by 日本アイ・ビー・エ...[db tech showcase Tokyo 2015] B34:データの仮想化を具体化するIBMのロジカルデータウェアハウス by 日本アイ・ビー・エ...
[db tech showcase Tokyo 2015] B34:データの仮想化を具体化するIBMのロジカルデータウェアハウス by 日本アイ・ビー・エ...
 
Db tech showcase2015
Db tech showcase2015Db tech showcase2015
Db tech showcase2015
 
Presto in Treasure Data
Presto in Treasure DataPresto in Treasure Data
Presto in Treasure Data
 
[db tech showcase Tokyo 2015] D16:マイケルストーンブレーカー発の超高速データベースで実現する分析基盤の簡単構築・運用ステ...
[db tech showcase Tokyo 2015] D16:マイケルストーンブレーカー発の超高速データベースで実現する分析基盤の簡単構築・運用ステ...[db tech showcase Tokyo 2015] D16:マイケルストーンブレーカー発の超高速データベースで実現する分析基盤の簡単構築・運用ステ...
[db tech showcase Tokyo 2015] D16:マイケルストーンブレーカー発の超高速データベースで実現する分析基盤の簡単構築・運用ステ...
 
Mongodb x business
Mongodb x businessMongodb x business
Mongodb x business
 
[db tech showcase Tokyo 2015] A14:Amazon Redshiftの元となったスケールアウト型カラムナーDB徹底解説 その...
[db tech showcase Tokyo 2015] A14:Amazon Redshiftの元となったスケールアウト型カラムナーDB徹底解説 その...[db tech showcase Tokyo 2015] A14:Amazon Redshiftの元となったスケールアウト型カラムナーDB徹底解説 その...
[db tech showcase Tokyo 2015] A14:Amazon Redshiftの元となったスケールアウト型カラムナーDB徹底解説 その...
 
[db tech showcase Tokyo 2015] C33:ビッグデータ・IoT時代のキーテクノロジー、CEPの「今」を掴む! by 株式会社日立...
[db tech showcase Tokyo 2015] C33:ビッグデータ・IoT時代のキーテクノロジー、CEPの「今」を掴む! by 株式会社日立...[db tech showcase Tokyo 2015] C33:ビッグデータ・IoT時代のキーテクノロジー、CEPの「今」を掴む! by 株式会社日立...
[db tech showcase Tokyo 2015] C33:ビッグデータ・IoT時代のキーテクノロジー、CEPの「今」を掴む! by 株式会社日立...
 
[db tech showcase Tokyo 2015] B24:最高峰の可用性 ~NonStop SQLが止まらない理由~ by 日本ヒューレット・パ...
[db tech showcase Tokyo 2015] B24:最高峰の可用性 ~NonStop SQLが止まらない理由~ by 日本ヒューレット・パ...[db tech showcase Tokyo 2015] B24:最高峰の可用性 ~NonStop SQLが止まらない理由~ by 日本ヒューレット・パ...
[db tech showcase Tokyo 2015] B24:最高峰の可用性 ~NonStop SQLが止まらない理由~ by 日本ヒューレット・パ...
 
[db tech showcase Tokyo 2015] B27:インメモリーDBとスケールアップマシンによりBig Dataの課題を解決する by S...
[db tech showcase Tokyo 2015] B27:インメモリーDBとスケールアップマシンによりBig Dataの課題を解決する by S...[db tech showcase Tokyo 2015] B27:インメモリーDBとスケールアップマシンによりBig Dataの課題を解決する by S...
[db tech showcase Tokyo 2015] B27:インメモリーDBとスケールアップマシンによりBig Dataの課題を解決する by S...
 
[db tech showcase Tokyo 2015] C14:30万のユーザ部門を抱える日立、情シスの「理想と現実」 by 株式会社日立製作所 情報...
[db tech showcase Tokyo 2015] C14:30万のユーザ部門を抱える日立、情シスの「理想と現実」 by 株式会社日立製作所 情報...[db tech showcase Tokyo 2015] C14:30万のユーザ部門を抱える日立、情シスの「理想と現実」 by 株式会社日立製作所 情報...
[db tech showcase Tokyo 2015] C14:30万のユーザ部門を抱える日立、情シスの「理想と現実」 by 株式会社日立製作所 情報...
 

Similar a [db tech showcase Tokyo 2015] D25:The difference between logical and physical replication on Oracle (ロジカルレプリケーションとフィジカルレプリケーションを使いこなす) by Dbvisit Software Limited. Mike Donovan

Are the Native SQL Server Backup Utilities Holding You Back?
Are the Native SQL Server Backup Utilities Holding You Back?Are the Native SQL Server Backup Utilities Holding You Back?
Are the Native SQL Server Backup Utilities Holding You Back?
SQLDBApros
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
Alfredo Abate
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]
shuwutong
 

Similar a [db tech showcase Tokyo 2015] D25:The difference between logical and physical replication on Oracle (ロジカルレプリケーションとフィジカルレプリケーションを使いこなす) by Dbvisit Software Limited. Mike Donovan (20)

Why everyone speaks about DR but only few use it?
Why everyone speaks about DR but only few use it?Why everyone speaks about DR but only few use it?
Why everyone speaks about DR but only few use it?
 
The Good, The Bad and the Ugly
The Good, The Bad and the UglyThe Good, The Bad and the Ugly
The Good, The Bad and the Ugly
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)
 
database backup and recovery
database backup and recoverydatabase backup and recovery
database backup and recovery
 
Sql server tips from the field
Sql server tips from the fieldSql server tips from the field
Sql server tips from the field
 
Are the Native SQL Server Backup Utilities Holding You Back?
Are the Native SQL Server Backup Utilities Holding You Back?Are the Native SQL Server Backup Utilities Holding You Back?
Are the Native SQL Server Backup Utilities Holding You Back?
 
Things learned from OpenWorld 2013
Things learned from OpenWorld 2013Things learned from OpenWorld 2013
Things learned from OpenWorld 2013
 
Dr and ha solutions with sql server azure
Dr and ha solutions with sql server azureDr and ha solutions with sql server azure
Dr and ha solutions with sql server azure
 
Vijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresVijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-features
 
Achieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAAAchieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAA
 
Oracle DataGuard Online Training in USA | INDIA
Oracle DataGuard Online Training in USA | INDIAOracle DataGuard Online Training in USA | INDIA
Oracle DataGuard Online Training in USA | INDIA
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
 
NA14G05 - A DB2 DBAs Guide to pureScale.pdf
NA14G05 - A DB2 DBAs Guide to pureScale.pdfNA14G05 - A DB2 DBAs Guide to pureScale.pdf
NA14G05 - A DB2 DBAs Guide to pureScale.pdf
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]
 
Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2
 
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
 
Oracle plsql code refactoring - from anonymous block to stored procedure
Oracle plsql code refactoring - from anonymous block to stored procedureOracle plsql code refactoring - from anonymous block to stored procedure
Oracle plsql code refactoring - from anonymous block to stored procedure
 
Apouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12cApouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12c
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQLA Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQL
 
Liquibase få kontroll på dina databasförändringar
Liquibase   få kontroll på dina databasförändringarLiquibase   få kontroll på dina databasförändringar
Liquibase få kontroll på dina databasförändringar
 

Más de Insight Technology, Inc.

コモディティサーバー3台で作る高速処理 “ハイパー・コンバージド・データベース・インフラストラクチャー(HCDI)” システム『Insight Qube』...
コモディティサーバー3台で作る高速処理 “ハイパー・コンバージド・データベース・インフラストラクチャー(HCDI)” システム『Insight Qube』...コモディティサーバー3台で作る高速処理 “ハイパー・コンバージド・データベース・インフラストラクチャー(HCDI)” システム『Insight Qube』...
コモディティサーバー3台で作る高速処理 “ハイパー・コンバージド・データベース・インフラストラクチャー(HCDI)” システム『Insight Qube』...
Insight Technology, Inc.
 

Más de Insight Technology, Inc. (20)

グラフデータベースは如何に自然言語を理解するか?
グラフデータベースは如何に自然言語を理解するか?グラフデータベースは如何に自然言語を理解するか?
グラフデータベースは如何に自然言語を理解するか?
 
Docker and the Oracle Database
Docker and the Oracle DatabaseDocker and the Oracle Database
Docker and the Oracle Database
 
Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~
Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~
Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~
 
事例を通じて機械学習とは何かを説明する
事例を通じて機械学習とは何かを説明する事例を通じて機械学習とは何かを説明する
事例を通じて機械学習とは何かを説明する
 
仮想通貨ウォレットアプリで理解するデータストアとしてのブロックチェーン
仮想通貨ウォレットアプリで理解するデータストアとしてのブロックチェーン仮想通貨ウォレットアプリで理解するデータストアとしてのブロックチェーン
仮想通貨ウォレットアプリで理解するデータストアとしてのブロックチェーン
 
MBAAで覚えるDBREの大事なおしごと
MBAAで覚えるDBREの大事なおしごとMBAAで覚えるDBREの大事なおしごと
MBAAで覚えるDBREの大事なおしごと
 
グラフデータベースは如何に自然言語を理解するか?
グラフデータベースは如何に自然言語を理解するか?グラフデータベースは如何に自然言語を理解するか?
グラフデータベースは如何に自然言語を理解するか?
 
DBREから始めるデータベースプラットフォーム
DBREから始めるデータベースプラットフォームDBREから始めるデータベースプラットフォーム
DBREから始めるデータベースプラットフォーム
 
SQL Server エンジニアのためのコンテナ入門
SQL Server エンジニアのためのコンテナ入門SQL Server エンジニアのためのコンテナ入門
SQL Server エンジニアのためのコンテナ入門
 
Lunch & Learn, AWS NoSQL Services
Lunch & Learn, AWS NoSQL ServicesLunch & Learn, AWS NoSQL Services
Lunch & Learn, AWS NoSQL Services
 
db tech showcase2019オープニングセッション @ 森田 俊哉
db tech showcase2019オープニングセッション @ 森田 俊哉 db tech showcase2019オープニングセッション @ 森田 俊哉
db tech showcase2019オープニングセッション @ 森田 俊哉
 
db tech showcase2019 オープニングセッション @ 石川 雅也
db tech showcase2019 オープニングセッション @ 石川 雅也db tech showcase2019 オープニングセッション @ 石川 雅也
db tech showcase2019 オープニングセッション @ 石川 雅也
 
db tech showcase2019 オープニングセッション @ マイナー・アレン・パーカー
db tech showcase2019 オープニングセッション @ マイナー・アレン・パーカー db tech showcase2019 オープニングセッション @ マイナー・アレン・パーカー
db tech showcase2019 オープニングセッション @ マイナー・アレン・パーカー
 
難しいアプリケーション移行、手軽に試してみませんか?
難しいアプリケーション移行、手軽に試してみませんか?難しいアプリケーション移行、手軽に試してみませんか?
難しいアプリケーション移行、手軽に試してみませんか?
 
Attunityのソリューションと異種データベース・クラウド移行事例のご紹介
Attunityのソリューションと異種データベース・クラウド移行事例のご紹介Attunityのソリューションと異種データベース・クラウド移行事例のご紹介
Attunityのソリューションと異種データベース・クラウド移行事例のご紹介
 
そのデータベース、クラウドで使ってみませんか?
そのデータベース、クラウドで使ってみませんか?そのデータベース、クラウドで使ってみませんか?
そのデータベース、クラウドで使ってみませんか?
 
コモディティサーバー3台で作る高速処理 “ハイパー・コンバージド・データベース・インフラストラクチャー(HCDI)” システム『Insight Qube』...
コモディティサーバー3台で作る高速処理 “ハイパー・コンバージド・データベース・インフラストラクチャー(HCDI)” システム『Insight Qube』...コモディティサーバー3台で作る高速処理 “ハイパー・コンバージド・データベース・インフラストラクチャー(HCDI)” システム『Insight Qube』...
コモディティサーバー3台で作る高速処理 “ハイパー・コンバージド・データベース・インフラストラクチャー(HCDI)” システム『Insight Qube』...
 
複数DBのバックアップ・切り戻し運用手順が異なって大変?!運用性の大幅改善、その先に。。
複数DBのバックアップ・切り戻し運用手順が異なって大変?!運用性の大幅改善、その先に。。 複数DBのバックアップ・切り戻し運用手順が異なって大変?!運用性の大幅改善、その先に。。
複数DBのバックアップ・切り戻し運用手順が異なって大変?!運用性の大幅改善、その先に。。
 
Attunity社のソリューションの日本国内外適用事例及びロードマップ紹介[ATTUNITY & インサイトテクノロジー IoT / Big Data フ...
Attunity社のソリューションの日本国内外適用事例及びロードマップ紹介[ATTUNITY & インサイトテクノロジー IoT / Big Data フ...Attunity社のソリューションの日本国内外適用事例及びロードマップ紹介[ATTUNITY & インサイトテクノロジー IoT / Big Data フ...
Attunity社のソリューションの日本国内外適用事例及びロードマップ紹介[ATTUNITY & インサイトテクノロジー IoT / Big Data フ...
 
レガシーに埋もれたデータをリアルタイムでクラウドへ [ATTUNITY & インサイトテクノロジー IoT / Big Data フォーラム 2018]
レガシーに埋もれたデータをリアルタイムでクラウドへ [ATTUNITY & インサイトテクノロジー IoT / Big Data フォーラム 2018]レガシーに埋もれたデータをリアルタイムでクラウドへ [ATTUNITY & インサイトテクノロジー IoT / Big Data フォーラム 2018]
レガシーに埋もれたデータをリアルタイムでクラウドへ [ATTUNITY & インサイトテクノロジー IoT / Big Data フォーラム 2018]
 

Último

Último (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

[db tech showcase Tokyo 2015] D25:The difference between logical and physical replication on Oracle (ロジカルレプリケーションとフィジカルレプリケーションを使いこなす) by Dbvisit Software Limited. Mike Donovan

  • 1. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m What a DBA needs to know about the differences between Oracle physical and logical Database replication Presenter: Mike Donovan Global Digital Business Development Dbvisit Software Ltd
  • 2. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Introduction Mike Donovan @dbvisitmike Global Digital Business Development Been with Dbvisit for 7+ years Based in Auckland, New Zealand Past Experience: • DBA • Developer/programmer • Technical presenter • Speaker at OOW, Collaborate
  • 3. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Dbvisit Software • Database replication is our world • Dedicated software company • High level of Oracle database expertise • Deep bench of professional and technical services providers • HQ in New Zealand, US subsidiary, partners throughout the world • Worldwide leader in disaster recovery solutions for Oracle Standard Edition • 7+ years of exceptional growth (since inception)
  • 4. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Dbvisit product lineup World-leading Disaster Recovery Solution for the Oracle SE database Affordable Alternative to GoldenGate: – Data Replication for Oracle-sourced databases
  • 5. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Objective 1. Understanding the differences between logical and physical replication 2. Understanding the advantages and disadvantages of each 3. Understanding how they work and the underlying concepts 4. Understanding the use cases of each
  • 6. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Replication Use cases to consider Disaster Recovery DRaaS Data Distribution HA Hybrid cloud Zero downtime Migration (cloud) Reporting Databases BI Real time dashboards Digital business
  • 7. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Historic Replication options available 1. Trigger based • Changes to source database are required • Performance impact • A lot more maintenance 2. Redo log based • No changes to source database • Lower impact to source environment • Less maintenance • DDL changes can be replicated
  • 8. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m What is Redo? Contains history of all database changes 1. Basic goal: recover database 2. Written from redo log buffer first and then to redo log (after commit, 3 seconds or 1/3 full) Redo log buffersDatabase buffers Redo Database Files 1 2
  • 9. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m What is redo • Online redo: instance/crash recovery • Archive redo: media recovery • Every change is written to redo before data files • Allows to replay changes • Optimized for recovery and for performance • Binary format • Even when dumped to text, still very cryptic ALTER SYSTEM DUMP LOGFILE 'filename';
  • 10. • REDO RECORD - Thread:1 RBA: 0x000068.00000015.008c LEN: 0x02e0 VLD: 0x09 CON_UID: 3345156736 • SCN: 0x0000.002d22c4 SUBSCN: 1 07/08/2014 15:58:58 • CHANGE #1 CON_ID:3 TYP:0 CLS:1 AFN:13 DBA:0x034000bb OBJ:95424 SCN:0x0000.00285536 SEQ:2 OP:11.2 ENC:0 RBL:0 • fb: --H-FL-- lb: 0x1 cc: 4 • col 0: [ 7] 54 45 5f 54 45 53 54 • col 1: [ 8] 54 65 73 74 20 6a 6f 62 • CHANGE #2 CON_ID:1 TYP:0 CLS:19 AFN:4 DBA:0x01000090 OBJ:4294967295 SCN:0x0000.002d228d SEQ:1 OP:5.2 ENC:0 RBL:0 • ktudh redo: slt: 0x0013 sqn: 0x000008d3 flg: 0x0052 siz: 112 fbi: 0 • uba: 0x01003327.0187.04 pxid: 0x0000.000.00000000 pdbid:3345156736 • CHANGE #4 CON_ID:1 TYP:0 CLS:19 AFN:4 DBA:0x01000090 OBJ:4294967295 SCN:0x0000.002d22c4 SEQ:1 OP:5.4 ENC:0 RBL:0 • ktucm redo: slt: 0x0013 sqn: 0x000008d3 srt: 0 sta: 9 flg: 0x2 • CHANGE #5 CON_ID:1 TYP:0 CLS:20 AFN:4 DBA:0x01003327 OBJ:4294967295 SCN:0x0000.002d228c SEQ:1 OP:5.1 ENC:0 RBL:0 • ktudb redo: siz: 112 spc: 7776 flg: 0x0012 seq: 0x0187 rec: 0x04 • xid: 0x0002.013.000008d3 • ktubl redo: slt: 19 rci: 0 opc: 11.1 [objn: 95424 objd: 95424 tsn: 3] • Undo type: Regular undo Begin trans Last buffer split: No • Temp Object: No
  • 11. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m What is Redo? Redo will include: 1. Change record. Changes made by Insert, Update, Delete, Merge (DML) • Change vectors. These describe the transition of a database block from one state to another. 2. DDL Redo does not include: 1. Actual text from DML 2. Select statements
  • 12. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Redo - Most important – Does not contain SQL ! – Contains operations to database blocks – There are 150 different redo operations – They are in binary format specific to OS and endianness – They are specific to the database SID and DBID – They are specific to the Oracle version – Transactions are not necessarily in order
  • 13. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Basic structure of redo • Since 9i, redo is used by LogMiner and Streams • More information needed: How do you assemble row pieces together • How do you identify row if you cannot use rowid Answer: supplemental logging • Adds row assembly information • Adds primary key information (or whatever you specify) • Oracle also added actual DDL text to redo This is visible in the text dump
  • 14. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Two Oracle Replication Types Based on Oracle Redo: Physical Replication • Binary copy • Example - Data Guard, Dbvisit Standby Logical Replication • Logical copy • Example - GoldenGate, Dbvisit Replicate
  • 15. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Oracle replication based on redo Physical Replication • Use complete redo blocks for replication • Information is unaltered • Target applies binary changes (redo blocks) • Target is in constant “recovery” mode TargetSource Redo log buffersDatabase buffers (Archived) Redo Recovery process Database files
  • 16. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Oracle replication based on redo Logical Replication • Mining of Redo - Extract information from redo blocks for replication • Information is altered/transformed into SQL • SQL is applied at target • Target is normal read/write database Source Target Redo log buffers Database buffers (Archived) Redo Mine Process Apply Process SQL
  • 17. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Two Oracle Replication Types compared Block changes Binary parsed redo (Archived) Redo Mine Process Apply Process Read/Write mode SQL Whole redo Extract Process Recover Process Recovery mode Physical Replication Logical Replication
  • 18. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Two Oracle Replication Types 1 - Physical Replication • Use database block level (redo) to keep up to date • Physically the replicated database is same as source database • 100% binary copy, structure and data • Referred to as primary (source) and standby database (target) • Standby database is in constant recovery mode • Examples – Oracle Data Guard (Oracle Enterprise Edition only) – Dbvisit Standby (Oracle XE, SE1, SE, EE)
  • 19. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Physical Replication Advantages • 100% binary copy, structure and data – rowid, indexes, FK, security, DB links • Offload backup to standby database • Recover data files from standby database • Applying changes to standby is fast and efficient • Standby server can have fewer resources • Easy to create standby database using rman or third party tool • Easy to manage • Low admin overhead • Standby database can be used for read only queries • Roll reversal or graceful switchover is possible
  • 20. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Physical Replication Disadvantages • Replication is all or nothing • Same OS must be used • Same Oracle version must be used • When Standby database is in recovery mode it is unusable • NOLOGGING changes break the standby database • All Archives are needed, no single sequence can be skipped • Activation (failover) of standby database breaks the link with primary • Failover can cause data loss • When standby database is in read only mode, it cannot apply latest changes (unless you have Active Data Guard) • No indexes can be added to standby database • No security settings can be added to standby database
  • 21. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Two Oracle Replication Types 2 - Logical Replication • Uses SQL statements to keep database up to date • Replicated database has the same data • Separate physical database structure • Examples: – Oracle GoldenGate – Streams – Dbvisit Replicate
  • 22. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Logical Replication Advantages • Subset of data can be replicated • Across different OS and Oracle versions • Target database is normal read-write database • Different indexes and security policies can be employed • Target database can be non-Oracle (Hadoop, MySQL MS SQL etc) • Target database can be used for other applications
  • 23. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Logical Replication Disadvantages • Not as efficient as physical replication • Need the same resources as source database (if everything is replicated) • SQL is applied which can cause potential conflicts and locks • SQL applied is not the same as on source • Database not the same structure (tablespaces, indexes, partitions, MV) • Not everything is replicated (Data types, passwords, sequences, rowid) • Requires data-instantiation (data is in sync before replication starts)
  • 24. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Database requirements Physical replication • Force logging is recommended Logical replication • Force logging is recommended • Supplemental logging must be turned on Any changes not recorded in redo will not be replicated ! • Direct load • APPEND hint in SQL statement INSERT /*+ APPEND */ INTO emp SELECT * FROM t_emp; COMMIT;
  • 25. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Deeper dive Logical Replication
  • 26. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m How does redo log mining logical replication work 1. Redo logs are mined for LCR* as Oracle is writing to the logs (real time) 2. LCR are pieced together in correct order (ie row chaining, row migration, RAC) 3. Filtered LCR are written to a file or a queue 4. Transferred to target server 5. Translated to SQL statements 6. Run against target database * Logical Change Record - describes a change to a row
  • 27. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Typical logical replication flow Mine Mines the redo logs and converts into a parsed log PLOG Parsed logs – binary files specific to solution (trail file in OGG) Platform independent Apply Converts parsed log data into target DB native SQL
  • 28. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Conversion process Set based SQL operations on the source database are converted to row-by-row SQL changes on the target database. Why? – This is the way that Oracle writes to the Redo – Redo does not contains SQL, it contains db block changes Observations: – SQL is not the same on source as on target – True for all logical replication based solutions – Each SQL on target only affects 1 row
  • 29. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Logical replication principle Observations: 1. Source SQL updates 2 rows, then 2 individual update statements are produced 2. PK has been added to the WHERE to ensure row-by-row 3. Price formula has been replaced by hardcoded value Source Target update PRICES set PRICE = PRICE - (PRICE * .10) where PRODUCT_CAT = 'OLD_STOCK'; update PRICES set PRICE = 10 where PROD_ID = 101; update PRICES set PRICE = 23 where PROD_ID = 102;
  • 30. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Considerations with logical based replication Commit strategies 1. Optimistic commit (do not wait for commit before mining and applying) 2. Wait for commit before applying (do not wait for commit before mining) 3. Wait for commit before mining and applying Examples of products with above strategies: 1. Dbvisit Replicate 2. Streams 3. GoldenGate
  • 31. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Considerations with logical based replication Generic 1. Replicated data is same order as source (based on SCN) 2. Transaction integrity is maintained (replication is serial) 3. Be-aware of triggers on target database 4. Atomic transactions are maintained (commit & rollback) 5. Conflict detection warn of data divergence 6. Conflicts pauses the whole replication to ensure integrity
  • 32. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Deeper dive Physical Replication
  • 33. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Standby protection modes There are three protection modes for the primary database with physical replication: Maximum Performance: Transfer of redo information to the standby server is asynchronous, so it does not impact on performance of the primary. Available in SE & SE1 Maximum Availability: Transactions on the primary do not commit until redo information has been written to the online redo log and the standby redo logs of at least one standby location. Not available in SE & SE1 Maximum Protection: Transactions on the primary do not commit until redo information has been written to the online redo log and the standby redo logs of at least one standby location. If not suitable standby location is available, the primary database shuts down. Not available in SE & SE1
  • 34. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Keeping the standby database up to date Standby databases are held up to date by applying archive (redo) log files  Standby database is in constant recovery mode  For Oracle EE, online redo (using standby redo) or archive logs can be used  For Oracle SE and SE1, only archive logs are used (no standby redo logs)  Uses standby controlfile  Oracle EE sqlplus> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;  Oracle SE and SE1 sqlplus> recover standby database  Archive log files from ALL threads are needed with RAC
  • 35. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Considerations with physical based replication 1. Failover should not be treated lightly (data can be lost) 2. Archive missing or NOLOGGING invalidates standby database 3. Database patching requires standby database consideration 4. Requires regular DR testing 5. Graceful switchover (or role reversing) is useful for minimizing downtime during planned maintenance
  • 36. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Replication Use cases Disaster Recovery DRaaS Data Distribution HA Hybrid cloud Zero downtime Migration (cloud) Reporting Databases BI Real time dashboards Digital business Physical Replication Logical Replication Logical Replication Logical Replication Logical Replication Physical Replication
  • 37. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Covered Objective 1. Understand the differences between logical and physical replication 2. Understand the advantages and disadvantages of each 3. Understand how they work and the underlying concepts 4. Understand the use cases of each
  • 38. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Trusted in 80+ countries…. . . …. . . By 800+ companies.
  • 39. © 2 0 1 5 D b v i s i t S o f t w a r e L i m i t e d | d b v i s i t . c o m Thank you - Q&A