Clear Log files

<p>HI All,</p><p> </p><p>I have CLEARLOGFILE set to TRUE in the essbase.cfg to overwriteall the log files whenever the server or the application starts,but some users need their applications' logs to be saved forsometime, so is there any optimum way to clear the log file forcertain applications with oout writing this MaxL statment for eachapplication:</p><p> </p><p>alter application App_name clear  logfile;</p><p> </p><p>Also, to automate a process we write the MaxL statments on a txtfile and save it as MSH, then create a .BAT file to automate withwindows scheduler, can any one remind me how to do that, I have inmy notes but just can't find them now.</p><p> </p><p>Thanks fellows</p>

<p>Thank you guyhylton,<br>I had it worked out, I combined Maxl and Shell script, scheduledit, and it works pretty fine, but I just wanted to improve myscript instead of clearing the log of one application at the time Iwanted to clear them all at once which happens only when you setCLEARLOGFILE to TRUE in the essbase.cfg. I just have few users whowant the log files saved, the rest NO one checks them. OHH by theway I didn;t get the zip file or even the .txt file you can sendit to [email protected]<br><br>thank you.</p>

Similar Messages

  • Clearing log files

    I am running 10.2.8. Can someone tell if I should clear my log files. I see some of them are from 2004. I have opened console in utilities and find under options "reload" and "clean" under edit. I can't seem to find the purpose for these and hate to click on them if I don't know what to do. I have found some info in the MacWorld Feb 2005 as to how to use Console to delete log files, but, it seems to be referring to a later version of console. I do have MacJanitor I use to clear cache files. Just not sure if I should or how to clear log files. Any info is appreciated.
    Thanks for helping.
    Cayleen

    hi cayleen--
    you can delete all the logs you want and it won't harm anything. they don't actually take up very much space but if you like cleaning things out then go ahead. the only time you may not want to do this is if your computer has been having problems so you can read over them. [ 8 ) ]

  • Clear log file after that disk full?

    Please help me,.
    I want to clear log files, because disk of oracle database fully.
    What have files I can remove?

    And what do you want to DOWNLOAD (see the forum's title)?
    General Database Discussions
    Werner

  • Clearing log file

    Hi,
    I have two warnings:
    1.
    Unsupported character encoding: windows-1255
    Unsupported character encoding: windows-1256
    Unsupported character encoding: windows-1258
    Unsupported character encoding: windows-1255
    Unsupported character encoding: windows-1256
    Unsupported character encoding: windows-1258
    2.
    [112406_014039015][][EXCEPTION] oracle.xml.parser.v2.XMLParseException: Whitespace required.
    I know that this is connected with rtf file but I don't know how to get rid of this.
    Please HELP ME!

    Click your HD icon > it will open a window > on the left portion there is a hoause icon with your name or given name for macbook that you set earlier and that what is called Home folder Between Desktop and Application.
    Good Luck.
    ps: do not try to rename your home folder whatsoever.

  • Current redo log file is lost

    Hi All,
    I got a scenario in which my current redo log file is lost:
    Do I need to:
    1)Clear log file group
    (or)
    2)I should perform incomplete recovery.
    What are the steps I should follow to recover this current redo log file?
    1)*If it is inactive* I can make use of
    ALTER DATABASE CLEAR LOGFILE UNARCHIVED GROUP 2;
    which will drop and recreate the log file.To recover from loss of an active online log group in NOARCHIVELOG mode:
    If the media failure is temporary, then correct the problem so that the database can reuse the group when required.
    Restore the database from a consistent, whole database backup (datafiles and control files) as described in "Restoring Datafiles Before Performing Incomplete Recovery". For example, enter:
    % cp /disk2/backup/*.dbf $ORACLE_HOME/oradata/trgt/
    Mount the database:
    STARTUP MOUNT
    Because online redo logs are not backed up, you cannot restore them with the datafiles and control files. In order to allow the database to reset the online redo logs, you must first mimic incomplete recovery:
    RECOVER DATABASE UNTIL CANCEL
    CANCEL
    Open the database using the RESETLOGS option:
    ALTER DATABASE OPEN RESETLOGS;
    Shut down the database consistently. For example, enter:
    SHUTDOWN IMMEDIATE
    Make a whole database backup.
    To recover from loss of an active online redo log group in ARCHIVELOG mode:
    If the media failure is temporary, then correct the problem so that the database can reuse the group when required. If the media failure is not temporary, then use the following procedure.
    Begin incomplete media recovery, recovering up through the log before the damaged log.
    Ensure that the current name of the lost redo log can be used for a newly created file. If not, then rename the members of the damaged online redo log group to a new location. For example, enter:
    ALTER DATABASE RENAME FILE "?/oradata/trgt/redo01.log" TO "/tmp/redo01.log";
    ALTER DATABASE RENAME FILE "?/oradata/trgt/redo01.log" TO "/tmp/redo02.log";
    Open the database using the RESETLOGS option:
    ALTER DATABASE OPEN RESETLOGS;
    My question is when the redo log file is current. What steps we should follow?
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/
    2)If it is active then I can make use of below steps:

    Rafi (Oracle DBA) wrote:
    Hi Asif,
    This link I have seen by refering to previous post.I just have a slight doubt in mind.
    1)Do I need to make use of statement:
    Alter database clear unarchived log file group#;
    (or)
    Only if your group is current(or you are not able to drop it) and is not archived then you should use above query.
    We should perform incomplete recovery for this.If we have to perform incomplete recovery what are the steps I should follow?
    I doubt you should be performing incomplete recovery for this.
    Eg:Let us say my group 1 is dropped it has only one member and it is in active state.How to recover database?Can I get the steps?
    You would not be able to drop it if it is in active state, did you meant it is corrupted? If yes then you can use below query
    Alter database clear [unarchived] LOGFILE GROUP #;>
    Best regards,
    Rafi
    http://rafioracledba.blogspot.com/
    Make sure to backup your database after above activity.
    Regards
    Anurag

  • RAC 10.2.0.4, event gc cr block busy & log file switch

    hello everybody,
    i would like to know if there is any dependencies between gc cr block busy and log switch in the one node of the rac cluster.
    i had a select and its completion time lasted 12 secs instead of 1, the start time of the select is the start time of the log switch on the node.
    But when i looked into the active session history the session which was standing for that select had been waiting gc cr block busy instead log file switch completion.
    While looking to the Google resources i ve noticed that "The gc current block busy and gc cr block busy wait events indicate that the
    remote instance received the block after a remote instance processing delay.
    In most cases, this is due to a log flush".
    I would be really greatfull if anybody would be able to locate the initial dependancy i ve mantioned and explain the cause of the issue as i can not quite get why the selection took so long.
    Thank you in advance!

    Did you told "log file switch"?
    you mean log file switch (checkpoint incomplete) or log file switch (archiving needed) or log file switch/archive or log file switch (clearing log file) or log file switch completion or log switch/archive
    however a instance can wait ... if you find high values about waiting, you may tune your database.
    please show us
    - Top 5 Wait Events
    SQL> alter session set nls_date_format='YYYY/MM/DD HH24:MI:SS';
    SQL> select name, completion_time from V$ARCHIVED_LOG order by completion_time ;
    Check How often do you switch logfile to archive log? ... Every switch log file... you may find "log file switch" waiting
    I see... you no high DML activitiy.
    But Please check High segment + object and query on AWR report... (example: Segments by Physical Writes )
    just investigate
    Good Luck

  • TGW on Linux - log files not deleting

    I have been running TGW 3.5 for a few months on Linux and noticed the disk space is full. It seems the TGW logs are not clearing out. I have had to manually delete loads of log files.
    From the logs there seems to be a process which checks how long the logs have been there but for some reason not deleting them.

    By design TGW doesn't clear out old log files thinking that it would help in troubleshooting. But we are planning to enhance it by clearing log files older than x number of days..
    As you mentioned, the current fix is to manually clear out old log files. How often do you have to clear the logs ? Probably increasing available diskspace may help reduce iterations for cleaning up old logs ...

  • Question about full backup and Transaction Log file

    I had a query will taking full backup daily won't allow my log file to grow as after taking the full backup I still see the some of the VLF in status 2. It went away when I manually took the backup of log file. I am bit confused shall I
    perform backup of transaction log and full database backup daily to avoid such things in future also until I run shrinkfile the storage space from server won't get reduced right.

    yes, full backup does not clear log file only log backup does. once the log backup is taken, it will set the inactive vlfs in the log file to 0.
    you should perform log backup as the per your business SLA in data loss.
    Go ahead and ask this to yourself:  
    If  a disaster strikes and your database server is lost and your only option is restore it from backup, 
    how much data loss can your business handle??
    the answer to this question is how frequently your log backup should be?
    if the answer is 10 mins, you should have log backups every 10 mins atleast.
    if the answer is 30 mins, you should have log backups every 30 mins atleast.
    if the answer is 90 mins, you should have log backups every 90 mins atleast.
    so, when you restore, you will restore latest fullbackup+differential(latest one taken after restored fullback)
     and all the logbackups taken since the latest(restored full or differential backup).
    there several resources on web,inculding youtube videos, that explain these concepts clearly.i advice you to look at them.
    to release the file space to OS, you should the shrink the file. log file shrink happens from the end upto the point it reaches an active vlf.
    if there are no inactive vlf's in the end,despite how many inactive vlf's the log file has in the begining, the log file is not shrinkable
    Hope it Helps!!

  • How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac.  Now I can't remove her e-mail address from Facebook.  It was suggested to me that I try clearing temporary files from Safari but I can't find

    How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac running Mac OSX 10.7.5 and Safari 6.1.6.  Now I can't remove her e-mail address from my computer.  When I open Facebook her address shows in the user button.  I do not have a Facebook account.  It was suggested to me that I try clearing temporary files from Safari but I can't find anything that tells me how to do this.  Are temporary files the same as the cache?  It also was suggested that I try clearing Safari cache.  How do I do that?

    Check Safari/Preferences/Passwords to see if the Facebook account is there. If so, select it and remove it. If you are still having problems, Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. If that doesn't work, Safari/Reset Safari.

  • WLSE how to clear or erase the log files

    Is it possible to clear or erase the log files - ? Without erasing the config ?
    thx

    No, the log files are automatically rotated periodically so that they don't fill up the disk space

  • I want to clear my alert log files

    I use 10 g
    and i have these options
    1/Clear every open alert
    2.purge every open alert
    3.clear
    4.clear.
    which one should i use.
    Please give me any other helpfull advice

    Hi,
    >>1/Clear every open alert
    2.purge every open alert
    3.clear
    4.clear.
    Actually i am understand what u want with these option.
    >> i want to clear my alert log files
    simply move to another name
    like
    mv alert_SID.log alert_SID.bak
    oracle will automatically create new one if it will not able to find old one.
    Thanks
    Kuljeet

  • WRT54G - How do you clear the log files?

    How does one "Clear" both the Incoming/Outgoing log files?
    Thanks.

    Turn the logs off and click save.  When it is confirmed that your settings were saved, go back into the logs and turn them back on.  Make sure you save your changes.  That should clear your log files.
    I hope that helps.

  • Log file - clear?

    Good Afternoon,
    I have SAP ERP 2005 (ECC 6.0) installed.
    SomeInformation:
    Windows Server 2003 Standard.
    Sql server 2005.
    My Instance name is for example ABC
    my database folder
    ABCDATA1 -> ABCDATA1.MDF 20.480.000
    ABCDATA2 -> ABCDATA2.MDF 20.480.000
    ABCDATA3 -> ABCDATA3.MDF 20.480.000
    ABCLOG1 -> ABCLOG1.MDF 87.915.000
    Log file is a lot.
    Questions:
    1) There is any problem I clear it? its using a lot of space.
    2) If there is no problem clearing it, tell me how I can do it without causing any problem.
    Thank You
    My Best Regards,
    Amit

    <b>Dear Amit,</b><br />
    <br />
    Please refer following SAP Notes <br /> <a class="jive-link-external" href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=625546" target="_newWindow">SAP  Note 625546 - Size of transaction log file is too big</a><br />
    [SAP Note 1002099 - How to shrink the logfile on MSSQL server 2000|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1002099]
    <br />
    <u><b>Depending on whether you want to backup the active transaction log file or not, there are two different ways to solve this problem:</b></u><br />
    <br />
    <b>1. Backup of the active transaction log file:</b><br />
    <br />
                a) In SQL Management Studio, run the following statement:<br />
                DBCC SHRINKFILE (&lt;name_logfile&gt;, &lt;size&gt;)<br />
    <br />
              o &lt;name_logfile&gt; = name of the logfile, e.g. sbodemo_us_log<br />
    <br />
              o &lt;size&gt; = the size the logfile should be shrunk to, e.g. 10 -&gt; 10 MB.<br />
    <br />
    <b>2. Shrink the file directly and do a full backup afterwards:</b><br />
    <br />
                a) In SQL Management Studio, run the following statement:<br />
                BACKUP LOG &lt;sid&gt; WITH NO_LOG<br />
    <br />
              o &lt;sid&gt; = name of the database, e.g. sbodemo_us<br />
    <br />
                b) After success, run the following statement:<br />
                DBCC SHRINKFILE (&lt;name_logfile&gt;, &lt;size&gt;)<br />
    <br />
              o &lt;name_logfile&gt; = name of the logfile, e.g. sbodemo_us_log<br />
    <br />
              o &lt;size&gt; = the size the logfile should be shrunk to, e.g. 10 -&gt; 10 MB.<br />
    <br />
                c) It is recommended to do a full backup afterwards.<br />
    <br />
    <i>To prevent this problem to appear again in the future, you must make sure that a maintenance plan is set up in MS Enterprise Manager, which will backup the transaction log regularly.</i><br />
    <p />
    <p />
    <br />
    <b>Regards,</b><br />
    <b>Bhavik G. Shroff</b>

  • Deployment Utility - log file errors/warnings not clear

    Hi,
    I'm doing my first deployment and have few questions:
    1) I tried to deploy ONLY the TS user directories. I checked the 'Deploy Files in TestStand User Directories' option and did not check 'Install TestStand Engine' since I deploy it into a system with TS3.0+CVI7.0 software(same as the source).
    The process was successful by I get the following warnings in the log file.
    Starting Log.
    Building...
    5:47 PM
    An installer is being created.
    The installer is finished
    The build process is done.
    5:48 PM
    Warning: You may need to add any sequence files referenced by the following expressions:
    "reportgen_" + RunState.Root.Locals.ReportOptions.Format + ".seq" in step 'Process Step Result', sequence 'SequenceFilePostResultListEntry', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "reportgen_" + RunState.Root.Locals.ReportOptions.Format + ".seq" in step 'Process Step Result', sequence 'ProcessModelPostResultListEntry', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "ReportGen_" + Parameters.ReportOptions.Format + ".seq" in step 'Get Report Footer', sequence 'TestReport', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "ReportGen_" + Parameters.ReportOptions.Format + ".seq" in step 'Get Report Header', sequence 'TestReport', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "ReportGen_" + Parameters.ReportOptions.Format + ".seq" in step 'Get Report Body (Sequence)', sequence 'TestReport', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "ReportGen_" + Parameters.ReportOptions.Format + ".seq" in step 'Set Report Disabled Message', sequence 'TestReport', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    RunState.ProcessModelClient in step 'MainSequence Callback', sequence 'Single Pass', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    RunState.ProcessModelClient in step 'MainSequence Callback', sequence 'Test UUTs', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    +++++++++++++++++++++++++++++++++++++++
    What does it mean? What to do about it?
    2) The utility does not include the cfg/TypePalettes where I have a my own file.
    Is there a reason to it? Do I need to include it manually?
    3) When I included workspace in the utility I get the following errors:
    Starting Log.
    Processing Workspace...
    Done processing workspace file
    +++++++++++++++++++++++++++++++++++++++
    Processing Workspace...
    Done processing workspace file
    Building...
    6:08 PM
    Error could not open LabVIEW
    Distributing VIs requires the LabVIEW Development System
    Class not registered
    in TestStand - Get LV Reference.vi->TestStand - Package VIs.vi->TestStand - Build.vi->TestStand - Distribution Wizard GUI.vi->TestStand - Deployment Utility Splash Screen.vi
    An installer was not created due to an error
    The build process is done.
    6:08 PM
    Error Code:-2147221164
    Class not registered
    in TestStand - Get LV Reference.vi->TestStand - Package VIs.vi->TestStand - Build.vi->TestStand - Distribution Wizard GUI.vi->TestStand - Deployment Utility Splash Screen.vi
    +++++++++++++++++++++++++++++++++++++++
    In order to eliminate the problem source I un-checked the files presented by the 'Analyze Source Files' until all of them are un-checked. Even in that case I get the error message.
    What does the message mean?
    What to do about it?
    I don't use any LV in my system!!!!!
    Thanks and my apology for the long message
    Rafi

    Hi Rafi,
    On #1 the warnings appear whenever you have an expression that specifies a sequence file because many expressions are not valid until runtime, you can ignore it as long as ALL sequences that expression may evaluate to are included in the Workspace.
    >2) The utility does not include the cfg/TypePalettes where I have a my own file.
    >Is there a reason to it? Do I need to include it manually?
    No it does not include it because it is not needed unless you plan to edit on the deployed sequence (generally not recommended). If you add a custom type to a sequence the sequence file will have a copy of the type. You can include the types palettes manually in the workspace if desired.
    >3) When I included workspace in the utility I get the following errors:
    >What does the message mean?
    The deployment utility thinks you have a VI to deploy, it is trying to load LabVIEW and failing because LabVIEW is not installed.
    >What to do about it? I don't use any LV in my system!!!!!
    Somewhere there is a .vi or .llb in the system. Find the VI(s) and uncheck them. I did find a bug that the deployment utility caches the flag indicating if a VI is present, but it is easily worked around: Save a tsd file, Press the New button and then reload the tsd.
    -Rick Francis

  • Access Connection log file, no clear structure, behavior criptic

    I am troubleshooting an issue with Access Connection ver. 4.42 executing over a Lenovo Thinkpad T61
    I enable the log, using the login tab, for the Diagnostic option in the Tools Menu.
    The log generated is in html format, but the contents its very dificult to understand.
    I think the developer put this for debuging, and they know, what mean every entry ( I think).
    someone know the meaning of the entries in the log file AcconAdvanced.html ???
    Thanks in advance.
    filmancco

    Hmm..  that is a bit strange...  The 3945 card in the T60 and the 4965 card use the same driver, so you'd think the problem should be showing on both systems.
    When you switch to another profile and you get the pop-up window showing progress, at what point of it do you get a red X?
    Also, if you click "help me fix this" what error is listing?
    I presume this is with v4.42 of AC?  Might want to make sure that also have the latest hotkeys and power management driver if don't have them already...
    Hotkeys:
    http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-68000
    Power Management driver:
    http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4GXPEG
    Don't use the driver from Intel's site, Access Connections needs to use the Lenovo driver in order to function properly.
    But, you could uninstall Access Connections and the Lenovo version of the driver and download/install the Intel driver with their PROSet application to see if it have the same behavior. That would help say if it's an AC problem or a driver issue.
    As for the disconnecting problem, can try changing the Power Management and Roaming Aggressiveness of the card.
    Edit each profile under Access Connections and on the Wireless Settings page, go into the Settings for Advanced Configuration.  Set the Power Save Mode to Low (best network performance).
    Then open Device Manager and open the properties of the Intel wireless card.  Go to the Advanced tab and change these two settings.
         Power Management: Uncheck Use default value and move the slider all the way to the right to Highest.
         Roaming Aggressiveness: Uncheck Use default value and move the slider all the way to the left to Lowest.  Click Ok and exit.  Then reboot the system.
    You may need to tweak the Aggressive Roaming setting to a left of middle setting if you find yourself not roaming soon enough.
    Try that and see if it helps....
    Note from Moderator:  Converted links.
    Message Edited by nonny on 12-04-2007 08:14 AM

Maybe you are looking for

  • White Screen of Death in KDE4

    Greetings all, I'm trying to setup KDE4, but I'm running into that fun white screen. I can get into kdm all right, but when I try to log into kde it just goes straight to the white screen and mouse pointer. I can't get anywhere else. I installed KDE4

  • Ref cursor trouble

    Hi All, My requirement is to fetch values from any given tables through ref cursor, so i have used a below procedure CREATE OR REPLACE PROCEDURE et1(     tab_name IN VARCHAR2,     c1 OUT sys_refcursor) AS   v_prim_val VARCHAR2(2000);   v_sql      VAR

  • I turned I tunes on and all 4000 songs are not checked do I have to check each one Please help

    I started the computer today and all my I tunes songs all 4000 are not checked do I have to check each one? Pleaswe help

  • Where is the enterprise manager unde 9i for linux?

    Sorry this might be a really dumb question but I cant for the life of me find it. Please help a newbie out!

  • Transfer address book from M-access to Mac address book

    Hi, I have a relatively new MacBook pro 17", and i am new to the whole operating system. My old laptop running on Windows XP has all my houses address's for friends and everyone on it stored in Microsoft Access, and i wish to transfer this to the mac