<?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>Question Re: DB2 Log Chain in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9189001#M3261256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try with the following two commands to get the current log sequence number ( in case of both cicular and archive log mode ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;db2 get snapshot for database on &amp;lt;DB&amp;gt;&lt;/P&gt;&lt;P&gt;db2 get snapshot for database on &amp;lt;DB&amp;gt; | grep -i 'Log space'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dipam &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 04:49:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-08T04:49:08Z</dc:date>
    <item>
      <title>DB2 Log Chain</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaq-p/9188995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;happy new year ;o)&lt;/P&gt;&lt;P&gt;I have a question regarding db6. &lt;/P&gt;&lt;P&gt;Does anyone know where db2 stores information about the current log chain?&amp;nbsp;&amp;nbsp; Is there a file ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 14:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaq-p/9188995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-05T14:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 Log Chain</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9188996#M3261251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy 2013 to you too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DB2 transaction log files have consecutive names from S00000000.LOG to S99999999.LOG.&lt;/P&gt;&lt;P&gt;If a log file is full, DB2 creates a new log file with the next number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some special cases DB2 can create log files with the same name but different contents - stored in different directories identified by the chain number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you probably know, log file chains are created if the database is restored to a point in time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you understand a retore was done, then you should find the log chain info in the directories where the logs are stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2013 21:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9188996#M3261251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-06T21:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 Log Chain</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9188997#M3261252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAP, The default location for DB2 log files is/db2/&amp;lt;DB_SID&amp;gt;/log_dir&lt;/P&gt;&lt;P&gt;DB2 automatically adds database partition as NODE&amp;lt;nnnn&amp;gt; in the above logpath.&lt;/P&gt;&lt;P&gt;Log files starts with convention like S&amp;lt;nnnnnnn&amp;gt;.LOG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now, there are two types of logging methods:&lt;/P&gt;&lt;P&gt;1) Circular Logging&lt;/P&gt;&lt;P&gt;2) Archival Loging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Circular Logging is used by default. Here DB2 handles logfiles in a circular fashion.&lt;/P&gt;&lt;P&gt;Circular fashion means if last logfile is full, then it writes to the first file and this process continues.&lt;/P&gt;&lt;P&gt;This type of logging is not recommended for Prod environments.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In Archival Logging, a log is stored at a Archiving Location as soon as logfile is full. Online backup can be taken for Database with this type of logging.&lt;/P&gt;&lt;P&gt;Recommended for Production usage.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;You can use Parameters LOGARCHMETH1 and LOGARCHMETH2 to set logging type.&lt;/P&gt;&lt;P&gt;If both the abive parameters are set OFF then DB2 follows Circular Logging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/171893" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2013 22:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9188997#M3261252</guid>
      <dc:creator>former_member227150</dc:creator>
      <dc:date>2013-01-06T22:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 Log Chain</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9188998#M3261253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning Javier and Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your responses.&lt;/P&gt;&lt;P&gt;I know why and when db2 creates log chains.&lt;/P&gt;&lt;P&gt;But do you know where db2 stores the information about log chains? Or how db2 calculates the next log chain? For example if I create a new database&amp;nbsp; and restore the db content from an backup image the current log chain e.g. 06 is created and not 00.&amp;nbsp; So I guess this information is stored in the backup image somewhere and maybe written into a file...&lt;/P&gt;&lt;P&gt;if yes do you know where?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 05:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9188998#M3261253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-07T05:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 Log Chain</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9188999#M3261254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you might be talking about log control file which is created under db2 database directory. Log control file contains information about active logs and the information is used during crash recovery.&lt;/P&gt;&lt;P&gt;You can refer to DB2 information center for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://publib.boulder.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.dbobj.doc/doc/c0005420.html" title="http://publib.boulder.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.dbobj.doc/doc/c0005420.html"&gt;Database directories and files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://publib.boulder.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0051340.html" title="http://publib.boulder.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0051340.html"&gt;Log control files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Masako&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 07:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9188999#M3261254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-07T07:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 Log Chain</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9189000#M3261255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you talking about control files in log directory.&lt;/P&gt;&lt;P&gt;Please check if below file is of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; /db2/&amp;lt;SID&amp;gt;/db2&amp;lt;sid&amp;gt;/NODE0000/SQL00001/SQLOGCTL.GLFH.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is log control file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 19:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9189000#M3261255</guid>
      <dc:creator>former_member227150</dc:creator>
      <dc:date>2013-01-07T19:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 Log Chain</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9189001#M3261256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try with the following two commands to get the current log sequence number ( in case of both cicular and archive log mode ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;db2 get snapshot for database on &amp;lt;DB&amp;gt;&lt;/P&gt;&lt;P&gt;db2 get snapshot for database on &amp;lt;DB&amp;gt; | grep -i 'Log space'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dipam &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 04:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9189001#M3261256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-08T04:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 Log Chain</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9189002#M3261257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;Yes it seems the log chain is stored in the log&amp;nbsp; header file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 07:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-log-chain/qaa-p/9189002#M3261257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-08T07:57:43Z</dc:date>
    </item>
  </channel>
</rss>

