Commit the changes

hi,
SQL> select *from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
NLSRTL Version 10.2.0.4.0 - Production
SQL>
i have two session,
in session 1 i updated the table
SQL session1> select *from t;
         X
         1
         2
         3
         4
         5
SQL session1> update  t set x=x+10;
5 rows updated.
SQL> commit;
Commit complete.
SQL>  select *from t;
         X
        11
        12
        13
        14
        15
after that in session 2 , can i view the old records.even though the session 1 is commited the changes.
SQL> select *from t;
         X
         1
         2
         3
         4
         5
is it possible ??
thanks in advance.

Oracle uses undo to rollback transactions and supports flashback queries. To use the feature you must have the EXECUTE previlige on the DBMS_FLASHBACK package.
When you execute flashback query, only the state of the data is chagned. The current system time is used and the current data dictionary is used. If the structure of the table has changed, the query fail.
select *from t as of timestamp;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • Error message when I insert a div tag: Couldn't commit the changes made in Live View. Refresh the Live View and try editing again.

    According to a web and support forum search, myself and another person, Chloe in the Dreamweaver Club forum, have ever reported this. Trying to follow along a Lynda.com tutorial, and the instructor isn't getting this error. Can't imagine why it's happening. I'd be very grateful for any help. I'm also getting an error dialog message:
    DIALOG BOX:
    While executing onClick in InsertFGDiv.htm, the following JavaScript error(s) occurred:
    At line 687 of file "Macintosh HD:Applications:Adobe Dreamweaver CC 2014.1:Configuration:Commands:InsertFGElement.js": The object is not currently contained in a document.
    This appears at the top of the screen:
    Couldn't commit the changes made in Live View. Refresh the Live View and try editing again.  [Refresh doesn't do anything.]

    Try the suggestions here -
    Index to Dreamweaver FAQ
    The solution for Javascript errors is likely the one.

  • PostChanges()  commit the data into MySQL with engine=MyISAM

    suddenly i found the following code called in AM could commit the change into database .
    this.getTransaction().postChanges();
    My database is MySQL 5.0,and set it with MyISAM engine .i know this engine can not support transaction.

    Hi,
    In the same step 4, please try the option pure SQL and enter the query, "select count(*) from tablename"
    Please check whether this is working fine ? And also, were you able to see the records in the JDeveloper IDE with the connecting to the MySQL Database...
    And aslo, the data source you have created for accessing the mySQL Database in weblogic console, what username credentials have you given ? please check whether that username has privileges to the table you want to select ? And , the table you are selecting is under the same username schema or another schema ? If it is a different schema , then find out whether the username you have given while creating the data source has read/write privileges to that table ?
    Thanks,
    N

  • Unable to commit the project status change

    Dear Experts,
    I am developing a utility program to change the status of multiple projects at once.
    I am changing the status of Phase, task, check list,check list item and Project status from
    Create to Release, release to Complete and to Work Effor Complete.With respective status change BAPIS.
    when ever the projects is not able to change the status success fully due to validations
    such as person respondsble not mainted or any other basic data is missing,
    We are not committing the changes if every thing goes fine we are commiting with BAPI: BAPI_CPROJECTS_COMMIT_WORK
    but when we commit with this it still retaining the previous project status in LUW and trying to commit previous project too.
    and commit is getting failed.
    I am not able to roll back or free the project with BAPI:BAPI_CPROJECTS_ROLLBACK_WORK and BAPI_BUS2172_FREE
    BAPI_CPROJECTS_ROLLBACK_WORK: when iam trying to use this BAPI it is going to short dump
    BAPI_BUS2172_FREE:  It is returing error saying unable to free the project.
    Could you please tell how to roll back the changes to the project or how to commit only success full projects (Project with out any errors in status change.)
    Kindly do the needful
    Thanking you.
    -ravi

    Program flow
    Loop at It_Project
    *Status Change for Check List
    CALL FUNCTION 'BAPI_BUS2176_SET_STATUS'
        EXPORTING
          checklist_guid                = p_guid
      IV_STATUS_PROFILE             =
         is_business_transaction       = lv_bus_trans
         TABLES
             return                    =  t_return.
    *Status Change for task
      CALL FUNCTION 'BAPI_BUS2175_SET_STATUS'
        EXPORTING
          task_guid               = p_guid
          is_business_transaction = lv_bus_trans
        TABLES
          return                  = t_return.
    *Status Change for project
    CALL FUNCTION 'BAPI_BUS2172_SET_STATUS'
          EXPORTING
            project_definition_guid = p_guid
            is_business_transaction = lv_bus_trans
          TABLES
            return                  = t_return.
    If there is a sucess in changing the status.
    CALL FUNCTION 'BAPI_CPROJECTS_COMMIT_WORK'
        TABLES
          return = t_creturn.
    Else.
        CALL FUNCTION 'BAPI_CPROJECTS_ROLLBACK_WORK'
          TABLES
            return = t_rreturn.
    Endif.
    Endloop.
    In the above code when we are executing  BAPI_CPROJECTS_ROLLBACK_WORK is going for dump.
    If we simply commit with  BAPI_CPROJECTS_COMMIT_WORK for all the projects then if any project
    commits with error same error is re produced for all the following projectsid (unable to destroy the LUW).
    and in CRM we can't use 'BAPI_TRANSACTION_ROLLBACK'.

  • Gettins "Do you want to save the changes you have made" promt without any

    Hi all,
    Problem : I have a master detail relation between two blocks which are on different window ( say block 1 on window 1 is master and block 2 on window 2 is detail) ,
    when i open my window 2 and close it without any changes, then when i try to do any change in window 1 i get this popup message "Do you want to save the changes you have made".
    I have various non database items as well which are used to hold intemediate values like sum of a column and all.
    for the close button on window 2 logic :
         go_block('BLOCK1');
         hide_window('WINNDOW1');
    I dont want to change the message level. as if there are really changes made then we need this message.
    In another thread i saw this might be due to copy "value from property" created by master detail relation on the joined columns.
    Please suggest any solutions.
    Thanks in advance.

    HI I found the solution to this Problem:
    when we queried the data block then few items values were assigned . this changes the block_status to CHANGED as well as the form_status variable to CHANGED.
    so in EXIT logic of that window i cleared each block explicitly . this discards all the changes made to those blocks ( This logic was implemented for CANCEL button on my screen as so we need not save the data) while the SAVE logic already has the COMMIT so will not set the popup for that.
    Not a beautiful logic...... but works ...... :)

  • How to refresh VO to get the changed value in other AM or backend database

    one VO is refrenced by two AMs, when i insert or update data by VO in one AM, how to get the changed data in another AM ?
    another case is i have updated some attributes of the record in database by SQL statement ,but the client can not get the updated value at once .
    i have tried to use executeQuery() ,but it does not work. now i always do a rollback method ,a bad idea.:)
    pls help me ! thanks
    Message was edited by:
    Guo Qinghua

    Mind that ADF BC (probably like any other persistence framework) caches data. So when you update something in the database other than via ADF BC, you then have in the ADF BC cache what is called 'stale data'. When you try to commit that nevertheless, the database will tell ADF BC that the record in the database has been updated by another user, and a rollback will be done. That is all to be expected.
    You can find some more info on how this works here:
    http://download-uk.oracle.com/docs/html/B25947_01/bcvoeo007.htm
    It also explains how to clear the cache and enforce that data will be read from the database.
    Jan Kettenis

  • Show the alert 'Do you want to save the changes? after entering each record

    Hi,
    Is there a way to show the alert 'Do you want to save the changes you have made?', after entering each record.
    i.e. as soon as a record is entered, user should be prompted to 'Do you want to save the changes?' the record when they move to the next record.
    I used the below code in Post-Record rigger. Prompt was diplaying fine as per the requirement,but record was not being saved.
    DECLARE
    n_button_selection INTEGER;
    BEGIN
    if :System.Record_Status='INSERT' then
    fnd_message.set_string('Do you want to save the changes?');
    n_button_selection := fnd_message.question('Yes', 'No','Cancel', 1, 2,'question');
    IF n_button_selection = 1 THEN
    forms_ddl('commit_FORM');
    ELSIF n_button_selection = 2 THEN
    RAISE form_trigger_failure;
    ELSE
    NULL;
    END IF;
    end if;
    END;
    I used forms_ddl('commit_FORM') to commit the record. Because we can't us Do-key('commit_form') in post-record trigger. But forms_ddl('commit_FORM') is not working. So can anybody please give some idea regarding this.
    --

    Forms_ddl issues dynamic sql - you cannot call another builtin (like commit_form) within forms_ddl. Check form_status after the call and you will see that it failed.
    Moreover, forms is not able to execute the post and commit process if you issue "forms_ddl('commit');", so this will not be a solution either.
    You could use the When-New-Record-Instance - Trigger, which allows restricted built-ins to be executed, and issue do_key('commit_form');". However, you would have to check the :system.block_status or :system.form_status, because :system.record_status will already hold the new record number.
    Regards,
    Gerd

  • Unnecessary question "Do you want to save the changes..."

    Hello again,
    I have a multi-record block on which only update is allowed and two buttons: accept and reject. There are three possible ways of changing records:
    1. change values in some fields and commit - which works fine;
    2. change values in some fields and press accept button;
    3. change values in some fields and press reject button.
    Buttons have implemented delete, update, insert in some tables using a pl/sql stored package. At the end of the processing, for both buttons, record "accepted" or "rejected" dissapears from the block - using execute_query. Problem is that if some values have been changed before pressing the button, warning window appears: "Do you want to save the changes you have made?" which in this case is unnecessary and annoying. How can i get rid of this message?
    Thank you in advance.

    If you don't want commit changes on base table items you can use clear_block(NO_VALIDATE) built-in before execute_query

  • Reading the changes with in the Transaction from Toplink

    Typically when we work on a transaction in a SQL Session ( say from SQL*Plus), the DML changes made with in that transaction are visible to the subsequent statements in the same transaction.
    How can we acheive the above functionality with a UnitOfWork? Using a query.ConformResultsInUnitOfWork helps, but only when the Toplink Cache is enabled. Can we achieve the same functionality in Toplink when the Toplink Cache is disabled.
    Many Thanks in advance for any information on this.

    Thanks for the update.
    Below is the sample code. It works fine when the Toplink Cache is enabled on the object. But when it is disabled the executeQuery below fires a query to the database and a null object is returned. I disable the cache at the descriptor level using the statements
    descriptor.alwaysRefreshCache();
    descriptor.disableCacheHits();
    myServerSession =(ServerSession) SessionManager.getManager().getSession("test100");
    myServerSession.login();
    myServerSession.initializeIdentityMaps();
    ClientSession clientSession = myServerSession.acquireClientSession();
    UnitOfWork unitOfWork = clientSession.acquireUnitOfWork();
    // transaction started
    unitOfWork.beginEarlyTransaction();
    Case t = new Case();
    t.setId("Case1");
    t.setClaimNumber("ClaimNo1");
    // object registered with uow, but not yet committed and not in the database
    unitOfWork.registerObject(t);
    Case t1 = new Case();
    t1.setId("Case1");
    //t1 = (Case)unitOfWork.readObject(t1);
    //get the same object using the conformResultsinUnitOfwork
    ReadObjectQuery roq = new ReadObjectQuery(t1.getClass());
    roq.conformResultsInUnitOfWork();
    roq.setSelectionCriteria(roq.getExpressionBuilder().get("id").equal("Case1"));
    t1 = (Case)unitOfWork.executeQuery(roq); //returns null
    //Update some attributes..
    t1.setClaimNumber("ClaimNo2");
    //Commit all changes
    unitOfWork.commit();
    The above sequence of statements works from a SQL prompt, but not from Toplink.

  • When I use the selection tool to move vector points and bend edges, I only see the change in wire frame.

    When I use the selection tool to move vector points and bend edges, I only see the change in wire frame.  Once I commit by letting go of the mouse button, the object does change.  It just previews with a wire frame. I would like to see the preview change on the solid object.  Is there a setting somewhere?
    I sure hope I am explaining this for people to understand .
    Thanks
    Ed

    Hi Ed,
    What do you mean by wire frame??And are you using selection or sub-selection tool since you have mentioned about vector point I doubt if it is sub-selection tool.Could you please attach a video demonstrating the issue where we see the mismatch in the preview and the output, so that we can understand the problem better and try to resolve it.
    Thanks,
    Sangeeta

  • Want a query to see only the changes data of a specific no.

    here are the table sturcucture and data for the table:
    create table import_lc (
    LC_NO varchar2(20),
    AMEND_NO varchar2(2),
    USANCE_PERIOD number,
    AMT_FCY number,
    AMT_LCY number,
    SHIPMENT_PERIOD number,
    EXPIRY_DATE date,
    EXPIRY_PLACE varchar2(50));
    Insert into FE_IMPORT_LC
    (LC_NO, AMEND_NO, USANCE_PERIOD, AMT_FCY, AMT_LCY, SHIPMENT_PERIOD, EXPIRY_DATE,
    EXPIRY_PLACE)
    Values
    ('1', '1', 90, 10000, 500000, 15, TO_DATE('02/13/2008 00:00:00', 'MM/DD/YYYY
    HH24:MI:SS'), 'DHAKA');
    Insert into FE_IMPORT_LC
    (LC_NO, AMEND_NO, USANCE_PERIOD, AMT_FCY, AMT_LCY, SHIPMENT_PERIOD, EXPIRY_DATE,
    EXPIRY_PLACE)
    Values
    ('1', '2', 90, 10000, 500000, 30, TO_DATE('03/13/2008 00:00:00', 'MM/DD/YYYY
    HH24:MI:SS'), 'DHAKA');
    Insert into FE_IMPORT_LC
    (LC_NO, AMEND_NO, USANCE_PERIOD, AMT_FCY, AMT_LCY, SHIPMENT_PERIOD, EXPIRY_DATE,
    EXPIRY_PLACE)
    Values
    ('2', '1', 90, 15000, 800000, 30, TO_DATE('01/19/2008 00:00:00', 'MM/DD/YYYY
    HH24:MI:SS'), 'DHAKA');
    Insert into FE_IMPORT_LC
    (LC_NO, AMEND_NO, USANCE_PERIOD, AMT_FCY, AMT_LCY, SHIPMENT_PERIOD, EXPIRY_DATE,
    EXPIRY_PLACE)
    Values
    ('2', '2', 120, 20000, 1000000, 30, TO_DATE('01/19/2008 00:00:00', 'MM/DD/YYYY
    HH24:MI:SS'), 'DHAKA');
    COMMIT;
    NOW, if u see the table data, u see,
    for lc_no=1; only the shipment_period and expiry_date has been changed with the
    amend_no.
    NOW, if u see the table data, u see,
    for lc_no=2; only the amt_fcy and amt_lcy has been changed with the amend_no.
    there could be many more columns like these where the data can change with the
    amend_no but the lc_no will be the same.
    now, i want to make a query by which i can see only the changes column value for a
    particular lc_no and maximum amend_no for that lc_no.
    & result data should be from the maximum amend_no for that lc_no.
    like:
    for lc_no = 1 ;
    SHIPMENT_PERIOD EXPIRY_DATE
    30          13-03-2008
    And for lc_no = 2 ;
    USANCE_PERIOD     AMT_FCY     AMT_LCY
    120          20000     1000000

    I'm not sure that I completely understand your requirement, but here's something that should, at the very least, get you started. If you don't know what the LAG function does, look it up in the documentation.
    SELECT lc_no,
           amend_no,
           usance_period,
           amt_fcy,
           amt_lcy,
           shipment_period,
           expiry_date,
           expiry_place
    FROM   (SELECT lc_no,
                   amend_no,
                   CASE
                     WHEN usance_period <> LAG (usance_period) OVER (PARTITION BY lc_no ORDER BY amend_no) THEN usance_period
                   END usance_period,
                   CASE
                     WHEN amt_fcy <> LAG (amt_fcy) OVER (PARTITION BY lc_no ORDER BY amend_no) THEN amt_fcy
                   END amt_fcy,
                   CASE
                     WHEN amt_lcy <> LAG (amt_lcy) OVER (PARTITION BY lc_no ORDER BY amend_no) THEN amt_lcy
                   END amt_lcy,
                   CASE
                     WHEN shipment_period <> LAG (shipment_period) OVER (PARTITION BY lc_no ORDER BY amend_no) THEN shipment_period
                   END shipment_period,
                   CASE
                     WHEN expiry_date <> LAG (expiry_date) OVER (PARTITION BY lc_no ORDER BY amend_no) THEN expiry_date
                   END expiry_date,
                   CASE
                     WHEN expiry_place <> LAG (expiry_place) OVER (PARTITION BY lc_no ORDER BY amend_no) THEN expiry_place
                   END expiry_place,
                   rn
            FROM   (SELECT lc_no,
                           amend_no,
                           usance_period,
                           amt_fcy,
                           amt_lcy,
                           shipment_period,
                           expiry_date,
                           expiry_place,
                           ROW_NUMBER () OVER (PARTITION BY lc_no ORDER BY amend_no DESC) rn
                    FROM   fe_import_lc)
            WHERE  rn <= 2)
    WHERE  rn = 1

  • ADF appl link to SQL database does not save the change

    I use SQLJDBC 4 to connect to MS 2008 database. Then I create an simple ADF application with one model and business component that connect to one table. When I run the app. The grid and the detail come up nicely. I can insert new row and modified existing row without error with submit-commit operation. The grid updated with the change. But it did not update the database when I check the data from studio manager. Is there any configuration I am missing so the data are not updated.

    Please give us your jdev version...
    What exactly do you mean by submit-commit operation?
    Have you run the application with jbo.debugoutput=console to see what its send to the server?
    Timo

  • Admin logs to monitor all the changes done in ESA

    We have a situation wherein we want to see who accessed the Ironport ESA appliance and did a configuration change. Would we be able to do it? or Can Cisco Support can find it out from backend?

    Grep your system_logs files for the word "commit".  That will list the date/time and person who committed a change, along with their description of the change if they provided one.  Of course, their description is only as accurate as they wanted it to be.
    Wed May  7 12:42:34 2014 Info: PID 1633: User jsmith commit changes: Added SMTP route for new email domain new.mycompany.com.

  • Want to commit by changes in database after second transaction?

    Hi All,
    I hv a situation where a webservice interacts with the database.
    Here the webservice will first make a request to database for some operation but i dont want the database to commit changes in first request itself. A response will be sent to webservice further a second request will be sent to database for committing the changes. So can that be done?
    thanks for ur advise in advance.

    Hi,
    I hv a situation where a webservice interacts with the database.Here the webservice will first make a request to database for some operation but i dont want the database to commit changes in first request itself. A response will be sent to webservice further a second request will be sent to database for committing the changes. So can that be done?
    >
    <ul>
    <li>Apex version?</li>
    <li>DB Version?</li>
    <li>Webserver used?</li>
    <li>Are you using ApexListener Restful or WSDL based SOAP WS?</li>
    <li>Are you using Web Service Reference or some other mechanism?</li>
    </ul>
    Cheers,

Maybe you are looking for