How to retrieve the value of last identity has been updated in a database?

how to retrieve the value of last identity has been updated in a database

Hi,
Oracle 10g, FGA - Fine grained auditing, supports DML statements (9i only select).
Set up FGA using the DBMS_FGA.ADD_POLICY procudure:
sql> BEGIN
DBMS_FGA.ADD_POLICY (
policy_name => 'AUD_EMPLOYEE_SAL',
object_schema => 'HR',
object_name => 'EMPLOYEE',
audit_column => SALARY',
audit_condition => '',
statement_type => 'UPDATE');
END;
NEXT:
sql> SELECT dbuid, lsqltesxt FROM sys.fga_logs$;
The database inserts the audit record into the FGA_LOG$ table using an autonomous transaction; even if you roll back the update statement, the update action will still be logged in this table. The fga_log$ tracks the session, machine id, timestamp, schema, scn, etc:
SQL> desc fga_log$
Name Null? Type
SESSIONID NOT NULL NUMBER
TIMESTAMP# DATE
DBUID VARCHAR2(30)
OSUID VARCHAR2(255)
OSHST VARCHAR2(128)
CLIENTID VARCHAR2(64)
EXTID VARCHAR2(4000)
OBJ$SCHEMA VARCHAR2(30)
OBJ$NAME VARCHAR2(128)
POLICYNAME VARCHAR2(30)
SCN NUMBER
SQLTEXT VARCHAR2(4000)
LSQLTEXT CLOB
SQLBIND VARCHAR2(4000)
COMMENT$TEXT VARCHAR2(4000)
PLHOL LONG
STMT_TYPE NUMBER
NTIMESTAMP# TIMESTAMP(6)
PROXY$SID NUMBER
USER$GUID VARCHAR2(32)
INSTANCE# NUMBER
PROCESS# VARCHAR2(16)
XID RAW(8)
AUDITID VARCHAR2(64)
STATEMENT NUMBER
ENTRYID NUMBER
DBID NUMBER
LSQLBIND CLOB
SQL> spool off

