Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
iti-attunity-sup
Partner - Creator II
Partner - Creator II

[SAP Sybase ASE Source] Why does "trunc log on chkpt" option need to be false ?

Hello.

My Customer is using SAP Sybase ASE as a source.
In following prerequisites, it is stated that "trunc log on chkpt" option need to be false.
https://help.qlik.com/en-US/replicate/November2023/Content/Replicate/Main/SAP%20Sybase%20ASE/prereq_...

Would by tell me the reason why "trunc log on chkpt" option need to be false?

Best Regards.

Labels (1)
1 Solution

Accepted Solutions
john_wang
Support
Support

Hello Team,

Thanks for reaching out to Qlik Community!

Qlik Replicate is transaction log based product. It retrieves data changes from various database transaction log. To make sure the data integration the transaction log must be available prior to Qlik Replicate process them rather than being truncated or purged.

In Sybase ASE source endpoint, setting "trunc log on chkpt" to false is used to disable Sybase's automatic log truncation (i.e. truncate on checkpoint) for the database.

In place of Sybase's automatic log truncation the Replicate task will be configured to periodically
call the "attrep_dumpaction" stored procedure which executes a "dump transaction with truncate_only" command to do the truncation.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

15 Replies
john_wang
Support
Support

Hello Team,

Thanks for reaching out to Qlik Community!

Qlik Replicate is transaction log based product. It retrieves data changes from various database transaction log. To make sure the data integration the transaction log must be available prior to Qlik Replicate process them rather than being truncated or purged.

In Sybase ASE source endpoint, setting "trunc log on chkpt" to false is used to disable Sybase's automatic log truncation (i.e. truncate on checkpoint) for the database.

In place of Sybase's automatic log truncation the Replicate task will be configured to periodically
call the "attrep_dumpaction" stored procedure which executes a "dump transaction with truncate_only" command to do the truncation.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
iti-attunity-sup
Partner - Creator II
Partner - Creator II
Author

Hello John-san

Thank you for your reply.
I have another quetion about this topic.
If it is need to post as new case, please tell me.

Because "second truncation point" is enabled, my customer think if "trunc log on chkpt" set true, log does not be truncated before update "second truncation point".

So, Would tell me concern about if "trunc log on chkpt" set true ?

Best regards.

john_wang
Support
Support

Hello @iti-attunity-sup ,

You are welcome to post questions here always 🙂

However seems I did not get the question well this time. would you please elaborate or provide a sample to help understand the concern.

thanks,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
iti-attunity-sup
Partner - Creator II
Partner - Creator II
Author

Hello John-san.

Thank you for your reply.

My customer want to execute Qlik Replicate task in state of setting "trunc log on chkpt" true.
So, is there any problem to set "trunc log on chkpt" true.

Best Regards.

john_wang
Support
Support

Hello @iti-attunity-sup ,

thanks for the update - setting "trunc log on chkpt" to True means Sybase database can automatic truncate its transaction log  (i.e. truncate on checkpoint) for the database and causes error and/or leads data missing potential risk. This scenarios is not supported.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
iti-attunity-sup
Partner - Creator II
Partner - Creator II
Author

Hello John-san
Thank you for your reply.

Qlik Replicate is set "secondary truncation point" as following
https://help.qlik.com/en-US/replicate/November2023/Content/Replicate/Main/SAP%20Sybase%20ASE/remove_...

So, this prevent truncation of unread transaction logs.
I recognized that this setting is given priority over setting "trunc log on chkpt" true.

Base on above mentioned,
I would like to know problem about setting "trunc log on chkpt" true.

iti-attunity-sup
Partner - Creator II
Partner - Creator II
Author

Hello John-san
It's been a week, how is this situation?

Best Regards.

john_wang
Support
Support

Hello @iti-attunity-sup ,

Seems I did not catch up the previous comments very well. Sorry for the delay.

>> Base on above mentioned,
>> I would like to know problem about setting "trunc log on chkpt" true.

If I understand correctly, you are meaning what's the impact of setting "trunc log on chkpt" to true?

If yes, as we explained, setting "trunc log on chkpt" to True means Sybase database can automatic truncate its transaction log (out of Qlik Replicate control), this is NOT what we expected. Instead, we have to disable the automatic truncation to make sure the transaction logs are available until Replicate consume them. Certainly we have to make sure the transaction logs can be clean up, this is done by endpoint settings Dump the log  & Advance truncation point options.

Feel free to let me know if you need any additional information,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
iti-attunity-sup
Partner - Creator II
Partner - Creator II
Author

Hello John-san
Thank you for your reply.

>setting "trunc log on chkpt" to True means Sybase database can automatic truncate its transaction log
I recognize that by setting "secondary truncation point", Sybase database doesn't truncate unread transaction log.
(Qlik Replicate is setting "secondary truncation point")

And I recognize that setting "secondary truncation point" is given priority over setting "trunc log on chkpt" to true.

What I want to know is following,
Though "secondary truncation point" is set, why "trunc log on chkpt" need to be set true.

Best Regards.