Database notifications, it only notifies one time

Hello,
Following with the topic: Re: Socket communication in Oracle triggers
I've tried the oracle notifications and they work great. The problem is that once it fires my application event it does not fires it anymore. I mean, it only works for the first database change. Is there any way to configure that??
Here's my code so if anyone sees some mistake please tell it to me.
string sql = "SELECT * FROM IP_PDA"; // WHERE ID_IP_PDA=3";
string constr = "User Id=XXXXX;Password=XXXXX;Data Source=XXXX;Pooling=false";
try
con = new OracleConnection(constr);
con.Open();
OracleCommand cmd = new OracleCommand(sql, con);
OracleDependency dep = new OracleDependency(cmd);
dep.OnChange += new OnChangeEventHandler(OnDatabaseNotification);
cmd.ExecuteNonQuery();
}catch(Exception ex)
Debug.WriteLine(DateTime.Now.ToString() + " // ERROR AL REGISTRAR LA NOTIFICACION EN ORACLE -->" + ex.Message);
The event is like that
public static void OnDatabaseNotification(object src, OracleNotificationEventArgs args)
Thanks in advance!!!

I think I've solved it.
I've registered the dependency in the event so onces it fires the event it registers another.
I don't know if it's the better way to do it. If somebody knows a better way please tell me!
the event will look like that
public static void OnDatabaseNotification(object src, OracleNotificationEventArgs args)
cmd = new OracleCommand(sql, con);
dep = new OracleDependency(cmd);
dep.OnChange += new OnChangeEventHandler(OnDatabaseNotification);
cmd.ExecuteNonQuery();
Thanks!!

