After the trigger Update do not trigger

Hi all
PL help me to correct the error of this trriger.


CREATE TRIGGER AUDIT_DEV.trg1
AFTER DELETE OR UPDATE OF EMP_STATUS ON AUDIT_DEV. AUDIT_PERSONS
declare
AUDIT_PERSONS. TYPE % EMP_USER_MODIFIED;
AUDIT_PERSONS. TYPE % EMP_DATE_MODIFIED;
AUDIT_PERSONS. TYPE % EMP_SK;
AUDIT_PERSONS. EMP_ID % TYPE;
AUDIT_PERSONS. EMP_NAME % TYPE;
EMP_STATUS_OLD VARCHAR2 (10);
EMP_STATUS_NEW VARCHAR2 (10);
EMP_PERSONS. TYPE % EMP_RESIGNATION_DATE;
V_$ SESSION. OSUSER % TYPE;
V_$ SESSION. MACHINE % TYE;
V_$ SESSION. USER_NAME % TYPE;
BEGIN
Select
SID, serial # username, osuser, machine, logon_time in sid, serial # username, osuser, machine, logon_time
session $ v where sid = (select sid from v$ mystat where rownum = 1);

INSERT INTO AUDIT_PERSONS_LOG
(EMP_USER_MODIFIED, EMP_DATE_MODIFIED, EMP_SK, EMP_ID, EMP_NAME, EMP_RESIGNATION_DATE, EMP_STATUS_OLD, EMP_STATUS_NEW, osuser, db_user, machine) VALUES
(
EMP_USER_MODIFIED, EMP_DATE_MODIFIED, EMP_SK, EMP_ID, EMP_NAME, EMP_RESIGNATION_DATE,: old. Emp_status,: new. Emp_status, osuser, db_user, machine
)
END;
/

Error report:
ORA-04082: NEW or OLD references not allowed in table level triggers
04082 00000 - "NEW or OLD references not allowed in table level triggers.
* Cause: The trigger accesses values 'new' or 'old' within a trigger from the table.
* Action: Delete all references, new or old.

Published by: Abk November 4, 2010 11:09

What is the result of

SELECT * FROM user_triggers
WHERE trigger_name='your_trigger_name';

Especially note the status column.

Tags: Database

