Triggers are gone when updates the view they are on?

I found that when I updated a view, all the triggers on this view were dropped.
Is this supposed to be or I did something wrong?

To answer the second part of your question, triggers on tables are not dropped if you modify the tables, unlike when you modify views. However, if you modify the table in such a way that it invalidates the trigger, the trigger becomes invalid, but not dropped. Please see the example below.
scott@ORA92> create table test_tab
  2    (col1 number)
  3  /
Table created.
scott@ORA92> create sequence test_seq
  2  /
Sequence created.
scott@ORA92> create or replace trigger test_trig
  2    before insert on test_tab
  3    for each row
  4  begin
  5    select test_seq.nextval into :new.col1 from dual;
  6  end test_trig;
  7  /
Trigger created.
scott@ORA92> show errors
No errors.
scott@ORA92> insert into test_tab values (null)
  2  /
1 row created.
scott@ORA92> select * from test_tab
  2  /
      COL1
         1
scott@ORA92> commit
  2  /
Commit complete.
scott@ORA92> alter table test_tab add col2 number
  2  /
Table altered.
scott@ORA92> insert into test_tab (col2) values (10)
  2  /
1 row created.
scott@ORA92> select * from test_tab
  2  /
      COL1       COL2
         1
         2         10
scott@ORA92> commit
  2  /
Commit complete.
scott@ORA92> select status from user_triggers where trigger_name = 'TEST_TRIG'
  2  /
STATUS
ENABLED
scott@ORA92> select status from user_objects where object_name = 'TEST_TRIG'
  2  /
STATUS
VALID
scott@ORA92> alter table test_tab drop column col1
  2  /
Table altered.
scott@ORA92> select status from user_triggers where trigger_name = 'TEST_TRIG'
  2  /
STATUS
ENABLED
scott@ORA92> select status from user_objects where object_name = 'TEST_TRIG'
  2  /
STATUS
INVALID
scott@ORA92> insert into test_tab (col2) values (20)
  2  /
insert into test_tab (col2) values (20)
ERROR at line 1:
ORA-04098: trigger 'SCOTT.TEST_TRIG' is invalid and failed re-validation
scott@ORA92> select * from test_tab
  2  /
      COL2
        10

