Audit activity for all objects in a schema

Hi,
Is there a way to audit all DDL statements and certain DML statements (i.e. DELETE) for all objects in a particular schema? I've been going through the Oracle documentation, and there doesn't seem to be a straightforward way to do this. For example, I've figured out that I can audit all DELETEs (too broad) or DELETEs on a particular schema object (too narrow), but nothing in between.
The "AUDIT...BY <USER>" statement looked promising, but it doesn't cover statements issued by other users with access to the schema.
Any help greatly appreciated!

Is there a way to audit all DDL statements and certain DML statements (i.e. DELETE) for all objects in a particular schema?You can audit all the DDLs you need and the DMLs you need.
For example, I've figured out that I can audit all
DELETEs (too broad) or DELETEs on a particular schema
object (too narrow), but nothing in between.I think you need to explain more on what you need to do because your "but nothing in between" is not clear.
Something in between ?
SQL>AUDIT DELETE ON EMP;
SQL>AUDIT DELETE ON EMP WHENEVER SUCCESSFUL;
SQL>AUDIT DELETE ON EMP WHENEVER NOT SUCCESSFUL;
SQL>AUDIT SELECT ON EMP;
The "AUDIT...BY <USER>" statement looked promising, but it doesn't cover statements issued by other users with access to the schemaYou can audit BY ACCESS, BY PROXY, BY SESSION

