Last dml,ddl

hi
Can I find the last time of dml or ddl of specıfıc table?

desc dba_objects
Name Null? Type
OWNER VARCHAR2(30)
OBJECT_NAME VARCHAR2(128)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(18)
CREATED DATE
---> LAST_DDL_TIME DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)
Is there any chance you will ever resolve any doc question on your own by not misusing this forum structurally as a free documentation lookup service?
Why can't you do anything on your own?
Why are you so lazy?
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • View for Last executed DDL ?

    Hi,
    Is thr any view to find out the last executed ddl ?
    Because i need to know last change happend in the database .
    Thanking You
    Jeneesh

    From asktom :
    Tom,
    Can I have my last executed SQL retrieved from the database?
    just by passing the sid. I want those SQL executed in my application not the onse executed by
    Oracle itself
    Followup   November 12, 2003 - 5pm US/Eastern:
    you'll get the last sql executed by joining v$session to v$sql. if the last sql executed was
    recursive SYS sql -- you'll get that (that would be the last sql).  we really don't discriminate
    between them
        Forgot to tell you this data dictionary view will age out. So there is no absolute guarantee you will find all the sql executed since the database instance has been started. Other option is Audit. For more information refer oracle manual.
    Regards
    Ra
    Message was edited by:
    s.rajaram

  • How to find the last DML timings on any particular table in oracle 10g?

    Hi All,
    I need to know in one particular table when the last DML operation happen and what is the dml query ?
    Thanks
    Bala

    Hi;
    Please see:
    find last dml operation time on a table
    find last dml operation time on  a table
    Last DML time
    find last dml operation time on  a table
    time of last DML
    Regard
    Helios

  • How to find last DML operation in oracle ADF

    how to find last DML operation in oracle ADF
    Please help me
    Thanks
    Damby

    In the base EntityIml class, just override doDML() method as I said.
    (see http://docs.oracle.com/cd/E16162_01/web.1112/e16182/appendix_mostcommon.htm
    "Methods for Creating Your Own Layer of Framework Base Classes")
    So, put a some flag in the session.
    You should not call doDML() method in backing bean, it will be called by framework.
    In the backing bean, you only have to get that information from the session, as follows:
    String last_dml_op = (String)ADFContext.getCurrent().getSessionScope().get("last_dml_op");And voila...

  • Sir,how to find the last DML operations

    Hi,
    Please tell me how to find the last DML Operations at least minimum 30 queries.
    Thanks in advance,

    Shared Pool is a memory location in SGA that contains SQL Statement that are submitted to Oracle for execution. This area is common to the entire database. Its not specific to user.
    So what ever Unique SQL statement that is submitted to the SQL Engine will be available here. Shared Pool has a size limit. That is defined by the parameters SHARED_POOL_SIZE and SHARED_POOL_RESERVED_SIZE. So when the Shared pool becomes full the data needs to be removed from it. That is done in FIFO basis.
    Oracle provides a visibility to this area through dictionary view V$SQLAREA. So this view will not only contain the SQL executed by you but also by every one. Even the one executed by oracle itself.
    So in my opinion what you are asking is not possible to get. You must have some logging mechanism in your application to get this information.

  • Anyone know of a good OLAP DML/DDL  tutorial?  (and NOT reference guide)

    In addition to Analytic Workspace, I am trying to learn how to build cubes using just the OLAP DML / DDL language.
    Oracle and others have published a great deal of reference material on the language of OLAP DML / DDL but I can't find any real tutorials that guide me logically thru the process of creating cubes and all that goes with it (defining dimensions, hierarchies, measures, calculations etc..) All the reference material is spread out in bits and pieces and difficult to efficiently learn from. Does anyone have any good OLAP DML / DDL tutorial links they could recommend? Thanks.

    John W wrote:
    Oracle and others have published a great deal of reference material on the language of OLAP DML / DDL but I can't find any real tutorials that guide me logically thru the process of creating cubes and all that goes with it (defining dimensions, hierarchies, measures, calculations etc..) All the reference material is spread out in bits and pieces and difficult to efficiently learn from. Does anyone have any good OLAP DML / DDL tutorial links they could recommend? Thanks.This is a very difficult task. The OLAP DML/DDL only supports basic multidimensional variables, dimensions (very primitive), and relations. The externally visible cubes and dimensions are a construct of a lot of component objects (a dimension has many primitive dimensions and relations put together to create the higher level DIMENSION that goes with a cube; a cube has multiple variables and other pieces that get put together) in the AW, plus a bunch of metadata objects in the Oracle dictionary.
    You really don't want to try to create your own and expect them to interact with the OLAPI interfaces. It is possible to construct your own version of things, but you'd also have to do your own view generation, etc. There are applications out there that are created from scratch, but they are completely from scratch (including whatever interactions they have via SQL). Whatever you create will not work with any of the Oracle-provided interfaces, nor the recently-announced Simba MDX package.
    Jim

  • How to pull a last DML done on any table

    Hi Gyans,
    Is there a way for to pull the last DML done on any table, using normal sqlplus - if not then let me know the tool which you can use to do the same.

    Have you gotten ora_rowscn to work ?
    SQL> select scn_to_timestamp(max(ORA_ROWSCN)) from TABLE1;
    SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN))
    22-SEP-08 01.13.30.000000000 PM
    SQL> insert into table1 values(8);
    1 row created.
    SQL> select scn_to_timestamp(max(ORA_ROWSCN)) from TABLE1;
    SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN))
    22-SEP-08 01.13.30.000000000 PM
    SQL> alter system switch logfile;
    System altered.
    SQL> select scn_to_timestamp(max(ORA_ROWSCN)) from TABLE1;
    SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN))
    22-SEP-08 01.13.30.000000000 PM
    SQL> select sysdate from dual;
    SYSDATE
    23 SEP 2008 17:05:07

  • Any issue if we writing DML,DDL and TCL commands in stored functions.

    Hi,
    Is there any issue if we writing DML,DDL and TCL commands in stored function with help of PRAGMA AUTONOMOUS_TRANSACTION.

    Hi,
    Yes, Ofcourse. Using DML Statements Inside the function using PRAGMA AUTONOMOUS_TRANSACTION is not highly
    recommended. It is recommended to use AUTONOMOUS TRANSACTION for error logging purposes only, and
    when used in an disorganized way it may lead to dead locks and we will have problem when examining the
    Trace Files.
    Thanks,
    Shankar

  • Reg. Extracting DML/ DDL Stmnts.

    hi ,
    I dont have access to Db . So I apologise straight away for not trying out the code myself to interpret and scrutinise.
    The code is to extract DML / DDL stmnts from all_procedures. and I have tried a sample (select stmnt) of it . Please let me know if its wrong or working fine.
    create or replace procedure sp_identify_stmnts (i_table in varchar2)
    is
    i_text varchar2(32767);
    begin
    select REGEXP_SUBSTR(replace(text,chr(10)),'select+;$',1,1000,'i') into i_text from ALL_PROCEDURES where
    PROCEDURE_NAME=i_table ;
    dbms_output.put_line('text is ' || i_text);
    end;
    /Oracle 10g release 2

    It won't work, because ALL_PROCEDURES has no TEXT column with code.
    I think you have to use something like this:
    select text
    from all_source
    where type='PROCEDURE'
      and owner=:proc_owner
      and name=:proc_name
    order by line -- code is splittet in multiple lines
    ;

  • Creating DML/DDL Handler

    I need to create dml/ddl handlers, i have searched a lot, but yet to find such materiel to learn. I need from beginner to advance level material with examples. Can any one help me. I have thousands of DEQUEUE MESSAGES to handle.

    thank no error code work fine.
    Mohd.hamza :)

  • Last update DDL time of column

    Hi,
    Requirement: when the column of the table got updated.
    I have tried to use following query but my Oracle9i Enterprise Edition Release 9.2.0.8.0 does not support ORA_ROWSCN.
    SELECT SCN_TO_TIMESTAMP(ORA_ROWSCN) from FOLDERHEADERS;I need to know when folders.notify column got updated last time.
    select *
    from folders
    where notify is not null
    where dept = 10;Thanks
    Sandhya

    Since you are using Oracle 9.2, if you don't have something that tracks updates (i.e. a LAST_UPDATED_TIME column in the table, an audit trail, etc.), you're probably out of luck. Oracle doesn't track that information.
    If you're really desperate and your database is in ARCHIVELOG mode and you have all the archived log files from the days when the modification could have been made, you could potentially use LogMiner to read through the redo logs looking for changes of interest. This would be very slow and likely very manual so it would not be appropriate to do from an application. But it could be done if you're trying to track down a one-off issue.
    Justin
    Edited by: Justin Cave on Jun 29, 2011 4:32 PM
    Note that your subject line refers to DDL but the text of your question appears to relate to DML changes. I assumed the latter (DML tracking) was the actual goal. If you're tracking DDL, that is tracked at the table level in the LAST_DDL_TIME column in DBA_OBJECTS but not at the column level. Again, you could use LogMiner to look for this sort of thing if you aren't auditing the change but doing so would be labor intensive.

  • Tool to do syntax check on DML/DDL

    Is there any tool in Toad or SQL Plus or any other IDE to do a syntax check on DDL/DML statements without executing them ?

    In my Toad Verson 7.6, there is a built in formatter namely -> Formatter Plus v4.8.0. This will format any given SQL Statement/ PL/SQL Code.
    Also if your statement is wrong syntactically, the formatter will throw an error.
    You just have to type the code and right click -> Formatting Tools -> Format Code. Alas your code gets formatted neatly!!
    Thanks,
    Jithendra

  • Undo tablespace/redo logs/ DML /DDL/ truncate/ delete

    1st scenario:Delete
    10 rows in a table
    Delete 5 rows
    5 rows in the table
    savepoint sp1
    Delete 3 rows
    2 rows in the table
    rollback to savepoint sp1
    5 rows in the table
    So all DML affected values are noted in the undotablespace and present in the undotablespace until a commit is issued.And also redo logs make note of DML statements.AM I RIGHT??????
    2nd scenario-truncate
    10 rows in table
    savepoint sp1
    truncate
    0 rows in table
    rollback to savepoint sp1 gives this error
    ORA-01086: savepoint 'SP2' never established
    So is truncate [are all DDL statements] noted in the undo tablespace and are they noted in the redologs????????
    I KNOW THAT A DML IS NOT AUTOCOMMIT AND A DDL IS AN AUTOCOMMIT

    When you issue a delete is the data really deleted ?WHen you issue a delete, there is a before image of the data recorded to the undo area. (And that undo information itself is forwarded to the redo.) Then the data is actually deleted from the 'current' block as represented in memory.
    Therefore, the data is actually deleted, but can be recovered by rolling back until a commit occurs.
    It can also be recovered using flashback techniques which simply rebuild from the undo.
    When you issue a truncate is the data really deleted
    or is the high water mark pointer for a datablock lost?The data is not deleted. Therefore there is no undo record of the data 'removal' to be rolled back.
    The high water mark pointer is reset. It's old value is in the undo, but the truncate is a DDL command, and it is preceded and followed by an implicit commit, voiding any potential rollback request.
    I mean you can always rollback a delete and not
    rollback a truncate?Correct - using standard techniques, deletes can be rolled back and truncates can not.

  • Best parameters setting for DML & DDL?

    hi,
    i am implementing the DDL & DML replication using OGG. i just wanted to know what should the best parameters for extract, data pump(source) & Replicate process(Target).
    while my source and target having same structure.
    & i have to replicate 277 tables.
    thanks.
    Regards,
    AMSII
    Edited by: AMSI on Apr 8, 2013 8:12 PM

    To improve the bulk DML operation via goldengate replication:
    Using BATCHSQL
    In default mode the Replicat process will apply SQL to the target database, one statement at a time. This often causes a performance bottleneck where the Replicat process cannot apply the changes quickly enough, compared to the rate at which the Extract process delivers the data. Despite configuring additional Replicat processes, performance may still be a problem.
    Configuration Options
    GoldenGate has addressed this issue through the use of the BATCHSQL Replicat configuration parameter. As the name implies, BATCHSQL organizes similar SQLs into batches and applies them all at once. The batches are assembled into arrays in a memory queue on the target database server, ready to be applied.
    Similar SQL statements would be those that perform a specific operation type (insert, update, or delete) against the same target table, having the same column list. For example, multiple inserts into table A would be in a different batch from inserts into table B, as would updates on table A or B. Furthermore, referential constraints are considered by GoldenGate where dependant transactions in different batches are executed first, depicting the order in which batches are executed. Despite the referential integrity constraints, BATCHSQL can increase Replicat performance significantly.
    BATCHSQL BATCHESPERQUEUE 100, OPSPERBATCH 2000
    Regards
    Rajabaskar

  • DML DDL Message

    Hello Expert,
    In My application when users press the “Run” it is executing the DML or DDL statement. What I am looking for it is to display the message that’s come after executing this statement. I am want the same message which appear when you run the DML or DDL statement from SQL command prompt: For example
    SQL> Create table xyx (a varchar2(1))
    Table created. --- {color:#ff0000}"I want to display this message on my application"{color}
    SQL> Drop table xyx
    Table dropped. --- {color:#ff0000}"I want to display this message on my application"{color}
    SQL> update tb_HR set firstname= 'SAGAR' where AGSNO = 2461059
    0 row(s) updated. --- {color:#ff0000}"I want to display this message on my application"{color}
    Hopefully my example will explain what I am looking for.
    Sagar

    Sagor,
    Your submit process can use the success message to display whatever you want. Create hidden items or application level varaibles to hold the name of the object you are working with and form the message using them.
    Keep Smiling,
    Bob R

Maybe you are looking for

  • Problem installing CS6 on windows 7 64 bit

    Hi, Was wondering if anyone might be able to advise. We`ve had an admin image of CS6 that we've been deploying for quite sometime here now, from the network Unfortunately I have found very recently that this stopped working. It seems that the install

  • TREX 7.10rev8: Error during language selection

    Hello, As part of the TREX Post-Installation steps, I want to tell the TREX which languages it should consider in Automatic Language Detection. Currently, all available languages are selected and I want to reduce this to English and Dutch. When I mak

  • How to use abap memory in global class

    Hi experts,                  I want to  know how to use abap memory in global class. when i try write export and import statement its showing error is export statement does not support in object oriented concept. Thanks Ramesh Manoharan

  • Graph Cursor Controls

    On the graph cursor control (the 4 sectioned diamond that appears withthe cursor legend) I'm wondering what the top and bottom diamond do if anything. The left and right ones are simple enough (forward or back one sample) but the top and bottom ones

  • Calendar component in CQ 5.5, "Recursive invocation. Not further handling status 404(No form found)"

    Hi, we have upgraded our CQ 5.4 installation to CQ 5.5. After the upgrade, we are facing an error with the Calendar component. The following error is logged when trying to create a new calendar event: 20.11.2012 11:01:23.139 *ERROR* [10.62.45.10 [135