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,

Similar Messages

  • Commit and changes in database

    Hi,
    If someone makes an sql request but without commiting at the end, what happens exactly with the databuffer blocks.
    Is the DBWR works for these datas?
    I see a few people working with the oracle express 10 g version: their post is both client and server .
    They never commit their sql requests( insert , update, delete) and we can see that changes occur inthe database.
    How can you explain it to me?
    What occurs exactly with the DBWR process, concerning these datas?
    Thanks a lot for your answer.
    Best regards.
    Nathalie

    when a session changes data its shadow process reads blocks from DB file into buffer cache, and modifies rows in these blocks. these blocks become marked as dirty. At same time old versions of these blocks are copied into Undo segments to be used by other sessions until this session finishes the transaction. At same time all changes of rows in data blocks and changes of Undo segments written to Redo Log.
    DBWR sometimes issues so called checkpoints during that it flushes all dirty blocks to db file.
    It flushes dirty blocks of Undo segments as well.
    That is why you see physical changes in db files.
    However no other session sees logical changes of table rows done by the session until it issues Commit. Other sessions read rows from old versions of blocks from Undo.
    When the session commits it places mark into Redo log removes pointers to Undo from data blocks and releases Undo.
    something like that...
    But you better read Concepts docs, there is better explanation.

  • How to change metadata database after OIM/OAM install?

    Hi everyone
    We need to change the metadata/schema database for our OIM/OAM installation.
    What I plan to do is:
    1. Create the new db
    2. Run the RCU utility for both OID and OAM.
    3. Change the connection pool data source in the OAM Weblogic console.
    Is there anything else I need to do?
    I know there was a connection to the database done when I created the Domain from the OID home (using config.sh). I've tried to run this config script again but can't find any way to amend the domain, nor can I see how to do it in any of the (many) consoles.
    Any help greatly appreciates!
    D

    Hi ,
    At the time of configuration you will get an option to set the database connection parameters there you can point to your required DB schema.
    Regards,
    Ari

  • 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

  • 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/

  • HT204053 I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    See https://discussions.apple.com/message/19218571#19218571.

  • Probably incredibly simple question, so sorry. I have just changed e-mail after many many years and I want to e-mail everyone in my mac mail client with the new e-mail address at the same time.

    Probably incredibly simple question, so sorry. I have just changed e-mail after many many years and I want to e-mail everyone in my mac mail client with the new e-mail address at the same time.

    If you are using Address Book, open it, create a new Group, select all you contacts by click the top one while holding down the shift key and then select the last one. Drag the contacts to the group, then send an e-mail to the group.

  • Getting errors after changing the Database

    Previously I was using a different database connection for my adf application.Now i have changed the database connection through project properties->business components. I also deleted the details of the previous connection from connection.xml file. But still i'm getting the error about the previous connection.
    Please share your opinion to get rid of this problem.

    Try this.
    1. Menu->View->Database->Database Navigator
    2. Find your application specific connection.
    3. Check properties of the connection, update/recreate, test the connection using Test button.
    4. Menu->Build->Clean All

  • How can I change my database options after it's created ?

    Hi ,
    I'm using a 10 g oracle on a solaris 10 machine .I created a database and now I m willing to change the database option.I tried to use dbca but the Configuration Options checkbox is disabled.Is there any other way to change the database option ??.For instance ading the JVM support ?.
    Cheers.

    You will need to run the installation scripts....as noted in My Oracle Support (support.oracle.com)..
    Note:
    Database Version 10.2.0:
    Note.276554.1 How to Reload the JVM in 10.1.0.X and 10.2.0.X
    and
    Master Note for Oracle JVM [ID 1098505.1]
    Read, learn, Share,
    Regards
    Tim
    Please mark this thread as answered...

  • How to avoid the message "Do you want to save the changes you have made?"

    i have 3 forms
    master block
    detail1 block of master
    detail2 block of detail1
    when i go out of detail1 and detail2 blocks after doing some modifications it asks me "Do you want to save the changes you have made"?
    i want to avoid this message as well as my changes should be posted in the database. what is the solution for this big pblm?

    hi
    may be you are trying to modify the database item or reassigning the database item value which is not actually needed.
    try to comment the reassigning database values
    and give clear_form(do_commit);
    most probably u will not get the message again
    Regards
    Rajdeep .A

  • Copying data to another database after little transformation

    Hi,
    Is there any better pattern for
    copying data from one database to another database after some little transformation(can be simple SQL join).
    I see couple of options like..
    1. Using materialized views
    2. Writing a simple procedure to do copy and transformation.
    3. Using a pure ETL tool.
    Is there any other simple and secure way of doing this ?
    Thanks in advance,
    Vijay.
    Message was edited by:
    user487780

    Hi Justin,
    A couple of questions
    1) Are you copying from an Oracle database to another
    Oracle database? Or are there non-Oracle databases
    involved?I am copying from Oracle to Oracle.
    2) Are there just two databases? Or more?Only two.
    3) Are you copying all the data from one database to
    another? Or are you copying just a subset of data?I just need to copy a subset(can get using SQL join) of data
    4) How frequently does the data need to be copied?exactly 500 times, but at different intervals..
    How soon after the data changes in the source system
    m does in need to be changed in the destination
    system?the copying process has to be triggered based on some data in source database.
    5) Is the data flowing in only one direction?Yes
    6) Is there some drawback to the three options you've
    outlined that you're trying to avoid? If one of
    these options meets all your requirements, I'd assume
    that you wouldn't bother posting a question. That
    implies to me that there is some unstated requirement
    that you're trying to meet...I just want to know, whether there is any standard(typical) way to do this.
    Thanks,
    Vijay.
    >
    Justin

  • 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 ...... :)

  • I want to set log_archive _start paramtere true after instance start up. af

    i want to set log_archive _start paramtere true after instance start up. after setting database in archive log mode . How                                                                                                                                                                                                                                                   

    everything OK with you ?
    1. . can we use single listner for oracle 9i & 10g which is i
    Posted on: Mar 15, 2008 6:01 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    2. how can i change max data file paramtere which is use in create database sc
    Posted on: Mar 15, 2008 6:10 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    3. how see the globle name of database
    Posted on: Mar 15, 2008 6:28 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    4. how sga use if i execute select * from emp whree empid=111;
    Posted on: Mar 15, 2008 6:19 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    5. how u see how many database are on ur linux box & how many start or stop
    Posted on: Mar 15, 2008 6:03 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    6. i want to set log_archive _start paramtere true after instance start up. af
    Posted on: Mar 15, 2008 6:12 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    7. if i dont specify the log file in export but export complete with warning
    Posted on: Mar 15, 2008 6:13 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    8. if ur database crash u have only export of database how u create database f
    Posted on: Mar 15, 2008 6:14 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    9. is it possible to take export of close database
    Posted on: Mar 15, 2008 6:13 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    10. is it possible we can define the path of control file backup by creating a
    Posted on: Mar 15, 2008 6:20 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    11. Re: how we see versions of component those install with oracle
    Posted on: Mar 15, 2008 6:36 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    12. row chaning how u eliminate
    Posted on: Mar 15, 2008 6:23 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    13. Some inter view Questions Please give prefect answer help me
    Posted on: Mar 9, 2008 10:32 AM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    14. ur database size is 100gb when u take export eport dmp sixe is 90gb but ur
    Posted on: Mar 15, 2008 6:00 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    15. ur mount point have not more space and ur system table space is full how u
    Posted on: Mar 15, 2008 6:06 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    16. ur temprory tablespace full . how u resize or increase size of file .
    Posted on: Mar 15, 2008 6:04 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    17. user say ur database is slow how u slove this how identified reasons
    Posted on: Mar 15, 2008 6:17 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    18. what is diffrence when u install 9i and 10g on linux. which feature provide
    Posted on: Mar 15, 2008 6:08 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    19. what is facture block
    Posted on: Mar 15, 2008 6:11 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    20. what is grid . how grid work. is it possible grid in 9i . how
    Posted on: Mar 15, 2008 6:25 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    21. what is pre reqiest of rman implementation
    Posted on: Mar 15, 2008 6:15 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    22. what is process of patching on linux & windows
    Posted on: Mar 15, 2008 6:16 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    23. what is steps of cloning
    Posted on: Mar 15, 2008 6:24 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    24. when u install oracle where the oracle installation inventory information s
    Posted on: Mar 15, 2008 6:07 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    25. which type of joins we can see in tkprof information
    Posted on: Mar 15, 2008 6:22 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread
    26. why r we not use tablespce begin backup with read only tablespace
    Posted on: Mar 15, 2008 6:18 PM, by user: aditi -- Relevance: 100% -- Show all results within this thread

  • Problem updating a table-row (changes are commited after "prerender()")

    Hi,
    I hope someone can help me on this:
    Background-info:
    The page which gives me problems should (and is) displaying one record of a query at a time. Depending on the button which can be pressed, the page should just display the next entry ("Next->") or change one column of the current entry and jump to the next entry ("Wrong / Next->"). After the last entry, the query should be (and is) executed again and the page should display the first column, which fits the query-criterias.
    The problem:
    If the query just finds one record, the record is displayed on that page.
    By pressing the "Next->" button, the page displays the same record again (like it should). By pressing the "Wrong / Next->" button, the page displays the same record again, although - like described above - one column was changed by that action and the query (which should and is executed again)
    should not find that record anymore. By pressing the "Wrong / Next->" button again, the page is not displaying a record anymore (like I expected it from the first time pressing that button).
    Technical Info:
    I am using one DataProvider for the "select" and an other one for the "update".
    Both are working fine.
    The "select" is called in the method "prerender()" and the "update" is called in the action of the button "Wrong / Next->".
    I debuged the program and found out, that the column of the database entry is changing it�s value not after processing the action of the button (like it should), but AFTER processing the method "prerender()". I tried to force the action of the button to commit the changes (xyDataProvider.commitChanges();), but without success.
    Code:
    public String buttonWrong_action() {
        try
            // Execute the Update-Statement
            sessionBean1.getXyRowSet().setObject(1, "2");
            sessionBean1.getXyRowSet().setObject(2, cardId);
            sessionBean1.getXyRowSet().setObject(3, operatorId);
            xyDataProvider.refresh();
        catch(Exception e)
        // Jump to the next record (set cursor)
    public void prerender() {
        try
            // Execute the Select-Statement
            sessionBean1.getZRowSet().setObject(1, operatorId);
            sessionBean1.getZRowSet().setObject(4, resultId); // ResultId (1 = Right, 2 = Wrong)
            zDataProvider.refresh();
            zDataProvider.cursorFirst();
            cardId       = sessionBean1.getCardRowSet().getString("id");
        catch(Exception e)
    }

    I suggest you read and understand Joel's blogs -
    http://blogs.sun.com/jfbrown
    Creator's CachedRowSet is designed for SELECT statements (only) and updating the ResultSet you get from that SELECT statement.
    (http://blogs.sun.com/jfbrown/entry/using_rowsets_for_crud_or )
    dataprovider.refresh() does not re-execute the rowset's command. It just means to "clear the previous results".
    (http://blogs.sun.com/jfbrown/entry/cachedrowsetdataprovider_and_cachedrowset_info )
    So here's how cachedRowSet's are designed to work:
    Set you rowset's command to:
    SELECT resultid FROM cardresult
    WHERE cardid = ?
    AND operatorid = ?
    They your code would do something like this:
    dp.getCachedRowSet().setObject(1, ...) ;
    dp.getCachedRowSet().setObject(2, ...) ;
    dp.getCachedRowSet().release() ;  // clear last results.
    boolean gotOne = dp.cursorFirst() ; // will cause execution
    if ( gotOne ) {
        dp.setValue('resultid', '2') ;
        dp.commitChanges() ;
    } else {
        error("can't update") ;
    }You'll have to adjust that code - it's just a generic example.
    Don't forget to add try/catch for a RuntimeException!
    The alternative is to write your own JDBC.
    You can use either.
    Personally I'd just write a little helper class to assist me with using plain old JDBC for this.

  • How to change existing database block size in all tablespaces

    Hi,
    Need Help to change block size for my existing database which is in 8kb of block size.
    I have read that we can only change block size during database creation, but i want to change it after database installation.
    because for some reason i dont want to change the database installation script.
    Can any one list the steps to change database block size for all existing table space (except system, temp ).
    want to change it to 32kb.
    Thank you for you time.
    -Rushang Kansara

    > We are facing more and more physical reads, I thought by using 32K block size
    we would resolve that..
    A physical read reported by Oracle may not be - it could well be a logical read from the o/s file system cache and not a true physical read. With raw devices for example, a physical I/O reported by Oracle is indeed one as there is no o/s cache for raw devices. So one needs to be careful how aone interprets number like physical reads.
    Lots of physical reads may not necessarily be a bad thing. In contrast, a high percentage of "good/fast" logical reads (i.e. a high % buffer cache hit ratio) may indicate a serious problem with application design - as the application is churning through the exact same data again and again and again. Applications should typically only make a single pass through a data set.
    The best way to deal with physical reads is to make them less. Simple example. A database deals with a lot of inserts. Some bright developer decided to over-index a table. Numerous indexes for the same columns exist in difference physical column orders.
    Oracle now spends a lot of time dealing (reading) with these indexes when inserting (or updating a row). A single write I/O may incur a 100 read I/Os as a result of these indexes needing to be maintained.
    The bottom line is that "more and more physical I/O" is merely a symptom of a problem. Trying to speed these up could well be a wasted exercise. Besides, the most optimal approach to "lots of I/O" is to tune it to make less I/O.
    I/O is the most expensive operation for a RDBMS. It is very difficult to make this expense less (i.e. make I/Os faster). It is more effective to make sure that you use this expensive resource in an optimal way.
    Simple example. Single very large table with 4 indexes. Not very efficient design I/O wise. Single very large partitioned table with local indexes. This can reduce I/O on that table by up to 80% in my experience.

Maybe you are looking for

  • Problems with iTunes opening and closing???

    I cannot get iTunes to open. It shows it is running but it won't open, I can't force quit it either by right click or from force quit in the finder. So I can't open or close I tunes. I tried to restart the computer, re-installing iTunes, nothing is w

  • PR00 Not editable in Credit Memo Request, when copying from Mile stones

    Dear, PROO condition type is not editable in Credit memo request(VA01-CR) when iam creating with ref to Mile stone related invoice. Requirement: Mile stones maintained in Sale order at  line item level - >Invoice created with ref to sale order Miles

  • Oracle 9i HighAvailability

    Oracle 9i is having the feature of RealApplicationClusters. My understanding is, this will provide Database HighAvailability and LoadBalancing. Is the HighAvailability & LoadBalancing is taken care in in Oracle 9iAS. If yes, How. null

  • Can you reset the hardware assignments in Logic Pro?

    Somehow I have messed up the hardware assignments for the B3 plugin. Is there any way to initialize the hardware assignments? Thanks!

  • DB Adapter polling as singleton process is not working as expected

    Am using poller DB adapater to control the transaction per seconds to the downstream system and i want this poller process as singleton (One instance should be in running state at a time). As suggested in oracle documents , below is the parameters co