How to save history change data on table

Hi all
I'm using Oracle Database 11g
Data of tables often is changed. I want to save history person changed it.
Anybody help me!
Thankyou
Thiensu2810

Hi
you can use
flashback data archieve
CREATE FLASHBACK ARCHIVE DEFAULT test_archive1
TABLESPACE example
QUOTA 1 M
RETENTION 1 DAY;
CREATE FLASHBACK ARCHIVE test_archive2
TABLESPACE example
QUOTA 1 M
RETENTION 1 DAY;
The next statement alters the default flashback data archive to extend the retention period to 1 month:
ALTER FLASHBACK ARCHIVE test_archive1
MODIFY RETENTION 1 MONTH;
The next statement specifies tracking for the oe.customers table. The flashback data archive is not specified, so data will be archived in the default flashback data archive, test_archive1:
ALTER TABLE oe.customers
FLASHBACK ARCHIVE;
The next statement specifies tracking for the oe.orders table. In this case, data will be archived in the specified flashback data archive, test_archive2:
ALTER TABLE oe.orders
FLASHBACK ARCHIVE test_archive2;
The next statement drops test_archive2 flashback data archive:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_5009.htm#SQLRF20008
hope this helps
Zekeriya

Similar Messages

  • How to save only changed data of ALV in a local table ?

    Hi everyone,
    I created and alv with cl_gui_alv_grid, and I made it editable
    Now I need that when I click on a button only the changed data to be saved on a local (internal) table
    Is there a way I can do that ?
    I tried with methods like check_changed_data() but they don't return a table like that
    Regards,
    Dren Selimi

    ok than
    class lcl_event_receiver definition.
         methods:
    * Handle Data Changed
         handle_data_changed
         for event data_changed of cl_gui_alv_grid
         importing er_data_changed,
    endclass.                    "lcl_event DEFINITION
    class lcl_event_receiver implementation.
         method handle_data_changed.
              data: ls_good type lvc_s_modi.
              loop at er_data_changed->mt_good_cells into ls_good.
                   read table gt_table into gs_table index ls_good-index. "is your changed row in ALV
                    ls_good-fieldname "is your changed field
                   if ls_good-fieldname eq 'MATNR'.
                        gs_table-matnr " is your changed field old value.
                   endif. "i couldn't find a dynamic solution for old value
                   "if you do not have so many columns in alv you can use this solution
                    ls_good-value "is your changed field new value
                   append these values to your changed field table.
                   modify gt_table from gs_table index ls_good-index.           
              endloop.
              call method g_alvgrid->refresh_table_display.
         endmethod.
    endclass.

  • How to find the deleted data in tables

    guys,
    how to find the deleted data in tables example: i want to see whether anyone deleted data in MB5B report tables like mbew, etc.,
    regards,

    Hi,
    MBEWH is actually the history table of MBEW. It will record all the changes. As I have told you earlier if you have deleted the record dirctly from the table then it will not come even in the table MBEWH
    That means no changes have been made.
    regards

  • How to save the form data into adobe db?

    Hi All,
    How to save the form data into adobe db?
    I have designed one xdp file.
    Through processFormSubmission(), I got the submitted form data as Document obj.
    Then I have called the workflow kickoff program.
    code:
    InvocationRequest request = myFactory.createInvocationRequest ("myprocessname", //Specify the long-lived process name
    "invoke", //Specify the operation name
    params, //Specify input values (HashMap obj)
    false); //Create an asynchronous request
    It successfulyy started the workflow, but the submitted form data is not saved anywhere.
    And also, How get the form data from tables?
    Please provide the solution for the above.
    Thanks in advance.
    Regards,
    Saravanan G

    You need to create a process variable of type IN if you want to be able to pass data to your process. Then the params parameter (HashMap) contains a list of all the IN variables with their content that you want to pass to your process. They key is the name of the variable and the value the content. That way you should get it in your process.
    Now LiveCycle will create a column in the database for every process variable, so the content will be saved in the database just by creating that process variable.
    Jasmin

  • How can I find a data base table containing a GUID, which is result of the macro's execution?

    Hello,
    please help me to understand how the macros work. I am facing database inconsistency. The CRM-system retrieves a GUID of an opportunity’s item and checks its existence. However, this GUID (here it is es_info-ref_object) does not exist. As result, an exception is triggered.
    I am trying to figure out which data base table is responsible for the inconsistent data. Instead of SELECT statement, I see in the debugger that a macro retrieves the “guilty” entry .
    macro_execute macro_msg_data_read_rea.
    My Question: How can I find a data base table containing a GUID, which is result of the macro’s execution?
    Thanks a lot
    Andrej

    When you save a PDF out of Distiller it doesn't just have different options, it's an entirely different program. It doesn't do things the same way, so it can't have the same options. Saving from Distiller is in many ways better, expecially in that transparency isn't flattened.
    What specific options are you looking for?

  • I want to use Get Panel Image in Labview 5.0.1 and need details on how to save the BMP data generated

    I am trying to generate an application that saves a copy of its front panel on completion. This is easy to do using an invoke node with Print VI to HTML but this does not work in an .exe format. I have seen elsewhere that you have to use the Get Panel Image method, but no details are supplied in LV 5.0.1 documentation of how to use the "image" data (1-D Unsigned Byte array) that is generated. I want to save this in a format that can then be read as a bitmap in any standard graphics package. Any assistance?

    Hi,
    If you'd upgrade to LV5.1 or 6 you could use the 'standard' vi's for this.
    You need a VI called "Write BMP File.vi". It's not shipped with LV5.0.1.
    This vi only uses 3 subVI's, so perhaps someone at NI can convert it and
    send it to you (sorry, I won't, it's copywrited).
    If you cannot get this VI anywhere, you'll need to figure out the BMP file
    format yourself. It's not too complicated, but still could take some days.
    Perhaps someone figured it out before LV5.1 was released.
    Regards,
    Wiebe.
    "RDK" wrote in message
    news:[email protected]..
    > I want to use Get Panel Image in Labview 5.0.1 and need details on how
    > to save the BMP data generated
    >
    > I am trying to generate an application that saves a copy
    of its front
    > panel on completion. This is easy to do using an invoke node with
    > Print VI to HTML but this does not work in an .exe format. I have seen
    > elsewhere that you have to use the Get Panel Image method, but no
    > details are supplied in LV 5.0.1 documentation of how to use the
    > "image" data (1-D Unsigned Byte array) that is generated. I want to
    > save this in a format that can then be read as a bitmap in any
    > standard graphics package. Any assistance?

  • How to display the change data    in configruation profile for material

    dear export :
      i want to know  when  the  dependencies of material is deleted  and is added in confirgruation profile for material ,but i donnt know how to disaply the change data .
    please help me .
    best regards.

    Hi
    I don't know if the material document is managed by change document, after posting it any data can be changed in material document.
    Max

  • How to save the changes of trackpad in gest account ?

    how to save the changes of trackpad in gest account because every time that i change them and restart it, it lose the changes ...

    Hey cccosmas,
    Thanks for the question. The following article provides an answer to your question:
    OS X Mountain Lion: Set up guest users
    http://support.apple.com/kb/PH11321
    When guests log in, they don’t need a password. While logged in, they can’t change user settings or computer settings.
    Important: Files created by a guest user are deleted when the user logs out. A temporary home folder is created for the guest user’s files, but this folder and its contents are deleted when the user logs out.
    If you require these settings to be modified and retained in a secondary account, it may be best to setup a new user account:
    OS X Mountain Lion: Create a new user account
    http://support.apple.com/kb/PH11468
    Thanks,
    Matt M.

  • How to view history of data after enableing the Change Tracking

    Hi All,
    I have enabled the track changes using MDM Console. But now I unabled to view the last values of the fields which were updated. I also could not find any option in MDM Data Manager to view the last values of the fields. Please help me to view the track changes/history of data.
    I appreciate your prompt response
    Shahid Nadeem

    Hi
    The steps are clearly detailed in a blog by
    Change Tracking in MDM
    Bala Subbaiah Gorla
    Business Card
    Company: Wipro Limited
    Posted on Sep. 08, 2006 09:40 AM in Master Data Management (MDM)
    You can look at the blog or I can email you the document .
    Here are some of the tips from the blog
    Hope this will solve your problem.
    Change Tracking is a feature in SAP MDM, Using which we can track history of table records for the repositories. There are three are options, Track Adds, is track new field value when a record added. Track Modifies, track old and new values when the field is modified. Track Deletes, tacks old-field value when a record is deleted. In addition, for each type of change you can track, the setting of the root node of the Tables and Fields hierarchy determines the default setting for new tables added to the MDM repository. Similarly, for normal tables, the setting for each table node determines the default setting for new fields added to the table. Finally, the setting for each field node determines the actual setting for the field
    Step I>>Activate Change Tracking.
    Navigate the Selected repository,
    (your repository)>Admin>Change Tracking.
    Click on Change Tracking, you will get Change Tracking Setting screen. Then choose the level of tracking root node of Table and Fields. In addition, there are three type tracking. That are Track Adds>>this option tracks new field value when a record is added, Track Modifies >> this option tracks old and new values when the field is modified, and Track Deletes >> this option tracks old field value when a record is deleted
    Step III>>Logon to MS SQL Server
    Start>Programs>Microsofr SQL Server-->Enterprise Manager,See the screen shot below for SQL Server logon.
    You will get the SQL Server Enterprise Manager. See the screen below. Select the Database for the respective Repository (BP3_Customer_Workshop). For the each repository, there are two databases XXXX_m000 and XXXX_z000.
    There are two databases CustomerWorkshop_M000 and CustomerWorkshop_Z000
    Select the table A2i_CM_History under the CustomerWorkshop_Z000 and select query as below screen.
    Choose/select the fields that you want execute the report/show.
    You can find the record, which I (the user name 'mdmg') have edited at 9/6/2006 11:44:39, as seen below screen
    Thanks
    Prashanta
    PS :  Pls reward helpful answer

  • Hi everybody how to save the inputed data in one simple list output .

    here am wrting the description of the requirement ...
    am displaying one report output in that output i have all my fields open so that user can directly chage the dats what ever needed or he needs.
    then after changing when he will press the save button the changed data should be saved to one of the database tables ..
    so can anybody please help me out how to do this requirement
    this is a simple report with all fields in the output screen in input mode

    hiiii
    if you want to save the data that user have updated then use following statement on SAVE button.
    UPDATE ztable1
    SET    C1 = 2   
    WHERE  C2 IN ( SELECT C3
                   FROM   T2
                   WHERE  C4 = 0)
    reward if useful
    thx
    twinkal

  • How to Divert the changes to cdhdr table instead of dbtablog?

    Hai everybody.
    I am new to this forum. i got a job in abap recently. The below is my requirement.I want solution for this one. Anybody plz help me.
    I am having ztransaction.
    The change logs already were captured in DBTABLOG for table ZWPRFRUND (in transaction ZWPG).
    The only report which is currently used to get the change logs is RSVTPROT
    Now my requirement is,
    we need to display the change logs in the form of ALV.
    We should divert the changes to CDHDR table instead of DBTABLOG, then we can use the RSSCD100 to display change logs.
    The Important items for the change LOG needed in case of changes to table in “ZWPG” are,DATE ,TIME,USER,FIRST NAME,FILED NAME,OLD VALUE,NEW VALUE
    The above fields need to be displayed in the grid. In the above list “FIELD NAME” denotes any field of the table in the transaction in “ZWPG”
    Thanks & Regards,
    Sujatha.T.

    Check out my post in this thread:
    How to record add-on table change logs?
    You need to define a change document type and generate relevant code for this.
    Andrew

  • How to get the changed data of an order?

    Hi,
    I'm trying to use BADI ORDER_SAVE to check if the user has changed the status and based on some conditions, I want to avoid saving the order. My problem is that with function moule CRM_READ_ORDER I can only read the "old" (current) information from database, but not the changes in the screen that the user is going to save ...
    How can I get this data?

    Hi,
    You can get the current document data with FM:CRM_ORDER_READ on BAdI:ORDER_SAVE. This FM reads not only DB data but also current data.
    FM:CRM_ORDER_READ reads the document data as follow order.
    1.Buffer data
    2.DB dta
    You can see it on LCRM_ORDERADM_H_DBF03(form orderadm_h_read_with_guid) called by CRM_ORDER_READ.
    If you try to create the order and see the data via CRM_ORDER_READ before saving the order, you can see the data,aren't you? It's the evidence CRM_ORDER_READ reads new buffer data not only DB data.
    Regards,
    Masayuki

  • Log changed data in tables

    hi
    I want to hold change data information.
    For example I have table student and one row is inserted.
    Then somebody else changed the name of the student name and phone number.
    I want to hold the changed columns when an update query is executed.
    I looked at change data capture but I think it is about data warehouses and there are 2 databases in that case.
    I do not want to write triggers for all tables.
    I looked at fine grained auditing but I can take the update statement only, I do not know how can I find the changed columns, column's last data and new data.
    How can I do it? Which topic should I research?
    Can you lead me?
    Good Works

    [Flashback Query|http://www.oracle-base.com/articles/9i/FlashbackQuery.php] may be possible. but, There are some restrictions for Flashback query.
    [http://www.oracle-developer.net/display.php?id=210]
    [http://www.dbasupport.com/oracle/ora9i/flashback_Query.shtml]
    [http://www.dbasupport.com/oracle/ora9i/flashback_Query2.shtml]
    [http://www.dbasupport.com/oracle/ora9i/flashback_Query3.shtml]
    Last option is log Minor.

  • ALV: how to save context space for large tables ?

    Dear collegues,
    We are displaying an ALV table that is quite large. Therefore, the corrsponding DDIC structure and the WD context is large. This has an impact on performance and the load size of the program. Now we will enhance the ALV table again.
    Example: for an icon and its explaining tooltip that are displayed in the ALV: there is are context fields required like "SOURCE_FIELDNAME" for the tooltip as well as for for the icon. They need a lot of characters for each tooltip and icon).
    Question: do you have an idea, how to save context space for those ALV fields ?
    Best regards,
    Christian

    >We are displaying an ALV table that is quite large.
    Do you mean quite large as in a large number of columns or as in a large number of rows (or both)?  I assume that the problem is probably more related to a large number of rows.  For very large tables, you should consider using the table instead of the ALV. For very large tables you can even use a technique called context paging to keep only a subset of the data in the context memory at a time.  Here is a recent blog that I created on the topic with demonstrations of different techniques for table sharing, shared memory, and context paging when dealing with large tables in Web Dynpro ABAP:
    Web Dynpro ABAP: How Fast Can You Consume 1 Million Rows?

  • How to save history for more than one day. Can't find the answer. Thanks, Bil

    When I click on the History tab in the tool bar it only shows History for one day or today. How can I change it to save History for 3 days?
    Thanks,

    See:
    *http://kb.mozillazine.org/Resetting_preferences
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

Maybe you are looking for

  • Error while uploading Fast Formula using ldt Files.

    Dear All, We need to migrate Fast Formula to different instances. Also we need to have version control also. For that we created custom lct file. We were able to download the ldt files correctly but found that while uplaoding fast formula context wer

  • How can I make safari automatically open a word/pdf doc after it has been  downloaded?

    If I want to open a pdf or word file in safari, the program just downloads the file to the  map downloaded files. I must then manually find the file and click on it to open. In firefox this happens automatically.  Is it possible to make safari do thi

  • File handling in Lightroom is pretty, terribly, awful?

    The current workflow in terms of importing and mostly- organising your catalog/files is pretty damn painful as I find it. Is it just me, or are others running into similar issues? First, let me state that I'm really fond of the develop features of Li

  • JDBCStoreManager.releaseConnection causes rollback???

    I thought that getting the SQL connection from PersisientManager would allow me to do JDBC stuff on the same connection and in the same transaction. But I cannot get SQL updates to 'persist' without calling commit on the transaction. Is this a bug, u

  • IDOC - RFC - File

    Hello, I am trying to do the following (but so far I was not able to succeed): After receiving a material IDoc I need to retrieve more data of the related production version (RFC CSAP_MAT_BOM_READ) and combine this data into a file. I suppose I need