How does DB Operation takes place

Hi Gurus,
I have a question in the DB Operation of Select.
Scenario:
    I have a SELECT Query on a table which runs for around 1 hour.
    After the select process is started at the 30th Minute there is an UPDATE Statement being fired on that table and committed.
    Now when the SELECT Query completes execution after 1 hour and returns the result, will it display the OLD Value of the record or the NEW Updated Value of the record.
My assumption is that when the SELECT query is fired it will fetch the data from DATA SEGMENTS and store it in the SGA Buffer Memory and then return the result.
When the Update statement fires it will update the data in the DATA SEGMENT. (more over i believe that the physical location of that record in data block would get changed during a UPDATE)
So when the SELECT statement completes execution it will take the data stored in SGA buffer and return the result.
Please confirm what is the correct answer. How does Oracle Architecture handles this.

Hi,
Ranganathan -Oracle wrote:
Yes Understood that.
So if that select statement which i use is for showing some data in Front End and if user see the OLD value and if he uses that value for manipulation, then the changes of that update statement will be lost and is mostly a Data Loss in the system.
Do we have any option to avoid this.
You can have this problem if you don't write good application.
The way to avoid this problem it's also mentioned in the page I have posted:
Oracle Database maintains data consistency by using a multiversion consistency model and various types of locks and transactions. In this way, the database can present a view of data to multiple concurrent users, with each view consistent to a point in time. Because different versions of data blocks can exist simultaneously, transactions can read the version of data committed at the point in time required by a query and return results that are consistent to a single point in time.
Let's say that you in your application you have a product list and you have an edit button beside each product. If you want to prevent other users to make a change until your transaction is completed you can lock the row when you enter into edit mode (i.e. SELECT FOR UPDATE) and release the lock (with commit or rollback) when the transaction is completed or cancelled.
This will ensure that the row cannot be updated by other transactions.
Regards.
Alberto

