How to change in sql_text into normal readable format?

hi all
yesterday inour production environment the dev. did wrongly updated one query.
they want to know who and when did the changes?
i found some info from dba_audit_object,
but in that table the column for sql_text is not showing the full query ,it shows the update table_name set column name=new row id where =old row id..
by using this query i dont know how to trace the sql_query in norma readble format.
pls help me to sort out this issue..
Thanks
M.Murali..

Hi
I am little confused with your question...
>
they want to know who and when did the changes?
but in that table the column for sql_text is not showing the full query ,it shows the update table_name set column name=new row id where =old row id..
by using this query i dont know how to trace the sql_query in norma readble format.
>
If you are getting back the update table_name set column name=new row id where =old row id.. statement then you can get back the values you want.so, what does by using this query i dont know how to trace the sql_query in norma readble format mean.The update statement is in readable format only.
The answer for who and when changed it is
select USERNAME,to_char(TIMESTAMP,'DD-MON-YY HH24:MI:SS'),USERHOST,TERMINAL,OWNER,OBJ_NAME,ACTION_NAME,SQL_TEXT from DBA_AUDIT_OBJECT;
The username will be the database username who updated the column.Timestamp will tell you the time when it was done,terminal will give the terminal name of the PC,owner is the object's owner and sql_text is the update command fired by the username on the owner's table.
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> sho parameter audit
NAME                                 TYPE        VALUE
audit_file_dest                      string      C:\ORACLE\PRODUCT\10.2.0\ADMIN
                                                 \MATRIX\ADUMP
audit_sys_operations                 boolean     FALSE
audit_trail                          string      DB, EXTENDED
DB,EXTENDED -- As db, but the SQL_BIND and SQL_TEXT columns are also populated.
SQL> grant select,insert,update on scott.emp to lap;
Grant succeeded.
*FROM THE LAP SESSION DID*
SQL> update scott.emp set MGR=7777 where MGR=7698;
5 rows updated.
SQL> commit;
Commit complete.
FROM THE OTHER SYS AS SYSDBA SESSION
SQL> select count(1) from sys.aud$;
  COUNT(1)
         1
