Why not change?

I have a table with of line level Before Insert trigger defined on it. It refreshes Col2 to the new value of Col1 if Col3 = 2. I thought it must trigger an error mutation. But it is not... any ideas why?

CREATE TABLE zaaf_tbl 
   ( col1 NUMBER, 
     col2 VARCHAR2(30), 
     col3 NUMBER 
   )
/
CREATE TRIGGER zaaf_tbl_rl_bi
    BEFORE INSERT ON zaaf_tbl 
    FOR EACH ROW
DECLARE 
BEGIN 
  IF :new.col3 = 2 THEN 
    BEGIN 
      UPDATE zaaf_tbl
         SET col2 = 'Col2 Updated'
       WHERE col1 = :new.col1;
    END;
  end IF;
END;
/

Most likely, you are using INSERT INTO VALUES synatx. In this case, Oracle knows with certainty that a row is inserted and so the table is clearly defined - before row trigger is activated only once, so state table is even because it is first of all insert. If Oracle does not know that it will for sure increase, table is the mutation of exception:

SQL> insert
  2    into zaaf_tbl
  3    values(1,'A',2)
  4  /

1 row created.

SQL> insert
  2    into zaaf_tbl
  3    select 1,'A',2 from dual
  4  /
  into zaaf_tbl
       *
ERROR at line 2:
ORA-04091: table SCOTT.ZAAF_TBL is mutating, trigger/function may not see it
ORA-06512: at "SCOTT.ZAAF_TBL_RL_BI", line 5
ORA-04088: error during execution of trigger 'SCOTT.ZAAF_TBL_RL_BI'

SQL> 

SY.

Tags: Database

