Transaction
 A logical unit of work that consists of one or more SQL statements.
Transaction Management
 One of the mo...
Transaction’s durability
 Property that committed transaction has to be guaranteed against any kind
of system failure be...
Transaction’s durability and a recovery
Datafile
Client
UPDATE t1
SET c1=20
WHERE c1=10
Memory TBSLog Buffer
Datafile
Log...
How to configure Durability Level
 Configure it from a file called ‘altibae.properties’
 COMMIT_WRITE_WAIT_MODE & LOG_B...
Performance Based
 Because the log buffer is stored in the OS kernel area, even if the
ALTIBASE HDB process terminates a...
Safety Based
 Records log into the process area of log buffer and guarantees saving into
physical log files thus guarant...
Upcoming SlideShare
Loading in …5
×

[Altibase] 5 durability

199 views

Published on

durability

Published in: Software
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
199
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

[Altibase] 5 durability

  1. 1. Transaction  A logical unit of work that consists of one or more SQL statements. Transaction Management  One of the most fundamental functions of database that controls the concurrency of user’s transaction and maintains the data consistency Condition of transaction integrity  Atomicity  Consistency  Isolation  Durability
  2. 2. Transaction’s durability  Property that committed transaction has to be guaranteed against any kind of system failure before modification of database object is flushed into the disk. This is when the DBMS sent a commit response to the user  DBMS manages log records to provide durability of the transaction  The log records can cause disk I/O and which can also lead to reduction of performance by so-called bottleneck of transaction handling  There is a trade-off relationship between safety and a performance in a perfect durability of the transaction and a performance of transaction processing
  3. 3. Transaction’s durability and a recovery Datafile Client UPDATE t1 SET c1=20 WHERE c1=10 Memory TBSLog Buffer Datafile Logfile 10 Update 10  20 10 Flush Abnormal Shutdown Commit Memory TBSLog Buffer Datafile 10 SERVER Restart Restart Recovery 1020 Update 10  20 Commit log Commit log Commit Success Logfile Update 10  20 Commit log 20
  4. 4. How to configure Durability Level  Configure it from a file called ‘altibae.properties’  COMMIT_WRITE_WAIT_MODE & LOG_BUFFER_TYPE  DB starts up with the configured Durability Level  Property cannot be modified while DB is operating  Async/Sync  COMMIT_WRITE_WAIT_MODE = 0 (Async)  COMMIT_WRITE_WAIT_MODE = 1 (Sync)  Log Buffer Type  LOG_BUFFER_TYPE = 0 (OS Kernel)  LOG_BUFFER_TYPE = 1 (Altibase Process)
  5. 5. Performance Based  Because the log buffer is stored in the OS kernel area, even if the ALTIBASE HDB process terminates abnormally, logs for committed transactions are written to log files by the OS  Transaction durability is guaranteed except in the event of an OS crash Client UPDATE t1 SET c1=20 WHERE c1=10 Memory TBS OS Kernel Log Buffer 10 1020 Datafile ALTIBASE HDB Process OS Logfile Update 10  20 Commit log Update 10  20 Commit Commit Success Commit log
  6. 6. Safety Based  Records log into the process area of log buffer and guarantees saving into physical log files thus guarantees durability although Altibase has failures itself  Perfect durability of transaction in any kinds of system failures as all logs are recorded into log file but it has slowest performance out of all durability levels Client UPDATE t1 SET c1=20 WHERE c1=10 Memory TBS 10 10 Datafile ALTIBASE HDB Process OS 20 Log Buffer Logfile Update 10  20 Commit log Update 10  20 Commit Commit Success Commit log

×