Auditing of database to save the DELETE operation on a schema for all tables.

Hello
I'm using ORACLE DATABASE 11 g. I want to apply the AUDITING feature to save all DELETE operations happening on the tables in the schema.

I did the following steps but dint got the correct output: -.

I logged in the SYS as sysdba user and together
 alter system set audit_trail=DB,EXTENDED scope=spfile;
then I ran this command to save the sql code that will use the privileges of DELETION
AUDIT DELETE ANY TABLE;
Then I bounced my DB and intended to test I created a table in the SCOTT schema and inserted 10 lines in there and then DELETE all the rows in it.

According to the expectations, I check the view
select * from aud$
where spare1 like '%MACHINE1%'
and USERID='SCOTT'
order by ntimestamp#;
The output I got is: -.
34     168368     1     1          SCOTT     I-DOMAIN\MACHINE1     MACHINE1     100     0                                                                      Authenticated by: DATABASE; Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=2565))          MACHINE1                    5          21-DEC-11 07.02.58.621000 AM               0     928:5024     0000000000000000               983697018     <CLOB>     <CLOB>     
But here I don't see the SQL that is generated in the last column.
What I expected, it's that if I shoot a DELETE statement in the schema, it will get connected here and with the help of this point of view, I want to be able to see that what user of which machine run a DELETE statement and that the statement was?

Please let me know what that step i have missed here.

PS: - Watch the ACTION # 100 column, this is the DELETE action code. I have also consulted the view DBA_AUDIT_TRAIL but din't find any useful info their.

Thanks in advance.

Try instead:

audit delete table;

DELETE ENTIRE TABLE audit is audit use of the DELETE ANY TABLE privileges.

Tags: Database

