Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: truncating log file

Re: truncating log file

From: Dimitar Radoulov <cichomitiko_at_gmail.com>
Date: Mon, 20 Jun 2005 11:44:13 +0200
Message-ID: <d04e2c6a05062002446ce68f54@mail.gmail.com>


Excuse me,
the windows command is "copy", not "cp", so:

  1. Backup the current log:

copy the_name_of_your_logfile.log the_name_of_your_logfile.log.old

2. Truncate it:

echo "Whatever you want" > the_name_of_your_logfile.log

HTH
Dimitre

On 6/20/05, Radoulov, Dimitre <cichomitiko_at_gmail.com> wrote:
> You can try:
>
> cp the_name_of_your_logfile.log
> the_name_of_your_logfile.log.old
> echo "Resetting the log ..." > the_name_of_your_logfile.log
>
>
>
> HTH
>
> Dimitre
>
>
> ----- Original Message -----
> From: Onkar N Tiwary
> To: oracle-l_at_freelists.org
> Sent: Monday, June 20, 2005 11:33 AM
> Subject: truncating log file
>
> Hi all,
>
> Few days ago I had seen one mail containing the method of truncating a log
> file and setting its size to say few megs without opening it on windows 2000
> but now I don remember the command. If anyone can either forward that mail
> and pass me the command , will be obliged.
>
> --
> Thanks & Regards,
> T. Onkar Nath
> Ph : +91-9826728111(Cell)
> to_onkar_at_yahoo.com
> onkarnath.tiwary_at_gmail.com
>

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Jun 20 2005 - 05:55:26 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US