Similar Messages

  • Grant permission to all objects of a schema to apps user(Oracle 10g)

    Dear Fiiends,
    I would like to grant permission on all objects of a particular schema to apps user(Oracle 10g).How do I do it?
    (ex)grant all on <schemaname>.<objectname> to apps with grant option.
    This is the permission i want to give but i can't do it for all objects one by one so how do i do it in a single command.
    Regards,
    Arun

    You can't do it in a single command. You have to give object-by-object privileges (you could grant something like SELECT ANY TABLE, but that applies to every schema in the database and is generally a rather bad idea). You can, however, use a bit of dynamic SQL to do the job, i.e.
    FOR x IN (SELECT * FROM user_tables)
    LOOP
      EXECUTE IMMEDIATE 'GRANT ALL ON schema_name.' || x.table_name || ' TO apps WITH GRANT OPTION';
    END LOOP;You can do the same with other object types, hit DBA_TABLES rather than USER_TABLES if you don't want to run this as the object owner, etc.
    Justin

  • Key focus is not visible for all objects when tabbing

    I'm using LabView 5.1.
    The key focus is not visible for all objects when tabbing through a "disabled and grayed-out" object.
    For example, let's say I create a panel with 3 buttons. If I create a "disabled" attribute for button 2 and assign the value "2" (disabled and grayed-out) to it. When I will run this VI, the key navigation will go through button 1 and button 3 (skipping button 2 as expected) but the key focus on button 3 will not be visible.
    Is this a bug with LabView or am I doing something wrong ?

    Hi Ben,
    Don't worry, time is not an issue... I'm posting an example of a VI with the problem I described. I noticed that the problem occurs only with "dialog buttons".
    When you have time, let me know if you see the same behavior. If you do, I will report the problem to National Instrument.
    Thanks for your time !
    BigBen
    Attachments:
    3buttons.vi ‏22 KB

  • How to set user preferred timezone in OBIEE for all objects.

    How to set user preferred timezone in OBIEE for all objects based on users TZ(may be from @{session.timeZone}). without changing My Account -> Preferences

    Check
    Time Zone Specification from http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535403
    just in case https://blogs.oracle.com/xmlpublisher/entry/how_to_keep_your_dates_from_go

  • Bug SDK-17114  flex.effects.Rotate - Selection Glow Is Rotated For All Objects (Not Just Effect.Target)

    Re: Bug SDK-17114 flex.effects.Rotate - Selection Glow Is
    Rotated For All Objects (Not Just Effect.Target) at
    http://bugs.adobe.com/jira/browse/SDK-17114.
    Looks like this bug was fixed as of yesterday - I'd like to know
    when there will be a patch available to users. I bought Flex 3 just
    in the last few weeks, so it would be nice if I could get a free
    patch. However, my main concern is how to do a workaround. I can't
    deliver my application with this problem, and if the patch is not
    available, I don't have an alternative. Is there a way to access
    the selection rectangle object and set its rotation
    explicitly?

    Thanks, Michel.
    I forgot to mention one point about copying shape layers into one shape layer:  when you initially use the Shape Selection tool to select a shape for cutting, make sure the option for the Shape Selection tool is set to "Add to Selection".
    MichelBParis wrote:
    The problem with Elements+ is that it has so many features you soon forget what it can give you !
    Truer words were never spoken! 
    Ken

  • Cannot recolor artwork for all objects in Vector?

    Hello All,
    I used Live Trace to create a Vector. On some of the objects in Vector I can recolor artwork, but others there is no options to recolor. Does anyone know why and is it possible to see recolor options for all objects?

    Recolor artwork is a great tool for recoloring specific colors in the artwork without having to select specific objects and and change the swatch used for that object. If you select all, and enter the recolor function you should see all the swatches for all the selected art, and change a swatch color throughout the artwork. There is much more to this function, but for what you're doing this is a quick easy way to effect color changes to all objects colored with a specific swatch. Check the on line help, Help>Illustrator Help for more on recoloring.
    Here is a Tutorial if you're intrested too.
    http://rwillustrator.blogspot.com/2009/01/tutorial-recoloring-artwork.html

  • Package name for all objects

    Gurus
    Any easy way to know package name for all objects.
    Thankyou Gurus

    Hi,
    double click on the object-then select extras menuthen select write transport request--
    it will show the package of present.
    hope this help you
    regards
    harikrishna N

  • Search script generator for all objects and data (!) from a user/schema ?

    Is there a way to create a script which (when run) creates all the existing
    TABLES; INDEXES, KEYS and DATA for a specified user/schema ?
    This (PL-)SQL script should contain all INSERTS for the currently existing rows of
    all the TABLEs.
    When I use e.g. export to Dumpfile I have at first find all TABLEs and components
    which I want to dump. This is rather uncomfortable.
    I just want to specify the user name similar to
    createscript user=karl@XE outfile=D:\mydata\myscript.sql
    Is this somehow possible ?

    So that I understand your requirements exactly, are you asking for your script to ...
    1/ export from database A the entire schema of a specified user
    2/ drop all objects owned by that user in database B
    3/ import the objects from database A into database B
    If so, it sounds to me that a shell script that does a schema level export as Nicholas suggested, and then drops the user from database B using the cascade keyword (e.g. drop user username cascade), recreates the user and then imports the export file into B should do the trick.
    I don't think searching for individual tables and creating the statements to recreate them is the best idea.
    Hope that helps
    Graham

  • Generating .sql script for all objects of a User/Schema

    Hi All,
    What are the ways in which I can generate scripts for a full USER (all objects) with dependencies. (by dependencies I mean for example that PK be created first before creating FK).
    We can export the full schema using (exp rows=n) but this will generate a .dmp file. I want a .sql file which can be run on any other machine (from SQL> prompt) so that user and all objects are created (without the need to use "imp").
    Thanks
    -AKJ

    But the easiest way to do this would be to do an export with rows=N and then an import.
    You coule do an export and then let run the import utility with indexfile=<you_name_it>.sql and this way you'll get a file with all statements included (but table definition commented out).
    Or you do it yourself (DIY-method), where you have to select all your relevant objects and their dependencies.

  • Extract DDL for all objects separately !

    Hi All
    I have a huge DB having 3000 tables (having indexes,triggers,synonym), 1200 functions/procedures, 1000 views etc.
    I need to extract only metadata and put into a version control repository.
    I need to extract all objects (tables,procs,functions,views) in separate files, with the grants for each procs/func/table/view in the respective procs/func/table/view file only.
    Indexes should be in respective table file only. Each object (procs/func/table/view etc) should have DROP command in the beginning.
    I tried sql developer, but it gives separate files for grants,indexes,triggers,drops etc and also gives option to generate one script for all tables, one for all views, one for all indexes and so on, so doesn't satisfy my requirement.
    Please suggest me a good tool (preferably FREE one) to extract the metadata in said fashion.
    Thanks.

    AnkitV wrote:
    Hi All
    I have a huge DB having 3000 tables (having indexes,triggers,synonym), 1200 functions/procedures, 1000 views etc.
    I need to extract only metadata and put into a version control repository.
    I need to extract all objects (tables,procs,functions,views) in separate files, with the grants for each procs/func/table/view in the respective procs/func/table/view file only.
    Indexes should be in respective table file only. Each object (procs/func/table/view etc) should have DROP command in the beginning.The hard part is the requirement of separating the items into different files.
    sb2075's answers are your best option. Write a PL/SQL script on the server to use DBMS_METADATA.GET_DDL or whatevever equivalent extraction routine will work for you. Loop through the objects you need from the data dictionary and writing the data using UTL_FILE. The simplified logic should look something like
    foreach table
      get the ddl
      generate filename
      open file
      write ddl
      close file>
    I tried sql developer, but it gives separate files for grants,indexes,triggers,drops etc and also gives option to generate one script for all tables, one for all views, one for all indexes and so on, so doesn't satisfy my requirement.You don't want to manually use SQL*Developer to do 3000 extractions anyways. The script should do it all for you.

  • Gather shema stats for all objects in DB taking too much time

    Dear ,
    we schedule concurrent request " Gather Schema Statistics" to gather ALL schema on DB weekly . it takes on Test 4.5 hours to complete and 5 hours on Production system . we have only HR in Production and very soon it will start supply chain and Financial so I'm afraid from this time to increase in the near future . how could we reduce this time ? i tried to gather stats only with changed objects using " GATHER AUTO " option instead of " GATHER " but it gave me the following error
    Cause: FDPSTP failed due to ORA-20001: NEW TABLE is an invalid identifier
    ORA-06512: at "APPS.FND_STATS", line 799
    ORA-06512: at line 1
    The SQL statement being executed at the time of the error was: SELECT R.Conc_Login_Id,
    Start of log messages from FND_FILE
    In GATHER_SCHEMA_STATS , schema_name= ALL percent= 10 degree = 8 internal_flag= NOBACKUP
    ORA-20001: NEW TABLE is an invalid identifier
    End of log messages from FND_FILE
    please if anyone knows how to reduce time for Gather stats or know how to solve this error he'll be much appreciated

    Hi,
    i tried to gather stats only with changed objects using " GATHER AUTO " option instead of " GATHERYoudo not have to change this parameter, just schedule the concurrent program for HR (as suggested above), and you can schedule it for other schemas on regular basis (at the weeke ends) when there is no activity on the system -- Please see (Note: 168136.1 - How Often Should Gather Schema Statistics Program be Run?).
    Regards,
    Hussein

  • Table for all objects in a bex query structure

    Hi All,
    I am looking for some table/report/t code where I can find all Char,Kf,Rkf and Ckfs along with technical name of that query.
    I know there are couple of work around for this like capturing a screenshot or collect objects via transport connection and copy paste objects from there.
    Basically I need a meta data repository where I can see all this information in a complete manner. I tried to dig around in some tables but they don't have all information  at single place.
    Any help would be appreciated.
    Thanks,
    Vikas

    Hey.  There are a number of tables related to query elements.  I would go through them and figure out which pertain to exactly what you need.  You could then buold an InfoSet query (via SAP Query)  to output all the information you are looking for.  Here is a list of the main query tables...
    Table Name          Use of the table
    RSZELTDIR -      Directory of the reporting component elements
    RSZELTTXT     -     Texts of reporting component elements
    RSZELTXREF -    Directory of query element references .
    RSRREPDIR      -    Directory of all reports (Query GENUNIID) .
    RSZCOMPDIR  -  Directory of reporting components.
    RSZRANGE      -    Selection specification for an element
    RSZSELECT      -    Selection properties of an element
    RSZCOMPIC      -    Assignment reuseable component <-> InfoCube
    RSZELTPRIO      -    Priorities with element collisions
    RSZELTPROP  -   Element properties (settings)
    RSZELTATTR  -   Attribute selection per dimension element
    RSZCALC       -  Definition of a formula element
    RSZCEL  -  Query Designer: Directory of Cells
    RSZGLOBV     - Global Variables in Reporting
    RSZCHANGES - Change history of reporting components
    Sorry, I know this looks messy,  Cut and paste didn't work for me that great.
    Thanks

  • Filter not working for all objects

    I have 17 objects in one group with an applied "Repel" behaviour. All of the objects are affected except one, why is this?

    Move the object that doesn't move slightly off of "dead center" (0,0,0).

  • Sound not activating for all 5 speake

    I followed the directions in this thread:
    http://forums.creative.com/creativelabs/board/message?board.id=soundblaster&message.id=2563
    but when I'm doing the "test speakers" on the Creative Sound Mixer, I'm only hearing "front left" and "front right". I see the other speakers highlight during the test, but no results.
    I have the Sound Blaster Li've LS card, and Creative Labs 5. 560 speaker system.

    Never mind. I think it fixed when I unchecked the box that referred to the controll panel, or it was just the act of rebooting. It's all good.

  • Shared Libray UDF does not work for all objects

    I have created a shared UDF Library and am successfully using the code in other mappings.
    however when i am trying to apply the code to two new mappings, the code does not work!  there is nothing special about the code.  just get the MessageID.
    public String GetMessageID(Container container) throws StreamTransformationException{
    //This UDF gets the PI message ID
    String constant;
    java.util.Map map;
    map = container.getTransformationParameters();
    constant = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
    return constant;
    it works when i enter the messageID in graphical mapping, but when i test end to end, it does not work!
    and as i mentioned, it works in two other interfaces...   but not in the new one! 
    any thoughts?

    after applying the latest patches it seems to have corrected iteslf

Maybe you are looking for