Similar Messages

  • How to retrieve the values from a table if they differ in Unit of Measure

    How to retrieve the values from a table if they differ in Unit of Measure?

    If no data is read
    - Insure that you use internal code in SELECT statement, check via SE16 desactivating conversion exit on table T006A. ([ref|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa0122493111d182b70000e829fbfe/frameset.htm])
    If no quanity in result internal table
    - There is no adqntp field in the internal table, so no quantity is copied in itab ([ref|http://help.sap.com /abapdocu_70/en/ABAPINTO_CLAUSE.htm#&ABAP_ALTERNATIVE_1@1@]).
    - - Remove the CORRESPONDING, so quantity will fill the first field adqntp1.  ([ref|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_WA.htm])
    - - Then loop at the internal table and move the quantity when necessary to the 2 other fields.
    * Fill the internal table
    SELECT msehi adqntp
      INTO TABLE internal table
      FROM lipso2
      WHERE vbeln = wrk_doc1
        AND msehi IN ('KL','K15','MT').
    * If required move the read quantity in the appropriate column.
    LOOP AT internal_table ASSIGNING <fs>.
      CASE <fs>-msehi.
        WHEN 'K15'.
          <fs>-adqnt2 = <fs>-adqnt1.
          CLEAR <fs>-adqnt1.
        WHEN 'MT'.
          <fs>-adqnt3 = <fs>-adqnt1.
          CLEAR <fs>-adqnt1.
      ENDCASE.
    ENDLOOP.
    - You could also create another table with only fields msehi and adqntp and then collect ([ref|http://help.sap.com/abapdocu_70/en/ABAPCOLLECT.htm]) the data to another table.
    Regards,
    Raymond

  • How to see the table in se11 that has been created in oracle 10g directly

    hi,
    how to see the table in se11 that has been created at SQL> prompt in oracle 10g directly ?
    is there any procedure to attache directly created table  into sap ?

    I think you have to create it in SE11 first. Although you can probably use native SQL to access it from an ABAP program.
    Rob

  • How to retrieve the values from a LinkedList

    Hello,
    I have just put this question in java programming forums by mistake...I think that it should be here ...
    I have created a LinkedList to store the results of a query to a database.
    These reasults are decimal numbers and then I want to sum all these numbers to be able to make the average.
    But when I try to retrieve the values of the Linked List I always receive an incopatible types error..
    Here is an extract of my code in a jsp page.
    LinkedList Average = new LinkedList();
    String Media = rst.getString(10);
    Average.add(Media);
    int Size = Average.size();
    double Sum = 0.0;
    for (int i=0; i<=Size; i++)
                    double Result = Average.get(i)     
                  Sum = Sum + Result;
    }If I try to retrieve the value of only one node from the list , I can just putting <%=Average.get(i)%>...but..how can I retrieve all the values (they are decimal numbers) to be able to add them?

    If you want to sum all the values, is there any reason you just don't retrieve the sum from the database rather than the list of values?
    anyway
    List average = new LinkedList();
    while (rst.next()){
      // retrieve the number:
      String mediaString = rst.getString(10);
      Double media = Double.valueOf(mediaString);
      // or maybe like this if it is a number in the database
      Double media = new Double(rst.getDouble(10));
      average.add(media);
    doubleSum = 0.0;
    for (Iterator it = average.iterator(); it.hasNext(); ){
      Double result= (Double) it.next();
      doubleSum += result.doubleValue();
    }

  • How to retrieve the values from PL/SQL table types.

    Hi Every one,
    I have the following procedure:
    DECLARE
    TYPE t1 IS TABLE OF emp%ROWTYPE
    INDEX BY BINARY_INTEGER;
    t t1;
    BEGIN
    SELECT *
    BULK COLLECT INTO t
    FROM emp;
    END;
    This procedure works perfectly fine to store the rows of employee in a table type. I am not able to retrieve the values from Pl/SQL table and display it using dbms_output.put_line command.
    Can anybody help me please!!!!!
    Thanks
    Ahmed.

    You mean, you can't add this
    for i in t.first..t.last loop
    dbms_output.put_line(t(i).empno||' '||t(i).ename||' '||t(i).job);
    end loop;or you can't add this
    set serveroutput onor maybe, you are working in third party application where dbms_output is not applicable at all?
    You see, not able like very similar it is not working - both are too vague...
    Best regards
    Maxim

  • Scripting: How to retrieve the value for next year

    Hi Experts,
    Need help on HFM rules for retrieving the next year value
    Specificationt: Financial year values start from Apr to Mar
    I am bale to retrieve the values from Apr to dec, when trying to retrieve for Jan and mar getting the wrong values
    using : A# xxx.C1#xxx.y#cur
    please suggest your comments
    Thanks,
    SSr

    Hi,
    Still getting the wrong values
    FYear start from April to Mar
    For ex:
    2012                                                                                    2013
              apr     may     jun     jul     aug     sep     oct     nov     dec   jan     feb     mar
              1        1            1     1       1        1         1        1        1       1       1        1
    YTD
    OT     1          2          3      4       5        6        7        8        9     10     11     12
    Thanks,
    Ssr

  • THE MASTERS  APP For Android Has Been Updated For 2012

    Hey Golfers Google has released The Masters App Update for 2012:  An it's a Great one for the Golfer in you it has everything on the Tour So check it... Follow the Link for a Snap Shot an More Info on The Masters
    http://www.droid-life.com/2012/03/27/official-masters-app-has-been-updated-for-2012-who-doesnt-need-live-streaming-from-amen-corner/

    It was a Great Masters  to watch on Our High Deph Tv..  But it was just as Good Watching it on my Razr Maxx.. An to see Bubba win it that was just Amazing an He Deserved it All the Way.. 
    Now i will treat you with this.. He went out of Augusta in Bubba Style..  

  • How to retrieve the values from a Transient View Object

    Hi Experts,
    I am using Jdevelpoer11.1.1.5.0. I created one Transient view object with attributes EmpId,Salary.
    In Backing Bean i will create rows for that view object and display it in the form of <af:Table> like Empid, Salary and an Update Link.
    Now my problem is i want to update the salary of the particular EmpId. For Example if the EmpId is 100 and salary is 10000 now i want to increase the salary to 20000 and if i click on the update button; i want to retrieve the particular employee details in my backing bean. How can i acheive this?
    Thanks in advance.

    A better approach would be to programmatically populate rows in the <VO>Impl.java by overriding the executeQueryForCollection(0 as specified here -
    http://adfpractice-fedor.blogspot.in/2011/01/adf-bc-programmatically-populated-vo.html
    You can write the logic to update the salary in an AM method then on click of Update or in the getter of Salry field if logic is valid for all fields...

  • How to get the values of last selected row in Table?

    Hi,
    I have one editable table , where i have Create, Delete and Commit operation on it.
    When i am clicking on Create button it add new row to my table.
    But I want the value of my last selected row from the table in my Bean.
    Can anyone suggest me please....... its urgent
    Jdev:- 11.1.1.0.3
    Thanks,
    Ramit

    just get this code empTable is the table binding
                    RowKeySet rks = new RowKeySetImpl(); 
                    CollectionModel model = (CollectionModel)empTable.getValue(); 
          RowKeySet selectedRowKeys = empTable.getSelectedRowKeys();
          if (selectedRowKeys != null)
                Iterator iter = selectedRowKeys.iterator();
                if (iter != null && iter.hasNext())
                  empTable.setRowKey(iter.next());
                  model.setRowIndex(empTable.getRowIndex()); 
                  Object key = model.getRowKey(); 
                  rks.add(key); 
                    empTable.setSelectedRowKeys(rks); 
          AdfFacesContext.getCurrentInstance().addPartialTarget(empTable);
        public void setEmpTable(RichTable empTable) {
            this.empTable = empTable;
        public RichTable getEmpTable() {
            return empTable;
        }

  • Acrobat Professional 8.1: how to retrieve the value of a checkbox?

    Hello,
    I created a button in order to print some pages, based on whether a checkbox is checked or not. How can I, (in Javascript, I guess), check if the check box is checked or not?
    In the Print button, I would like to have something like
    if myCheckbox is checked, then print (1,0,0,1).
    Thank you for your help.
    Kind regards
    Serge

    Each check box has a unique name. If you created the form in Acrobat you either check the value of field for the checked value or "Off", not checked. If you created the form in LiveCycle Designer, check the field value for the checked value.

  • How to retrieve the value of field in user exit EXIT_SAPMF(in the include)

    Hello All,
    I am using user exit EXIT_SAPMF02K_001 for limiting the user to input the PAN number upto 10 character and first 4 character should be alphanumeric.I have done the logice and its running fine. The problem i am facing is that i could not get the screen input in the include where i have written the code ie. i am not able to get the screen field when the user exit is executed .In short i m not getting the value of the field ie(J_1IMOVEND-J_1IPANNO) in the code which i have written in the include.
    Can you pls tell me how do i get the value of the field PAN in the code . I have debug the program and it doesnot show any value.
    Reply ASAP.
    Thanks in Adv.
    Pravesh Deshbhratar

    Hi ,
    The Transaction code used is FK02.
    Secondly when i am using the debugger the i m getting into the INCLUDE Of the User Exit EXIT_SAPMF02K_001.
    So i dont think i am using incorrect user exit.
    what is required is field value in the include of EXIT_SAPMFO2K_001.
    Thanks
    Pravesh

  • How to view the certificate that a component has been signed with?

    Hi all,
    Been using java webstart deployment for a while so understand how to sign and deploy java applications.
    Question I have is how to view the certificate that was used to Sign a jar. For example, if I signed a jar "myComponent.jar" how can I then view the certificate details within this jar. I currently have an old component which I signed with an old certificate and want to view the experation details.
    Thanks in advance
    Simon
    Edited by: simon_seagroatt on Sep 22, 2009 4:20 AM

    You can use command (it will show CN, OU, O, L, etc... and expiration date, of course):
    jarsigner -certs -verify -verbose pathToYourJar.jarI'd suggest redirecting output (>>out.txt).
    Bye.

  • How to hide the option in dropdown,which has been selected in the previous

    I have 4 dropdowns,in which i am populating the city names.For ex: Delhi,Mumbai,Bangalore.
    Suppose if i select Delhi in first dropdown,it should not displayed in rest of 3 drop downs.How i have to solve this in jsp.
    Thanks

    here is a better code
    public class dropdownex extends javax.swing.JFrame {
    String[] list = { "Item 1", "Item 2", "Item 3", "Item 4"};
    String[] master = { "Item 1", "Item 2", "Item 3", "Item 4"};
        /** Creates new form dropdownex */
        public dropdownex() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            jComboBox1 = new javax.swing.JComboBox();
            jComboBox2 = new javax.swing.JComboBox();
            jComboBox3 = new javax.swing.JComboBox();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            getContentPane().setLayout(new java.awt.GridLayout());
            jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            jComboBox1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jComboBox1ActionPerformed(evt);
            getContentPane().add(jComboBox1);
            jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            jComboBox2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jComboBox2ActionPerformed(evt);
            getContentPane().add(jComboBox2);
            jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            getContentPane().add(jComboBox3);
            pack();
        }// </editor-fold>                       
        private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
            list[jComboBox2.getSelectedIndex()]=null;
            jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(list));
        private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
            list[0] = master[0];
            list[1] = master[1];
            list[2] = master[2];
            list[3] = master[3];
            list[jComboBox1.getSelectedIndex()]=null;
            jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(list));
            jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(list));
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new dropdownex().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JComboBox jComboBox1;
        private javax.swing.JComboBox jComboBox2;
        private javax.swing.JComboBox jComboBox3;
        // End of variables declaration                  
    }

  • How to restore the HDD Recovery partition which has been deleted?

    Hello,
    due to the mistake, I removed HDD Recovery partition.
    Then, now I'm unable to restore eg. system state from before a fe hours.
    Is there any way to "make" HDRecovery once again?
    I really liked the funcionality of this tool, so it'd be nice but - can this be done? And how?

    Andrej is right you cannot do this.
    When you use Toshiba recovery media and install Vista this option will be available again.

  • My iPod touch has been disabled and I can't figure out how to unlock the devise, My iPod touch has been disabled and I can't figure out how to unlock the devise

    I don't want to erase any of the info and pictures saved

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If you previously synced to the computer then you may be able to recovery use of the iPod without erasing the iPod by following the instructions here:
    Disabled Recovery-must use syncing computer.
    Photos
    - If they are in an iPod backup then restore from that backup. See the restore topic of:
    iOS: How to back up
    - If you used PhotoStream then try getting them from your PhotoStream. See that topic of:
    iOS: Importing personal photos and videos from iOS devices to your computer
    - Maybe from the restore iPod via How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     

Maybe you are looking for

  • Multiple Forest DNS queries, and DFS

    Setup: 2 physical servers hosting several virtual machines with 3 forests (domains) and 3 subnets.  The physical server has 4 NICs, each forest/subnets has its own dedicated NIC via virtual switch (so 1 NIC is empty).  Each NIC connects to a switch t

  • Can I use a Forms as a Library to other Forms?

    I am converting our Forms 3.0 Application to 9i. I am currently looking to convert via the easiest path so we can start developing with the new technology. In Forms 3.0, we have a Library of common procedures which is actually a Form. In Forms 3.0, o

  • Creating a Sales Order using Web Dynpro

    Hi SDN,   I want to create a Sales Order using Web Dynpro application. For that i have used "Bapi_Salesorder_Createfromdat2" as a adaptive RFC model. Every thing is fine and i could able to create a sales order for a single line item. But my intensio

  • Deleting pictures uploaded from my camera

    I used my iPod camera connector and uploaded pictures to my iPod while on vacation and now I have them in iPhoto, my problem is deleting them from my iPod now. When my iPod is connected to iTunes the only option available is to add/delete photos that

  • Syncing photos on my ipad mini

    Please could someone explain the following? "unable to sync photos because you do not have write access to the folder "Pictures" ? This message came up after trying to sync my new ipad mini, i've never had a problem before & i've been an Apple user f