Similar Messages

  • How does the payment take place ? does apple withdraw the price of the apps automaticly from my card?

    how does the payment take place ? does apple withdraw the price of the apps automaticly from my card?

    Yes, that is correct.

  • How does account determination take place ??

    dear experts
    pls enlighten me on how excatly account determination take place .
    what is an account grping code
    what is transaction event key
    what is the technical name for keys used in OBYC like BSX , WRX GBB etc
    what is the other keys like VAX ,INV used within GBB called
    what are WE,WR etc
    How are movement types linked to valuation
    Is it possible to create/change all of the above ??
    Regards
    Anis

    Hi
    Check in OMJJ -Mvt type - update control - with your parameters (purchase order/production order, stock type (Q or E etc)..Otherwise you can use OMWN directly.
    1. Initial entry (561)
    For this entry BSX and GBB-INV
    2.GR against PO(101)
    BSX   and GR/IR ( -)
    3.issue to Cost Center (201)
    GBB-VBR and WRX
    4.Issue against Prod Order(261)
    BSX and GBB-VBR
    5.Sale (601)
    BSX and GBB-VAX(-)
    7.Subcontracting ( material sent as component & consumed against 543)
    BSX(+) and GBB-VBO(-)
    8.Sucontracting ( material procured )
    9. Invoice Verification done where applicable.
    This is similar to material revaluation (if you are performing revaluation in MIRO)
    then BSX(+) Vendor
    otherwise WRX and Vendor (-).
    These are the standard postings keeping aside other differences like PRD, PRA etc. You can check mvt types for postings.
    If you want to know how valuation groping code, transaction key, account cat.reference alters the account determination then use OMWB Tcode and enter material, plant, choose movement type and click simulation.
    Thanks
    Edited by: Praveen Raghavendra on May 4, 2009 12:08 PM

  • CPROJECTS - How does the calculation take place ?

    Hi,
    I am wokring in cprojects. I have done the following entries
    <u><b>cost revenue rate - defined</b></u>
    amount costs - 50 US dollars /Hrs
    amount revenue 10 US dollars/Hrs
    different revenue - 1.0 US dollars / Hrs.
    <b><u>resource assigned and staffed for 20 hrs</u></b>
    <u><b>After calculate costs the value shown are</b></u>
    proj defn -
    20 hrs----
    costs 89.80 USD
    projet role -
    20 hrs -
    costs 39.80 USD
    responsilbe person - 20hrs - costs 39.80 USD
    Can anyone please explain me how this calculation takes place in cprojects 3.1.
    Please do the needful
    Regards,
    Amit

    Hi Amit,
    don't understand how this calculation result can be caused. In general it should be:
    for a role: (hours - hours already assigned to resource) * role rate
    + hours assigned to resource * resource rate (is assigned in the business partner)
    Regards,
    Thorsten

  • How does a user take an iTunes home movie and convert it back to iPhoto(slideshow) for editing and emailing?

    How does an user take an iTunes home movie and convert it back to iPhoto(slideshow) for editing and emailing?

    iOS: Importing personal photos and videos from iOS devices to your computer
    iOS: Unable to import photos or device not recognized as a camera

  • How the account determination takes place for cost center

    Hai
    Can any one explain me in detail (as i am  new to this topic) how the account determination takes place when i raise a P.O for cost centre and do G.R for the same? If possible pl send me links also related the above.
    Thanks

    Hi,
    Once u have given account assignment category 'K', then system will pick automatically G/L account from the OBYC settings for the combination of Valuation modification code, account modifier (VBR) & Valuation class.
    From the OME9 transcation, system will pick transcation key for the respective account assignment category.
    For the account assignment category 'K', account modifier is 'VBR'.
    Here masterial master record (MMR) is optional. If you are giving MMR in the PO, system will pick valuation class from the MMR.
    If MMR is not giving, then system will pick valuation class from the transcation OMQW. Here you need to maintain valuation class aganist material group, which is u r giving in the PO. ( This is optional)
    In the OBYC transcation, for the transcation key GBB you need to maintain G/L account for the combination Valuation modification code, account modifier (VBR) & Valuation class.
    Also maintain one more entry in the transcation key GBB, maintain G/L account for the combination Valuation modification code, account modifier (VBR) & Valuation class field is blank.
    Once you have given account assignment category 'K' in the PO, system will pick G/L for the combination Valuation modification code, account modifier (VBR) & Valuation class. This is happening before giving the cost centre.
    If you are not maintaining MMR in the PO and not maintaining valuation class aganist material group in the transcation OMQW, the system will pick G/L account for the combination of Valuation modification code, account modifier (VBR) & Valuation class field is blank.
    So in your case, check valuation class aganist material group in the transcation OMQW and maintain G/L in the OBYC for the respective combination. If valuation class is not maintained aganist material group in the transcation OMQW and maintain one more entry in the OBYC with the blank valuation calss field.
    Regards
    KRK

  • Where does the processing take place when using a remote front panel?

    Hi,
    I am considering upgrading my LabView software from 6i to 6.1 for the new "two click" remote front panel feature. I have already seen a demo of this feature but have just a few questions before I get the upgrade:
    My setup consists of several pieces of equipment connected to Labview via GPIB, to aid in the evaluation of a new microchip.
    1. I wish to grant control of the setup to anyone with a web browser, Is the remote monitoring feature compatible with both Netscape and IE?
    2. The VI which controls the setup is currently located on the PC beside my setup. When I embed a VI in a remote front panel, where does the processing take place, is the local VI still controlling the setup? and
    the remote panel just sending and receiving data from the local VI.
    Thanks, Troy

    > I am considering upgrading my LabView software from 6i to 6.1 for the
    > new "two click" remote front panel feature. I have already seen a demo
    > of this feature but have just a few questions before I get the
    > upgrade:
    >
    > My setup consists of several pieces of equipment connected to Labview
    > via GPIB, to aid in the evaluation of a new microchip.
    >
    > 1. I wish to grant control of the setup to anyone with a web browser,
    > Is the remote monitoring feature compatible with both Netscape and IE?
    >
    Yes. Provided they are resonably modern versions.
    > 2. The VI which controls the setup is currently located on the PC
    > beside my setup. When I embed a VI in a remote front panel, where does
    > the processing take place, is the local VI still controlling the
    >
    setup? and the remote panel just sending and receiving data from the
    > local VI.
    >
    The computer which we refer to as the server, the one with the GPIB card
    in your case, will execute as it does now. In fact, its window will
    even be open. The remote client computer, the one with the web browser
    will be running the runtime engine and processing user events, value
    change and property/method events from the server. So in reality, both
    computers will be sharing the load a bit. This allows for very small
    packets to be sent between the computers. It is in fact quite similar
    to publishing the data between the computers using datasocket.
    One thing to keep in mind. Standard LV includes a license for one
    connection. If you want to allow for multiple web browsers to view at
    the same time, additional licenses are available. Also, only one user,
    remote or server may be in control of the panel at a time. That means
    that if you want to be able to operate the panel, changing kn
    obs or
    flipping switches, the others will become viewers only until you give up
    control. Hopefully this isn't a surprise, but I thought you might want
    to hear about it now.
    Greg McKaskle

  • How does production system takes the benefits of user exits

    hi
    could anybody tel me
    how does production system takes the benefits of user exits

    Hi,
    you have to transport your implementation to your production system.
    Regards
    Bernd

  • How is Upgradation Process takes place?

    Hi Experts,
    I sincerely thankful to all who are providing solutions here. I have recently moved to Up-gradation environment from 4.6c to 6.00 ECC. But I need your help before i start up with pace in this assignment. Please give me an Idea at what point
    Up-gradation takes place and how it starts and where it ends.I would really appreciate If anyone can help me How to start this in step-wise method.
    Thanks in Advance,
    Kanna Palle.

    Hi,
    Check with links.
    1. SAP R/3 4.6 C to ECC 6.0 Upgrade using CU &UC method- Unicode conversion
    2. http://service.sap.com/erp-upgrade.
    3. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c08e5899-1444-2a10-e489-ef6ffbf13146
    Regards,
    Srini Nookala

  • How does the operating system manage labview vi's

    Background:
    I am using compact field points and low end compact rio's for my projects and I am approaching the RAM limits of my devices.
    I am looking to modify my coding practices to minimize RAM usage.
    I follow the "Labview 101" do's and don't for optimised code but I need more information about how the VI's are handled in memory.
    My background is in embedded C coding where when a function is called the code is run from ROM and uses memory from the stack, releasing it on completion.
    My observations (best quess) from my cFP application is that all vi's are unpacked (decompressed) into RAM (takes 5-10 minutes) and executed is from there.  Each .VI keeps it's memory.
    My application uses quite a lot of code reading configurations at the start, never to be used again.  I am speculating that this resides in RAM until the end of time.
    If this is the case, is there a method to release the unwanted VI from memory.
    To minimise RAM usage I tend to use In Place structures and wire data in and out of VI's using it.
    Attached code snippet show data from an object being passed through a sub .VI.
    I want to be sure that additional RAM isn't being used here,  If so I will need to do the manipulation directly to the object.
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

    tst,
    Thanks for the links.
    The array allocation is a bit of an eye opener, I will think carefully about how I use arrays.
    I have seen the OOP one before, re-reading it was helpful.
    I found a few hints about default data.
    It does illude to once all vi's (not dynamicaly loaded) are loaded into memory and stay there, required or not.
    In the case of dynamic allocation, this makes sense for a transient object, in my case the objects hand aroung, about half of the methods are only called at startup, Squatting on memory without further need.
    I can think of an ugly workaround where a "Read Config" VI is dynamicaly loaded, Hands off it's data to a more permanent object before being dumped.
    I would like to know more about the deallocate memory VI, Does it Dump RAM and Program or just RAM?
    Does it apply to LVOOP Methods?
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

  • How does it usually take to get the activation email after receiving the invoice receipt?

    Hi all. I'm doing the develop enrollment. I received the invoice receipt 3 days ago, which says apple has received my 99 dollars. But I'm still waiting for the activation email. It should take no more than 24 hours to get the activation email, right? if I click "Program enrollment" in this page(https://developer.apple.com/contact/), safari will tell me there are too many redirects and can't open the link. What should I do, please?

    I got my activation e-mail rather quickly; however, something is wrong with my Developer enrollment (I registered as an individual and it says they are trying to verify my identity to see if I can act on my company's behalf--which does not make sense because I registered as an individual).
    Apple has my $99 too and I also am unable to contact them due to the same redirect problem you are facing.
    I am wondering if there is a recent bug on their site that needs to be addressed (seems like it is getting caught in a loop while trying to verify the device and/or browser).  I have posted a question as well so let's hope this gets resolved soon.
    Not a smooth way to start :-/

  • When I bookmark a page, a list of suggested places to save it is available, but how does it select those places (and how can I edit it to remove unneeded folders)?

    The pull-down includes a few logical places where I might want to save my bookmark, but it also includes a few that I may have used in the past but no longer want listed. How do I remove the erroneous locations??

    Chard..this is Chard, will someone really read my pleas for both needing help...and wanting to give the Mozilla Family help? Hmmm...I am hopefulllll...

  • How does it usually take to boot using OS Lion, in my previous OS which is the snow leopard its like 3-5 seconds only.

    In my previous OS my mbp usually took 3-5 seconds to boot/start. Now i downloaded OS lion and istalled it, it takes 10 seconds to boot/start up. and now it has two start up beeps.

    Not doable. Most machines won't run with an OS than the one that shipped with the machine. In your case, you're stuck with Mavericks. The only solution is to upgrade ProTools.

  • In what steps does currency conversion take place in BW?

    Hi Experts,
    could someone explain me in what steps BW performs the currency conversion making use of the TCUR....  tables.
    E.g. we have a certain rate and ratios in TCURR table but these are overruled by settings in TCURF (alternative exchange rate) table.
    We did an SQL trace but I did not understand why various steps are done.
    Thanks.

    Hi,
    Pls check
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/076f3b6c980c3be10000000a11402f/frameset.htm
    Re: currency translation
    Currency conversion questions
    BW Currency Conversion Keys
    Eddy
    PS. Which type of SDN Ubergeek/BPX suit are <a href="/people/eddy.declercq/blog/2007/05/14/which-type-of-sdn-ubergeekbpx-suit-are-you">you</a>?

  • How does Requsition Charge account for Project Deliverables get populated?

    Hi All,
    I am creating deliverables from project management . However the charge account in the req wen this deliverable is imported to Puirchasing is incorrectly populated.
    How does this accounting take place. I have a customized Requisition Account generator however, this workflow is not invoked when trying to intiate Procurement or after running the requistion import process in purchasing module.
    The charge account seems to default from Organization Parameters in Inventory (This is mandatory account set for Average Costing Orgs).
    Please help. .

    Hi
    I assume your deliverable is an inventory item.
    When entering a requisition for inventory item, and the destination is Inventory the system is using the Materials Valuation account of the inventory organization (or the inventory cost group).
    If the requisition is for expense destination, then the account will be generated using the Account Generator customized workflow.
    Dina

Maybe you are looking for

  • Questions on Patitioning table

    Hi, I am using Oracle 10g and my application is an ETL application where i am getting bulk data from various transactional systems every month and i am loading them into a base table, aggregate table and reporting table. I wanted to know somethings a

  • Essbase/OLAP Time Dimension in OBIEE

    I am on OBIEE 11g release. After exported the below essbase time dimension with dynamic time series thru the Administration tool Time |_ Spring |_ Q1      |_Feb           |_FebW1      |_FebW1D1           |_ .....           |_FebW1D7 |_FebW2      |_Ma

  • Dynamically changing the content of the block

    Hi, We have a requirement as below : The form contains two blocks. The main block contains a dropdown which will show a list of tables (like emp, dept..etc). When the user will select a particular table, the second block should show the columns of th

  • How long does MSI myservice take to respond back to RMA email?

    called this number and chose option4 MSI Computer (UK) Ltd Tel: +44-203-608-5252 the voice message stated clearly if you want to RMA the graphics card send your full name, address, serial number, fault description to myservice.uk (at) msi dot com the

  • Upgrade from OS 10.4

    I'm trying to help a friend. She has a 2007 MacBook Pro with OS 10.4. Can I do an upgrade straight to OS 10.6 simply by purchasing a Snow Leopard disc? I do not want to go to 10.7. Thank you. Bob