<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Qlik Replicate: Best Practices and Recovery Steps for Redo Log Retention and Usage in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Best-Practices-and-Recovery-Steps-for-Redo-Log/ta-p/2531106</link>
    <description>&lt;P&gt;&lt;SPAN&gt;This article outlines recommended retention policies for Oracle redo logs and provides detailed recovery steps in scenarios where redo logs are needed. It includes guidance on preserving logs, identifying stream positions, verifying log availability, and using SCN-based recovery with SQL_REDO extraction for issue resolution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Generally, Qlik recommends a 24-hour retention period for redo logs, but this can vary depending on the storage capacity and backup policies of each organization, as they have different requirements.&lt;/P&gt;
&lt;P&gt;When customers back up their redo logs, they typically retain backups for at least 2 weeks to 1 month. This allows them to restore the logs if necessary. The specific policy regarding the retention of redo logs in backup media should be clarified with the customer.&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Steps to Take When Redo Logs Are Required for Recovery&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Preserve the Redo Logs: When an incident occurs, it’s critical to preserve the redo logs as quickly as possible. This ensures that they can be replayed if necessary.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Identify the Stream Position:&amp;nbsp;&lt;/SPAN&gt;First, identify the stream position of the record that is failing. You can use the task log to locate the problematic record and its corresponding stream position.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Verify Redo Log Existence:&amp;nbsp;&lt;/SPAN&gt;Once you have the stream position, determine the corresponding redo log sequence number and thread number. Verify whether the redo log still exists on disk.&lt;BR /&gt;&lt;BR /&gt;If it exists on disk, copy it to a different filesystem to ensure it is not deleted by RMAN backups.&lt;BR /&gt;&lt;BR /&gt;If the redo log has already been deleted, you will need to restore it from backup media. The DBA can assist in restoring the file from backup.&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Replay the Redo Logs&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Locate the Redo Log File: Once the redo log is available, query the v$archived_log view to find where the redo log file is located. You can use the following SQL:&lt;BR /&gt;
&lt;PRE&gt;SELECT name, sequence#, thread#, first_change#&lt;BR /&gt;FROM v$archived_log&lt;BR /&gt;WHERE sequence# = [sequence#] AND thread# = [thread#];&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Get the SCN (System Change Number): Use the first_change# value from the query above as the starting point for the redo log recovery.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Create a New Task in Replication: In your replication setup, create a new task and add the affected table. In the advanced options, provide the SCN value from the first_change# column, which marks the point where the task should start.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Verify Reproduction:&amp;nbsp;&lt;/SPAN&gt;After setting the SCN, verify whether you can reproduce the issue. If you can, proceed with the next step.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Log Mining and SQL_REDO:&amp;nbsp;&lt;/SPAN&gt;Use standard log mining to extract the SQL_REDO statements from the redo logs. These can be found in the V$logmnr_contents view. The SQL_REDO statements will provide the actual SQL that was executed, which will allow you to check if all column data was included in the redo log.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;By following these steps, you can ensure proper recovery from redo logs and address any issues related to missing or inconsistent data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 17 Sep 2025 13:30:16 GMT</pubDate>
    <dc:creator>narendersarva</dc:creator>
    <dc:date>2025-09-17T13:30:16Z</dc:date>
    <item>
      <title>Qlik Replicate: Best Practices and Recovery Steps for Redo Log Retention and Usage</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Best-Practices-and-Recovery-Steps-for-Redo-Log/ta-p/2531106</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This article outlines recommended retention policies for Oracle redo logs and provides detailed recovery steps in scenarios where redo logs are needed. It includes guidance on preserving logs, identifying stream positions, verifying log availability, and using SCN-based recovery with SQL_REDO extraction for issue resolution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Generally, Qlik recommends a 24-hour retention period for redo logs, but this can vary depending on the storage capacity and backup policies of each organization, as they have different requirements.&lt;/P&gt;
&lt;P&gt;When customers back up their redo logs, they typically retain backups for at least 2 weeks to 1 month. This allows them to restore the logs if necessary. The specific policy regarding the retention of redo logs in backup media should be clarified with the customer.&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Steps to Take When Redo Logs Are Required for Recovery&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Preserve the Redo Logs: When an incident occurs, it’s critical to preserve the redo logs as quickly as possible. This ensures that they can be replayed if necessary.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Identify the Stream Position:&amp;nbsp;&lt;/SPAN&gt;First, identify the stream position of the record that is failing. You can use the task log to locate the problematic record and its corresponding stream position.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Verify Redo Log Existence:&amp;nbsp;&lt;/SPAN&gt;Once you have the stream position, determine the corresponding redo log sequence number and thread number. Verify whether the redo log still exists on disk.&lt;BR /&gt;&lt;BR /&gt;If it exists on disk, copy it to a different filesystem to ensure it is not deleted by RMAN backups.&lt;BR /&gt;&lt;BR /&gt;If the redo log has already been deleted, you will need to restore it from backup media. The DBA can assist in restoring the file from backup.&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Replay the Redo Logs&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Locate the Redo Log File: Once the redo log is available, query the v$archived_log view to find where the redo log file is located. You can use the following SQL:&lt;BR /&gt;
&lt;PRE&gt;SELECT name, sequence#, thread#, first_change#&lt;BR /&gt;FROM v$archived_log&lt;BR /&gt;WHERE sequence# = [sequence#] AND thread# = [thread#];&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Get the SCN (System Change Number): Use the first_change# value from the query above as the starting point for the redo log recovery.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Create a New Task in Replication: In your replication setup, create a new task and add the affected table. In the advanced options, provide the SCN value from the first_change# column, which marks the point where the task should start.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Verify Reproduction:&amp;nbsp;&lt;/SPAN&gt;After setting the SCN, verify whether you can reproduce the issue. If you can, proceed with the next step.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Log Mining and SQL_REDO:&amp;nbsp;&lt;/SPAN&gt;Use standard log mining to extract the SQL_REDO statements from the redo logs. These can be found in the V$logmnr_contents view. The SQL_REDO statements will provide the actual SQL that was executed, which will allow you to check if all column data was included in the redo log.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;By following these steps, you can ensure proper recovery from redo logs and address any issues related to missing or inconsistent data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 17 Sep 2025 13:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Best-Practices-and-Recovery-Steps-for-Redo-Log/ta-p/2531106</guid>
      <dc:creator>narendersarva</dc:creator>
      <dc:date>2025-09-17T13:30:16Z</dc:date>
    </item>
  </channel>
</rss>