Similar Messages

  • Shared objects update the things they are bound to

    Shared objects (my_so) don't seem to be update the things they are bound to
    <mx:Button toolTip="{(my_so.data.wantMusic)?'Turns off music':'Turns on music'}"
                   id="musicOn"
                   icon="{(my_so.data.wantMusic)?imgPlayClass:imgPlayOff}"
                   >
    When my_so.data.wantMusic changes the icon doesn't change

    I've also done the following:
                    private var my_so:SharedObject;
    maybe I also need to make the   my_so.data bindable as well so that the
    following code works as well?
    <mx:Button toolTip="{(my_so.data.wantMusic)?'Turns off music':'Turns on
    music'}"
                   id="musicOn"
                   icon="{(my_so.data.wantMusic)?imgPlayClass:imgPlayOff}"
                    cornerRadius="9" fillAlphas="[1.0, 1.0]"
    fillColors="[#0FEFBD, #7106D5]" width="26">
            <mx:click>
                    <![CDATA[
                        my_so=SharedObject.getLocal("mediaCenter");
                        if (my_so.data.wantMusic)
                            stopIntroSound();
                            my_so.data.wantMusic=false;
                            my_so.flush();
                        else
                            playIntroSound();
                            my_so.data.wantMusic=true;
                            my_so.flush();
                    ]]>
                </mx:click>
        </mx:Button>
    best wishes
    Nikos

  • I'm on a windows laptop using iTunes sharing through the family to connect with Apple TV. After choosing the folder of photos to be shared and displayed on the appletv and when I choose to show on screen, they are not shown in the order they are in the or

    I'm on a windows laptop using iTunes sharing through the family to connect with Apple TV.
    After choosing the folder of photos to be shared and displayed on the appletv and when I choose to show on screen, they are not shown in the order they are in the original folder.
    How to pair show in a certain order, for example, sorted by name.
    grateful
    Julio Cesar

    Not that I'm aware of. You just export JPEG copies to a folder that you can point iTunes to. For instance, I have created a folder in my Pictures folder called Apple TV. And within that folder I have other folders of pictures that I can choose from in iTunes to share with Apple TV. But there doesn't seem to be any way to share a Lightroom slideshow. If you have laid to create a video file that would probably work. Apple TV is a little clunky in my opinion. Some things are a little more difficult to do now than they were a while back. I probably haven't provided you with much help, but just keep experimenting and I think you will figure it out.

  • I can't update certain apps they say they are open when I made sure they are closed

    I can't update certain apps on my iPad and also iPhone, they say they are open but I made sure they are closed. I still get updates which I can download , but these certain apps seem to just say open. So when you touch open it goes right to the app, so I close it and try again and it still says open, I even tried holding down the power button and rebooting with no success.

    On iOS 7 apps that you've updated remain in the Updates tab in the App Store app for a couple of weeks before they disappear off it - if they show 'Open' against them (which will take you into the app) then that indicates that you've already updated them (they should have a grey bar above them with 'Updated 8 November 2013' or similar), if there is an available update for them then they will show 'Update' against them instead e.g.

  • On that last software update we (my family) have noticed on all our iPhone devices there is a huge gitch problem with our devices. My phone is an 4s but the other devices a brand new phones and they started since they updated the software they are having

    A concern we've noticing since we have updated the lastest software... Our phone keep glitching and it's moving extremely slower than usual. I have the 4s and my kids have the newer phones 5c and the 5s. Is this a on going problem and if so when is it going to be fixed because this is terrible. Very disappointed customer. I was waiting on the newer iphone for myself but if apple can't get things straighten out with software I will have to consider your competitors. I have majority apple products and so far I am hating the issues I am having. Please fix soon. Thank you.
    Colleen W Rorie
    <Personal Information Edited by Host>

    This is a user forum.  Apple does not participate in this forum.
    You speak about glitches in your iPhones but unless you describe those glitches, we are unable to offer any help. You mention you are having issues but we are not psychic and cannot imagine what those issues could be.

  • Do I need a new certificate when updating the viewer?

    I think I remember reading that it's not necessary to have a new certificate for updating an existing viewer on an already published app. Is this correct?
    Thanks!

    Hi,
    [I assume you mean Android market dev certificates or Apple Developer certficate and mobile provisioning profile]
    you don't need a new certificate; just sign your updated app with a valid certificate; make sure that:
    * the bundleID (applicationID) is the same as the app you had published
    * The marketing version in viewer builder is a higher number than the one on the app store
    With kind regards,
    Klaasjan Tukker
    Adobe Systems Benelux

  • My i cloud is on with my macbook air, but no pictures are comming down from the cloud, they are there, via my I-phone

    My I-cloud is not transfering pictures to my computer..its turned on, and password on, the calender is working..

    Log out of iCloud in the System/iCloud preference pane and disable Photo Stream in iPhoto's Photo Share preference pane.  Then log back in and re-enable, respectively.  That should jump start Photo Stream.
    OT

  • Which inf file to use for HP LaserJet Pro 200 color m251nw, when updating the driver?

    My printer is LaserJet Pro 200 color Printer M251nw. I visited the support page and found there is a newer driver.
    Driver (61.117.01.15301)
    Currently my driver version is 61.117.1.11493. I want to upgrade the driver.
    After downloading and unzipping the files into the folder, I found there are 3 inf files in the folder:
    hpcm251u.inf
    hpcm251c.inf
    hpbuio70l.inf
    So which one should I install? I am disappointed at the lack of information and inconvenience in upgrading the driver.
    June

    Hi CJKim,
    Welcome to the HP Forums.
    I see that you are trying to update the driver and are not sure which .inf to choose.
    I will be happy to help you.
    Since it is running through the add printer wizard you can select any one of the .inf files you listed
    to update the drivers.
    Thank you for posting on the HP Forums.
    Have a great day.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • What do i do when iPhoto Deletes my recent pic's all the way to 2010????? i opened the program and it said i needed to update my library otherwise i wouldn't be able to view the images that were not updated-- and now they are gone!!!!!! WHat do i do!!!!!!

    what do i do when iPhoto Deletes my recent pic's all the way to 2010????? i opened the program and it said i needed to update my library otherwise i wouldn't be able to view the images that were not updated…… and now they are gone!!!!!! WHat do i do!!!!!!  Is this some type a virus???? my mac is protected!!!!! tried to chat with an IT person but they keep asking if its like a tech problem and it is just iphoto

    You should get your keyboard checked as it's repeating  on a lot of keys and makes you look silly.
    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • I updated iOS 7 and my contacts were ok then they suddenly disappeared a few weeks after updating. I have no idea if it has anything to do with iOS 7 but when I email someone the contacts are there. When I open the app they are gone. What happened?

    I updated iOS 7 and my contacts were ok then they suddenly disappeared a few weeks after updating. I have no idea if it has anything to do with iOS 7 but when I email someone the contacts are there. When I open the app they are gone. What happened?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • I cannot find a way to sort the bookmark folders themselves alphabetically by name.I am not talking about in a view mode but in the way they are displayed when I click on my bookmarks tab. Can someone explain to me how to accomplish this.

    I have a lot of various book mark folders with websites contained within each folder. I am able to sort the websites within each folder alphabetically by name but I cannot find a way to sort the bookmark folders themselves alphabetically by name.I am not talking about in a view mode but in the way they are displayed when I click on my bookmarks tab. Can someone explain to me how to accomplish this other than manually dragging them as this is extremely hard for me due to the fact that I am a quadriplegic with limited hand movement dexterity

    Bookmark folders that you created are in the Bookmarks Menu folder. "Sort" that folder.
    http://kb.mozillazine.org/Sorting_bookmarks_alphabetically

  • Today, I just updated my iphone software to IOS5.  I forgot to download pics from my iphone and since the upgrade they are all gone.  Is there a way to get them back?

    Today I just update my iphone software to IOS5.  I forgot to download pictures that were on my iphone and since the upgrade they are all gone.  Is there a way to get them back?

    The only restore I can find is from 2010.

  • I save my websites, but they are gone when I turn on the computer

    I save my websites before turning off the computer, but they are gone when I turn the computer back on.

    When you log out or shut down, there will be a checkbox that asks you if you want to reopen windows when you log in. Just uncheck this box. If that isn't it, you may have login items turned on. Go to System Preferences>Users and Groups and then under your name click the Login Itens tab. Make sure nothing is there.
    If you want to stop windows from restoring when you open applications (so for example when you open Safari it doesn't open the 50 tab page you just had open when you quit) go to SystemPreferences>General and then hit the checkbox that says Close windows when quitting an application.

  • HT1338 My Mac says updates were installed for Keynote, Pages & Numbers but when I check the versions they are still the old versions.

    My Mac says updates were installed for Keynote, Pages & Numbers, however, the version number shows to be the old version...   If check for updates, it's telling me no updates are available...

    The old versions are not removed when the new versions are installed. (The updates add features that improve cross-platform editing of files but remove many other features so the install leaves the old version in case the old features are important to you). If you look in your applications folder you should find both versions.

  • When i import to iPhoto from nikon, photos download perfect - when i click off, they are gone. Huh??

    when i import photos from my nikon d3000, they import perfect, when i click off, they are gone. apple store has no answer.

    So you have iPhoto 2 on an old Mac and iPhoto '11 on the new one?
    Never import an iPhoto library into another one - you simply copy it form the old computer to the new computer and launch iPhoto to conver it - Connect the two Macs together (network, firewire target mode, etc) and drag the iPhoto library intact as a single entity from the old Mac to the pictures folder of the new Mac - launch iPhoto on the new mac and it will open the library and convert it as needed and you will be ready move forward. Still need information on the Nickon import issue - what can you tell about that? So far all i know is it is not working
    LN

Maybe you are looking for

  • Iphone recordings not playing on ipod

    Clips recorded on an iphone (m4a) will play in itunes, but not all will play on my ipod.  Do they need to be converted to another format?

  • Airplay won't work with Apple TV and iPad 2

    I have an iPad 2 running iOS 8.1 and an Apple TV 3 with the latest software and I can't use Airplay to send content to my Apple TV. I know there is no issue with the Apple TV since I can use Airplay to send content to my Apple TV using my iPhone 6, a

  • Beware apple store iPhone replacement program

    Beware apple store iPhone replacement program: We took my daughters broken iphone 4 into an apple store and was told that the damage was not covered under warrany but for only £120 we could get a replacement iphone 4 the problem being when they helpe

  • Hide a column in a JTable

    Hi All, hope you can help, I want to hide the last column of my table, but still access its data. Inside the last column certain information is present, the cell tooltips. In my extended JTable class my method getToolTipText looks like this:        

  • Reprint Republish window will not open

    For one user, the Tools->Reprint Republish window will not open. No error message is displayed. We have already follow note Reprint/Republish Page Not Functioning Correctly on All Desktops (Doc ID 432691.1) and clear the cache with no luck. Other use