Similar Questions

  • Why not change not the icon doesn't change when I go to yahoo of sites Web-example of the circle of purpe with y on the inside?

    When I shoot to the top of mozilla, I have a grey circle in front of the att home page. When I go to yahoo, this icon does not change in the purple circle. The gray circle left any Web site in the address bar. -maybe only unsecured sites because I see that I have a picture of a padlock when I was directed to this Web site. This happened recently and it happens every time I have shoot to the top of the Explorer.

    The Site identity button has changed to protect users against hackers attempt to "spoof" legitimate research site buttons. The site icon still appears on the bookmarks and tabs, but not at the left end of the location/URL bar.

    To restore the icons of the site to the location/URL bar, try the add-on again next:

    There is an add-on to add extra color to the new button

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • Why not change my backgroud Office photos since I have a Trojan horse virus infection?

    A few months ago, I was online when all but the main icons on my desktop, everything happened, and the taskbar had framed red go all the way along it. I had custody of Bull AntiVirus installed in time. I phoned them and they talked me through back so that they could take over my computer.

    Once they were in control they restored each thing, but being able to change the screen background images. Although the buttons are in control try as I may be by clicking on change background pictures and change the button. nothing happens. I went on Google to try and find a solution but still no luck. I now AdvancedSystemCare 2013 antivirus installed that keeps my computer and running after you helped me to get rid of the scam of Metropolitan Police via Safe Mode, keeping in mind I had this scam twice in a month.
    Maybe someone can tell how to keep the screen background images.

    See also this,

    Wallpaper,
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-desktop/unable-to-change-the-themes/937bfed2-df8f-4980-a55c-0171bf3de139

  • Why can you not change currency on the model of cost in CB 1.5?

    Hello

    I wonder why not change you the currency on the model of existing costs?

    Thank you

    Hello

    Just to add to this answer, the chargeback does not change currency for the following reasons.

    1. as opposition to the payment does not have currency conversions, cost values must be converted correctly, which includes the configuration cost changes history as well.

    2 If a cost template is updated with a new currency, all costs associated with this cost model fixed (with history) are also must be updated.

    Because this operation could potentially lead to inconsistencies, chargeback does not allow it.

    If it is freshly created with incorrect currency cost model and therefore you do not want to change to the good motto, you could create a new model of cost with the appropriate currency.

    However, if you are using the cost model for some time in a single currency and now you want to change to another currency. Could you please let us know here your use cases?

    Kind regards

    Agnes

  • Why am I being asked to do this?  I have not changed anything.  "Update of your Apple ID, you must verify your identity to make this change." Answer your security questions to continue. "

    Why am I being asked to do this?  I have not changed anything.

    "Update of your Apple ID, you must verify your identity to make this change." Answer your security questions to continue. "

    What do you do when you are prompted to do so? What is a pop-up? The popup has a link on which you are supposed to click, or it actually lists your security questions? Need more information.

    See you soon,.

    GB

  • Why an amplification of the RAM does not change the index performnance of windows vista?

    Why an amplification of the RAM does not change the index performnance of windows Vista?

    Hello

    I m not very well, but maybe you have more than 3 GB of RAM and Vista 32 bit.
    Usually the 32 bit OS is capable to manage and send only 3.2 GB.
    The more than 3.2 GB RAM will not operating system used and therefore would not increase the index
    In addition the laptop will be not really faster after upgrading RAM. You will notice better performance using applications at the same time, but this does not affect the index of Vista.
    But this is only my personal hypothesis.

    Welcome them

  • Why my GPS stopped suddenly when the location and the surroundings have not changed work?

    Why my GPS stopped suddenly when the location, a framework and the weather conditions have not changed work?

    Ros

    iPhone 4S OS 9.2.1

    Have you ever tried to force reboot the phone by holding down the button sleep and home for 10 seconds, until the Apple logo comes back again? You won't lose data by doing this, but it can cure a few glitches.

    If this does not work and to rule out a software problem, set it back to factory settings, without using any data backup later. Test the phone and if the GPS works again, restore the backup.

    If the GPS does not work after the factory reset, it is a hardware problem, and Apple has to repair the phone if GPS can be fixed.

    In the case where it cannot be resolved, it could offer to replace the iPhone 4s, if you are willing to pay the price for the refurbished phone.

    Out of warranty repair service

    If your repair is not covered by Apple limited one-year AppleCare warranty + or AppleCare Protection Plan, your iPhone may be eligible for out-of-warranty service. For example, the liquid damage is not covered by the warranty, but may be eligible for out-of-warranty service. Some damage is not eligible, for example, if your device has been broken into several pieces. See the terms of repair of Apple and Conditions for more details.
    Read the terms of Apple repair

    Model Out-of-warranty service fee Battery service *
    iPhone 6 s more, iPhone 6 Plus $329

    $79
    * available only if battery
    Apple diagnostic test failure

    iPhone iPhone 6s 6 $299
    iPhone 5, iPhone 5, iPhone 5 $269
    iPhone 4S $199
    iPhone 4, iPhone 3GS, iPhone 3G $149

    In addition, a $6.95 shipping charges if necessary. Fees are in US Dollars and exclude tax. The price is for the service through Apple. The final service charge we charge will be determined during the tests and may be less than the costs of service above. Pricing and terms vary for the service by an Apple authorized service provider.

    copied from: answer Service Center - iPhone


  • why I can not change the method of payment and my billing information?

    why I can not change the method of payment and my billing information? By clicking on the buttons right just does not work

    Manage your membership and your payment. Creative cloud

    https://helpx.Adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting-creative-cloud.html

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone (do not support the weekend)...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • Why can I not change my menu still in Photoshop?

    Why can I not change my menu still in Photoshop? When I click on the [edit in Photoshop] button, it happens in Photo Viewer Windows saying cela "Windows Photo Viewer cannot open this photo because Photo Viewer does not support this file format, or you do not have the latest updates for photo viewer."  I don't even want to open it in Photo Viewer, I tried to Photoshop! Is someone can you please tell me what is the problem?

    You must re-associate with Photoshop psd files. You're on a PC?

    See this:

    "Edit Menu in Photoshop" does not?

  • Why am I suddenly the following error message: "the specified location is reserved by the operating system and is not allowed. Please choose another location. "I've been recording all night and I have not changed the settings.

    Why am I suddenly the following error message: "the specified location is reserved by the operating system and is not allowed. Please choose another location. "I've been recording all night and I have not changed the settings.

    toml12632875 wrote:

    I've been recording all night and I have not changed the settings.

    You have completed a disc to its ability, by chance?

  • Why Muse does not change the names of certain images or property when exporting to HTML format?

    Why Muse does not change the names of certain images or property when exporting to HTML format? and how can I keep the integrity of the name that the image/file has been saved as?

    General Muse renames a file imported image if the image is modified to achieve the design or the exit, or if the name change was necessary due to a name conflict (two different images which had the same file name when importing).

    The design-time features that will modify an image include cropping, rotation, rounded corners and effects (drop shadow, bevel or glow). It is also true that, in rare cases, Muse will merge an image with other content to optimize page download performance. An example of this would be to place a background image on a block of text that contains the text using system fonts. In this case, rather than a single image for text output and a separate image for the background, Muse will combine the two into a single image.

    If an image is placed or imported by Muse and not tampered with, the image is crossed without modification (including the file name) at export/publish (with him except that Muse will always rename if two different images with the same name).

  • Why not a Global change, newly created to change the activity ID work?

    Why not a newly created role of Global change (substrings) to change the activity ID work? Yet, I can copy a modifier of function (substrings) existing Global change to change the activity ID and it will work. The newly created is identical to that copied?

    Please upgrade to P6v7 and rename the activity ID problem will be fixed for life.
    You can rename 10 000 activities in 10 seconds using P6v7 without global change running.

    Jawad
    Novo rail, Sydney

  • Why the police does not change in itself?

    I use a Mac, and continue to change my fonts. Today, they are italicized in the browser and my gmail.

    It does not change everytime I open, and sometimes it changes while it has already been opened for awhile... I know weird.

    The fonts changed to arial, I hope it will work.

    THX

  • Why the italic police now appears as a "pretentious" script font when my font settings have not changed?

    This problem happened sporadically after 8.0.1 and systematically the 9.0.1 update. I have not changed my font settings in the preferences. Have you tried viewing the same sites in other browsers (Safari and Chrome) as well as the pages do not display correctly.

    I'm working on an iMac with a quadcore i7 processor and Mac OS 10.6.8

    You can write a check for corrupted fonts and duplicate and other police issues:

  • My product key is no longer valid, why? I have not changed operating system or portable computers.

    I recently formatted my laptop. I can't activate my product key more. I have not changed laptops and always use the dreadful windows vista. I typed the product key from the sticker on the laptop.

    Also, I try to access the website www.novatech.co.uk but cannot. I tried IE8 and Google Chrome, but I get a page saying as shown below. I deleted all the files, cache and temp etc. Please can you help me?

    Oops! Google Chrome could not connect to www.novatech.co.uk
    Try to reload: www.novatech.co.uk
    Other suggestions:
    Access a copy cached www.novatech.co.uk

    Google search:

    Nothing wrong with the report I see - you must turn on fine by phone.

    telephone activation.
    Click the Start button
    in the search box, type
    SLUI 4
    and press the Enter key
    Follow the instructions - but when asked which service you need the ansafone phone, don't answer - it should oblige the operator to answer, who can deal with you.

Maybe you are looking for