All triggers went invalid

Hi All,
Today morning when I was looking into the database I saw that all the triggers in the schema got invalid. Then I checked the alert log but no errors. And even I was unable to find
any suspected activity or a query.
What can be the reason.
SQLTRACE is ON and can any body tell any suggestions or reasons or any queries with TKPROF.
Thanks,
G.

Thanks Laurent,
This is the thing that I have done previously
If you revoke privileges from a schema object, dependent objects are cascade invalidated.The schema has DBA privilege and i revoked it and then granted limited privileges.
But When I grant privileges Dont they get automatically valid?
This what I have done.
Revoke dba from schema1;
grant all privileges to schema1;
revoke insert any table from schema1;
Thanks,
G.

Similar Messages

  • Recompilation of all triggers in a schema.

    Hi folks!
    I got a gotcha!
    I'd changed couple of table structures here and there in the schema and subsequently, quite understandably, all the triggers that are related to the afore-altered tables went into invalid status.
    It is taking a toll on me to again recompile each and every trigger in the schema.
    How do I recompile all the triggers in the entire schema with the help of a single statement?
    Your favour'll be deeply appreciated.
    Cheers, PCZ.

    I'd changed couple of table structures here and there
    in the schema and subsequently, quite understandably,
    all the triggers that are related to the
    afore-altered tables went into invalid status.
    It is taking a toll on me to again recompile each and
    every trigger in the schema.
    How do I recompile all the triggers in the entire
    schema with the help of a single statement?
    Your favour'll be deeply appreciated.
    Cheers, PCZ.I wana know why you need explicitly recompile all triggers when implicit recompilation exist there??
    SQL> CREATE OR REPLACE TRIGGER mytrigger BEFORE UPDATE ON emp FOR EACH ROW
      2  BEGIN
      3  IF :new.sal>100 THEN
      4    RAISE_APPLICATION_ERROR(-2001,'No valid update');
      5  END IF;
      6  END;
      7  .
    SQL> /
    Trigger created.
    SQL> SELECT object_name,status FROM all_objects WHERE object_type='TRIGGE
    OBJECT_NAME                    STATUS
    MYTRIGGER                      VALID
    SQL> ALTER TABLE emp ADD (a  NUMBER);
    Table altered.
    SQL> SELECT object_name,status FROM all_objects WHERE object_type='TRIGGE
    OBJECT_NAME                    STATUS
    MYTRIGGER                      INVALID
    SQL> UPDATE emp SET sal=200 WHERE deptno=20;
    UPDATE emp SET sal=200 WHERE deptno=20
    ERROR at line 1:
    ORA-21000: error number argument to raise_application_error of -2001 is out of range
    ORA-06512: at "SCOTT.MYTRIGGER", line 3
    ORA-04088: error during execution of trigger 'SCOTT.MYTRIGGER'
    SQL> SELECT object_name,status FROM all_objects WHERE object_type='TRIGGER';
    OBJECT_NAME                    STATUS
    MYTRIGGER                      VALIDKhurram

  • How to view text of all triggers?

    How to view text of all triggers?
    I tried,
    sqlplus "/ as sysdba"
    SQL> Select Description, Trigger_Body from all_triggers;
    I see only one trigger but there are more than 500 triggers.

    Perhaps you want to query DBA_TRIGGERS instead of ALL_TRIGGERS.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_4162.htm#sthref1922
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2107.htm#sthref1297

  • All website went "Not Found HTTP Error 404. The requested resource is not found." and the "Firefox cannot load websites but other programs can" page is not help

    ''dupe of https://support.mozilla.org/en-US/questions/928117''
    all website went "Not Found HTTP Error 404. The requested resource is not found." and the "Firefox cannot load websites but other programs can" page is not helping in any ways

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *http://kb.mozillazine.org/Error_loading_websites
    You can try to reset (power off/on) the router.

  • All website went "HTTP Error 404. The requested resource is not found."

    ''dupe of https://support.mozilla.org/en-US/questions/928117''
    all website went "HTTP Error 404. The requested resource is not found."
    this only happen in firefox (i'm using IE to post this question)

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *http://kb.mozillazine.org/Error_loading_websites
    You can try to reset (power off/on) the router.

  • HT201210 My contact number all gone went i doing update 5.1.1 so how to find my contact back and sync into iphone

    My contact number all gone went i doing update 5.1.1 so how to find my contact back and sync back into iphone.
    help......help
    my contact number over 500ppl

    What are you keeping your calendar in on your PC? Outlook?

  • Input paramter--Trigger Starting String  _disable all triggers

    I want a procedure where input parameter is trigger's starting letter and the function shoudl disable all triggers starting with that name
    Please help me

    Hey,
    You can use this procedure:
    create or replace procedure p_disable_all_trg_by_letter(p_letter in varchar2,
    p_disable boolean,
    p_table boolean) is
    begin
    If p_table Then
    for i in (select trigger_name
    from user_triggers
    where table_name like upper(p_letter) || '%') loop
    execute immediate 'alter trigger ' || i.trigger_name || case when p_disable then ' disable ' else ' enable ' end;
    end loop;
    Else
    for i in (select trigger_name
    from user_triggers
    where trigger_name like upper(p_letter) || '%') loop
    execute immediate 'alter trigger ' || i.trigger_name || case when p_disable then ' disable ' else ' enable ' end;
    end loop;
    End If;
    end;
    Note that this procedure takes 3 argument's:
    a. the table or trigger name (could be one letter or more)
    b. boolean flag - true will disable the triggers, false will enable them
    c. boolean flag - true will search by the table name, false by the trigger name
    Amiel.

  • Need enable all triggers start eith 'EMP_'

    Hi ,
    i am looking for a single query to enable all of my triggeers start with trigger name'EMP_' insted of enable all triggers individually.any help??

    in pl/sql something like:
      begin
        for i in (select owner||'.'||trigger_name trg_name
                    from all_triggers where trigger_name like 'EMP_%' and status = 'DISABLED') loop
          execute immediate 'alter trigger '||i.trg_name ||' enable';
        end loop
      end;
    in sql spool the file then run the spool file.
      set verify off;
      set echo off;
      set fedback off;
      spool c:\sql\enabled_trigger.sql;
      select 'alter trigger '||owner||'.'||trigger_name||' enable;' from all_triggers
       where trigger_name like 'EMP_%' and status = 'DISABLED';
      spool off;
      set fedback on;
      set echo on;
      set verify on;

  • I Have an email the recently went invalid and I can not open my apple settings. When I put in my password it keeps saying invalid id because the email is invalid. How do I reset to a new email or merge accts to another email without deleting all items i

    Need help merging or resetting apple id
    I have a email that recently was closed out and can not open
    This email was my apple id

    You will wait for the rest of your life. You need to fix it; no one else will. To turn off "Find my iPhone" and its associated Activation Lock you need the Apple ID and password that were used to turn it on. If you know the Apple ID you can contact Apple Account Security and have them reset the password (after you prove you are the rightful owner of that Apple ID). see: http://support.apple.com/kb/HT5699.
    If you don't know the Apple ID the phone is permanently unusable.

  • Alerts not getting triggered for invalid receiver receiver

    Hello,
    My scenario is IDoc to HTTP.I have defined alert rules for my scenario.
    I have condition mentioned in receiver determination.Depending on vendor number data is sent to corresponding receiver.
    But when i send IDoc is sent with invalid vendor number,it is failing in XI system with error as :No receiver could be determined but not alert is being thrown or triggered.
    Same situation is working in Dev and quality but not in production.
    I ahve checked the alert rules thorughly in all the 3 environments and they are all perfe

    does the error"RCVR_DETERMINATION.NO_RECEIVER_CASE_ASYNC" gets triggered only when reciever service is not
    mentioned in alert rule condition?
    This error gets triggered when no receiver matching with the mentioned Condition is found.....the Condition in Receiver Determination OR if no receiver service exists.
    I hope you have created a rule in Alert Rule section of RWB and have unchecked the Suppress Multiple Alerts options.
    When you get the above error in SXMB_MONI you should get an alert
    Regards,
    Abhishek.

  • Enable all triggers/Recompile all procedures???

    Hi,
    I have a good number of triggers I want to enable and procedures/functions I want to recompile. I tried to create a cursor for it but got the error (please find below) apparently I'm missing something in my code...
    I wonder if it's possible at all?
    Please help)))
    Thanks a lot
    Marina
    Here is my code and error message:
    SQL> DECLARE
    2 TRIG_NAME VARCHAR2(40);
    3 FETCH_STATUS INTEGER;
    4 RC2_NAME INTEGER;
    5 ROWS_PRSD INTEGER;
    6 CURSOR RC1 IS SELECT OBJECT_NAME FROM ALL_OBJECTS
    7 WHERE OBJECT_TYPE ='TRIGGER' AND STATUS='INVALID';
    8 BEGIN
    9 OPEN RC1;
    10 FETCH RC1 INTO TRIG_NAME;
    11 IF RC1%NOTFOUND THEN
    12 FETCH_STATUS:=-1;
    13 ELSE
    14 FETCH_STATUS:=0;
    15 RC2_NAME:=DBMS_SQL.OPEN_CURSOR;
    16 END IF;
    17 WHILE FETCH_STATUS=0 LOOP
    18 DBMS_SQL.PARSE(RC2_NAME, 'ALTER TRIGGER :X ENABLE;', DBMS_SQL.NATIVE);
    19 DBMS_SQL.BIND_VARIABLE(RC2_NAME, ':X', 'GCM.'||TRIG_NAME);
    20 ROWS_PRSD:=DBMS_SQL.EXECUTE(RC2_NAME);
    21 FETCH RC1 INTO TRIG_NAME;
    22 IF RC1%NOTFOUND THEN
    23 FETCH_STATUS:=-1;
    24 ELSE
    25 FETCH_STATUS:=0;
    26 END IF;
    27 DBMS_SQL.CLOSE_CURSOR(RC2_NAME);
    28 END LOOP;
    29
    30 END;
    31 /
    DECLARE
    ERROR at line 1:
    ORA-04070: invalid trigger name
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 824
    ORA-06512: at "SYS.DBMS_SQL", line 32
    ORA-06512: at line 18

    Hi Marina....
    It's so easy it not even like Oracle.
    DBMS_UTILITY.COMPILE_SCHEMA (schema VARCHAR2);
    In case you don't believe it....
    otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/appdev.817/a76936/dbms_ut2.htm#1002085
    Note: You may have to edit out the '<br>'s put in by the Forum code to get the URL to work. Also you may have append some of the URL which may be truncated, usually the bookmark(#nnnn).
    Smile while you compile. Good Luck.

  • I can't get video to loop exporting an OAM file and importing into Muse. Seems to ignore all triggers.

    I've tried everything I can think of, but triggers are ignored. I've tested in Safari and Firefox so far. Tested in Muse Preview. Tested in An. Nothing is paying attention to the trigger I have set up.
    I've used a label to get it to loop back to the beginning. I've used zero to get it to loop back. I've searched the web, YouTube, and here looking for answer none will fix this. No errors in the error box BTW. Been back to Lynda.com re-re-viewing videos. All seems fine, but it isn't.
    Website is here: http://www.moviesandfx.com. The animation on the home page is what I want to loop. It plays okay in Safari, has mixed results in Firefox. Not sure yet about IE, I'm on a Mac.
    I'd love to hear ideas to fix this. The workflow is An—>OAM export—>Muse "place"—>Muse publish to ftp.
    Thank you,
    Dan

    I'm having the same problem. I inserted the oam in Dreamweaver, where it loops forever in split and live view. As soon as I view it in a browser (Safari and Chrome), the looping is disabled. There are no console errors.

  • All music went ghost on iPhone after I did a backup?

    okay, so this is really strange. I plugged my iphone in earlier this evening, wanting to sync an album on it from itunes. I noticed that itunes was showing my iphone as "13.55GB Over-Capacity", but when I went to check my iphone in its settings, it said I had quite a bit of space left. this is a 64gb iphone 4S running on the latest iOS and itunes 12.0.1 on Windows.
    basically, when I went to upload the album to the iphone, it gave me the dotted grey circle thing beside each song as seen under the iphone's music in itunes. *eye-roll*. I did all the usual stuff to try and correct that, but nothing worked. finally, a bout of paranoia hit me and I just decided to do a back-up of my iphone. when it finished, I tried again, still nothing. then I just decided to have a look at my phone's music and when I did, I noticed that every playlist was still there, but just underneath the titles it says "no songs". after further investigation, I checked under Songs and saw that only about half of my music library was even there, and EVERY song appeared as if it were undownloaded, or in the cloud or something. I don't even use the cloud. each song is faded out and has a red circle next to it with the red square in the middle, as if I have to download each one individually. I am so confused as to how this happened and all I want to do is restore my music back to normal. I would prefer NOT trying to "restore from backup" because again, 64gb, its a lot of apps and a lot of data and I reaaaaalllyyyy don't want to see a ton of stuff go missing or go wrong. that would irritate me to no end. please help, I'm truly at a loss.
    ALSO, in itunes, under my iphone music, it shows every song, every playlist with all songs and everything looks totally normal.
    HELP.
    and yes, I tried turning it off and turning it back on again.

    Many users are suffering from the iTunes 12 music syncing problems.
    1.Make sure that you don't have iTunes Match enabled in Settings > Music.
    2 Plug in your iPhone, iPad or iPod running iOS 8 or higher and launch iTunes.
    3 Click your device icon at the top of the iTunes window.
    4 Select Music in the side navigation panel.
    5 Uncheck Sync Music option in the right panel and then click Apply or Sync.
    6 Once the sync is complete, recheck the box for Sync Music and hit Apply or Sync again.
    7 Unplug your iPhone or iPad and see if your music is back.
    Resource from:The  iTunes 12 Sync Issues and Solutions

  • Import to different user - triggers/functions invalid

    Hi,
    I´m using Oracle 9.2 in both servers.
    In my production server, I export the schema CARS.
    In my dev server I have two schemas: CARS and CARS_DEV. I can import the dump file to CARS_DEV using TO/FROM. The command that I'm using is:
    imp file=carsFeb2008.dmp log=carsFeb2008.log userid=system/blablabla fromuser=CARS touser=CARS_DEV grants=y constraints=y indexes=y statistics=RECALCULATEBut the triggers and functions became invalid, because in the source code there's a line, for example, SELECT * FROM CARS.MYTABLE. The import isn't changing the lines inside the triggers and functions to CARS_DEV.
    Pls, any ideas?
    Many xks in advance,
    Miguel

    Other than the (hopefully obvious) option of changing the source code so that you're not explicitly referencing a particular schema name? Import and export aren't going to change the source code itself, so code that explicitly refers to objects in a particular schema cannot be migrated to a different schema without changing the code.
    Justin

  • Help! all files went missing!

    so. i was using my mac mini, its a G4. everything was fine. then i went to iTunes to play some music and when i clicked on a song it said that it couldn't find it or something. then when i said to browse for the folder, i couldnt find my music, movies, or other media folders.
    then i exited iTunes (at this point my settings were still normal), and opened the finding. When i tried to click on movies, music, or anything, the message "the volume 'movies' cannot be found."
    frustrated i then went back to 'Macintosh HD' to find that my available harddrive space was 65GB, when it was 30GB before. I lost a LOT of movies and music, or so it seems.
    i then restarted, and once i logged back into my account, everything was as it was the first time i logged in; the standard icons in the dock, the big dock, and the desktop background was the standard blue one when before it was the stones.
    i checked my folders and got the same message. but it was peculiar because all my settings were different, but my account user icon was the same. anyways, when i started all my programs they were as if they had never been used before. Also, when i went under Applications, all my old applications that i had downloaded were there but none of them were on the dock, or set up; they too were like they had never been used before.
    I ran disk utility and when i picked repair disk nothing happened. when i pick to repair the other thing, (i dont remember what it was) it repaired some things, but when i restarted my computer, nothing different.
    Because i cant access the movies or music part of my hard drive, something tells me the hard drive just isn't finding them and that all my files are still there (this is just hope probably).
    Anyways, I want to know what i can do!
    And i didnt backup anything. yes is was irresponsible, but please dont chew me out about it or anything.

    Hello Andy,
    Yes, we definitely need more information to diagnose the problem fully.
    But, since the primary mission is to locate and retrieve those files, the amount of tinkering needs to be kept to a minimum as well.
    Ideally, the computer would remain "off" until a data recovery tool were available to use. Then, it may be possible to boot from the recovery tool's CD and locate and retrieve the missing files.
    The problem is that OS X is continually creating and adding to it's swap file. And, browsing the Internet creates cache files and cookies. And, in general, the more the computer is used, the more likely it becomes that those files are being over-written (if they have been deleted).
    So, that is why I approached it from a more aggressive "recover first" approach.
    If the space had not been freed, then it would be less concerning. But, as it is, the more the computer is used (even in trouble-shooting), the less they are likely to be able to recover if the files have been deleted.
    In a file recovery mission, the first step is to avoid writing anything to the disk, and immediately employ the recovery tool. Since OS X is constantly writing to the disk (it's swap file), the risk of losing files permanently increases by the minute.
    Since it sounds very important that the files be found, I would approach it from that angle first.
    If they are deleted (and still recoverable), then the recovery program will find them and restore them. If nothing is left to recover, or after they have been recovered, then you would proceed with finding-out why.
    And, if the files have not truly been deleted, then obviously trying to recover them would not harm anything.
    It's a gamble to try and trouble-shoot before recovery since that could lead to losing files permanently (due to over-writing).
    It would be less of a risk to try to recover first. You see, if nothing has actually been deleted, then naturally the program will not show them to be recoverable (because they will not be found in the "free" space).
    In that case, you would then proceed to trying to see where they are, and trouble-shoot the system.
    Given the priority expressed, I believed their primary concern to be getting the files back.
    Naturally, you may disagree with the method. But, I think they should consider the ideas expressed above and weigh them in the decision of how to proceed.
    Naturally, we need more information to understand what happened. But, understanding what happened may be less important than recovering the lost files.
    I know if it were me, I'd want to recover the deleted files first, and then figure-out why it happened. Especially if tinkering meant sacrificing the ability to recover some of those files. For that reason, I naturally put recovery first.
    Understand, I'm not arguing with you. I am just explaining why the recovery tool may be a higher priority to this user. Ultimately, it is up to them to decide which route they want to go first.
    I hope this helps.

Maybe you are looking for

  • How do I use the ? operator in JSF tag attributes?

    I want to do something like this: <h:inputText styleClass="${myBean.valid ? 'styleA' : styleB'}" ...> What do I have to do to use this Expression language? With the #{...} expression the ? operator doesnt seem to be available. When I use the ${...} e

  • Problem during installation of  NW7.0 SR3 on Windows x64

    Hello all, I have a problem during the installation of a new central instance. During the phase 38 "Install Software units", SAPINST shows that logs : Jul 30, 2008 1:41:10 PM  Info: Ending deployment prerequisites. All items are correct. Jul 30, 2008

  • Can't get iTunes to open - rage building!!!!!

    I just got an iPod and connected it to my pc. Connected to iTunes and it appeared to be downloading the songs. it said it was done and it could be disconnected. So I did. Then I got a Do not disconnect warning and now, when ever i try to open itunes,

  • Control to  create or change material master

    I want to let a group person to create or change material maters only with material group 16. I found an auth. obj. M_MATE_WGR, and set activity as *, while activity goups as 16. But the nothing happened when I change a material with material group 1

  • CRM IC alert trigerring late

    Hi all, I have created a Z alert (same like followup) in alert profile which is getting triggered after 20-25 minutes. I have checked bellow services in SICF, they are all active. 1)crm_ic 2)crm_ic_rt_rep 3)crm_ic_dt_rep 4)crm_ic_f1_bsp 5)sam_sess_qu