Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
RamdasP
Contributor II
Contributor II

Archive Log Date & Time

Hi,

We have an Oracle DB whose archive logs are mined through Qlik Replicate. Is there an API in Qlik Replicate to find out the time up to which Qlik Replicate has processed the archive log.

This is to ensure that if an ETL process is kicked off at 4 AM all the delta's (from the source DB) up to 4 AM has been processed by Qlik Replicate.

Kind Regards

Ramdas

Labels (1)
1 Solution

Accepted Solutions
Heinvandenheuvel
Specialist III
Specialist III

You can use 'current date-time' minus 'source-latency' to determine how far the logs have been processed.

The latency can be obtained through the GetTaskDetails EnterpriseManager  API reponse 

"cdc_latency":{ "source_latency":"{int32}",  "total_latency":"{int32}", }

API Guide - Qlik Enterprise Manager , November 2020 SR1 562 Enterprise Manager REST API

That value can also be found using REPCTL  GETTASKSTATUS command line output.

Alternatively you could scan the teptask_xxx.log for the task looking for lines like:

>>>  Start processing archive Redo log sequence 76203

Combine the information with first_time/last_time/sequence# from Oracle's v$archived_log

Cheers,

Hein.

 

 

View solution in original post

1 Reply
Heinvandenheuvel
Specialist III
Specialist III

You can use 'current date-time' minus 'source-latency' to determine how far the logs have been processed.

The latency can be obtained through the GetTaskDetails EnterpriseManager  API reponse 

"cdc_latency":{ "source_latency":"{int32}",  "total_latency":"{int32}", }

API Guide - Qlik Enterprise Manager , November 2020 SR1 562 Enterprise Manager REST API

That value can also be found using REPCTL  GETTASKSTATUS command line output.

Alternatively you could scan the teptask_xxx.log for the task looking for lines like:

>>>  Start processing archive Redo log sequence 76203

Combine the information with first_time/last_time/sequence# from Oracle's v$archived_log

Cheers,

Hein.