Re: Archive log compress
From: Robert Fazio <dbabob_at_hotmail.nospam.com>
Date: Sat, 15 Mar 2003 03:48:59 GMT
Message-ID: <Xns933EE819DDF03dbabobhotmailcom_at_63.240.76.16>
>
> The wc command can be used to quickly count the number of files and an
> ls -ltr can be used to list them in time order so your read loop stops
> short of the full number.
>
> HTH -- Mark D Powell --
Date: Sat, 15 Mar 2003 03:48:59 GMT
Message-ID: <Xns933EE819DDF03dbabobhotmailcom_at_63.240.76.16>
Mark.Powell_at_eds.com (Mark D Powell) wrote in news:2687bb95.0303050724.5405c1a_at_posting.google.com:
> badrinathn_at_yahoo.com wrote in message
> news:<f643a33e.0303040857.34870964_at_posting.google.com>...
>> Archive log question >> Hi, >> >> As the arch file being written has compressed, will the oracle write >> to a different arch file or will it hang and fail. >> >> Badrinath
>
> The wc command can be used to quickly count the number of files and an
> ls -ltr can be used to list them in time order so your read loop stops
> short of the full number.
>
> HTH -- Mark D Powell --
Another option is to generate the list of files as follows
ls -t *.ARC | tail +2 | while read x
do
gzip $x
done
This will sort the files in descending date order, and the tail will skip past the first line (always leaving one file in the directory). Received on Sat Mar 15 2003 - 04:48:59 CET