Similar Messages

  • How to approve the request only for one time for human task in BPM Worklist

    Hi All,
    I'm having a requirement where i have made the hierarchy in the .task file where in created two users for which i need an approval in a hierarchical manner. But when i'm approving the request from worklist app for one user and the request is going sucessfully to the second user and if i approve it over there it once again coming to first user where i have approve it once again to get the request processed. how to get request processed only for one time when it is approved. Do we need to customize anything
    If you did it can anybody can share thoughts on this please. Your help is highly appreciated.
    I am not able to see the rejected request at all. where to see the rejected request.
    Regards,
    CH

    Hi,
    Following are the some important points you should understand about ESS Leave Request Workflow
    1. The Visualization ( how should it appear in UWL and what should happen when you click on a particular workitem) is defined in SWFVISU. Check for TS12300097. Generally, it invokes com.sap.xss.hr.lea.appl/LeaveRequestApprover Java WebDynpro application. Just check whether you are able to get the correct Leave Processing application called when you execute your workitem from UWL?
    2. In general it should have option to process the leave request either approve/reject. When the leave request gets approved/rejected the status of the Leave Request document gets changed ( in workflow it is &REQ.STATUS&
    3. There is a need to schedule a background job for program RPTARQPOST which will pick up all the documents in APPROVED status and creates an absence record for the same.
    4. Apart from schedule job as mentioned above, you also have to schedule a background job for program  RPTARQEMAIL, which is basically used to send e-mails for all the documents which are yet to be approved to correct manager.
    as you say , you can not see Approve/Reject options from UWL, it looks to me that correct javawebdynpro application is not being called for this task. Just check this !!
    Good Luck !!
    Regards
    Krishna Mohan

  • HT204088 I only purchase one time on Mar 03 - $4.99 but when I receive the bill ,it charge me double .

    i only purchase one time on Mar 03 - $4.99, but when i receive the bill, it charge me double

    Try the 'report a problem' page to contact iTunes Support (these are user-to-user forums) : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I just bought a used XP Home Edition program that has been installed before. Will I be able to install this again on my computer or is it only a one time use software? I have the Product Key and CD.

    I just bought a used XP Home Edition software program that has been installed before. I have the Product Key and installation disc. Will I be able to install it on my own computer? Or, is this software (purchased retail) a one time install? Please advise.

    Depends on many things.
    If your system is Lion, XP can only be installed under VM.  BootCamp in Lion only accepts Windows 7.
    As to "one use only", if you are referring to OEM ...
    A reinstall can trigger the OS to "not register" because "a major component serial number or MAC (the network MAC chip) address" has changed, according to MS databases.
    But you can call MS to get the key reactivated, usually/sometimes.  It is worth a try, at least, before spending money on another Windows 7 package.  But this discussion should end *now* at "maybe" as it treads close to matters that forum Terms-of-Use would prefer we not discuss.

  • Network printer will only print one time

    the printer ( HP Laserjet CM2320 MFP) (Driver PCL 6)is networked on a print server running server 2012, the computer operating system is Win 7 fully updated, other people can print to it without issue. 
    the user can print to it one time. after the first print, you can no longer right click and chose printer preferences or printer properties. Then she needs to log out of the computer and back in to print again. if i have tried to open the printer properties,
    they will open just before the computer logs out. this is the only printer she has. 
    things i have tried are removing and re installing the printer, uninstalling the all the print drivers on the computer, using the most updated drivers on the server and the computer. i also went into Printer Properties, ports tab, unchecked Enable bidirectional
    support on both server and PC. checked after each change. also under the advanced tab i unchecked the Enable advanced printing features. both server and PC. checked after each change. when i tried to un-install the print drivers on the PC, i needed to rename
    the reg keys because they were in use, remove the drivers and rename the reg keys back to the right name. i am sure i forgot some things i have tried, but if you need any other information let me know.
    Any help would be appreciated!

    Hi,
    Regarding current situation, I suggest we check the spooler service or clear the catch:
    How to Clear and Reset the Print Spooler Queue in Vista, Windows 7, and Windows 8
    http://www.sevenforums.com/tutorials/89483-print-spooler-queue-clear-reset.html
    After that, try to use following diagnostic tool:
    Diagnose and fix printer and printing problems automatically
    http://support.microsoft.com/mats/printing_problems/   
    If the issue still persists, please upload the printer log and application log here for our research:
    Please upload them to a file sharing service like Onedrive or "Rapidshare" and put a link to them in your reply.
    Kate Li
    TechNet Community Support

  • Database Object Dependencies - only goes one level deep

    I've run the Database Object Dependencies report and it appears that the report only shows the top level dependencies and not lower level ones. Am I running this report incorrectly or is there something I'm missing.
    For example, it displays the tables and views correctly but does not show any triggers that have been created for a specific table. Additionally, I didn't see any references to database links being used.
    version: 3.1.1.00.09
    thanks
    John
    Edited by: johurj on Dec 8, 2008 2:49 PM
    Edited by: johurj on Dec 8, 2008 2:53 PM
    Edited by: johurj on Dec 8, 2008 2:54 PM

    John,
    The report shows the immediate dependencies for the anonymous blocks and similar code snippets contained within the application components. It's just like if you did this:
    create table footab (n1 number)
    create trigger footrig before insert on footab for each row begin null; end;
    create or replace procedure fooproc
    as
    begin
    for c1 in (select n1 from footab) loop
    null;
    end loop;
    end;
    SQL> select referenced_name from all_dependencies where name='FOOPROC'
    2 /
    REFERENCED_NAME
    SYS_STUB_FOR_PURITY_ANALYSIS
    STANDARD
    FOOTAB
    SQL>
    The table FOOTAB is the only "real" object that the procedure FOOPROC has a dependency on. No mention of the trigger on the table.
    Additionally, I didn't see any references to database links being used.Yes, that would be a possible improvement to the report.
    Scott

  • Data missing in PDF output generated by RDF locally only for one time.

    Hi All,
    Could any one please help me in finding the reason of the below mentioned issue.
    I have downloaded an RDF onto local machine and changed only sorting of few columns required.
    After that I had generated PDf output on local machine for first few times PDF is generated with correct output.
    Unfortunately when I again generated PDF output as final version, a few columns are missed in displaying in the PDF output. again I ran the RDF for next time and the PDF is generated correctly.
    Now I want to know what may be the reason that for that time only PDF generated with missing data.
    FYI, Problem occured in Report Builder *9.0.4.0.33*
    This reason is really urgent and needfull for me.
    Your help is very much appreciated.
    Many Thanks in Advance.
    Regards,
    RRM

    Hello,
    What is the report orientation PORTRAIT/LANDSCAPE? What happens if you set the SYSTEM PARAMETER ORIENTATION to PORTRAIT/LANDSCAPE upon your report output and then generate again. While saving as PDF also see the page orientation.
    -Ammad

  • SetSelectedValue() on Radio Button only executes one time in Design Studio 1.2

    Using Design Studio 1.2 - I've placed an image on our dashboard that acts as refresh button.  When the image is clicked, two radio buttons on the screen should get reset to their default values.  The code only executes properly the first time, and any subsequent try does nothing.  Does anyone know why this might be happening?
    Step 1. Place the image on the screen
    Step 2. Add code to On Click event to change values of two Radio Buttons: RB_ORG_LEVEL and RB_YEAR.
    Step 3. Change values in both Radio Buttons to any value but their default value. 
    Step 4. Click the refresh image the first time, and both values get set back to their default values ("Entire Org" and "Current Year").
    Step 5. Click the refresh image the second time, and even though the code programmatically sets them to their default values ("Entire Org" and "Current Year"), the change doesn't occur. 

    Could you try this again with the latest Design Studio 1.2 SP2 ?  See http://service.sap.com/sap/support/notes/1962767

  • Animated gif only plays one time??

    An animated gif created in Photoshop and exported with 'loop forever' output only loops once on my home page. I have not resized, cropped it or added any effects but as it plays once Muse can't have rasterized it.
    I am using adobe muse cc 7.1 build 329, OSX 10.9
    the lilly in the top left gif image should animate continuously. - jimmymcgilchrist.comhttp://www.jimmymcgilchrist.com/index.html
    any assistance appreciated.
    Jimmy

    Hi DrStrik9,
    Thanks, I just tried it directly in the browser and it works fine. When previewing in the finder window on my desktop it works fine as well.
    I have had animated gifs working fine previously on the same muse site as a browser fill and as buttons.
    Nothing has changed about the way I make the animation but these are some variables that have changed:
    - update Operating System from OSX 10.8 to 10.9
    - udate to current muse version
    - switch from Godaddy - wordpress hosting to Adobe Business Catalyst
    - upload via 'publish' within muse rather than via 'upload to FTP host' within muse.
    Thanks,
    Jimmy

  • HT1661 Imac 2009 imac 2013 target mode did only work one time

    My 2009 imac has a broken graphics card. The imac stats up as usual and is ok. To copy some files to my hew 2013 imac id use an thunderbolt to firewire adaptor.
    At the first attemp to start up in target mode, is did work very well. The target disk showed up at the new mac and all files were available.
    After this succesfull target mode connection, I have problems to get it n a target mode again. After the first time, I cant manage to get it in target mode for the second time. Or I can start up in target mode (without display hard to check) but it don't show up on the new imac.
    What am I doing wrong?
    Leon

    If by DU you mean the Apple Disk Utility program, it is located in Applications/Utilities.
    Are you saying you can't run that version?
    As far as restarting in Target Disk mode, have you tried to change your Startup Disk in the control panel?
    It sounds like your iBook is having problems reading the DVD. An external firewire DVD drive can be attached to either machine. External Firewire/USB cases can be gotten for under $30 and new Sony DL DVD burners can be gotten for under $30.
    I built my own external drive that works on all of my Mac's and PC's.

  • Button set to infinite attempts only works one time

    I have a project that includes branching into five topic areas. There is a "menu" type page with five buttons on it. Each button is set to allow infinite attempts. Each button is set to "jump to" different slides within the project. When the user finishes reviewing that branch, they return to this menu page and can either select another button to jump to another slide, or they should be able to go back in and review the same area again. However, the button they just clicked will no longer work.
    In my troubleshooting, I have tried using Click Box and Transparent button types. I have tried both with and without the "Include in quiz" setting. I have tried changing "infinite" attempts to "100" attempts. Nothing seems to allow the user to execute the action on that button a second time. Any ideas?

    Hi,
    I tried to simulate this with a small project which seems to be working fine for me.I am attaching the project using acrobat.com.
    https://acrobat.com/#d=i1LzcvsM6gSszRWRCv5XDg
    Let me know if this is what you are trying to do.
    Sikandar

  • Charged a total of three times for App. I only purchased one time!!!

    I was charged twice for an item i didnt purchase but once. One of the orders went threw and the other one didnt but it says i owe for both. I never wanted to purchase but one. In the beginning it told me the order didnt go threw which is why I even pressed purchase again. I recievced the minutes the after second purchase but it says i owe for both and now i cant download free apps   it say the payment was declined for two other seperate orders for the exact same thing that i did not purchase. WHAT DO I DO!!!!

    https://idmsa.apple.com/IDMSWebAuth/login.html?appIdKey=6f59402f11d3e2234be5b88b f1c96e1e453a875aec205272add55157582a9f61&language=US-EN

  • My iphone4s restarts suddenly,but only tried one time

    my iphone 4s restarts suddenly,but only tried once.Is it because i updated my device three days ago?

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 15 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Issue not resolved
    My issue is still not resolved. What do I do next?
    Contact Apple Support.
    -Griff W.

  • Can I use Signal Express for multiple customers for only the one time $699?

    How do I go about distributing Signal Expresss applications to multiple customers?

    Hi Nutter,
    Unlike LabVIEW, Signal Express doesn’t have any file distribution capabilities.  If your application uses only basic features, you could install the free LE version of Signal Express on as many computers as necessary.  If you need the full capabilities of Signal Express, however, you would need to purchase a license for each customer.
    An alternative to paying for Signal Express for each customer deployment would be to generate LabVIEW code from the Signal Express project and create an executable.  This process is described in the Knowledge Base articles Generate LabVIEW VIs from Signal Express and Deploying VIs generated in Signal Express.  Note that this method requires that you have LabVIEW installed on your development computer with Application Builder capabilities.
    Regards,
    Message Edited by Luke G on 05-02-2007 12:23 PM
    Luke
    Applications Engineer
    National Instruments

  • Report generation only one time successfull

    Hi @all,
    we are facing the problem that the report generation process is only working one time successfully, the next time it ends with error. After restarting the service on the WWI server the next generation is successfull, but the second one will be "Error" again.
    Does anybody faced this issue before and can provide a solution?
    Thank you in advance for all contributions!!!
    Best regards,
    Christoph
    PS: in the meantime we created the respective service again on the server - no result, still only one successfull run at a time.
    Edited by: Christoph Giehl on Sep 6, 2011 5:18 PM

    Hello Christoph
    we never have had similar problems. May be these hints might help:
    a.) check wich generation server is used during the generation and if any of the potential servers "stop" (WWI process does not proceed etc as explained by you).
    b.) check if "report from template" works (assuming that use use the "old" fashioned client WWI version) => if this works than there might be a problem with SAP <=> connection (RFC) ...
    c.) check please if only this WWI report (more precisely combination of generation variant and language) gives result to the "crash" of WWI process and no other one => in this case you should check WWI template
    Reading you explanation I assume:
    1.) there was no change in SAP set up
    2.) there was no change in WWI set up (number of servers, WWI version etc.)
    and we are talking (??) about a new generation variant/language combination which has never been used before (?).
    With best regards
    C.B.
    PS: Check Marketplace. You will fond there an OSS note called "WWI Cookbook" and furthere related OSS notes poviding FAQs etc. regarding WWI topics.
    Edited by: Christoph Bergemann on Sep 6, 2011 9:00 PM

