Need help with script to remove audit ASM files

Hello

It would be great if someone can provide me with a script to delete the files of audit and trace on ASM files

Thank you

Aerts.

Ed,

I have a shell script which is run via cron once a week.  Of course, you need to change the location of the trace and audit files.  This script will remove all files .trc and .trm more than 10 days

#! / bin/bash

find/u01/app/oracle/diag/rdbms /... dbname... / path-name ' * .trc ' - mtime + 10 - type f-exec rm '{} ';

find/u01/app/oracle/diag/rdbms /... dbname... / path-name ' * .trm ' - mtime + 10 - type f-exec rm '{} ';

Tags: Database

Similar Questions

  • I still need help with a thumbnail view in video files Real Player XP sp 3

    I still need help with thumbnail view in video files Real Player XP sp 3-Help! Help! Help!

    You will need to contact the support of Real Player, since the problem occurred with their program.

  • Need help with script java folder level for silent registration with unique file name

    That's what I'm trying to do

    1. when a person completes the request on one of our computers in the office, there will be a button send at the bottom of the application.

    2 submit the application on is automatically stored on the local server with the file name determined by the fields name and surname on the application.

    example - John Doe Application.pdf

    Saved in the folder C:\Users\Station1\Desktop\FinishedApplication.jpgApplications

    3. This is the example of code I found, but I don't know how to enter which fields determine save name and where to save it to.

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.html

    Thank you!

    Lol this is the part that you need as a script to the folder level:

    var lcbSaveAs = app.trustedFunction (function (vDoc, vPath) {}

    app.beginPriv ();

    vDoc.saveAs ({cPath: vPath});

    app.endPriv ();

    });

    This is the code you use in your file:

    lcbSaveAs (, "/ C/users/specialisee1/Desktop/result /" + this.getField("FirstName").valueAsString + "" + this.getField("LastName").valueAsString + "Application.pdf");

    lcbSaveAs is the name of the function of trust.

    vDoc.saveAs is the Document object, call the saveAs method.

    I don't know what oDoc.SaveAs is, or where you got it.

  • I need help with script of 'Edit arc' Russell Brown

    Hello

    I installed the script of 'Edit arc' Russell Brown for CS6. It does not play right. I go to the window > Extensions > edit in an ARC and choosing a layer to run the script. I then run the script. the layer converts it to a smart object and opens in the CRA. I treat layer in an ARC and choose 'Open' and then when the layer opens this file is smaller that before I was running the script (i.e. If layer a face of a person on this subject face decreased after treatment of CRA.)

    My Adobe Camera Raw preferences are set to automatically open all the tiffs supported. The file is 300 ppi, 8bits.  My settings of the CRA are 8 bits 300 ppi. I also tried to change the settings of the CRA to 16-bit, 300 dpi. I'm on a mac equipped with the trial version of photoshop CS6. I don't know why the layer shrinks. It seems like ARC treats the file to 240 DPI or something. Can anyone help? Thank you.

    I don't have so I can't test this, but I think that if you change the "Adobe ACR Editor.jsx" script that was installed during the installation of the CS6 Panel, you should be able to match the ppi of the cab to your ppi CS6 documents.

    Modify it, you need to do is to comment out or remove the following lines.

    // change image res to match defalut ACR 240
    if( app.activeDocument.resolution != 240 ) {
        var docRes = app.activeDocument.resolution;
        app.activeDocument.resizeImage(undefined, undefined, 240, ResampleMethod.NONE);
    }
    
  • Need help with script to find the virtual computer by IP

    Looking for a script that will correspond to the vm to IP, but should be able to find several IPS at the same time.

    I put this together from scripts on the net, which works well to search for a single IP address at a time:

    $match_address = Read-Host "enter the IP address to find."

    Get - VM | %{

    $vmips = $_. Guest.IPAddress

    {foreach ($ip in $vmips)

    If ($ip - as $match_address) {}

    "VM found correspondence address: {0}" f $_. Name

    }

    }

    }

    But would need to be able to enter several IP addresses of different subnets in the $match_address and search script for a match for every ip address.

    Could you please try this?

    function search-VMAssociatedToIP {}

    (param

    $ArrayOfIPToCheck

    )

    {in process

    $VMsAndAssociatedIP = get-view - viewtype 'virtualmachine ' | {foreach-object

    $VM = $_

    $_.guest.net | {foreach-object

    $Net = $_

    $_. IpAddress | {foreach-object

    $IpAddress = $_

    $Output = New-Object-Type PSObject-Prop ([ordered] @ {}

    "VM" = $VM. Name

    "NetworkName" = $Net.Network

    "IP address" = $IpAddress

    })

    Return $Output

    }

    }

    }

    $ArrayOfIPToCheck | {foreach-object

    $IPtoCheck = $_

    $VMsAndAssociatedIP | where {$_.} IpAddress - eq $IPtoCheck} | {foreach-object

    $Output = New-Object-Type PSObject-Prop ([ordered] @ {}

    "IpToCheck" = $IPtoCheck

    'VM' = $_. VM

    "NetworkName" = $_.NetworkName

    'IpAddress' = $_. IpAddress

    })

    Return $Output

    }

    }

    }

    }

    $MyArray = "10.0.33.1","10.0.30.11","10.0.20.11","10.0.32.1".

    Search for VMAssociatedToIP - ArrayOfIPToCheck $MyArray | OGV

    Use a table entry.

    First get the IP addresses of all computers installed correctly (only for virtual machines with VMware tools) virtual based on get - view so the collection will be fast.

    Then compare with the PPE provided as input.

  • Need help with regard to the audit

    Hi all
    Im trying to audit the actions of users who access the database.i.e I get requests from users. In the column sqltext from sys.aud$ table im get entries. But the problem is im not getting queries like

    Select employee_id in system.employee; (IE queries containing specific attributes to select)

    but it is audit queries like

    Select * from system.employee;
    Select count (*) in the system.employee;
    Select count (*) in the system.employee, system.department;

    Please help me with this...
    Thanx

    Hello

    As Justin says: maybe you first want to work on the correct schema.
    SYS and SYSTEM schema is not "playgrounds".
    It is strongly deprecated by Oracle to create or modify objects in the schema these.

    Published by: hoek on November 4, 2009 16:34 typo

  • Need help with script debugging - images not showing

    Hello

    I practice with little javascript for a rotating banner.  It works on my local copy, but when I download it will not display.  I also added a photo in the 'body' and it shows, so I compared the paths, and they seem correct.

    the page is here

    what Miss me?

    I got the code here:

    http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

    Thank you

    Ziggy

    ... /images/banner_1.jpg

    Remove the part highlighted for each image. This will allow search for the image as in

    http://ziggystout.com/flg_test/images/banner_1.jpg

    When you test the link, I see that banner_2.jpg and banner_3.jpg are found at this place, but the other two images are not here.

    Please ensure that you have downloaded the missing images or that they have the correct name and extension.

  • Need help with script to Calc

    I have a requirement as below.

    If has! = #Missing AND B == missing OR C == #Missing

    To copy the last week same value from one day to the current date.

    I've written as below.

    DIFFICULTY ('FY15', 'D01')

    "Qty")

    IF (A! = #MIssing AND (B is #Missing or C == #Missing))

    "Qty" = "D07;

    )

    ENDFIX

    I have to write like that for all the permutations and combinations for all the combination date D1 to D31.

    Is there an elegant way, that everyone knows to do this using variables. Please throw some light on this for me.

    Thank you
    Vishal

    Hi Vishal,

    In this case, you should be able to do it with @PRIORand taking "Days" out of the statement to FIX.  The exact syntax depends on if the "days" are labeled as a time dimension.  If it is marked at the time, the assignment would be:

    "Qty" = @PRIOR ("quantity", 7);

    Because you don't want to cross the borders of the month I guess 'D01' through "D07" will always end up #Missing.

  • Need help with script cal on CCONV

    Hi all experts,

    I installed the database of currency and it works fine, but when I tried to get the rate dynamically based on 'Year' and 'Version', I got syntax error, here is my code.


    UPDATECALC OFF SET;

    DATACOPY RPTValue to USDValue;
    Fix ("USDValue")
    CCONV @MEMBER (@CONCATENATE (@NAME (@CURRMBR ("Year")), @NAME (@CURRMBR ('Version')))-> "USD";
    ENDFIX;

    CALC ALL;

    In my database of currency, the currency has been defined as "(2010Act, 2010Bud, 2011Act, 2011Bud, etc.), it's because we have different rates by year and version."

    Thanks for any recommendations

    Billy

    You must link your PL database to database of currency for that... OK such me how can we achieve... Send me by e-mail

    [email protected] we will do together

  • Need help with the presentation of the trace file

    Hello

    I need to understand

    -the large number of fetch for the query
    -SQL * Net message to client and SQL * Net message from the clientbeing even
    -locking: cache buffers chains

    The question I have is a delay of 6 x for some reason.

    Can someone help me?

    Thank you
    D

    -----

    SQL

    SELECT R_RO.*
    Of
    (SELECT b.ID, b.ANSWERS, b.C_CLASSID, b.C_ID, b.FCI, b.FROM_ID, b.TCI, b.TO_ID, b.FFU, b.TFU, b.NOU, b.ISN, b.SC_NAME,
    b.DN_NAME, b.DN_ITEM_NUMBER, b.ISC, priority of THE VVP. B RELATIONSHIP WHERE b.ID NOT IN (SELECT / * + HASH_AJ * / SDE_DELETES_ROW_ID OF VVP.) D94 WHERE DELETED_AT IN (SELECT l.lineage_id FROM SDE.state_lineages WHERE l.lineage_name = l: source_lineage_name AND l.lineage_id < =: source_state_id) AND SDE_STATE_ID
    =: 'SYS_B_0') UNION ALL SELECT a.ID, a.ANSWERS, a.C_CLASSID, a.C_ID, a.FCI, a.FROM_ID, a.TCI, a.TO_ID, a.FFU, a.TFU, a.NOU, a.ISN, a.SC_NAME, a.DN_NAME, a.DN_ITEM_NUMBER, a.ISC, a.PRIORITY IN THE PSV. A94 has, SL SDE.state_lineages WHERE (a.ID, a.SDE_STATE_ID) NOT IN (SELECT / * + HASH_AJ * / SDE_DELETES_ROW_ID, SDE_STATE_ID OF VVP.) D94 WHERE DELETED_AT IN (SELECT l.lineage_id FROM SDE.state_lineages WHERE l.lineage_name = l: source_lineage_name AND l.lineage_id < =: source_state_id) AND SDE_STATE_ID >: 'SYS_B_1') AND a.SDE_STATE_ID = SL.lineage_id AND SL.lineage_name =: source_lineage_name AND SL.lineage_id < =: source_state_id) R_RO WHERE (ID =: "SYS_B_2")

    -----

    call the query of disc elapsed to cpu count current lines
    -----
    Parse 3911 2.30 2.14 0 0 0 0
    Run 3911 2.47 2.43 0 0 0 0
    Search 3911 268.96 270,60 28 15696558 0 3911

    Total 11733 273.73 275,18 28 15696558 0 3911

    Chess in the library during parsing cache: 1
    Optimizer mode: FIRST_ROWS
    The analysis of the user id: 1031

    Rows Row Source operation
    -----
    1 VIEW (cr = 3966 pr = 0 pw = time 0 = 84973 US)
    1 UNION ALL (cr = 3966 pr = 0 pw = time 0 = 84968 US)
    1 ANTI-HASH JOIN (cr = 3963 pr = 0 pw = time 0 = 84707 US)
    1 TABLE ACCESS BY INDEX ROWID CONNECTION (cr = 4 pr = 0 pw = time 0 = 123 en)
    1 INDEX SCAN SINGLE R94_SDE_ROWID_UK (cr = 3 pr = 0 pw = time 0 = 88)(object id 7404) US
    VW_NSO_2 VIEW 8586 (cr = 3959 pr = 0 pw = time 0 = 112274 en)
    8586 NESTED LOOPS (cr = 3959 pr = 0 pw = time 0 = 103686 US)
    3661 INDEX RANGE SCAN LINEAGES_PK (cr = 7 pr = 0 pw = time 0 = 67)(object id 307740) US
    8586 D94_PK1 INDEX RANGE SCAN (cr = 3952 pr = 0 pw = time = 0 70624 US)(object id 1637355)
    0 ANTI-HASH JOIN (cr = 3 pr = 0 pw = time 0 = 248-en)
    0 NESTED LOOPS (cr = 3 pr = 0 pw = time 0 = 71 US)
    0 TABLE ACCESS BY INDEX ROWID A94 (cr = 3 pr = 0 pw = time 0 = 68 fr)
    0 A94_ROWID_IX1 INDEX RANGE SCAN (cr = 3 pr = 0 pw = time 0 = 65 US)(object id 129281)
    0 INDEX UNIQUE SCAN LINEAGES_PK (cr = 0 pr = 0 pw = time 0 = 0 US)(object id 307740)
    0 REVIEWS VW_NSO_1 (cr = 0 pr = 0 pw = time 0 = 0 US)
    0 NESTED LOOPS (pr = 0 pw = time cr = 0 0 = 0 US)
    0 D94_PK1 INDEX RANGE SCAN (pr = 0 pw = time cr = 0 0 = 0 US)(object id 1637355)
    0 INDEX UNIQUE SCAN LINEAGES_PK (cr = 0 pr = 0 pw = time 0 = 0 US)(object id 307740)


    Elapsed time are waiting on the following events:
    Event waited on times max wait for the Total WHEREAS

    SQL * Net message to client 3911 0.00 0.00
    SQL * Net client message 3911 72,42 0.49
    latch: cache buffers chains 1434 0.07 0.00
    latch: shared pool 1 0.00 0.00
    DB file sequential read 28 0.31 0.14
    free latch 15 0.04 0.02
    latch: cache line items 1 0.00 0.00
    Journal of end of file switch 4 0.98 1.64

    ssddgreg wrote:
    Hi Julie,.

    Thank you for your excellent performance! I have the DBMS Oracle 10.2.0.3 Ent edition deployed on Sun Solaris (64-bit), FIRST_ROWS and CURSOR_SHARING = SIMILAR.

    I also checked the D94 table. SDE_DELETES_ROW_ID on the index, there are 3 indexes on the same column:

    D94_IX1, NON-UNIQUE
    D94_IX2, UNIQUE
    D94_PK1, UNIQUE

    This table is a system of another application of intermediate layer, and all the DXX tables are set up like that.

    Is it a seller third-party application that you have no control over the schema? Because your description of the indices look like a potential case of massive too indexing, increasing the workload required to keep all this index. Most likely some of these indices are redundant and could be covered by a less index number.

    Not to mention that my comment about the execution plan was probably not clear enough - I mean, it's the HASH_AJ trick prevents the optimizer to do clever things with predicates that I described.

    So basically, the question is: what execution plan that you get if you omit the HASH_AJ advice? And how much compliance requires this new plan at run time? You may need to add a NL_AJ key instead to get what I have just described, but it would be interesting to see, in the first place, what execution plan is generated without any evidence.

    A few other comments:

    First_rows optimizer mode: this application allows you to use the optimizer mode FIRST_ROWS requires? Because in principle, if you have an application that actually retrieves most of the time only the first rows of a result like set, then you should use (n) FIRST_ROWS optimizer mode instead. FIRST_ROWS optimizer mode is obsolete since Oracle 9i, if I remember correctly, and has strange side effects on implementation plans, especially if the SQL contains an ORDER BY clause.

    If your application usually treats all rows in a particular result set, default optimizer mode ALL_ROWS is more appropriate - using FIRST_ROWS as a band-aid because with ALL_ROWS things are slower only shows that there is something wrong that must be treated in a different way (by investigating why the ALL_ROWS mode can't seem to appropriate as the first activity execution plan).

    CURSOR_SHARING = SIMILAR: CURSOR_SHARING = SIMILAR Note has some other effects secondary (and bugs). Oracle recently announced on My Oracle Support (see document 1169017.1) CURSOR_SHARING = SIMILAR will be deprecated (no longer supported) in Oracle 12. See this note for a description why this setting can be problematic.

    Of course, if you have no control over a provider application and it works very well and has been optimized for these parameters (FIRST_ROWS CURSOR_SHARING = SIMILAR) then there not much you can do (or do) on this subject.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    Co-author of the book "OakTable Expert Oracle practices":
    http://www.Apress.com/Book/view/1430226684
    http://www.Amazon.com/Expert-Oracle-practices-database-administration/DP/1430226684

  • Need help with copy/move programs and Admin files to other users of the account.

    I created 'connect users of accounts' and 'lost' the original Admin, now I know how to access certain programs and others in shift, click with the right button on connection as an administrator. but can't seem to copy or move some things into "shared folder" can someone help me please? Thanks for any help! No real computer smart right now, but im learning :)

    Hello

    You can also try to connect to the original administrator account by pressing CTRL + ALT + DELETE (all three keys twice at the same time), you will get the classic login prompt. Type the administrator user name and password. You should be able to connect.

    To activate this visible account to the Welcome screen, once logged in click on Start-> Run Type &-> Regedit-> ok.

    Navigate to HKEY_LOCAL_MACHINE-> SOFTWARE-> Microsoft-> Windows NT-> CurrentVersion-> Winlogon-> SpecialAccounts-> UserList

    Select the username administrator and set the value to 1-> of the close Registry Editor and restart your computer.

    I hope this helps.

  • Need help with the reading of an INI file.

    Hi all

    I have some difficulty to read an INI file that I created.

    I managed to create an INI using Key.vi file to write so that I can possibly send the baud settings to my RS-232 port. What I have trouble is reading this INI file even I created. What I need to do, is watch a certain line, go to as many characters in, and then enter the settings in the file.

    Any guidance is appreciated.

    Something like that...

  • Need help with Vista not recognizing the .sys file

    Please help me!  I am trying to load a driver USB 2wire on Vista and it does not recognize the .sys file.  Can I convert this easily to .exe, or y at - it another way to achieve this... I am a novice at best here.  Thank you!

    Can you check it out here:

    http://support.2Wire.com/?page=view&article=545

    just to see that you found the driver for the right adapter. It turns out that there are two.

    I won't be able to respond for a while.

  • Need help with hissing into the exported audio file

    I am trying to guests Records for a new telephone system that requires separate format: CCITT μ-law 8 bit 8 kHz mono

    Audio is recorded in CD quality and I tried a number of different methods to convert (directly record in the format requested, the type of sample conversion and save, conversion of the type of sample and export, then change session settings to match before recording, etc etc.)

    My goal is to save in a high quality format so that I can clean audio (remove no matter what noise, normalize, etc) and then export it to the required compressed format. But I want to do this without adding additional artifact to the sound.

    Suggestions?

    Thanks for the suggestions. I realized what the problem was. To convert the sample type, dithering is enabled by default. This deactivation CONSIDERABLY improves the result.

  • Need help with creating a new site-problem file Spry

    I can't create a new DreamWeaver CS5 site - I get a warning message that the current Spry folder is not inside the site and select a valid file in the local directory. I tried creating a folder nothing is, so is unable to create the site. Help is appreciated.

    An option if you're a Mac: your hard disk named?

    http://forums.Adobe.com/thread/654548

    Also try:

    http://forums.Adobe.com/thread/672446

Maybe you are looking for