How to clear trc and log files in unix

How to clear alert log/trace and diag files in unix , database is 11g R2 , is there any way to setup jobs through EM(we are using 11g EM)

appsguyflorence wrote:
How to clear alert log/trace and diag files in unix , database is 11g R2 , is there any way to setup jobs through EM(we are using 11g EM)
Create a script job to rotate / delete old files for example older than 1 month, etc
Cheers

Similar Messages

  • How to design SQL server data file and log file growth

    how to design SQL DB data file and log file growth- SQL server 2012
    if my data file is having 10 GB sizze and log file is having 5 GB size
    what should be the size in MB (not in %) of autogrowth. based on what we have to determine the ideal size of file auto growth.

    It's very difficult to give a definitive answer on this. Best principal is to size your database correctly in advance so that you never have to autogrow, of course in reality that isn't always practical.
    The setting you use is really dictated by the expected growth in your files. Given that the size is relatively small why not set it to 1gb on the datafile(s) and 512mb on the log file? The important thing is to monitor it on an on-going basis to see if that's
    the appropriate amount.
    One thing you should do is enable instant file initialization by granting the service account Perform Volume Maintenance tasks in group policy. This will allow the data files to grow quickly when required, details here:
    https://technet.microsoft.com/en-us/library/ms175935%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
    Also, it possible to query the default trace to find autogrowth events, if you wanted you could write an alert/sql job based on this 
    SELECT
    [DatabaseName],
    [FileName],
    [SPID],
    [Duration],
    [StartTime],
    [EndTime],
    CASE [EventClass]
    WHEN 92 THEN 'Data'
    WHEN 93 THEN 'Log' END
    FROM sys.fn_trace_gettable('c:\path\to\trace.trc', DEFAULT)
    WHERE
    EventClass IN (92,93)
    hope that helps

  • In R12 how to change concurrent output/log file name prefix?

    how to change concurrent output/log file name prefix?

    but i want to change change concurrent output/log file name prefix?You cannot, and I believe it is not supported for all concurrent requests -- Please log a SR to confirm this with Oracle support.
    Thanks,
    Hussein

  • How to remove a redo log file

    Hi Experts,
    I want to remove a wrong redo log file from 10G R2 database in window.
    how to do that without loss data?
    my steps as
    1. alter system switch logfile;
    2. select * from v$log;
    which ARC and sataus do I can drop redo log file based on above SQL
    no archive and active status?
    ALso Which account should I do above action?
    fExamp, system account added redo log file, i only
    can drop by system? how about sys?
    Thanks help in detail steps
    Jim
    Edited by: user589812 on Dec 23, 2008 4:35 PM

    Jim,
    Check this link out for how to drop a redo log file
    Make sure a redo log group is archived (if archiving is enabled) before dropping it. To see whether this has happened, use the V$LOG view.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/onlineredo.htm#i1006489
    SELECT GROUP#, ARCHIVED, STATUS FROM V$LOG;
       GROUP# ARC STATUS
            1 YES ACTIVE
            2 NO  CURRENT
            3 YES INACTIVE
            4 YES INACTIVE
    Drop a redo log group with the SQL statement ALTER DATABASE with the DROP LOGFILE clause.
    The following statement drops redo log group number 3:
    ALTER DATABASE DROP LOGFILE GROUP 3;

  • Shell Script to grep Job File name and Log File name from crontab -l

    Hello,
    I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l.
    #51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1
    #40 17 * * * /home/oracle/refresh/refresh_ux634.sh > /home/oracle/refresh/refresh_ux634.sh.log 2>&1
    In crontab -l, there are many jobs, i need to grep job name like 'refresh_ug634.sh' and corresponding log name like 'refresh_ug634.sh.log '.
    I am thinking of making a universal script that can grep job name, log name and hostname for one server.
    Then, suppose i modify the refresh_ug634.sh script and call that universal script and echo those values when the script gets executed.
    Please can anyone help.
    All i need to do is have footer in all the scripts running in crontab in one server.
    job file name
    log file name
    hostname
    Please suggest if any better solution. Thanks.

    957704 wrote:
    I need help how to grep that information from crontab -l
    Please can you provide some insight how to grep that shell script name from list of crontab -l jobs
    crontab -l > cron.log -- exporting the contents to a file
    cat cron.log|grep something -- need some commands to grep that infoYou are missing the point. This forum is for discussion of SQL and PL/SQL questions. What does your question have to do with SQL or PL/SQL.
    It's like you just walked into a hardware store and asked where they keep the fresh produce.
    I will point out one thing about your question. You are assuming every entry in the crontab has exactly the same format. consider this crontab:
    #=========================================================================
    # NOTE:  If this is on a clustered environment, all changes to this crontab
    #         must be replicated on all other nodes of the cluster!
    # minute        (0 thru 59)
    # hour          (0 thru 23)
    # day-of-month  (1 thru 31)
    # month         (1 thru 12)
    # weekday       (0 thru 6, sunday thru saturday)
    # command
    #=========================================================================
    00 01 1-2 * 1,3,5,7 /u01/scripts/myscript01  5 orcl  dev
    00 04 * * * /u01/scripts/myscript02 hr 365 >/u01/logs/myscript2.lis
    00 6 * * * /u01/scripts/myscript03  >/u01/logs/myscript3.lisThe variations are endless.
    When you get to an appropriate forum (this on is not it) it will be helpful to explain your business requirement, not just your proposed technical solution.

  • Process Flow ignores name and location for Control- and Log-Files

    Hi!
    Our OWB Version is 10.1.0.3.0 - DB Version 9.2.0.7.0 - OWF Version 2.6.2
    Clients and server are running on Windows. Database contains target schemas as well as OWB Design and Runtime, plus OWF repositories. The source files to load reside on the same server as the database.
    I have for example a SQL*Loader Mapping MAP_TEXT which loads one flat file "text.dat" into a table stg_text.
    The mapping MAP_TEXT is well configured and runs perfect. i.e. Control file "text.ctl" is generated to location LOC_CTL, flat file "text.dat" read from another location LOC_DATA, bad file "text.bad" is written to LOC_BAD and the log file "text.log" is placed into LOC_LOG. All locations are registered in runtime repository.
    When I integrate this mapping into a WorkFlow Process PF_TEXT, then only LOC_DATA and LOC_BAD are used. After deploying PF_TEXT, I execute it and found out, that Control and Log file are placed into the directory <OWB_HOME>\owb\temp and got generic names <Mapping Name>.ctl and <Mapping Name>.log (in this case MAP_TEXT.ctl and MAP_TEXT.log).
    How can I influence OWB to execute the Process Flow using the locations configured for the mapping placed inside?
    Has anyone any helpfull idea?
    Thx,
    Johann.

    I didn't expect to be the only one to encounter this misbehaviour of OWB.
    Meanwhile I found out what the problem is and had to recognize that it is like it is!
    There is no solution for it till Paris Release.
    Bug Nr. 3099551 at Oracle MetaLink adresses this issue.
    Regards,
    Johann Lodina.

  • OWB 10gR2 : How to configure ctl and log locations for Sql*Loader mappings?

    Hi all,
    I'm using OWB 10gR2 to load data in tables with Sql*Loader mappings.
    In my project I have a datafile module and an Oracle module.
    When creating an sql*loader mapping in the oracle module, there is two properties for this mappings that I want to modify. The first is Control File Location and the second is Log File Location. Values for those properties are equal to the data file module location. When trying to change those values I can only chose "Use module configuration location".
    Somebody knows how to configure those properties with different locations as the one of the flat file module?
    What I want to do is to store the data file in one directory, and control file and log file in other directories.
    Thank you for your help.
    Bernard

    Hi,
    You're right, my problem is that the dropdown only show the location associated with the flat file location even if I have other file locations created in the design repository.
    The good news is that I have found the solution to solve the problem :
    1) Edit the file module and in tab "Data locations", add the locations you want to use for control file and log file.
    2) Open configuration window of the mapping and then the dropdown for properties Control File Location and Log File Location show new locations
    I have tested my mapping after changing those properties and it's working.
    Bernard

  • Change the Data and Log file locations in livecache

    Hi
    We have installed livecache in unix systems in the /sapdb mount directory where the installer have created sapdata and sapdblog directories. But the unix team has already created two mount direcotries as follows:
    /sapdb/LC1/lvcdata and /sapdb/LC1/lvclog mount points.
    While installing livecache we had selected this locations for creating the DATA and LOG volumes. Now they are asking to move the DATA and LOG volumes created in sapdata and saplog directories to these mount points. How to move the data and log file and make the database consistent. Is there any procedure to move the files to the mount point directories and change the pointers of livecahce to these locations.
    regards
    bala

    Hi Lars
    Thanks for the link. I will try it and let u know.
    But this is livecache (even it uses MaxDB ) database which was created by
    sapinst and morover is there any thing to be adjusted in SCM and as well as
    any modification ot be done in db level.
    regards
    bala

  • How to view servlet container log file

    I have just switched to Sun Creator from netbeans. How do I view the log file containing output from "System.err.println( "in Handler" )" in my java code?
    Thanks,
    Werner

    Figured it out.
    To view the Sun JavaTM System Application Server Platform Edition 8.2 log file:
    In the Servers window, right-click the Deployment Server node and choose View Server Log.
    In any text editor, open the log file in the following location: install-directory\SunAppServer8\domains\creator\logs\server.log

  • How to clear cache and cookies

    Hi guys,
    I am new to jsf. And I have one problem in jsf, How to clear cache and cookies.
    Please help me to solve this..

    clearing Java cache and cookies is different from clearing IE cache and cookies. Usually when you powercycle your computer it is automatically cleared. To clear manually:
    go to start--> settings--> control panel--> double click on Java icon. Click on "delete files" under temporary internet files or 'clear cache' in the 'cache' tab. It depends on which version of java and which OS you use on how these will show up.
    If you were having issues with java crashing or making your freezing up, this should resolve the issue. It is strongly suggested that you powercycle the computer as well after clearing the java cache.

  • 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

  • How to recover data and log

    Hello, everyone
    I re-installed my windows XP due to virus with the maxdb data and log files left. After that I reinstalled maxdb 7.6 again. How can I recover the db with the existed data and log ? I did not backup the db. I can not figure out a way. Please help me.
    Chu

    Hi Chu,
    creating a MaxDB instance from the data- and logvolumes is not difficult, but some requirements have to be fullfilled:
    - you still have the parameter file left
    - you still know the password of the database manager operator (DBM in OpenSource or CONTROL for SAP instances)
    That given, all you've to do is to re-register the database, via the db_create command:
    dbmcli -R "
    So, let's go for an example.
    I've a database called DB77, the dbm operator is called control, password is also control.
    I'll drop the database but keep the files (just like you have it ... hopefully) and re-register the database afterwards:
    >dbmcli db_enum
    OK
    DB77    C:sapdbdb77db                        7.7.02.16       fast    offline
    DB77    C:sapdbdb77db                        7.7.02.16       slow    offline
    >dir c:sapdbdataconfig
    Datenträger in Laufwerk C: ist Boot
    Volumeseriennummer: 08C7-EC59
    Verzeichnis von c:sapdbdataconfig
    24.03.2008  13:37    <DIR>          .
    24.03.2008  13:37    <DIR>          ..
    25.10.2007  14:11            12.739 .M770216
    25.10.2007  14:11            97.900 .M770216.pah
    25.10.2007  14:11             1.536 .M770216.upc
    14.02.2008  02:21            20.579 .M770323
    14.02.2008  02:21           201.850 .M770323.pah
    14.02.2008  02:21             1.536 .M770323.upc
    14.03.2008  02:23            20.795 .UMDB
    14.02.2008  02:24            20.795 .UMDB.01
    25.10.2007  14:24            20.795 .UMDB.02
    14.03.2008  02:23                26 .UMDB.cfg
    14.02.2008  02:24           207.625 .UMDB.pah
    25.10.2007  14:24             2.048 .UMDB.upc
    14.03.2008  09:23            13.405 DB77  
    13.03.2008  23:51            13.405 DB77.01
    11.03.2008  20:10            13.405 DB77.02
    14.02.2008  02:21            13.405 DB77.03
    14.02.2008  02:17            13.405 DB77.04
    24.01.2008  19:06            13.405 DB77.05
    11.01.2008  18:57            13.405 DB77.06
    31.12.2007  01:40            13.405 DB77.07
    26.12.2007  14:40            13.404 DB77.08
    26.12.2007  14:20            13.181 DB77.09
    26.12.2007  14:01            13.181 DB77.10
    14.03.2008  09:23                75 DB77.cfg
    02.12.2007  18:24               648 DB77.mmm
    11.03.2008  20:16           343.475 DB77.pah
    24.03.2008  13:37             2.048 DB77.upc
    14.02.2008  02:20    <DIR>          install
                  27 Datei(en)      1.101.476 Bytes
                   3 Verzeichnis(se), 20.064.083.968 Bytes frei
    Ok, the database is currently correctly registered and the parameter file is present. Now let's drop the database:
    >dbmcli -d db77 -u control,control db_drop withoutfiles
    OK
    >dir c:sapdbdataconfig
    Datenträger in Laufwerk C: ist Boot
    Volumeseriennummer: 08C7-EC59
    Verzeichnis von c:sapdbdataconfig
    24.03.2008  13:37    <DIR>          .
    24.03.2008  13:37    <DIR>          ..
    25.10.2007  14:11            12.739 .M770216
    25.10.2007  14:11            97.900 .M770216.pah
    25.10.2007  14:11             1.536 .M770216.upc
    14.02.2008  02:21            20.579 .M770323
    14.02.2008  02:21           201.850 .M770323.pah
    14.02.2008  02:21             1.536 .M770323.upc
    14.03.2008  02:23            20.795 .UMDB
    14.02.2008  02:24            20.795 .UMDB.01
    25.10.2007  14:24            20.795 .UMDB.02
    14.03.2008  02:23                26 .UMDB.cfg
    14.02.2008  02:24           207.625 .UMDB.pah
    25.10.2007  14:24             2.048 .UMDB.upc
    14.03.2008  09:23            13.405 DB77
    13.03.2008  23:51            13.405 DB77.01
    11.03.2008  20:10            13.405 DB77.02
    14.02.2008  02:21            13.405 DB77.03
    14.02.2008  02:17            13.405 DB77.04
    24.01.2008  19:06            13.405 DB77.05
    11.01.2008  18:57            13.405 DB77.06
    31.12.2007  01:40            13.405 DB77.07
    26.12.2007  14:40            13.404 DB77.08
    26.12.2007  14:20            13.181 DB77.09
    26.12.2007  14:01            13.181 DB77.10
    14.03.2008  09:23                75 DB77.cfg
    02.12.2007  18:24               648 DB77.mmm
    11.03.2008  20:16           343.475 DB77.pah
    24.03.2008  13:37             2.048 DB77.upc
    14.02.2008  02:20    <DIR>          install
                  27 Datei(en)      1.101.476 Bytes
                   3 Verzeichnis(se), 20.064.083.968 Bytes frei
    >dbmcli db_enum
    OK
    As we see, the database is gone - but  due to the withoutfiles flag all files are left in place. Therefore we can reregister the database rightaway:
    >dbmcli -R C:sapdbdb77db db_create DB77 control,control
    OK
    >dbmcli db_enum
    OK
    DB77    C:sapdbdb77db                        7.7.02.16       fast    offline
    DB77    C:sapdbdb77db                        7.7.02.16       slow    offline
    >dir c:sapdbdataconfig
    Datenträger in Laufwerk C: ist Boot
    Volumeseriennummer: 08C7-EC59
    Verzeichnis von c:sapdbdataconfig
    24.03.2008  13:42    <DIR>          .
    24.03.2008  13:42    <DIR>          ..
    25.10.2007  14:11            12.739 .M770216
    25.10.2007  14:11            97.900 .M770216.pah
    25.10.2007  14:11             1.536 .M770216.upc
    14.02.2008  02:21            20.579 .M770323
    14.02.2008  02:21           201.850 .M770323.pah
    14.02.2008  02:21             1.536 .M770323.upc
    14.03.2008  02:23            20.795 .UMDB
    14.02.2008  02:24            20.795 .UMDB.01
    25.10.2007  14:24            20.795 .UMDB.02
    14.03.2008  02:23                26 .UMDB.cfg
    14.02.2008  02:24           207.625 .UMDB.pah
    25.10.2007  14:24             2.048 .UMDB.upc
    14.03.2008  09:23            13.405 DB77
    13.03.2008  23:51            13.405 DB77.01
    11.03.2008  20:10            13.405 DB77.02
    14.02.2008  02:21            13.405 DB77.03
    14.02.2008  02:17            13.405 DB77.04
    24.01.2008  19:06            13.405 DB77.05
    11.01.2008  18:57            13.405 DB77.06
    31.12.2007  01:40            13.405 DB77.07
    26.12.2007  14:40            13.404 DB77.08
    26.12.2007  14:20            13.181 DB77.09
    26.12.2007  14:01            13.181 DB77.10
    14.03.2008  09:23                75 DB77.cfg
    02.12.2007  18:24               648 DB77.mmm
    11.03.2008  20:16           343.475 DB77.pah
    24.03.2008  13:42             2.048 DB77.upc
    14.02.2008  02:20    <DIR>          install
                  27 Datei(en)      1.101.476 Bytes
                   3 Verzeichnis(se), 20.064.083.968 Bytes frei
    >dbmcli -d db77 -u control,control db_online
    OK
    Database reregistered, all files are OK, database online. We're done.
    Anyhow, you should in any case perform a backup before you reinstall your machine the next time. I don't know if you've still got all the files I mentioned, but if not - it's not possible to get your database back easily - if at all.
    Hope that helps,
    Lars

  • How to write to a log file within a JSP

    Hello everybody,
    do you know how to write to a log file within a JSP.
    my code is (/space/SP/tlf/ExcepcionJava.jsp):
    <html>
    <body bgColor=#C4E1FF>
    <%@ page import="java.io.*" %>
    <%
         FileWriter salida = new FileWriter(response.encodeURL("log.txt"));
         salida.write(request.getParameter("errorMsg"));
         salida.close();
    %>
    </body>
    </html>.. I run under Solaris, Jrun 2.3.3
    I have also test with getServletContext().getRealPath(), but I get /netsrv/nes/docs/ instead of /space/SP/tlf/

    Hi,
    Give the full path of the log file to the FileWriter. Such as;
    FileWriter salida = new FileWriter(response.encodeURL("/usr/local/tomcat/logs/testlogs/log.txt"));
    nurettin

  • How do I add a log file to posts? (NT)

    How do I add a log file to posts?
    Thanks,

    here is the output of copy/paste:
    I [17/Oct/2007:05:51:44 -0500] Configured for up to 100 clients.
    I [17/Oct/2007:05:51:44 -0500] Allowing up to 100 client connections per host.
    I [17/Oct/2007:05:51:44 -0500] Using policy "default" as the default!
    I [17/Oct/2007:05:51:44 -0500] Full reload is required.
    I [17/Oct/2007:05:51:45 -0500] Loaded MIME database from '/etc/cups': 35 types, 40 filters...
    I [17/Oct/2007:05:51:46 -0500] Loading job cache file "/var/cache/cups/job.cache"...
    I [17/Oct/2007:05:51:46 -0500] Full reload complete.
    I [17/Oct/2007:05:51:46 -0500] Listening to :::631 on fd 2...
    I [17/Oct/2007:05:51:46 -0500] Listening to 0.0.0.0:631 on fd 3...
    I [17/Oct/2007:05:51:46 -0500] Listening to /var/run/cups/cups.sock on fd 4...
    (The strikethrough is one of the many bugs in the Forum software...)
    Use Console Utility to show you the log files, if that is what you need to know.

  • How to convert FLV and F4V files to other media formats

    How to convert FLV and F4V files to other media formats
    Nowadays, every one can download their favorite videos from video sharing websites like YouTube, Hulu, MySpace, Google Video, metacafe, Yahoo! Video, Reuters.com and so on at will. However, these video files we got are usually in the format of FLV, or F4V, which are not workable by most portable devices, or some video players and video editors on our PC. With the intention of solving these problems, this guide will show you how to convert FLV and F4V files to other video and audio formats in detail.
    1. Download, install and run Pavtube FLV Converter
    As soon as you run this program, the following wine red interface will show up:
    2. Add files, set output format and destination folder
    Input FLV and F4V files to this program by clicking on “Add” button, and select a format as the output format in the drop-down list of “Format”, meanwhile, you can press the output folder to specify the destination folder or just use the path set by default. Moreover, “merge into one file” enables you to combine multiple FLV and F4V files to be as a single file, if you have this needs, just tick it.
    3. Set advanced settings
    Click “Settings” button, the following interface will pop up. You can change the parameters like screen size, bit rate, frame rate, sample rate, etc. on it to optimize the output quality or compress file size.
    4. Convert
    After all settings are done, you can press “Convert” button to start transferring, and then the following window will show you the conversion info in detail. According to the info you can manage your time and disk space properly.
    Pavtube FLV Converter can definitely complete the conversion at a swift speed with excellent quality; also it adopts an advanced audio-video sync technology, so that audio and video match very well in the resulted files. Therefore you need not worry about these issues.
    Useful tips:
    Free online FLV downloader:
    www.convertdirect.com
    http://vixy.net/
    http://www.videoconverterdownload.com/online-free-flv-converter.html
    http://www.flv2mp3.com/
    http://www.mediaconverter.org/
    http://2conv.com/
    http://online.movavi.com/
    http://www.youconvertit.com/
    http://www.playtube.com/
    http://www.convert.net/

    Flip4Mac

Maybe you are looking for

  • Presentation in a window

    hi, is there a way, that i can see my presentation in a window? In the presentation mode, it´s allways full screen on the 2nd screen. i need this in a window. Urgent request. THANKS! Markus

  • Flash movie isn't visible on the page

    I've uploaded movies hundreds of times in windows xp and never had a problem of the flash movie not being visible. Does anyone know what I have to do differently in Mac than windows to get the movie to show. In the meantime I'm back doing this with S

  • Planning V11 Installation - Register with Shared Services: Failed

    Hi, I have just installed the Hyperion Planning Version 11. The installation was a piece of cake. I selected all the relevant components and the installer took care of the installation and the installation sequence. When I tried the configuration, I

  • Create exe from a java prog that uses Jess rule engine

    Hi, Im not sure if this is the right forum but how do I do this? Im trying to use the free programs at http://www.excelsior-usa.com/articles/java-to-exe.html which links to java EXE creators like JSmooth, Launch4j, jstart32, exeJ, Java Launcher, Jane

  • Book mark folders no longer spring open??

    Some of my sub-folders in the book marks no longer spring open. I've tried creating new subs and it seems that when I add certain book marks is when they stop working (ex http://inter800.com/ is one that stops a sub folder from opening) After this ha