Maybe you are looking for

  • Spry Menu Bar renders wrong in IE

    My horizontal spry menu bar looks great in all browsers but IE.  Even though I have fixed widths on the submenus, it creates a huge container box that takes up the width of the screen in IE.  PLEASE -- I'm desperate!! www.ohemaalxi.com Here is the sp

  • ICal day view header date error

    I'm having an issue with the date header in the iCal day view.  No matter what day I select the calendar displays Saturday, November 27th, 2010 in the header (at the right top corner of the screen).  The date near the top of the agenda on the left si

  • Importing vinyl into my iBook

    Can someone give me an efficient method of converting my records to digital? I have an iBook with no audio in, but I do have an MAudio audio interface (USB)which I believe I can use. Any advice is appreciated. Chuck

  • Why won't iTunes recognize my iPod, ever since I got an external hard drive

    I got an external drive and store my library there on the external drive. Ever since, iTunes will not recognize my iPod so I cannot update anything. Any suggestions?? Do I need to store the music on my hard drive and only use the external drive for b

  • Systemd service starts command twice

    Hello, i have a problem with systemd service for inotifywait check my mails. service: [Unit] Description=Start mailnotify as a daemon Requires=offlineimap.service After=offlineimap.service [Service] User=matija ExecStart=/home/matija/bin/mailnotify.s