dbTalk Databases Forums  

How to ensure that a checkpoint has occurred and committed transactions are written to the database

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss How to ensure that a checkpoint has occurred and committed transactions are written to the database in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Deepali
 
Posts: n/a

Default How to ensure that a checkpoint has occurred and committed transactions are written to the database - 11-13-2009 , 10:02 AM






How can I ensure that a checkpoint has occurred and
committed transactions are written to the database.
If I stop the database service and take a offline backup of
db file, does a checkpoint occur while the service is being
stopped so that the backup is complete and .db file contains
all the records that are there in the .log file.

Reply With Quote
  #2  
Old   
Glenn Paulley [Sybase iAnywhere]
 
Posts: n/a

Default Re: How to ensure that a checkpoint has occurred and committed transactionsare written to the database - 11-13-2009 , 10:18 AM






Yes - if you stop the server, an implicit checkpoint is performed.

You can manually trigger a checkpoint by issuing a CHECKPOINT statement
(eg. from DBISQL).

Glenn

Deepali wrote:
Quote:
How can I ensure that a checkpoint has occurred and
committed transactions are written to the database.
If I stop the database service and take a offline backup of
.db file, does a checkpoint occur while the service is being
stopped so that the backup is complete and .db file contains
all the records that are there in the .log file.
--
Glenn Paulley
Director, Engineering (Query Processing)
Sybase iAnywhere

Blog: http://iablog.sybase.com/paulley

EBF's and Patches: http://downloads.sybase.com
choose SQL Anywhere Studio >> change 'time frame' to all

To Submit Bug Reports: http://case-express.sybase.com

SQL Anywhere Studio Supported Platforms and Support Status
http://my.sybase.com/detail?id=1002288

Whitepapers, TechDocs, and bug fixes are all available through the
Sybase iAnywhere pages at
http://www.sybase.com/products/datab...chnicalsupport

Reply With Quote
  #3  
Old   
Deepali
 
Posts: n/a

Default Re: How to ensure that a checkpoint has occurred and committed transactions are written to the database - 11-13-2009 , 11:15 AM



Thank You for replying Glenn..

That means if I rebuild this .db file after I stop the
database service and take an offline backup of .db file,
then I do not need to worry about the old transaction log as
they do not need to be applied to the .db file after rebuild
and the new .db file has complete transactions as rebuilding
will start a fresh transaction log.

Does that mean that no transactions are left out if I
rebuild.

thanks again, Deepali

Reply With Quote
  #4  
Old   
Deepali
 
Posts: n/a

Default Re: How to ensure that a checkpoint has occurred and committed transactions are written to the database - 11-16-2009 , 03:42 AM



Thank You So much for replying Mark, Glenn....

regards, Deepali

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.