Mutating table exception on trigger with After Insert but not with before

Hi
I need to maintain some constraint on the table to have only one row for values of the columns but not by primary key constraint.
Because in case of primary key the insert would fail and the rest of the operation would be discontinued, I cannot change in the somponent that inserts the row so I have to prevent that on the table I have.
I created a before insert trigger on the table which checks if any row exists in the table with same column values as the one being inserted. if found I delete the rows and let the insert happen (w/o raising any error). if the rows do not exist then the insert shall be continued.
I read at place that modifying the dame table in the trigger body shall raise a mutating table exception, but I donot get the exception when the trigger is fired.
Just when I change the trigger to after insert trigger then the nutating table exception is thrown.
Is it the right behavior i.e. the Before insert trigger does not raise the exception and only after insert does that, since I could not find the example for before insert triggers throwing such exception so I think it is better to confirm it before finalizing the implementation.
Thanks
Sapan

sapan wrote:
Hi Tubby
I cannot user unique constraint because that would raise an exception upon violation and the third party component that is inserting in the table would fail.
That component does some other tasks as well after this insert and if an exception is raised then those tasks would not be performed.
Also I cannot change the component to ignore this exception.Well then, you're in a bit of a pickle.
I'm guessing the trigger you have been working on isn't "safe". By that i mean that it doesn't account for multi-user scenarios. You'll need to serialize access to the data elements in question and implement some sort of locking mechanism to ensure that only 1 session can work with those values.
After you work out how to do that it sounds as though you would be better served using an INSTEAD OF trigger (you'd need to implement this on a view which is made off of your base table).
Here's one way you can work on serializing access to your table on a relatively fine grained level (as opposed to locking the entire table).
Re: possible to lock stored procedure so only one session may run it at a time?
Cheers,

Similar Messages

  • ITunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    I have my iTunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    You can't connect directly to the external drive, but should be able to use iTunes Home Sharing via the laptop.
    http://support.apple.com/kb/PH1453

  • My firewire port works with ext hd but not with audio interface

    2010 Imac 21.5 running 10.8.5. My firewire port works with ext hd but not with audio interface. The local authorized Apple tech said that I need a new motherboard, but my firewire ext drive works perfectly. I don't understand. Thanks.

    You must go to the website of the audio interface manufacturer and look for, download and install updated drivers for the audio device you are using.
    This is not, neccessarily, an Apple issue.

  • My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?

    My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?
    I have restarted all units, disconnected and reconnected

    Hi ryanfromstockbridge,
    I apologize, I'm a bit unclear on exactly what you are seeing when you try to add the printer or print to the printer. If you continue to have issues printing to this wireless printer, you may find the information and troubleshooting steps outlined in the following articles helpful:
    OS X Yosemite: Printing troubleshooting
    Troubleshooting printer issues in OS X - Apple Support
    OS X Yosemite: Add or remove a printer
    Sincerely,
    - Brenden

  • Using iCloud my iCloud calendar is syncing with my iPhone but not with the Outlook calendar on my PC (Windows 7)

    Using iCloud, my iCloud calenda is syncing with my iPhone but not with the Outlook calendar on my PC (Windows 7)

    smurfanda wrote:
    I agree. What I see is that it is creating an icloud calendar in Outlook but I want it to sync to Outook itself.
    That is what it does. There is no sync, you have a new calendar.

  • Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    YEAY!
    I just got the solution (that worked for me, anyway) from a Sony support rep. No PC or VMWare needed.
    OK, you've installed Sony eBook Library v3, and Adobe Digital editions, you've set up your acocunts and authorized your computer on both of them, and you've authorized your Reader with the Sony Library application.
    You go to the public library ebook download page, either through the Sony Library or just through a bookmark.
    You check out a book, and open it in Adobe Digital Editions, which still won't recognize your Reader.
    BUT, in the Sony Library app, you can now click "File, Import.." and go find the pdf you downloaded with the Adobe app.
    On my Mac, it was in ~/Documents/Digital Editions
    Import it, and drag it to your Reader.
    The first time you do this, it will ask you to authorize the Reader with your Adobe ID.
    Worked like a charm.

  • ESR,ID working with 8000 port but not with 50000

    Hi experts,
    I am working with PI 7.1. I am working with SOAP to ABAP SERVER Proxy scenario. I have downloaded the WSDL from ID and using XMLSPY sent a SOAP request to PI server and I got an error in SXMB_MONI under the Call Adapter step saying CLIENT_RECEIVE_FAILED.
    We cross checked the services in  SMICM transaction, and we missed the HTTP port 8000 for the parameter icm/servr/port_xx.
    Then basis team changed the port 8000 in SMICM for the same parameter and restarted the Java stack.we checked the icm/HTTP/j2ee parameter which is having 50000 port.
    Now ESR,ID,SLD,RWB... etc are working with ABAP port 8000 but not with 50000 java port and also I am getting an error in SXI_ CACHE while doing my delta refresh if_http_client receive http_communication_failure : http_communication_failure:ICM_HTTP_CONNECTION_FAILED. Kindly suggest me to resolve this error.
    Naveen

    Hi,
    Re: Architecture of PI 7.1
    NW PI 7.1 - ICM is not binding to port 5$$00
    from the above two threads it is very clear that from PI 7.1 both the ABAP and J2EE ports are same.
    Now we maintained both the ICM and j2ee port as 50000. Now ESR,ID,SLD are working with port 50000.
    But in my SOAP to Proxy scenario I  am getting the same error. When I try to send request to XI server using Altova xmlspy I am getting following error in SXMB_MONI under Call Adapter
    <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>400</SAP:P1>
      <SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>
    When i click that HTML error It shows
    404 Resource not found
    I am getting the following error in CC monitoring .
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIServer:CLIENT_RECEIVE_FAILED
    My reciever communication channel is in green status CC monitoring.
    I tested my server proxy in my end system which is successfully fetching data.
    I am using the following URL format for generating the WSDL from Integration directory.
    http://host:port /XISOAPAdapter/MessageServlet?channel=p:s:c
    Do we need to maintain the Fully qualified host name  in the above URL?
    I tried with a test scenario which is an asynchronous communication with the above mentioned URL format. I got a success message in SXMB_MONI.
    Since I am using PI 7.1 I tried the following URL also  but i this case,the XML spy itself throws error. I couldnt see any messages in SXMB_MONI.
    http://host:port/XISOAPAdapter/MessageServlet?senderParty=&sender
    Service=FS&interface=IF&receiverParty=&receiverService=TS&interfa
    ceNamespace=IFNamespace
    I have seen many threads in SDN for this same error but I didn't get an answer for my scenario.
    Lakshman and Manjusha
    Thanks for the quick responses.
    Regards
    Naveen
    Edited by: naveen perumal on Jul 24, 2009 8:00 PM

  • Wireless video link example works with antenna only but not with SMA to SMA cable

    I am trying to run wireless video link example https://decibel.ni.com/content/docs/DOC-22728 . It works fine if I use install antennas on my Tx and Rx USRPs. But it does not work if I use SMA to SMA cable to connect Tx and Rx USRPs. Can somebody guide me what is the reason why it is only workng with antennas but not with SMA to SMA cable. 
    Thanks 
    JK

    I connect the 30 dB attenuator at RF input port of Rx USRP. But it does not work completely.
    Without connecting attenuator i was not able to receive any thing on my Rx VI although it shows waveform. But after connecting attenuator receiver some times receive text messages and some times not. Also it does not work at all for images and for video it works partially but gives some error related to memory full after few mins.
    I want to know why this example works completely without any problem if I use antennas, and why it does not work perfectly if i use sma to sma cable for connecting transmit and receive usrps.
    Please guide
    Thanks 
    JK

  • Macbook Pro 7,1 (mid 2010?) boot with 6GB mem, but not with 8GB

    Hello,
    I bought a Macbook Pro 13" equipped with 4GB RAM at Apple Store on Oct-2010, and it says it's Macbook Pro 7,1 in profiler.
    I tried to upgrade the RAM from 2GBx2 to 4GBx2, but the MBP freezed in boot sequence with 8GB RAM.
    After some tests, including swap and change the combination of memory modules, I found my MBP can boot with 2+4GB configuration, but not with 4+4GB.
    Does anyone know similar issue on the latest MBP 13"?

    This is a memory speed problem - check here: http://discussions.apple.com/thread.jspa?messageID=13154160#13154160
    When using 2+4 gb, memory speed is choosen, based on the slowest dimm - the 2gb one (1066mHz), when using single/double 4gb - speed is 1333mHz).
    You can see the memory speed in diagnostic mode. I'm trying some stuff, if I succeed, I'll post my way.
    ps. Changing 4gb memory sodimms to 1066mHz will solve your problem. Or if apple fixes the efi to downclock the 1333mhz ones (which btw every pc can do from the bios).

  • Windows 8.1 64bit. Webcam works with "Camera" app but not with Skype.

    I've spent a few hours googling and trying out various things - all listed below. I give up - any ideas??? OS: Windows 8.1 64bitMemory: 32GBWebCam: Microsoft VX-7000. As per subject - the webcam works with the "Camera" app but not with Skype for desktop or for Modern UI (or the Microsoft Lifecam software for that matter).  Already attempted: 1) Uninstall webcam drivers - download latest from microsoft (Windows 7) and install in Windows 7 compatibility mode.2) Close (from taskmgr) anything that looks like it might use Webcam. 3) Run Skype for Desktop in Windows 7 and 8 compatibility modes None of the above work. In Skype for Modern UI the webcam doesn't appear in the drop down in Settings - so I can't even select it. In Skype for desktops (version 6.11.32.102) the webcam is found but instead of image I get "Can't start video. Try closing other programs that might be using your webcam". I see from a bit of googling that various people seem to have the same issue (i.e. Webcam works with Camera app but not Skype) - so I'm hopeful someone has found a workaround / fix to this issue and I've just not had the googling skills to find it  Thanks, - Matt Symes

    OK - I appear to have resolved the issue.  I restricted my google terms to [vx-7000 site:microsoft.com "windows 8.1"] Which uncovered this article: http://support.microsoft.com/kb/933311 I noticed there were a couple of Windows 7 x64 specific registry settings that were mentioned so I checked these and they weren't as per the article. In fact - one of the Registry Keys was already used by other software "AI Charger+" which is some ValueAdd software that came with my motherboard. I uninstalled AI Charger+, uninstalled LifeCam driver. Reinstalled LifeCam driver in Windows 7 compatibility mode. Still not working. I returned to the registry and noticed the settings still differed from the above article. I corrected them (which involved not just amending Data but having to add new Values). I then disabled and reenabled the LifeCam from dvcmgmt.msc I was then able to get video from the webcam in the Skype for Desktop preview screen.    

  • Airport/TC working with MacBook Pro but not with my Mac Pro???

    Hi all,
    I've got a Time Capsule connected to a Westell Modem through AT&T. Needless to say; I've had a lot of issues with my setup but this one has my stumped.
    After my network crashed a few days ago, I reset everything and got my Airport network running on my laptop. I cannot get it to work on my Mac Pro. My MP doesn't even see the Time Capsule when I run Airport Utility. It'll show the network on the Airport Icon at the top of the page and will even let me choose it when picking a network to connect to.
    Anyone know what to do, please help!!!
    Thanks!!!
    Chris

    On the Mac that won't connect using wireless:
    Open System Preferences and click on Network
    Click the Airport connection on the left
    Click the Advanced button on the lower right
    Look for the name of your wireless network and delete it using the - (minus) button at the bottom of the connection list. Delete any other networks that you do not need as well
    Apply changes
    Open Hard Drive > Applications > Utilities > KeyChain Access
    Under the Kind column, look for any listings of Airport Network Password and delete them
    Restart your computer
    Keep your Mac close to the TC for now and click the AirPort icon at the top of the screen and try to log on to your wireless network.

  • Mail Works With Internal Modem But Not With Airport

    The Mail app works great when I use a dial up connection but it won't work when I connect with Airport. It was something I could live with before because I could easily retrieve email through my ISP on the web, but now Mail won't work with my iPhone 3GS either after syncing it up with iTunes. Any suggestions?
    Thanks, Charlie

    Okay, I found the answer if anyone is having the same problem. The Mail POP settings on the Mac for the various Accounts I had were outdated. They were just for Dial-Up. Here is the link for the entire ATT page that deals with High Speed and iPhone connections, and the part in particular that helped me get it going.
    http://help.att.net/docs/use/email/gen/prbxxx_xxx_mail-news-settings.htm?area=customeremail-osxmail&platform=OSMAC&faqcounter#isps
    Note: Worldnet support is limited to providing the iPhone E-mail Configuration Settings. For all other iPhone technical support issues, refer the customer to: att.com/wireless
    Note: If you are using Mac OS 10.x, set up Mac OS X Mail to access your AT&T Worldnet Service e-mail.
    E-mail Settings:
    Mail Server Type: POP3
    Incoming Mail (POP): ipostoffice.worldnet.att.net
    Outgoing Mail (SMTP): imailhost.worldnet.att.net
    Note: If you are using Netscape Mail, enter your other ISP's outgoing e-mail server. If you are not sure what the SMTP server name is, contact your non-AT&T Worldnet Service ISP.
    Ensure that the option My server requires authentication is checked.
    User name or POP name: Enter the full e-mail address in the User Name field. For example: [email protected] or [email protected]
    Ensure that the option Always connect to this account using is selected, and Local Area Network is chosen from the drop-down menu on the Connections tab.
    Ensure that secure connection (SSL) is enabled and set to port number 465 for SMTP.
    Ensure that secure connection (SSL) is enabled and set to port number 995 for POP3.
    Cheers, Charlie

  • Why does my Web Handler work with Internet Explorer, but not with Firefox

    I am trying to develop a web page that uses the Simile Timeline (http://code.google.com/p/simile-widgets/wiki/Timeline) with data from SQL Server.
    In initial testing of my timeline I tested it with Example.xml, a static XML file in the correct format to be event data. I wrote the following in the appropriate place within mytimeline's Javascript: -
    var WebHandler = "Example.xml"
    tl.loadXML(WebHandler, function (xml, url) { eventSourceFamily.loadXML(xml, url) });
    This worked fine with both Firefox and Internet Explorer. I then changed the assignment to
    var WebHandler = "GDBTimeline.ashx?Type=Family&Userid=" + getControlValue("input", "hdnUser");
    so that invoked a web handler that could look up the SQL database and return the XML that I wanted, and wrote this web handler.
    This works perfectly with Internet Explorer, but with FireFox the timeline band is blank. Yet when I examine the http traffic with Fiddler2 (http://www.fiddler2.com/fiddler2/) I see that with either browser there is a response from URL
    /GDB_pages/GDBTimeline.ashx?Type=Family&Userid=robertb
    that returns the XML that it is supposed to.
    I have previously used web handlers with Firefox before, with no problems. The Fiddler results conclusively show that the web handler is invoked, and returns the appropriate XML, and this XML is identical to the XML from the static test with Example.xml.
    Where do I start looking for answers? I don't even know if this is a Simile problem, a Firefox problem, or an ASP.NET problem.
    Thank you, Robert.

    Problem solved. The issue: Content Type was not correct.
    Visual Studio creates the web handler with dummy code like this: -
    Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
    context.Response.ContentType = "text/plain"
    context.Response.Write("Hello World")
    End Sub
    I wrote a database query that set a string variable to the XML I wanted: -
    Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
    Dim Outstring as string
    ' my logic to fill Outstring with XML
    context.Response.ContentType = "text/plain"
    context.Response.Write(Outstring)
    End Sub
    This works with Internet Explorer. However it's not strictly correct: to make it work with other browsers as well,
    context.Response.ContentType = "text/plain"
    should be
    context.Response.ContentType = "text/xml"
    It now works with IE, FF, and Chrome, and presumably all others.

  • I can capture with iMovie 6, but not with FCP 6.0 ('no data from device')

    I didn't have any problem with FCP 5, but am getting nowhere with FCP 6 using the same settings (I think). FCP seems to see the camcorder, but can't control it and, even if I manually start the camera, reports 'no data from device' when I do a 'Capture Now'. Device control isn't critical, but I'd sure like to find out why it doesn't see the data stream from the camera (Sony HDR-HC7 / FW400). I must be missing a setting some place, but sure can't find it. On the other hand, I have full device control and zero dropout capture with iMovie (exact same hardware configuration). Any ideas?

    Wolfgang Matzl wrote:
    canopus works fine, as well as all other devices.
    i have tons of tapes and tried a few, none worked.
    i tried to capture on both my new imac and my mbpro, no way.
    but now i'm sure there is something wrong with the sony handycam, i tried to import with my old final cut studio, and it's not possible, also. fc pro says: waiting for timecode.
    so i'm confused now. does the sony dcr-trv not send a timecode? maybe, and this will explain the troubles. but on the other hand i imported successfully some footage with exact this device.
    maybe i used the canopus then to correct the timebase, i can't remember how i did it. but this would mean i have to accept loss of quality, since i have to connect the sony with s-vhs with the canopus and convert it.
    right now i'm importing a tape with imovie and will have a look how the result is, but as far as i remember, the audio has to be re-rendered when importing in fcpx…
    My finger is pointing to a Timecode issue.
    Is timecode enabled in the camera?
    Is it continuous on the tape?
    Al

  • Video Syncs with Ipod Classic but not with Touch

    A video podcast in iTunes will not sync with my new Touch but does with my Classic. Any ideas?

    Not enough free space maybe.

Maybe you are looking for

  • The runtime error while executing RSRT1

    Hi all, We have upgraded the BW 3.5 to Bi 7.0,  when we trying to execute RSRT1 it throwing run time error  "load program not found". Program "Gp xxxxxxxxxxxxxxxxxxxxxJDP5" ... Is there any patch for this... Please suggest... Thanks, Subhash.G

  • Make to order and stock both in one material with consignment

    Hi Seniors FERT Material = XYZ which is being used for Make to Order and Make to stock both. In case of make to stock  scenario from GR u2013 101 and PGI made @ std price. At the time of Consignment 631 mvt. No accounting document is generated. As pe

  • ITunes 10.4.1 doesn't work with my keyboard anymore.

    I used to use mmkeys.dll before to use the media keys on keyboard which is a 'Microsoft Wireless Keyboard 3000 v2.0' but now I can't use the media players without the iTunes in like control or whatever (not sure how to call it, but its when my iTunes

  • Change documents (Log) for TRs & TOs

    Dear Experts, Our requirement is to have change log for tracking changes related to TRs & TOs. Please let me know how can I achieve this. Thanks in advance.

  • Turn off Snaps in Motion 5 when using the Edit Points tool and Beziers

    I drew a bunch of Bezier lines and am now going through my animation and fine tuning thier locations using the "Edit Points" tool. Is there a way to turn off the snapping function within the edit points tool? Matt