<?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>topic Re: find atime mtime purge oracle log in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313725#M186089</link>
    <description>Just wondering where is those info like atime, mtime and ctime was kept for a file.  I suppose this is different from the time I see from ls -al command</description>
    <pubDate>Thu, 24 Jun 2004 02:04:27 GMT</pubDate>
    <dc:creator>kholikt</dc:creator>
    <dc:date>2004-06-24T02:04:27Z</dc:date>
    <item>
      <title>find atime mtime purge oracle log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313720#M186084</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I just wondering why the following command doesn't work&lt;BR /&gt;&lt;BR /&gt;find /oracle/TRP/saparchlocal -name '*arch*dbf' -atime +1 -print -exec ls -al {} \;&lt;BR /&gt;&lt;BR /&gt;I have the following file in this directory I only want to list out those file where the timestamp is more than 1 day.  I have tried mtime but doesn't seem to work as well.  Please help.&lt;BR /&gt;&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41942016 Jun 22 12:00 TRParch1_2420.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 22 12:33 TRParch1_2421.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 22 12:36 TRParch1_2422.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 22 12:38 TRParch1_2423.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 22 12:41 TRParch1_2424.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41942016 Jun 22 12:51 TRParch1_2425.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 22 14:07 TRParch1_2426.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 22 14:08 TRParch1_2427.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 22 14:09 TRParch1_2428.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41938944 Jun 22 14:10 TRParch1_2429.dbf&lt;BR /&gt;----------   1 oratrp     dba        6618112 Jun 22 15:30 TRParch1_2430.dbf&lt;BR /&gt;----------   1 oratrp     dba              0 Jun 22 16:45 TRParch1_2431.dbf&lt;BR /&gt;----------   1 oratrp     dba              0 Jun 22 17:45 TRParch1_2432.dbf&lt;BR /&gt;----------   1 oratrp     dba              0 Jun 22 17:45 TRParch1_2433.dbf&lt;BR /&gt;----------   1 oratrp     dba              0 Jun 22 17:45 TRParch1_2434.dbf&lt;BR /&gt;----------   1 oratrp     dba              0 Jun 22 18:00 TRParch1_2435.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 22 20:05 TRParch1_2436.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41942016 Jun 22 22:30 TRParch1_2437.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41942016 Jun 22 23:31 TRParch1_2438.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 22 23:34 TRParch1_2439.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 01:01 TRParch1_2440.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 04:30 TRParch1_2441.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 07:30 TRParch1_2442.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 07:33 TRParch1_2443.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 07:36 TRParch1_2444.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41942016 Jun 23 09:26 TRParch1_2445.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 10:45 TRParch1_2446.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 11:09 TRParch1_2447.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 11:10 TRParch1_2448.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 11:10 TRParch1_2449.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 12:32 TRParch1_2451.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 12:43 TRParch1_2452.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 14:04 TRParch1_2453.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 15:25 TRParch1_2454.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 16:30 TRParch1_2455.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 17:31 TRParch1_2456.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 17:34 TRParch1_2457.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 18:18 TRParch1_2458.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 19:55 TRParch1_2459.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 20:36 TRParch1_2460.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 23:02 TRParch1_2461.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 23:32 TRParch1_2462.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 23:34 TRParch1_2463.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 23 23:37 TRParch1_2464.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41942016 Jun 24 03:00 TRParch1_2465.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41943040 Jun 24 06:02 TRParch1_2466.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 24 07:33 TRParch1_2467.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 24 07:35 TRParch1_2468.dbf&lt;BR /&gt;-rw-rw----   1 oratrp     dba        41944064 Jun 24 09:56 TRParch1_2469.dbf&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jun 2004 21:02:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313720#M186084</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2004-06-23T21:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: find atime mtime purge oracle log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313721#M186085</link>
      <description>hai,&lt;BR /&gt;&lt;BR /&gt; To find the files with timestamp more than one day +1 is correct.&lt;BR /&gt;&lt;BR /&gt; The find with -ctime for changed time,-mtime for modified time and -atime for accessed time.&lt;BR /&gt;&lt;BR /&gt; So -mtime option,we have to do the modification in that file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Muthukumar.</description>
      <pubDate>Wed, 23 Jun 2004 23:13:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313721#M186085</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-06-23T23:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: find atime mtime purge oracle log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313722#M186086</link>
      <description>Hi kholikt,&lt;BR /&gt;you should keep in mind that certain backup methods affect (update) the access timestamp - a simple copy also does. &lt;BR /&gt;+1 means "more than 24 hours" so the result will also depend on the time the command is executed.&lt;BR /&gt;You should also protect your wildcards with qoutes in order to prevent the automatic filename expansion in the current directory, i.e. the wildcards must not be expanded before the shell starts executing the commands.&lt;BR /&gt;Btw: the listing of the files with no permissions indicate that something went wrong during af copy/backup operaton; perhaps a full filesystem.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2004 01:43:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313722#M186086</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-06-24T01:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: find atime mtime purge oracle log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313723#M186087</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To list the files that are 24 hours older you use as you did&lt;BR /&gt;&lt;BR /&gt;find /path -name "*string*" -mtime +1 -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;So with your find (say if you executed your find at 20:00 hours on 24-JUN-04) you should get listing of the files&lt;BR /&gt;-rw-rw---- 1 oratrp dba 41944064 Jun 23 18:18 TRParch1_2458.dbf&lt;BR /&gt;-rw-rw---- 1 oratrp dba 41944064 Jun 23 19:55 TRParch1_2459.dbf&lt;BR /&gt;&lt;BR /&gt;If you wanted files that are older than a given time then user the -newer parameter of find.&lt;BR /&gt;&lt;BR /&gt;1. touch a file with a given time as &lt;BR /&gt;touch CCYYMMDDHHMMSS&lt;BR /&gt;&lt;BR /&gt;2. find /path -name "*string*" -newer touch_file -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;This will list all the files older that the touched file.&lt;BR /&gt;&lt;BR /&gt;Indira A&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2004 01:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313723#M186087</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2004-06-24T01:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: find atime mtime purge oracle log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313724#M186088</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;as this is SAP Environment and you probably backup the archivelogs with brarchive and the -cds option, keep in mind that brarchive accesses these file for reading two times before they are deleted. &lt;BR /&gt;&lt;BR /&gt;So if you run "brarchive -cds" each day, atime will never be greater than 1,0 days, because brarchive will access the file and reset atime, and next day it will delete the file.&lt;BR /&gt;&lt;BR /&gt;Since no one writes to these files beside the archiver process, ctime should be sufficiant for you.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 24 Jun 2004 01:57:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313724#M186088</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2004-06-24T01:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: find atime mtime purge oracle log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313725#M186089</link>
      <description>Just wondering where is those info like atime, mtime and ctime was kept for a file.  I suppose this is different from the time I see from ls -al command</description>
      <pubDate>Thu, 24 Jun 2004 02:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313725#M186089</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2004-06-24T02:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: find atime mtime purge oracle log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313726#M186090</link>
      <description>Hi again,&lt;BR /&gt;the information is kept in the inode for the file in question: the "ls -al" shows the time of the last change, like "mtime". &lt;BR /&gt;"ls -lu" shows the last time the file was accessed, like "atime".&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Thu, 24 Jun 2004 02:08:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-atime-mtime-purge-oracle-log/m-p/3313726#M186090</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-06-24T02:08:42Z</dc:date>
    </item>
  </channel>
</rss>

