The track DDL and DML operations happening in the Backend in files...

Hi I have a requirement to track the transaction DDL and DML that passes in the Backend, once the user inserts or updates any Table.How to implement the same anyone can proviode code for the same thing.
Ex: I have several tables in my database if a user triggers the DDL or DML, it should be entered into the log file under

Name of the Table Operation Timestamp
X YYYY-MM-DD Insert HH24:MM:SS
Update Y DD-MM-YYYY HH24:MM:SS
Z remove HH24:MM:SS DD-MM-YYYY
L choose HH24:MM:SS DD-MM-YYYY

Select sql_fulltext, sql_id, module, parsing_schema_name, parsing_user_id, first_load_time, loads, users_executing, rows_processed
v $ sqlarea
where parsing_schema_name = to_char(first_load_time,'dd/mm/yyyy') like ' % 08/11/2007 ' and 'GLENN '-'.
first_load_time desc order;

Concerning
Asif Kabir

Tags: Database

Similar Questions

  • monitor the DML operation for a table, that is, monitor the type time and DML operation

    Hello expert,

    I want to follow the DML operation for a table, i.e. monitor the time to type and the DML operation. you tell please how do I get that?

    Thank you very much

    See if this can help you:

    http://Oracle-Apps-DBA.blogspot.com/2007/07/monitoring-DML-operations.html

    Kind regards

  • querying the backend application file

    Hello

    Have a requirement to interrogate a file from the backend application. the file will have the naming convention in the channel screen look (for example: "toParty_doctype_docRev.xml")

    But not able to identify the party and to the party, and therefore not able to identify the agreement.

    Please advice...


    Also would like to know if there are any specific separator format, which is the underscore... or can we use any separator.

    Dheeraj

    For this use case, please follow the below,

    1. make sure you activate the indicator "In-house is" for the channel look, this B2B allows to process messages that arrive at this endpoint as outgoing message. This we call it Channel internal listening that is intended to receive messages from back end application.

    2. set the name format for file '% TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.xml. Note: File and its format extension can be anything, he comes here to give "xml" for example.

    3 B2B uses "_" as a delimiter for the file name format. Forward press, post AS11 PS1, the separator can also be done as a configurable item.

    Thank you
    Sinkar

  • My very old DELL does not start all the time. And when that happens, it doesn't look very good.

    Original title: Please help

    I HAVE A VERY OLD DELL LAPTOP THAT WILL NOT START ALL THE TIME, AND WHEN THAT HAPPENS IT LOOKS LIKE SA WORKS VERY HARD!

    I HAVE A VERY OLD DELL LAPTOP THAT WILL NOT START ALL THE TIME, AND WHEN THAT HAPPENS IT LOOKS LIKE SA WORKS VERY HARD!

    It seems that two things must happen... Three if you don't have good backups (it would be the first thing * if * you have not any outside of the machine.)

    (1) the material must be tested.  By restarting and pressing the combination of keys at the right time could test the hard/readers/speed control (CTRL + ALT + D, on a dell computer before starting at startup of Windows.)  For other tests - Dell probably put on a partition or sent a CD with the machine that allows you to perform a battery of tests on the... video, audio equipment, etc.

    (2) a restoration clean install a factory should probably be made * if * hardware testing are in agreement.  You could probably clean the machine by following the steps I'll give you - but knowing no more about the problem that we are so far... If that does not better... it's perception, or something so serious, that a clean install is probably the only real 'next step '.

    (And if the new facility does not solve it and analysis of material found nothing - that's the perception, or something (material) defective which is not be picked up).

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in. Look for whatever it is you do not know usingGoogle (or ask here.) You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory. This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

    Do a house cleaning and the dust of this hard drive:

    You can free up disk space (will also help get rid of the things that you do not use) through the following steps:

    Windows XP should take between 4.5 and 20 GB * with * an Office suite, editing Photo software, alternative Internet browser (s), various Internet plugins and a host of other things installed.

    If you are comfortable with the stability of your system, you can delete the uninstall of patches which has installed Windows XP...
    http://www3.TELUS.NET/dandemar/spack.htm
    (Especially of interest here - #4)
    (Variant: http://www.dougknox.com/xp/utils/xp_hotfix_backup.htm )

    You can run disk - integrated into Windows XP - cleanup to erase everything except your last restore point and yet more 'free '... files cleaning

    How to use disk cleanup
    http://support.Microsoft.com/kb/310312

    You can disable hibernation if it is enabled and you do not...

    When you Hibernate your computer, Windows saves the contents of the system memory in the hiberfil.sys file. As a result, the size of the hiberfil.sys file will always be equal to the amount of physical memory in your system. If you don't use the Hibernate feature and want to reclaim the space used by Windows for the hiberfil.sys file, perform the following steps:

    -Start the Control Panel Power Options applet (go to start, settings, Control Panel, and then click Power Options).
    -Select the Hibernate tab, uncheck "Activate the hibernation", and then click OK. Although you might think otherwise, selecting never under "Hibernate" option on the power management tab does not delete the hiberfil.sys file.
    -Windows remove the "Hibernate" option on the power management tab and delete the hiberfil.sys file.

    You can control the amount of space your system restore can use...

    1. Click Start, right click my computer and then click Properties.
    2. click on the System Restore tab.
    3. highlight one of your readers (or C: If you only) and click on the button "settings".
    4 change the percentage of disk space you want to allow... I suggest moving the slider until you have about 1 GB (1024 MB or close to that...)
    5. click on OK. Then click OK again.

    You can control the amount of space used may or may not temporary Internet files...

    Empty the temporary Internet files and reduce the size, that it stores a size between 64 MB and 128 MB...

    -Open a copy of Microsoft Internet Explorer.
    -Select TOOLS - Internet Options.
    -On the general tab in the section 'Temporary Internet files', follow these steps:
    -Click on 'Delete the Cookies' (click OK)
    -Click on "Settings" and change the "amount of disk space to use: ' something between 64 MB and 128 MB. (There may be many more now.)
    -Click OK.
    -Click on 'Delete files', then select "Delete all offline content" (the box), and then click OK. (If you had a LOT, it can take 2 to 10 minutes or more).
    -Once it's done, click OK, close Internet Explorer, open Internet Explorer.

    You can use an application that scans your system for the log files and temporary files and use it to get rid of those who:

    CCleaner (free!)
    http://www.CCleaner.com/
    (just disk cleanup - do not play with the part of the registry for the moment)

    Other ways to free up space...

    SequoiaView
    http://www.win.Tue.nl/SequoiaView/

    JDiskReport
    http://www.jgoodies.com/freeware/JDiskReport/

    Those who can help you discover visually where all space is used. Then, you can determine what to do.

    After that - you want to check any physical errors and fix everything for efficient access"

    CHKDSK
    How to scan your disks for errors* will take time and a reboot.

    Defragment
    How to defragment your hard drives* will take time

    Cleaning the components of update on your Windows XP computer

    It is a good idea at this time to ensure that you continue to get the updates you need. This will help you ensure that your system update is ready to do it for you.

    Download and run the MSRT tool manually:
    http://www.Microsoft.com/security/malwareremove/default.mspx
    (Ignore the details and download the tool to download and save to your desktop, run it.)

    Reset.

    Download/install the latest program Windows installation (for your operating system):
    (Windows XP 32-bit: WindowsXP-KB942288-v3 - x 86 .exe )
    (Download and save it to your desktop, run it.)

    Reset.

    and...

    Download the latest version of Windows Update (x 86) agent here:
    http://go.Microsoft.com/fwlink/?LinkId=91237
    ... and save it to the root of your C:\ drive. After you register on theroot of the C:\ drive, follow these steps:

    Close all Internet Explorer Windows and other applications.

    AutoScan--> RUN and type:
    %SystemDrive%\windowsupdateagent30-x86.exe /WUFORCE
    --> Click OK.

    (If asked, select 'Run'). --> Click on NEXT--> select 'I agree' and click NEXT--> where he completed the installation, click "Finish"...

    Reset.

    Now reset your Windows with this FixIt components update (you * NOT * use the aggressive version):
    How to reset the Windows Update components?

    Reset.

    Now that your system is generally free of malicious software (assuming you have an AntiVirus application), you've cleaned the "additional applications" that could be running and picking up your precious memory and the processor, you have authorized out of valuable and makes disk space as there are no problems with the drive itself and your Windows Update components are updates and should work fine - it is only only one other thing youpouvez wish to make:

    Get and install the hardware device last drivers for your system hardware/system manufacturers support and/or download web site.

    If you want, come back and let us know a bit more information on your system - particularly the brand / model of the system, you have - and maybe someone here can guide you to the place s x of law to this end. This isn't 100% necessary - but I'd be willing to bet that you would gain some performance and features in making this part.

  • call a function inside a function to insert into a table and receiver error - ORA-14551: cannot perform a DML operation within a query.

    Hi all

    your help is greatly appreciated...

    Calling B.fucntion inside an A.fonctions to insert data into a table.


    Here when you call the B.fucntion to insert data in the table... receiver AM a mistake

    Omitted in B - SQL Error: ORA-14551: cannot perform a DML operation inside a query...


    Can someone please help me to clarify this...


    The FUNCTION A(varUPD_TYPE IN VARCHAR2) RETURN VARCHAR2 IS
    varRETURN_VALUE VARCHAR2 (25): = NULL;

    numALLOWED_COUNT PROD. PROCESS_COUNTER. TYPE % ALLOWED_COUNT;
    numLAST_COUNT_ADDED PROD. PROCESS_COUNTER. TYPE % LAST_COUNT_ADDED;
    dtCHANGE_DATE DATE: = NULL;
    varSTMT VARCHAR2 (2000);
    bln_Allowed BOOLEAN;
    myVar VARCHAR2 (32767).


    BEGIN

    IF varUPD_TYPE = "A" THEN

    BEGIN
    SELECT CH_DATE, LAST_COUNT_ADDED, ALLOWED_COUNT
    IN dtCH_DATE, numLAST_COUNT_ADDED, numALLOWED_COUNT
    PROD. PROCESS_COUNTER
    WHERE NOM_PROCESSUS = "DAILY".
    AND COUNTER_IND = A '

    IF dtCH_DATE < = trunc (sysdate) THEN
    numLAST_COUNT_ADDED: = 0;
    END IF;

    EXCEPTION
    WHILE OTHERS THEN
    numLAST_COUNT_ADDED: = 0;
    numALLOWED_COUNT: = 1;
    END;
    IF numALLOWED_COUNT > = numLAST_COUNT_ADDED + 1 THEN

    bln_Allowed: = True;

    varSTMT: = "UPDATE PROD. TMS_PROCESS_COUNTER ';
    varSTMT: = varSTMT | ' SET last_count_added = ' | (numLAST_COUNT_ADDED + 1);
    varSTMT: = varSTMT | "WHERE nom_processus =" DAILY "';
    varSTMT: = varSTMT | "AND COUNTER_IND ="D"';


    IF varSTMT IS NOT NULL
    THEN
    MyVar: = B(96,varSTMT);
    PROC_LOG (' CALL B ': myVar);
    IF myvar > 0 THEN
    NULL;
    END IF;
    END IF;
    On the other

    End if;

    END IF;

    EXCEPTION WHEN OTHERS THEN
    PROC_LOG ("A failed '");
    PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
    RETURNS A NULL VALUE.
    PUT AN END TO;

    The FUNCTION B(numTABLE_ID IN NUMBER, varSQL_STATEMENT IN VARCHAR2) RETURNS NUMBER IS
    varINSERT_BATCH_STMT VARCHAR2 (32767): = NULL;
    varADD_REC_TYPE BATCH_TABLES. TYPE % ADD_REC_TYPE;

    BEGIN

    INSERT INTO BATCH_STATEMENT (ID, TABLE_ID, STATEMENT, QUEUE_SEQUENCE_ID)
    VALUES (Numidian, numTABLE_ID, varSQL_STATEMENT, 1);

    EXCEPTION WHEN OTHERS THEN
    PROC_LOG ('B failed');
    PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
    RETURNS - 1;
    END B;


    Structure of the Batch_statement table:


    ID Number (15) not null
    number (2) not null table_id
    Statement varchar2 (4000) not null
    Queue_sequence_id number (5) not null


    Why do you do such coding mess full of bad practices.

    Remove the exceptions WHEN OTHERS, you're a turing a mistake in this way, they are bugs and (never) use functions to perform DML.

    Functions are not intended for DML. Period.

  • any questions if write us commands DML, DDL, and TCL stored functions.

    Hello
    Is there any problem if write us DML, DDL, and TCL commands in function stored with the help of the AUTONOMOUS_TRANSACTION PRAGMA.

    Hello

    Yes of course. With DML statements inside the function by using the AUTONOMOUS_TRANSACTION PRAGMA is not very
    recommended. It is recommended to use an AUTONOMOUS TRANSACTION for the purpose of logging error only, and
    When used in a disorganized manner, it may lead to locks and we will have a problem when you look at the
    Trace files.

    Thank you
    Shankar

  • Best approach to the DML operation in App Impl method

    What is the way of best/right to the DML operation in AppImpl methods. getDBTransaction () sets / statement or to create an object of connection directly from the data source and make DML operations?

    Thank you
    Bastien

    If you want to call a PL/SQL API, then by all means, use the connection of AOS (getDBTransaction()).

    Is there any problem of concurrency using getDBTransaction()

    As long as you follow the process appropriate (i.e., putting the service methods in your AM and call them through the link layer), you will be fine.

    That will mean he commits a user the changes regardless of the changes made by the other user also get committed to the db?

    NO.

    Have a [url http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadvgen.htm#sm0297] read the docs to see the proper approach.

    John

  • From the Collections with DML operations in function

    Hi all

    Can we use the collections and perform DML operations on it in a function? I want to call this function through the SELECT statement.

    If it's possible, so which collection is ideal in the following scenario?
    Need to have three columns and several lines and want to run select on it.

    Thanks in advance.

    If I'm not demanding too much can we have given in this way?

    You are most welcome ;)

    SQL> with t as (
      2  select '11AA101' str from dual union
      3  select '11AA102' str from dual union
      4  select '11AA103' str from dual union
      5  select '11AA108' str from dual union
      6  select '11AA110' str from dual union
      7  select '555101' str from dual union
      8  select '555102' str from dual union
      9  select '555103' str from dual
     10  )
     11  select rtrim(extract(xmlagg(xmlelement("a",range||',') order by range)
     12                       ,'//text()'),',') ranges from (
     13  select decode(min(connect_by_root str),str,str,
     14                min(connect_by_root str)||' to '||str||' ('||count(0)||')') range
     15  from t
     16  where connect_by_isleaf = 1
     17  connect by substr(str,1,length(str)-3)=prior substr(str,1,length(str)-3)
     18      and prior to_number(substr(str,-3))+1 = to_number(substr(str,-3))
     19  group by str
     20  );
    
    RANGES
    ------------------------------------------------------------------------------------------
    11AA101 to 11AA103 (3),11AA108,11AA110,555101 to 555103 (3)
    

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

  • Last night my operating system not found a set file and reloaded among other Outlook express things - is it possible to recover the address book, folders and emails?

    Last night my operating system not found a set file and reloaded among other Outlook express things - is it possible to recover the address book, folders and emails?

    original title: Outlook Express problem

    Hi John,.

    Try to locate your data from outlook express:

    Click on start-> Run & paste-> %userprofile%\Local Settings\Application Data\Identities

    You will see the folders as {xxxxxx-xxxx-xxx-xx-xxxxxxxxxxxx} click-> Microsoft-> Outlook Express, you should be able to locate the DBX files, these are the outlook database files. Ideally, you should see inbox.dbx, Sent Items.dbx... check the size of the file.

    Now to get it back on outlook express, open outlook express-> click on tools-> Options-> maintenance-> the storage location.

    Click on change location, and then select the location that you have your data in.

    For the address book, see: click Start-> Run and paste the following:

    %USERPROFILE%\Application Data\Microsoft\Address Book

    Address book with wab extension, these should reflect your Outlook Express user name.

    I hope this helps.

  • WMP11 loses data when extracting. All files are track 0 and the length of the song is not listed.

    Using Win XP Pro & Media Player 11. Works very well for a long time. Recently, I have problems during extraction.

    Album info & track is correct, and he rips it in the right folder (with the names of artist & album as folder names). But the WMP11 database is messed up. The names of the files/tracks are OK, but all the songs are track 0, and all other data such as the name of the album, genre, year and artist are all unknowns. WMP11 does not know the length of the songs.  I can change the data, but not the length.  How can I fix it?

    Hello RHarrigill,

    Thank you for your message.  It is possible that Windows Media Player 11 database must be damaged.  Please follow the steps below:
    Exit Windows Media Player.
    Click Start, run, type %userprofile%\Local Settings\Application Data\Microsoft\Media Player, and then click OK.
    Note Windows Media Player automatically rebuilds the database.
    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:
    If you are running Windows XP, click Start, click Run, type %userprofile%\Local Settings\Application Data\Microsoft and then click OK.
    Restart Windows Media Player.
    Note Windows Media Player automatically rebuilds the database.
    Please let us know if it did or did not solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • I have downloaded the Foxit and tried and still nothing happens. I associated the program also and nothing happens with save, open, or save as.

    I have downloaded the Foxit and tried and still nothing happens.  I associated the program also and nothing happens with save, open, or save as.  I deleted Adobe Reader and have only Foxit - still nothing happens.

    What browser do you use?
    Does it occur only for attachments Hotmail?
    You are able to download files from other sites?

    If you are using Internet Explorer, try to run without Add-ons and check if the problem persists or not.
    To do this, click Start, type Internet Explorer in the start search box and then open Internet Explorer (No Add-ons).

    If the problem disappears, an add-on is causing the problem, check your add-ons and especially disable all those who may be linked to the reading of PDF.

    If the problem persists, try to create a new user account and the test again under this new user account.
    If the problem disappears, see: http://windows.microsoft.com/en-US/windows7/fix-a-corrupted-user-profile

  • We have Acrobat 9 Pro running on both PCs, with 7 and 8 operating system. We would like to turn off a computer with 8 because we get it. We want to disable Acrobat, then download on a Mac pro. However, we do not have the

    We have Acrobat 9 Pro running on both PCs, with 7 and 8 operating system. We would like to turn off a computer with 8 because we get it. We want to disable Acrobat, then download on a Mac pro. However, we have not the deactivate option available in the drop down aid. Disabling is visible on another desktop computer. Can you advise us on how to disable it on the old laptop and download on the new laptop Mac?

    You can't do that. If you have a license for Windows, you can not use it on a Mac.

    In addition, Acrobat 9 is obsolete and is not compatible with any current operating system (including Windows 8, which is said by the way).

  • Why I don't have the error: ORA-14551: cannot perform a DML operation inside a query

    Hello

    create table table_1 (phone number)

    create or replace function function_a return number
      is
        l_rv number;
      begin
        l_rv := dbms_random.value();
        insert into table_1 values(l_rv);
        return l_rv;
      end;
    
    

    Select double function_a

    Now, I get the error:

    ORA-14551: cannot perform a DML operation inside a query

    ORA-06512: at "FUNCTION_A", line 6

    create the table table_2 (phone number)

    insert into table_2 select function_a from dual
    
    

    Now, I make the same mistake. It is to insert records into table_2

    Can someone please clarify this?

    Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production

    Post edited by: O - O added: (select double function_a)

    O - O wrote:

    To be called from instructions SQL, stored function must obey "purity" following rules, which are intended to control the side effects:

    • rule1) When it is called from a SELECT statement or a parallelized INSERT , UPDATE , or DELETE statement, the function cannot change database tables.
    • rule2) When it is called from a INSERT , UPDATE , or DELETE statement, the function cannot query or modify database tables modified by that statement.

    Can you please explain this? I think that these statements are contradicted with

    insert into select double function_a table_2

    Now, I make the same mistake. It is to insert records into table_2

    When your function is called by a select statement, an error is triggered because of rule1).

    When your function is called in an insert statement, no error is raised. The insert does not work in parallel (this is an insert row after all). So rule1) is also not infringed. The insert is on the table2, change table1. Because it does not modify the same table rule2) is not violated. So no reason to trigger an error.

  • Of the data in the table to get a tree using declarative and perform operations above.

    Hello

    I use Jdeveloper 11.1.2.4.

    I'm creating a declarative component. The component is supposed to display the data in a table and allow the user to remove entries of it.

    The table should be included in a pop-.

    From now on, I made a picture of the tree within a collection of panels. I'm creating a tree in the pagedefinition of the ViewController project file and passing the tree of the same model to the component attribute declarative. After binds the attribute passed to table component tree declarative, I am able to fill lines. First please let me know if my approach is correct or not. The user can select any row of the table and press delete. The button must remove the entry from the table. Is it possible to remove operation on the table in the declarative component.

    Thank you

    First of all, please let me know if my approach is correct or not.

    Seems ok

    The user can select any row of the table and press delete. The button must remove the entry from the table. Is it possible to remove operation on the table in the declarative component.

    You have several ways to do this:

    (a) similar to the declarative component attribute, you can bind methods, for example: ADF Essentials eCourse - declarative components ADF: work with methods

    (b) pass the name of the iterator to your component and then use it to remove programmatic in backing bean

    (c) create pageDef declarative component for, something similar to this: ADF practice: liaison for component container declarative

    Dario

  • When the Portfolio officially be released? And when that happens, I can have more than one portfolio?

    When the Portfolio officially be released? And when that happens, I can have more than one portfolio?

    We will announce the release later today.  Each AdobeID can only be connected to a portfolio Adobe/CC membership account.  Hope that helps!

Maybe you are looking for