Check out when a last accessed table (select, insert, update) with time stamp. Auditing enabled

Hello world

IM pretty new to audit the database. Auditing is enabled in the database. I would like to retrieve the news all of the objects belonged to a certain pattern when it was last accessed (select, insert, update) with time stamp. Is there any script for this? Your time and your reply is greatly appreciated. Thank you.

Database version: 11.2.0.4

Enable audit is not quite enough to get the details when the table is updated/inserted/selected.

You must activate audting on the object level, then you may only be able to see your report of your choice.

SELECT OBJ_NAME, ACTION_NAME, to_char (timestamp, ' dd/mm/yyyy, hh') of sys.dba_audit_object.

Tags: Database

Similar Questions

  • user who has the rights to select/insert/update

    I want to know what user has select, insert, update, delete, run, rights on the tables of the ERP.

    concerning

    oracleRaj wrote:
    I want to know what user has select, insert, update, delete, run, rights on the tables of the ERP.

    concerning

    Mark from dba_tab_privs according to the table of ERP

  • Check out the rest of the file persistent even if the feature is not enabled

    I've recently implemented a few new sites in Dreamweaver CC 2015, using some of the same issues with old sites discover the features used.  Well that Enable Check-out is not activated/checked in the tab advanced for these new sites, the lock icon is still on the local folder and opening files, I invited them as read-only, I want to make it writable.  Sometimes I have a dialog box that indicates that "personA", which is to me, the extracted file.  How can I remove features of extraction of these new sites?  Furthermore, I am sure that this started after the upgrade to Dreamweaver CC.

    Thank you, and any help will be appreciated.

    Frank

    It works:

    attrib -r c:\folder\*.* /s 
    

    attribis the command
    -r isthe flag to remove the read-only attributes
    c:\folder\*.*is the folder that you run it on more wildcards for all files
    /sis the flag to all subdirectories and files

    It does nothing hidden or system files, if maybe that's a problem.

    All of my hair are now gone.  Thank you much for the help, Murry!

    Frank

  • record in the table with time stamp

    Hello
    I use Forms6i and db 10g
    I have a datablock in my form, which is based on a table hlp_user_master.
    The table has fields crt_on, upd_on. who is date type.
    Now I'm set sysdate to these areas, before saving it to the database.
    He is now in the database, just.
    But I want it to be like date with the time.
    My Manager said to set the data type of the fields in the form.
    I did the DateTime data type, in the form
    but still in the database, just when saving

    Help, please

    Hello
    If you have changed in the form of the datetime data type and the mask format as I said in my previous post. Then, the database will have time also after saving it. I guess that you are checking in via SQL * more. If so, try the following query.

    SELECT TO_CHAR(DATE_COLUMN,'DD-MON-YY HH24:MI:SS');
    FROM TABLE_NAME;
    

    If the form is stalling as it will display then with time.

    -Clément

  • Rough terrain when the data is plotted with time stamp of AM / PM or to the right!

    Hi to all programmers.

    I'm attached Datafile. Can someone tell me how to draw this line! I need all of the data plotted on the right and the x - axis with the date and time stamp.

    I understand that the chart cannot understand that after the time: 12:59:59.999, it's 01:00:00.000 afternoon.

    Thanks to Labview 7.1

    Concerning

    HFZ

    Apart from a code that can be simplified by the use of other functions, what I see, it's that the file you provided does not match the format that expects the VI.

    Other comments:

    • I don't understand why you're going to all the trouble of the evolution of the time string when all what you need to do is:

    • All the way at the beginning, use the function of path of the band to get the file name rather than the gymnastics that you're doing.
    • Your time loop must be indexed for auto-loop.
    • I can't quite understand what you're trying to do with all these sliders.
  • check duplicates when adding lines to single selection

    Hi all
    I my have the table. User can add rows by clicking the Add button. Suppose the user selects the code as LOV CODE1, then click Add and the code as CODE1 .at that time single user must be informed that he chose this code.this table has unique salt; ection. ANC, someone tell me how the functionalty above can be achieved.

    Thank you
    Amrit

    Hello

    When he clicks on LOV, he calls the processFromRequest, here you can browse the VO and can check, whether the values of two columns are then even throw the exception.

    thanx
    Pratap

  • ReadyNAS 104 times out when trying to access directories with too many files.

    I am facing a problem where the contents of the directories which exceed a certain number of files (I'm not sure of the exact limit) may not display. I tired to view through the Finder on OSX files, through the web and even on the iOS app browser interface. The directories contain a large number of image (jpeg and png, for the most part) files. Directories with fewer files seem to open and display correctly, even when they have similar content (image, in this case files).

    I'm running a configuration using X-RAID with 3TO discs in each of four bays.

    This question is severely limiting the usefulness of my SIN, so I'd appreciate a quick answer on how to solve this problem.

    Thanks in advance.

    Changing the backend setting solves the problem.

    TheNoel says:

    "The difference is night and day. The largest directory containing 12 000 files loads quickly and is easy to navigate via SMB.

  • Creating the table with time stamp

    I need to create the table with the data inside buffer

    Can you help me pls

    If it works today,

    create the table test_04NOV2010 in select * from product where product_code = '101'

    If executed tmrw,

    create the table test_05NOV2010 in select * from product where product_code = '101'
    declare
    
    v_date varchar2(25);
    v_sql  varchar2(20);
    
    begin
    
    select to_char(sysdate,'DDMONYYYY') into v_date from dual;
    
     v_sql := ' create table ' ||TEST||'_'||'v_date'|| 
                 ' as '
                 ' select * from Product where product_code = '101'
              
     EXECUTE IMMEDIATE v_sql;
    
    end;
    can is it you pls let me know how to use it in PL SQL

    Can you help me pls

    Thank you very much
    declare
    
    v_date varchar2(25);
    v_sql  varchar2(2000); --Noted this. this was also small.
    
    begin
    
    select to_char(sysdate,'DDMONYYYY') into v_date from dual;
    
     v_sql := ' create table TEST_'||v_date||
                 ' as select * from Product where product_code = ''101''';
    
     EXECUTE IMMEDIATE v_sql;
    
    end;
    

    You can use the Q operator also.

    DECLARE
    
    v_date varchar2(25);
    v_sql  varchar2(2000);
    
    BEGIN
    
    select to_char(sysdate,'DDMONYYYY') into v_date from dual;
    
     v_sql := ' create table TEST_'||v_date||
                Q'[ as select * from Product where product_code = '101']';
    
     EXECUTE IMMEDIATE v_sql;
    
    END;
    

    Published by: mohamed on November 4, 2010 05:32

  • Is there a way to know the date of last access to a file?

    The file is protected and could not be changed, it is of no help.  I think he was sent by e-mail or printed.

    Hi Joelleph,

    If you need to know the time of the file when the last access, you can check its properties.

    a. open the file location

    b. right-click on the file.

    c. Select Properties. Check the access the time.

    If this isn't what you're looking for then respond with more information so we can help you best.

  • outer join when there are several tables are involved

    Could not put up the question correctly to the last channel, my problem is with the join when there are several tables are involved, this is just one example of the task that I have to carry.

    Tab1 aura model id retailer_id information for all the weeks (from the first Monday) of the month of JUNE with cost and Helen

    Tab1

    model_id

    retailer_id

    sell_date

    cost

    Helene

    1

    12

    June 3, 13

    100

    40

    1

    12

    June 10, 13

    200

    20

    1

    12

    17 June 13

    300

    20

    1

    12

    24 June 13

    400

    20

    2

    12

    June 3, 13

    300

    10

    2

    12

    June 10, 13

    200

    20

    2

    12

    17 June 13

    300

    20

    2

    12

    24 June 13

    400

    20

    Tab2:

    each retailer belongs to a dealer, under the table has the same information

    retailer_id

    Dealer_id

    12

    100

    13

    100

    14

    101

    15

    101

    16

    101

    Tab 3

    There is a third layer where each dealership is having a garage band

    Dealer_id

    Dealer_group

    100

    1001

    101

    1001

    102

    2001

    103

    2001

    104

    3001

    105

    3001

    Tab4:

    Of this table for each model and dealer discount information for the month of June (every week)

    model_id

    Dealer_group

    discount_date

    discount

    1

    1001

    June 3, 13

    10

    1

    1001

    June 10, 13

    20

    1

    1001

    17 June 13

    10

    1

    1001

    24 June 13

    30

    2

    1001

    June 3, 13

    10

    2

    1001

    June 10, 13

    20

    2

    1001

    17 June 13

    10

    2

    1001

    24 June 13

    30

    3

    2001

    June 3, 13

    10

    3

    2001

    June 10, 13

    20

    3

    2001

    17 June 13

    10

    3

    2001

    24 June 13

    30

    Master_info:

    It's the main table which is the master table for model /retailer information

    Model_id

    retailer_id

    1

    12

    2

    12

    3

    12

    4

    12

    1

    13

    2

    13

    Output

    model_id

    retailer_id

    sell_date

    cost

    Helene

    Final (cost-helene-discount)

    1

    12

    June 3, 13

    100

    40

    50

    1

    12

    June 10, 13

    200

    20

    160

    1

    12

    17 June 13

    300

    20

    270

    1

    12

    24 June 13

    400

    20

    350

    2

    12

    June 3, 13

    300

    10

    280

    2

    12

    June 10, 13

    200

    20

    160

    2

    12

    17 June 13

    300

    20

    270

    2

    12

    24 June 13

    400

    20

    350

    3

    12

    June 3, 13

    0

    0

    0

    3

    12

    June 10, 13

    0

    0

    0

    3

    12

    17 June 13

    0

    0

    0

    3

    12

    24 June 13

    0

    0

    0

    4

    12

    June 3, 13

    0

    0

    0

    4

    12

    June 10, 13

    0

    0

    0

    4

    12

    17 June 13

    0

    0

    0

    4

    12

    24 June 13

    0

    0

    0

    1

    13

    June 3, 13

    0

    0

    0

    1

    13

    June 10, 13

    0

    0

    0

    1

    13

    17 June 13

    0

    0

    0

    1

    13

    24 June 13

    0

    0

    0

    2

    13

    June 3, 13

    0

    0

    0

    2

    13

    June 10, 13

    0

    0

    0

    2

    13

    17 June 13

    0

    0

    0

    1

    13

    24 June 13

    0

    0

    0

    For highted above records (model_id / retailer_id combination) there is no record in tab1 but they have entered in master_info then the recordings should come for all model_id/retailer_id with all the 0 values

    Hello

    Thanks for posting the sample data.

    It is unclear what dates you want to include in the output.  The following query shows how you can generate every Monday in a given range.  If you only want to include the dates that are actually present in tabl1 and/or tab4, you can simplify this a bit.

    WITH date_range AS

    (

    SELECT TRUNC (TO_DATE (' 3 June 2013', 'DD-Mon-YYYY'))

    , 'IW '.

    ) AS first_monday

    , TRUNC (TO_DATE (24 June 2013 ', 'DD-Mon-YYYY') + 6)

    , 'IW '.

    ) AS last_monday

    OF the double

    )

    all_mondays AS

    (

    First_monday SELECT + (7 * (LEVEL - 1)) AS sell_date

    OF date_range

    CONNECT BY LEVEL<= 1="" +="" (="" (last_monday="" -="">

    / 7

    )

    )

    SELECT mi.model_id

    mi.retailer_id

    am.sell_date

    , Cost of NVL (t1.cost, 0) AS

    , NVL (t1.rebat, 0) IN the refund

    , NVL (t1.cost, 0)

    -(NVL (t1.rebat, 0))

    + NVL (t4.discount, 0)

    ) AS final

    E master_info

    CROSS JOIN all_mondays am

    LEFT OUTER JOIN tab1 t1 ON t1.model_id = mi.model_id

    AND t1.retailer_id = mi.retailer_id

    AND t1.sell_date = am.sell_date

    LEFT OUTER JOIN tab2 t2 ON t2.retailer_id = mi.retailer_id

    LEFT OUTER JOIN tab 3 t3 ON t3.dealer_id = t2.dealer_id

    LEFT OUTER JOIN tab4 t4 ON t4.model_id = t1.model_id

    AND t4.dealer_group = t3.dealer_group

    AND t4.discount_date = t1.sell_date

    ORDER BY mi.retailer_id

    mi.model_id

    am.sell_date

    ;

    The results are not exactly what said you you wanted.  I suspect it's because of typos in that you posted.

  • How know when an Oracle table has been updated last time?

    I want to find when the last INSERT, UPDATE, or DELETE statement is executed on a table (for now, in the future, I want to do it in several tables) in an Oracle database.

    I created a table and then I updated one of its lines. Now, I have the following code:

    SELECT ORA_ROWSCN * FROM test_table;

    SELECT SCN_TO_TIMESTAMP (ora_rowscn) in test_table;

    Copy the following code, show timestamps of each row, but from the point where they were created. The line I've updated, have the same time other stamps. Why?

    Can someone help me please?

    Wrong forum!

    As the forum title suggests, this forum is for SQL Developer questions and your question has NOTHING to do with this tool.

    Please mark this question ANSWER and repost it in the forum Sql and Pl/Sql

    SQL and PL/SQL

    Before repost you I suggest you read the ORA_ROWSCN Oracle documentation.

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/pseudocolumns007.htm

    Copy the following code, show timestamps of each row, but from the point where they were created.

    No - this isn't what he does this last link doc treats:

    For each line, ORA_ROWSCN returns the number of change of system (SNA) conservative upper limit of the most recent change to the line.

    If the value will be updated if a line in a block is changed.

    The line I've updated, have the same time other stamps. Why?

    The default is to BLOCK, not the level of the line level - there is only ONE value for the block. If a block contains 100 lines, they appear to have the same value, the value for the block.

    For tables defined with ROWDEPENDENCIES values are actually stored for each line.

    The * views _TAB_MODIFICATIONS will show you the last time a table has changed SINCE the statistics were collected.

    https://docs.Oracle.com/CD/B28359_01/server.111/b28320/statviews_2095.htm

    If you need more help or explanation post a new thread in the right forum.

  • Table tree - Select All child nodes at the same time when the Parent node is selected.

    Hi all

    I am relatively new to ADF and JDeveloper, and so I hit a problem I can't deny.

    I have a tree table that looks like the following...

    1 status | Name | Employee ID

    -> Status 2. Name | Employee ID | etc. | etc.

    -> 3 status. Name | Employee ID | etc. | etc. | etc.

    I want to do is when I select the node from top of the line/parent (line 1) page I would like child nodes (lines 2 and 3) to choose from in the same mouse clicks.

    In the end I will be citing a listener of the property on a button, once the selection was made, to change the value of the 'Status' column in all three levels that have been selected.

    NB. each level in the tree above is derived from 3 views distinct, who are joined on the employee ID.

    Thanks in advance for your help and your advice.

    Kind regards

    Jamie.

    Jamie, tell us your version of jdev, please!

    This http://andrejusb.blogspot.de/2012/11/check-box-support-in-adf-tree-table.html Blog shows how to implement this.

    Timo

  • Date-time info - when the last time any new record is inserted in a table

    Hi all

    is it possible to get information from Date and time - when the last time any new record is inserted in a table without triggers...?

    Thanks in advance.
    / Shakeel

    Hello

    user11981535 wrote:
    is it possible to get information from Date and time - when the last time any new record is inserted in a table without triggers...?

    Insert only, I don't think it's possible.
    But you can ora_rowscn pseudo-column and scn_to_timestamp the user function to get the time when the table was modified last:

    Scott@my11g SQL>select scn_to_timestamp(max(ora_rowscn)) lstmod from t1;
    
    LSTMOD
    ---------------------------------------------------------------------------
    13-DEC-10 05.05.22.000000000 PM
    
    Scott@my11g SQL>update t1 set val='stuff' where id=1;
    
    1 row updated.
    
    Scott@my11g SQL>commit;
    
    Commit complete.
    
    Scott@my11g SQL>select scn_to_timestamp(max(ora_rowscn)) lstmod from t1;
    
    LSTMOD
    ---------------------------------------------------------------------------
    13-DEC-10 05.07.19.000000000 PM
    

    But I'm not wheither it is reliable to be used on the production database.

  • How to list the when a Table is created, and when the last change?

    Is there a way to know when a TABLE was created originally, and when the last change (=. for example, the last INSERTION of a line or UPDATE a line)?

    Peter

    Hello!

    select created,last_ddl_time from dba_objects where object_type = 'TABLE' and object_name = 'table_name'
    

    created ways to create object (table)
    last_ddl_time means when the structure of tables was the last modified time

    But there no opinion with dml last on the table. You must provide this with a few columns on table (Last_dml_time) that should be filled with
    Some database triggers

    Or if you have enabled AUDITING, then last time dml is registered also in audit trail

    T

  • Stolen phone. How can I check when the last time saved my phone to my laptop (without my iphone of course)?

    My iPhone was stolen. How can I check when the last time that I backed up my phone to my laptop without my iPhone?

    Click here and either use iTunes to check or browse to the path of the backup manually.

    (142338)

Maybe you are looking for