SQL> select USERNAME,to_char(TIMESTAMP,'DD-MON-YY HH24:MI:SS'),OWNER,OBJ_NAME,ACTION_NAME,SQL_TEXT from DBA_AUDIT_OBJECT;
USERNAME                       TO_CHAR(TIMESTAMP, OWNER
OBJ_NAME
ACTION_NAME
SQL_TEXT
LAP                            15-NOV-08 17:31:45 SCOTT
EMP
UPDATE
update scott.emp set MGR=7777 where MGR=7698
So i am getting the sql_text of the update done by LAP user on the SCOTT's  EMP table.HTH
Anand

Similar Messages

  • How  to convert  et_attach-phio_content into normal character format.

    Hi All ,
          We need to convert the  et_attach-phio_content 
                             which is type of
                                       SDOK_SDTX(data type = RAW ,length = 1022)                            
                     into          type
                                      solisti1 (data type = SO_TEXT255 )(char).
    please help .
    Regards
    Channappa

    Hi All ,
          We need to convert the  et_attach-phio_content 
                             which is type of
                                       SDOK_SDTX(data type = RAW ,length = 1022)                            
                     into          type
                                      solisti1 (data type = SO_TEXT255 )(char).
    please help .
    Regards
    Channappa

  • Urgent    how to change factory calender to normal calender  in bw report

    Hi
    how to change factory calender to normal calender  in bw report give me step by step
    prasanth.k

    Prasanth,
    the calenders are maintained in the source system and not in BW - if you have to change the calendar coming into BW - do the needful change for the related transaction in the source system.
    Arun

  • How to change 'z' key into 'A' key with key blinding?

    How to change 'z' key into 'A' key?
    Although txt.setText("A") can set the text field with 'a', but it is not original input from keyboard because it cant trigger the key listener.
    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Main
    {   public static void main(String[] args)
        {   JFrame f = new JFrame("Test");
            Test GUI = new Test();
            GUI.setOpaque(true);
            f.setContentPane(GUI);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setVisible(true);
    class Test extends JPanel
    {   JTextArea txta = new JTextArea(10,20);
        JTextField txt = new JTextField(10);
        JScrollPane sp_txta = new JScrollPane(txta);
        public Test()
        {   this.setPreferredSize(new Dimension(400,300));
            setLayout(new BorderLayout());
            txta.setEditable(false);
            add(sp_txta, BorderLayout.CENTER);
            add(txt, BorderLayout.PAGE_END);
            Action testAction = new AbstractAction()
            {   public void actionPerformed(ActionEvent ae){ txt.setText("A"); }
            txt.getInputMap().put(KeyStroke.getKeyStroke('z'), "test");    //Change z into A
            txt.getActionMap().put("test", testAction);
            txt.addKeyListener
            (   new KeyListener()
                {   public void keyPressed(KeyEvent e){ txta.append(e.getKeyChar() + " key is pressed \n"); }
                    public void keyReleased(KeyEvent e){ txta.append(e.getKeyChar() + " key is released \n"); }
                    public void keyTyped(KeyEvent e){ txta.append(e.getKeyChar() + " key is typed \n"); }
    }Edited by: 835972 on Feb 11, 2011 8:11 AM

    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.With r.keyPress method, it only can perform single key pressed at a time. Do you have any idea how to perform multiple key pressed at a time?The javadoc for Robot.keyPress suggests ( "+The key should be released using the keyRelease method+" ) that the key remains "pressed" until you keyRelease(...) it. So, press the keys sequentially:
    theRobot.keyPress(KeyEvent.VK_Q);
    theRobot.keyPress(KeyEvent.VK_W);
    // At this stage both Q and W are pressed "in same time"
    ... // do stuff
    theRobot.keyRelease(KeyEvent.VK_W);
    // At this stage, only Q is pressedI suspect that in real life, unless you're a very gifted musician, you don't really press keys "at the same time" (under the time resolution of a keyboard, which I imagine is around a few milliseconds).

  • I have just installed Illustrator CS6 yesterday, but I found it was in French. Could help me figure out how to change the language into English?

    I have just installed Illustrator CS6 yesterday, but I found it was in French. Could help me figure out how to change the language into English?
    I got my series number from my Institut (which is in Paris, FR). I do not use Creative Cloud.
    When I was installing the software, I cannot select a language.
    Could you help me with my problem? Do I have to get a different series number?

    lunc,
    You will have to get a new application in English, to replace the French one.
    You, or your Institute will have to get help from Adobe, I am afraid.
    You may try a chat here,
    Get help with orders, refunds, and exchanges (non-CC, chat open between 5AM and 7PM PST/PDT on workdays)
    http://helpx.adobe.com/x-productkb/global/service-b.html
    or (have your Institute) talk to Adobe in France
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html
    If you fail to get any help, please report back here, and I will ask a special forum staff friend to try to find the right one at Adobe to have things sorted out.

  • I saved a vital mailbox but it is now encrypted - how and how to I get it in a readable format?

    I am using a Mac OX10 with Mountain Lion.  I saved a vital mailbox to an original document file but it turned out encrypted.  How can I get it into normal format? why did this happen?

    Still mainly gobbledegook though not all of it, can read some but little. here is the screen shot.

  • Ibooks 3.1 how to change horizontal scroll into vertical scroll

    update to ibooks 3.1, the scroll mode is changed into horizontal scroll, now in my .epub books it cut so many picture in two parts and display in two pages...how to change , back to vertical mode...

    I find this maybe is the new feature only for books with Asia-Pacific words....english books is right with vertical scrolling mode...but chinese books whit horizontal scrolling mode
    why apple doesn't make a set up to change between this ..

  • How to change Transport request into local object $temp.?

    Hi experts,
    I would like to know to how to change a Transport request into and local object.
    I have already assigned Infopackage to TR, but its not required. We dont want this infopackage to be transported to prod. So how can i change that as a local object.
    Please put our valuable inputs.
    Thanks in advance.
    Regards,
    Dubbu

    Go To that Infopackage ,
    Extras Menu----Object catalog entry.  There you can change package name.
    or
    In SE09---Under the transport requests you can search for the infopackage name and delete from the TR.
    Regards,
    Srikanth
    Edited by: srikanth on Feb 19, 2009 2:26 PM
    Edited by: srikanth on Feb 19, 2009 2:27 PM

  • How to change Error Message into warning message

    Dear Friends,
    I am getting an error
    The qty stored that was entered is adjusted
    Message no. XU 040
    at the time of GRN. I am maintaining batch specific Unit of Measure.
    Please tell me how to change this error message in to a warning message.
    Thanks
    Prashant Atri

    Hello Prashant,
    This is satndard SAP messagge which is maintained in customizing;
    SPRO>>Logistics - General>>Batch Management>>Define Attributes of System Messages
    Here you can convert this messages to warning message. I urge you to please check with abaper as this may be hardcoded message and it may have implications on valuation and posting.
    In the above IMG path you can do the changes
    Br,
    Tushar
    Edited by: Tushar Patankar on Jan 1, 2011 5:36 PM

  • How to Change Open item into Non open item for GL

    Dear All,
                    I have created a GL in FS00 and clicked the open item management for it. 1 entry is posted to that account.Then i have reversed the entry and want to change the Gl from open item to non open item .The message appears as the balance is zero but open item exists.Please suggest how to make it non open
    Moderator: Please, search SDN

    Hi,
    Check the below threads which are useful.
    Open item management status change
    How to change Line item to open item management in G/L transaction?
    Thanks
    Aravind

  • TS3354 HOW TO CHANGE HD MOVIES INTO REGULAR MOVIE

    how to change hd movies on itunes to regular movies

    iTunes automatically syncs HD videos (if they exist in your library) unless you check "Prefer standard definition videos" in the iTunes iPad Summary tab.

  • How to change the image into byte and byte array into image

    now i am developing one project. i want change the image into byte array and then byte array into image.

    FileInputStream is = new FileInputStream(file);
    byte[] result = IOUtils.toByteArray(is);
    with apache common IO lib

  • My ipad displays in negative mode.  I don't know how I did that or how to change it back to normal

    my ipad displays in negative mode.  I don't know how I did that or how to change it back to normal

    Most of us cheat:  http://support.apple.com/manuals/

  • Please help -  How to export HTML file into MS word format

    How to export HTML file into MS word file without any change
    in design format?
    As I have been trying to do that but problem is coming in
    formating. Table's witdth and height get disturbed in MS word when
    I import the html file.
    What I do after creating HTML in dreamweaver I save that file
    into .txt format in dreamweaver. and then import it in MS Word. And
    I tried too much for it but invain.
    Please help me in finding the way of solution.
    Please help me as my job is in trouble. It's very urgent
    pleeease help me. I'll be thankful to you.

    Just open the HTML file in Word.
    Walt
    "apollo321" <[email protected]> wrote in
    message
    news:gavbhd$6j4$[email protected]..
    > How to export HTML file into MS word file without any
    change in design
    > format?
    >
    > As I have been trying to do that but problem is coming
    in formating.
    > Table's
    > witdth and height get disturbed in MS word when I import
    the html file.
    >
    > What I do after creating HTML in dreamweaver I save that
    file into .txt
    > format
    > in dreamweaver. and then import it in MS Word. And I
    tried too much for it
    > but
    > invain.
    >
    > Please help me in finding the way of solution.
    >
    > Please help me as my job is in trouble. It's very urgent
    pleeease help me.
    > I'll be thankful to you.
    >

  • Help!!  please... how to change my purchased itunes from mp4 format to mp3 format

    Can anyone help me, please.... crunched for time, and need to know how to change my mp4 purchased itunes into mp3 format to play in windows movie maker?  Thanks!

    need to know how to change my mp4 purchased itunes into mp3 format to play in windows movie maker?  Thanks!
    Karri,
    If you have .m4a (iTunes Plus songs), you can convert them by using these instructions:  http://support.apple.com/kb/HT1550
    If you have .m4p (DRM-encumbered iTunes songs purchased prior to mid-2009) you must first upgrade them to iTunes Plus by following these instructions:  http://support.apple.com/kb/HT1711
    Ed

Maybe you are looking for

  • Mini DVI to DVI cable

    I have the White 2.4 gig MacBook purchased summer of 08. Going to purchase an external LCD display for it probably with HDMI, DVI and RGB connectivity. I was wondering if someone knows where I can purchase a mini DVI to DVI cable that will connect th

  • Issue in populating dropdowns in Visual Composer

    Hello Experts, I am currently trying to push application development using Visual Composer 7.0. Came across certain issues which we were unable to resolve: 1) We have an RFC which gives 10 return tables. We need to fill the data from these tables int

  • IMAC 27" random screen blackout

    my 8 month old iMAC 27" quad core machine recently started to "black out"  Screen goes black for no reason and the only remedy is to hit the power button - usually twice.  This will bring the system back to where it was, all open APPs etc. will be ex

  • Is there a way to retrieve camera roll photos after failed backup

    I backed up my iphone 4 to itunes (not icloud) yesterday, and today i went to the apple store to see if they could fix a broken lock button. They issued me a new phone, and assured me that i woult be able to retrieve my camera roll photos after resto

  • Processing Leavers for Employee expenses and blocking their vendor records

    Help please: Is there a set way of stopping Employee expense records in FI when an employee leaves, and putting a payment block on his/her vendor record? There is no employee status, therefore can the end dates be updated? If so, will this automatica