<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
	<id>http://www.emigar.com/wiki/index.php?action=history&amp;feed=atom&amp;title=DB2_Archivelog</id>
	<title>DB2 Archivelog - Cronologia</title>
	<link rel="self" type="application/atom+xml" href="http://www.emigar.com/wiki/index.php?action=history&amp;feed=atom&amp;title=DB2_Archivelog"/>
	<link rel="alternate" type="text/html" href="http://www.emigar.com/wiki/index.php?title=DB2_Archivelog&amp;action=history"/>
	<updated>2026-06-27T19:51:05Z</updated>
	<subtitle>Cronologia della pagina su questo sito</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>http://www.emigar.com/wiki/index.php?title=DB2_Archivelog&amp;diff=6186&amp;oldid=prev</id>
		<title>WikiSysop: Creata pagina con &quot; HOW TO clear inactive DB2 LUW transaction log files  21 September,2016 by Tom Collins  How to clear inactive DB2 LUW transaction log files is a solution to a common problem. Before we discuss how to prune the inactive transaction logs we’ll need to establish which log files are inactive.  It is important to identify which logs to delete. If you delete an active transaction log file, you will cause an outage on the database  Note: Log files located in the  transaction...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.emigar.com/wiki/index.php?title=DB2_Archivelog&amp;diff=6186&amp;oldid=prev"/>
		<updated>2026-06-03T16:55:39Z</updated>

		<summary type="html">&lt;p&gt;Creata pagina con &amp;quot; HOW TO clear inactive DB2 LUW transaction log files  21 September,2016 by Tom Collins  How to clear inactive DB2 LUW transaction log files is a solution to a common problem. Before we discuss how to prune the inactive transaction logs we’ll need to establish which log files are inactive.  It is important to identify which logs to delete. If you delete an active transaction log file, you will cause an outage on the database  Note: Log files located in the  transaction...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
HOW TO clear inactive DB2 LUW transaction log files&lt;br /&gt;
&lt;br /&gt;
21 September,2016 by Tom Collins&lt;br /&gt;
&lt;br /&gt;
How to clear inactive DB2 LUW transaction log files is a solution to a common problem. Before we discuss how to prune the inactive transaction logs we’ll need to establish which log files are inactive.&lt;br /&gt;
&lt;br /&gt;
It is important to identify which logs to delete. If you delete an active transaction log file, you will cause an outage on the database&lt;br /&gt;
&lt;br /&gt;
Note: Log files located in the  transaction log path cannot be removed with &amp;#039;db2 prune history xxxxxxx and delet&amp;#039;  if database configuration &amp;#039;LOGARCHMETH1&amp;#039; is set to &amp;#039;LOGRETAIN&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
Before you start any activity , speak to the owners and users of the database . It is safer to stop the applications. It is not always possible - as it may be a live online database. Also consider create a backup for recovery . Completing a DB2 online backup won&amp;#039;t force any applications&lt;br /&gt;
&lt;br /&gt;
Follow the steps below to clear the DB2 LUW transaction log files.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;Connect to the database using the command&lt;br /&gt;
&lt;br /&gt;
 su - db2usr1&lt;br /&gt;
&lt;br /&gt;
 db2 connect to myDB&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;Connect to the database configuration details using either of these methods&lt;br /&gt;
&lt;br /&gt;
 db2 get db config&lt;br /&gt;
&lt;br /&gt;
 db2 get db config | grep &amp;quot;log&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;Search for the First active log file database parameter. For example:&lt;br /&gt;
&lt;br /&gt;
First active log file = S0130573.LOG&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;Once you define the active log file execute&lt;br /&gt;
&lt;br /&gt;
 db2 prune logfile prior to &amp;lt;activeLogFileName&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;Applying this example to our command:&lt;br /&gt;
&lt;br /&gt;
 db2 prune logfile prior to S0130573.LOG&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;On execution of this command, DB2 would clear all inactive transaction logs prior to S0130573.LOG&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[Categoria:Database]]&lt;br /&gt;
[[Categoria:DB2]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>