Similar Questions

  • How to invoke the export and import of orders for all tables of pl/sql code?

    I want to export a few (not entire schema) tables from one database to another. But I want to run as a PL/SQL package so that I can call it from an application server. So my question is...

    How to call a tax / export commands from pl/sql code (SP or packaging) so that I can call these (SP or packaging) as a JDBC application server call?

    Krishna_Architect wrote:

    I want to export a few (not entire schema) tables from one database to another. But I want to run as a PL/SQL package so that I can call it from an application server. So my question is...

    How to call a tax / export commands from pl/sql code (SP or packaging) so that I can call these (SP or packaging) as a JDBC application server call?

    When all else fails, read the Fine

    The API data pump

  • granting of privileges to the schema for several tables at the same time... any script?

    Hello gurus,

    I have about 25 tables in the ABC scheme

    I want to give all privialges to the XYZ schema for all tables of 25 which is in the pattern ABC... So is there is SQL statement or a script, I can run to grant privileges to all tables.

    Something similar to these...

      SELECT 'create synonym ' || table_name || ' for ' || table_name
      FROM user_tables  {code}
     
    So i get all the table names ....then i can run as a script.... U r help is greatly appriciated gurus!!!
    
    
    Thank you!!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Administrator:

    set head off
    set pages 0
    set feed off
    spool myscript.sql
    Select 'grant select, insert, update, delete on abc.'||table_name||' to xyz;'
      from dba_tables
     where owner = 'ABC';
    
    Select 'create synonym xyz.'||table_name||' for abc.'||table_name||';'
      from dba_tables
     where owner = 'ABC';
    
    spool off;
    

    Obviously this does not all new table that will be created in the future on ABC schema...

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

  • Error message: to restore enough memory for programs running, save the file and then close or restart all programs

    It said "restore enough memory for programs to operate correctly, save the file and then close or restart all open programs".

    I changed the size of paging and says always the same, I have 1.5 GB free RAM, but don't know how to find or what to do 'virtual memory '.  Have windows 7.

    I started the safemode and run also memory dignostics and nothing found, please help, cannot afford to take a shop or get a new computer, I'm using another pc.

    I was recommended to download and. Run 'hitmanpro3'... but if anyone has had this problem and solved it or know how, please help!

    Thank you

    Hello

    Please contact Microsoft Community.

    I understand that you receive an error related to the lack of virtual memory. This error message appears when running any program that requires more memory your computer has, or running in the background, Windows manages the system memory by saving the data between physical memory and virtual memory. In order to help you better, please provide us with the following information:

    What is the brand and model of your computer?

    I suggest you follow the methods and check them off below if this solves the problem.

    Method 1: Clean boot

    A clean boot is a troubleshooting technique that allows you to get the computer facing up and running so that you can determine what elements of the normal starting procedure problems.

    How to perform a clean boot in Windows

    http://support.Microsoft.com/kb/929135

    Note: Once you are done with the clean boot, follow the section How do I reset the computer to start as usual after a clean boot troubleshooting under more information in the article to put your computer to normal startup.

    Method 2: Prevention of insufficient memory problems

    Follow the steps mentioned in the link and the check, it solves the problem. Follow the evolution of the size of the virtual memory section

    http://Windows.Microsoft.com/en-us/Windows/preventing-low-memory-problems#1TC=Windows-7

    Method 3: Virus Scan

    Microsoft Safety Scanner is a free burner that can be used to analyze a system for computer viruses and other forms of malware.

    Microsoft safety scanner

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Warning: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Additional information: Windows optimize for better performance

    Hope this information helps. Response with status so that we can help you.

  • Hello. You will need to update Mac OS El Capitan. Currently have v.8 CS Photoshop and Lightroom 2 v.2.4. In order just to work with the new operating system, please inform for updating both.

    Currently have v.8 CS Photoshop and Lightroom 2 v.2.4. In order just to work with the new operating system, please inform for updating both.

    Hi R0w1% 40nd,

    Adobe Photoshop CS v.8 and Lightroom 2 v.2.4. are very old software and the operating system you are using is the most recent, so there may be compatibility issues that adobe has not tested these applications on newer operating systems.

    The installer for Adobe Photoshop CS v.8 and Lightroom 2 v.2.4. are no longer available.

    You can see the creative Cloud, creative cloud and rates membership plans | Adobe Creative Cloud

  • Is there a reason to save the original NEF files after import for the LR in the form of files 'convert to DNG?  Is there a reason to save the two versions?  The NAVE seems to have no further use other than too much hard drive space.

    Is there a reason to save the original NEF files after import for the LR in the form of files 'convert to DNG?  Why save versions when the DNG is the original and the NAVE seems to just take remote hard drive space?

    I see no reason to keep them, they take a lot of space, one of the reasons to convert to DNG is that they are almost 20% smaller than the ships.

    But it is of course your choice...

  • is there a code (not the css style) to leaders (periods) for a table of contents

    is there a code (not the css style) to leaders (periods) for a table of contents

    Well, in this case, you are drunk. The only thing left is to add leaders to hand.

  • If I bought the creative Club today would pay for all the month of February?

    If I bought the creative Club today would pay for all the month of February?

    No, you are not billed by calendar month but starts from the date of your membership.

    http://www.Adobe.com/products/creativecloud/FAQ.html#purchasing

    "When my subscription start?

    If you purchase your membership directly from Adobe's Web site, it starts as soon as the order is respected by the Adobe Store.

    If you purchase your membership to a participating retailer or an online store, it starts as soon as you enter your purchase on www.creativecloud.com and click on Get Started.

    If you purchase your subscription at a participating retailer, it starts as soon as the seats are added to the account. »

  • Get the DDL for all tables in a schema;

    Hello

    I tried to get the DDL for all tables under my own diagram "A". Here are the steps I've tried, but in vain I
     1. logged in as a user A 
    2. And the ran query 
              
    SELECT DBMS_METADATA.get_ddl ('TABLE', 'XYZ')
    FROM user_tables
          
    o/p
    (HugecloB)
    
    {code}
    
    Any idea how i can get the DDL for all the tables under my own schema ?
    
    
    Thank you so much!
    
    Edited by: user642297 on Feb 4, 2011 12:05 PM
    
    Edited by: user642297 on Feb 4, 2011 12:05 PM
    
    Edited by: user642297 on Feb 4, 2011 12:05 PM
    
    Edited by: user642297 on Feb 4, 2011 12:07 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Your idea is good, you missed only to use the correct table name:

    SELECT DBMS_METADATA.get_ddl ('TABLE', table_name)
    FROM user_tables;
    

    Concerning

  • How to determine the number of rows in the database and save the result to a local variable?

    Hello

    I'm a newbie in the use of TestStand, databases and SQL, and now I've met difficulties. I use TestStand 2014 (32 bit).

    I have a need to know the number of rows in a database and save that number in a local variable. I tried to practice using the database of the Types of step provided with TS. I tried to use the following in a SQL statement:

    Locals.NumberOfRows = ("SELECT COUNT (*) FROM TEST_TABLE")

    It returns an error: specified value is not the expected type. My goal is possible in this way, or I'm doing this completely wrong?

    -RautSa

    Thank you for your response, Norbert. I have a database of who wins new values at random, and sometimes I need the exact number of rows in this table.

    I managed to achieve my goal by using the SQL statement: "SELECT COUNT (*) as Rowcount OF TEST_TABLE", followed by a data GET operation, which records that number of lines in a local variable.

    -RautSa

  • Windows 8 file save the old operating system installed

    Just called Microsoft supported and also Microsoft chat tech and they have no idea what to say.

    Long story short;

    Had a HP TouchSmart and installed the beta version of Windows 8. Windows 8 Pro has purchased and installed. Everything was OK.

    Bought a new Dell XPS 30 "all in one. It came with Windows 8, but I installed my copy of Pro on this subject. It's all working for a few months.

    Yesterday, my system froze. I tried everything, checking virus, malware check, reboot, Windows 8 discount... No luck. It should boot to the Windows startup screen

    but all the tiles would not become assets AND most of them where it's empty. Just got a screen frozen tiles colored white.

    Last night so I did the drastic wipe and much time the fresh install disk. It starts fine, and now there are only a few titles on the splash screen now because of the new facility. I rebooted and he did all the current improvements. Everything was fine.

    Now the nightmare... I did the restore files 8 widows in my external hard drive. All files loaded fine, but when I rebooted, the installation of Windows 8 old was back. I had all my tiles with icons or text... Just color, back to the same problem, I just spend the whole night to solve!

    File Windows backup to copy system files and restore them? If so, how can I get my files personal return without defining the system to the way it was before the new facility.

    Confused and frustrated...

    peace,

    LD

    I used the new file history Windows 8. I thought it was just my personal files. After the fresh format and new installation of widows 8, I did a restore of the history of the file. This has somehow installed windows that did not work properly.

    I then tried to do a 'Refresh Install' and it gave me the Windows.old directory. I deleted that and, at least for the moment, everything seems to work.
    I don't know what happened, but it was very strange...
    Also for what it's worth, I wish history files would be to update only the changed files and not just copy everything. It eats quickly place and requires us to be always delete files. Thank you
  • check for the delete operation

    Hi all

    I'm a deletion of a table. How can I check if the removal of deleted rows?

    Thanks in advance
    BN

    I'm guessing that you want to check SQL ROWCOUNT % immediately after the DELETE statement (if you are not in a PL/SQL block when you issue DELETE it, your API client probably has a different appeal for this information).

    BEGIN
      DELETE FROM some_table
       WHERE some_column = some_value;
    
      IF( SQL%ROWCOUNT = 0 )
      THEN
        dbms_output.put_line( 'No rows were deleted' );
      ELSE
        dbms_output.put_line( 'We deleted some rows' );
      END IF;
    END;
    

    Justin

  • Where should I save the profile of calibration of camera for Lightroom 2?

    I created a few DNGS through DNG Profile Editor camera profiles. For the calibration of camera in Camera Raw, I save these files .dcp in C:\ Administrator\ Documents and Settings\ Application Data\ Adobe\ Camera Raw------CameraProfiles. However, I could ' t find such a subfolder in the folder Lightroom, we know where should I save the files from STC for Lightroom 2? Thank you

    This is the same installation folder for Camera Raw and Lightroom (i.e., a .dcp installed in the folder you have described will be readable by the CR and LR).

    Eric

  • Email campaign confirm the Outbox not appearing is not for all sites

    We have a client that handles two different sites of BC. It manages from the same PC. When sending E-mail campaigns for each, sending confirmation dialog box does not appear at a single site, but appears as it should be for the other.

    Yet once, it uses the same count and the browser to manage the two sites, but the confirmation box does not appear for either of the two sites. We cannot reproduce the problem on our own computers (Mac).

    Someone has an idea of what could prevent the area confirm on the site? Of course, without it, he cannot complete the e-mail campaign.

    Thank you!

    Try to clear the browser cache and delete cookies. It's always a good start when you have problems with a browser to specific computers.

  • Adjust the height of the line in an interactive report for all lines

    Hello
    I have an interactive report with lots of data in certain cells. The height of the heights of lines varies, so that all data is visible in the cells.
    I want to correct or to limit the row height to a specific value, so that all lines are displayed with the same height.
    Do anyone knows how to win this? Thanks in advance.

    Published by: kps204020 on 26.12.2012 20:27

    kps204020 wrote:
    Thanks a lot for your answer.
    I tried your proposal, but it has no effect. The cells in the report show all their content using as many lines as you need for this.

    This is the default behavior for the HTML table data (tables and cells grow to fit their content).

    So I have always with lots of lines, lines and lines with only a few mixed lines in my IR dependant on the contents of the cell. Because some lines almost filling the whole screen, it is difficult to get an overview with regard to adjacent lines.
    I use the Application Express 4.1.1.00.23. with the theme 21. Scarlet and Firefox 17.0.1.

    All users using Firefox?

    In fact, I'm working on my first APEX Solution for use in my business and demanding customers a solution for this topic. So I'm very keen to find a solution.
    I am very looking forward to your reply.

    I have been involved in similar questions in the past. My first reaction is simple: these data must be included in the report? The offending column can be removed from the primary report? They will always be visible in the display of the row and the detail view when it exists.

    The second option is to create a detailed view of the report with a structure that is better suited to the data concerned and make it the default view. (For an example, see the treatment of the PRODUCT_DESCRIPTION column in the detail view of the report in the sample database Application: click the show details on the product page.)

    The third possibility is some sort of customization of the presentation of the data. It will be using a combination of HTML/CSS/dynamic of the Actions/Plug-ins/JavaScript that you may not be familiar with: do you have any experience of these? To go this route, you must describe in detail how you want to present data, or what behavior is required when the data is too long and share a sample of the report on the apex.oracle.com we can work with.

Maybe you are looking for