Similar Questions

  • After the iphone update does not accept Apple ID more

    After the iphone update does not accept Apple ID more

    What exactly do you mean by "do not accept" more?  This error message you get?  Are you the owner of the ORIGINAL of the phone or did you buy it used?  If it is a second hand phone, you could have operated in the lock of activation:

    Turn off find my iPhone Activation Lock - Apple Support

  • After the last update will not work my speed dial icon

    After the upgrade to firefox 5, my speed dial icon does not work

    This version of abstract works well in ff5 https://addons.mozilla.org/en-US/firefox/addon/fast-dial-5721/versions/

  • Re: Satellite C660 - after the BIOS update can not connect to Internet

    Hello
    I've recently updated my BIOS on my Toshiba Satellite C660 1.70.
    Everything goes well, but when I rebooted and tried to connect to the internet, he could not.

    I thought that there was a temporary error, but it's been 3 months and it has still not repaired.

    Can you help me? Thank you!

    Have you tested with WLAN and LAN connection?
    Have you noticed the same problem using two connections?

  • After the last update can not burn DVDs

    Current enforcement 10.11.4 on Imac I5, end 2013 with external dvd player from Sony. Always had trouble make him start to burn but now can't burn DVDs at all. Get connection errors, low connection errors and even several icons on desktop DVD. 14 with good quality dvd using toast. USB is connected to the directly to the mac. ResetPRAM, transported to various ports usb. Sometimes dvd will go up but not available or when you are ready to burn receive error messages. Before last update worked most of the time. Such a simple tsk, which has always been a test since the disc removed.

    Try reinstalling the toasts with the connected reader.

    If this does not work, try resetting the SMC: reset the management system (SCM) controller on your Mac - Apple Support

  • After the BIOS update can not startup Satellite C640 using USB key

    After upgrading my bios Toshiba Satellite C640-10F (PSC02E) to WIN 2.00, I can't boot the laptop using USB key, when I checked the BIOS with F2, I was stunned because the USB port connected to the laptop has been labeled as FLOPPY drive. Y at - there no possibility to downgrade the BIOS?

    Thank you

    Stand by.
    Set the BIOS to default and after restarting, use F12 to get into the boot menu.
    USB option is available there?
    What is saved on your USB device? I mean why do you want to use device USB to boot from it?

  • After the last update of Firefox, youtube videos do not play. The answers I've found are not relevant or too complicated.

    After the last update of Firefox, youtube videos do not play. The answers I've found are not relevant or too complicated.

    Hi Cbella, YouTube is generally used with an HTML5 player, who is a player who does not use a plugin video in MP4 format (for example, it does not use the Flash plugin).

    Now, I based this assertion on Windows, Mac may vary.

    Could you do two tests for me?

    Test #1:

    To verify which player you see (which does work), try a right click or Ctrl + click on the YouTube Player and check the "context menu" that rises. If it's the Flash, there will be a menu short, referring to the Flash on the last line. If you do not see that, if you get a regular menu of Firefox, it's probably the HTML5 player.

    Are what player you?

    Test #2:

    If you open the following test page, which videos to play?

    http://www.quirksmode.org/HTML5/tests/video.html

    • The video "H.264/MP4" play?
    • The video "WebM" play?

    Thank you.

    Also, you can check if your Flash plugin is up to date? You can use the site Mozilla Plugin check for this (please ignore the other plug-ins page wants you to update at the moment avoid making the situation more complicated):

    https://www.Mozilla.org/pluginCheck/

  • Single-pass does not work for Web sites after the last update of firefox

    Single-pass does not work for Web sites after the last update of firefox. This works in IE and Chrome and it works under windows (when starting the computer), but not with any website in Firefox.

    Firefox 30 spent some less commonly used "Always turned on" plugins "asking to activate. To check and change this to SimplePass, you can use the page modules. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Plugins. Then on the right, check the control on the right side of the SimplePass.

    You may need to exit Firefox and start it again before it takes effect.

    A little luck?

  • You Tube is not playing video on Firefox with Adobe Flash after the last update

    You Tube and other sites do not play video on Firefox with Adobe Flash after the last update for both. Adobe Flash works on other sites but not You tube and sites that can have embedded videos from You Tube, I'm not sure.

    Adobe Flash not crushed and no error message is visible. All that shows is a black screen for Flash video. Make a right click of the screen shows only a non-interactive 'a film has not loaded' and the clickable link to the home page of Adobe.

    I spent an hour trying things as suggested for past problems similar to this, but none helped.

    I sent sad face, letting you know what I think of the last update for this reason which explains pretty much the same thing, as I have said here.

    I have no other info but if I had a form any entry and queries you I might be able to provide more.

        I think the Flash 12.xx is a phantom. I can't find it on my comp. Only 13.xx shows anywhere but on the Pugins page in Firefox.

    Weird. I have no idea why it does that. Your list of details of the system shows that 13.0.r0 Flash.

       About the .Js I cannot find a User.JS in the profile folder but ther is a user.bk and other files that have.json. Should I do anything with these? 

    If you don't, that's okay. Leave all of the files.

    Does disabling HA in Flash and Firefox work better for you now or even not playing it?

    Make sure your firewall is not something Firefox blocks.

    This happens in other browsers as well?

    The site appears your version of Flash player and your operating system?

    Here is what mine looks like

  • The Remote option for matching seems to have disappeared (file/devices/Remote). This discovered after the last updated at 12.4 and Remote app would not work. Suggestions?

    The Remote for iPhone & Remote app matching option seems to have disappeared (file/devices/Remote). This discovered after the last updated at 12.4 and Remote app would not work. Suggestions?

    Fixed. I removed the Remote, reloaded app to my iPhone and then reinstated the info Apple ID and password in the app all connected immediately. The 'Remote' option is not always present under file/devices/Remote, but everything works well at this point.

  • After the recent update to iTunes, my computer is not recognized in iTunes game.

    After the recent update to iTunes, my computer is not recognized in iTunes game.  I am subscribed to iTunes game. My library shows the status of iCloud, and yet when I go into the Match iTunes from the iTunes store, it asks if I want to add this computer.  When I connect and ask the computer to add, nothing happens.  Shouldn't iTunes recognize my that my computer is a Subscriber?

    Hello

    Connect to iTunes. Go to Menu > iTunes > Preferences > general and make iCloud sure music library is checked.

    Jim

  • After the last update wmp plugin is missing in Add-ons, but is still correct installed. Reinstall will not work. What can I do?

    I been lissening to online radio. Necessary to update Firefox. After the last update the windows media player plugin has disappeared from the list of Add-ons, while always being correct installation. I reinstalled it, but that has not worked. I have replaced/deleted some files in firefox as suggested, for similar problems, but that no longer works.
    Now, I can not play wmp files on firefox.

    Hope you can help me solve this problem.

    Found a solution:

    Go in Subject: config and change plugins.load_appdir_plugins from false to true. Apparently FF21 assigns the value false by default causing it to not detect plug-ins installed in this way.

  • After the last update of FF13, I double click on the bookmark button and the window does not open, so I can edit.

    When I double click the bookmark (star) button a window still down so I can change the bookmark or place it in the folder I want. Now, after the last update of FF13 (June 2012), I can click once and the page is a bookmark in the "home" folder, but when I double click nothing happens. (1) I restarted FF, did not help 2) I rebooted the computer, did not help.

    You just click on the star once if the star is high already turned on to indicate that a site is bookmarked. Normally, you would click once to bookmark the current site, then click once, if you want to change the new bookmark. If you double-click and you open and close the pop-up edition.

    After you enable hardware acceleration can cause problem with edit op - up doesn't work does not correctly, so in case of problems, you can disable hardware acceleration.

  • iTunes does not recognize my devices after the last update

    iTunes does not recognize my devices after the last update. Has crossed all suggestions from the support page (uninstalling/reinstalling driver USB, remove Lockdown folder and so on) but still no joy. iPhone continues to ask if I want to trust to the connected computer, responding 'Yes' has no effect.

    Help, please

    Thank you

    Cyana

    Found this solution here:

    Re: Does not recognize devices in iTunes on PC

    works very well

  • Play Lenovo Vibe K4 Note mobile store does not properly after the recent update...

    After the last update, my game store does not work correctly. A lot of apps is not proceed with the installation an error...

    Help, please

    Hi Digambar,

    Welcome to the community of Lenovo!

    Please perform the below mentioned the troubleshooting for the troubleshooting steps:

    1. go to settings--> Apps--> all Apps-> Google Playstore: clear the Cache, erase the data
    Note: All browsing history will be get deleted.
    2. If the problem is persists kindly update the playstore Google later.
    3. make sure that the update of the system is up-to-date.

    Please come back to us if the trobleshooting helped you.

    Thank you & best regards

  • Satellite A300 - after the BIOS update I can not install two OS

    Hello everyone:

    I bought a laptop Toshiba Satellite A300-247 with Windows Vista Home Premium.

    Then I formatted it and divided the hard (320 GB) into 6 partitions and installed Windows Vista and Windows XP on drive C to drive D after having changed the SATA controller mode in the BIOS for compatibility. The computer worked well with 2 operating systems. However, when I updated the BIOS to version 1.9, two operating systems stop working and one of them can be installed: XP can be installed when SATA controller mode is placed on compatibility and Vista can be installed only when the SATA is changed to AHCI.

    Is there is no explanation of what past? And can I install operating systems 2 together again?

    Thank you

    Hello

    First of all, I doubt that this has something to do with the BIOS update. I think that after the BIOS update HARD drive mode has been changed from AHCI to compatibility and therefore the OS didn't start.

    Anyway, in compatibility mode you can install Vista and XP without the SATA drivers. This should t be a problem.

    But do you know the difference between compatibility and AHCI? AHCI mode is faster and therefore I would recommend this mode.
    Like you said Vista you can already install in AHCI mode and for XP, you need Intel Storage Manager. This package includes the SATA drivers you need and here is a step by step guide to use these drivers:
    http://APS2.toshiba-tro.de/KB0/HTD9401AN0000R01.htm

    Last but not least, you can install 2 OS. You can do what you want! ;)

Maybe you are looking for

  • No incoming SMS sound heard

    Hello I have two iPhones one is version 5 and the second is 5 s version. Both are updated to the latest version of iOS. In my worm. 5 s when entering SMS comes the iPhone gives alert music. The problem is with another iPhone 5 that when entering SMS

  • Driver for modem HP Pavilion Dv1000

    Hello!! My English is poor, forgive me please hehehe. I m looking for this driver: HDAUDIO\FUNC_02 & VEN_14F1 & DEV_5047 & SUBSYS_103C30A0 & REV_1000\4 & 2DDC00D9 & 0 & 0002 the system is a HP Pavilion Dv1000 (M/n: dv1720la) with Windows Xp Pro sp3.

  • Satellite P200 - reading CD or DVD without having to start

    Hello Is anyway to play CD or DVD without having to start up on the P200-144 Thank youMachanic

  • Windows Vista update: STOP 0x0000007b on crcdisk.sys

    I tried to apply the patches via Windows Update February, twice, twice completely streaked my Vista installation. What happens is that Windows Update downloads updates and application restart. The restart ends at STOP 0x0000007b.If I then boot in saf

  • my Outlook Express does not respond after opening in Windows XP

    After opening Outlook Express, he receives e-mails, but doews fails to read/delete/move.