Update Notification doesn't work on Oracle11g

Hi
I'm using ODP.NET 11.1.0.6.0 which is accompanied with Oracle11gR1.
When I use OracleDependency to get update notification,
There are 2 problems:
1. I can't receive update notification, when I change data.
2.Port property of OracleDependency doesn't affect listening port.
I checked by netstat.
Are there any problem in the following code.
.NET Client is:
Windows XP SP2
Oracle 11gR1
DB Server is:
Windows XP SP2
Oracle 11gR1
Both are on Vistual Machine(VMWare Server)
and Japanese environment.
I add CHANGE NOTIFICATION rights to user,
And db's dbchange_notification_enable hidden parameter is true.
CreateTable.sql
CREATE TABLE UN_TEST (
     ID NUMBER(10,0) NOT NULL,
     TEXT1 NVARCHAR2(20) NOT NULL,
     TEXT2 NVARCHAR2(250) NULL
,CONSTRAINT PK_CUSTOMERS PRIMARY KEY (ID)
console program is
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Oracle.DataAccess.Client;
using System.Threading;
namespace ODPUpdateNotify
class Program
const String ConnectionString = "User Id=test;Password=test;Data Source=ora11g";
static void Main(string[] args)
// Port setting doesn't affect all.
// this settings ignored and listens random port.
OracleDependency.Port = 10005;
TestNotify();
Console.ReadLine();
public static void TestNotify()
// DELETE and init data
ExecuteCommand("DELETE FROM UN_TEST");
ExecuteCommand("INSERT INTO UN_TEST (ID,TEXT1) VALUES(1, 'N1')");
OracleConnection conn = new OracleConnection();
OracleDependency oraDep = null;
conn.ConnectionString = ConnectionString;
conn.Open();
try
using (OracleCommand oraCmd = conn.CreateCommand())
oraCmd.CommandText = "SELECT ID,TEXT1,TEXT2 FROM UN_TEST";
oraDep = new OracleDependency(oraCmd, true, 60 * 1000, false);
oraDep.OnChange += new OnChangeEventHandler(oraDep_OnChange1);
using (OracleDataReader reader = oraCmd.ExecuteReader())
while (reader.Read())
Console.WriteLine(reader["ID"] + ":" + reader["TEXT1"]);
finally
conn.Close();
Changed = false;
// UPDATE
ExecuteCommand("UPDATE UN_TEST SET TEXT1='N2' WHERE ID=1");
// wait 120 seconds
for (int i = 0; i < 120; i++)
if (Changed) break;
Thread.Sleep(1000);
Console.Write(oraDep.HasChanges ? "*" : ".");
private static volatile bool Changed = false;
static void oraDep_OnChange1(object sender, OracleNotificationEventArgs args)
Console.WriteLine();
Console.WriteLine("---[" + DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss.fff") + "]---");
Console.WriteLine("Info :" + args.Info);
Console.WriteLine("Type :" + args.Type);
Console.WriteLine("Source:" + args.Source);
Console.WriteLine("ResourceNames:");
if (args.ResourceNames != null)
foreach (String s in args.ResourceNames)
Console.WriteLine(s);
Console.WriteLine();
static int ExecuteCommand(String sql, params Object[] args)
int ret;
OracleConnection conn = new OracleConnection();
conn.ConnectionString = ConnectionString;
conn.Open();
try
using (OracleTransaction oraTx = conn.BeginTransaction())
using (OracleCommand oraCmd = conn.CreateCommand())
String s = String.Format(sql, args);
oraCmd.CommandText = s;
ret = oraCmd.ExecuteNonQuery();
Console.WriteLine(DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss.fff") + " " + ret + " rows updated : " + s);
oraTx.Commit();
finally
conn.Close();
return ret;
}

Nobody had this trouble...?
I even tried DFU mode - to no luck! Gutted about this, because otherwise its perfect... but I am beginning to suspect something is really wrong with it now.
Well, there is good news - I called Apple, spoke to a fantastic chap called DJ and he's sorting out a replacement for me. I can't afford to be without my iPhone, so paid the fee to get a replacement sent out first. I guess these things happen, and better to sort it out in warranty, than out of.
But seriously, nobody experienced this at all??

Similar Messages

  • Push notification doesn't work

    I have ipad 2 iOS 5.0.1 ,, notification of facebook , twitter and some apps doesn't work at all
    And push notification doesn't work of all apps
    Help plzz

    Be sure that Push Notifications are on in Settings. If they are try is a reboot of your iPad. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the iPad restart. See if that fixes your problem.
    I can't see wy it might help but perhaps if you update your iOS to 5.1 the problem will correct itself.

  • With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    This isn't an issue. Notice the screen prior to the one that shows usage has an iCloud section and a Manage Storage button. For this button to activate ios needs to download a few kb from icloud. Switching back to this screen forces ios to download those few kb.

  • Push notifications doesn't work for apps like (fb viber , whatsapp etc ) iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    Sorry, I've forgotten the actions done.
    I've restarted the iphone, and I've recovered a previous backup.
    Thanks.

  • Ts update progam doesn''t work.

    my ts update progam doesn''t work. it seems be be missing. The messsage I get is that the program doesn't exist after I get an alert saying the TS Update isn't working.  Where do i donwload the program? Its an HP TouchSmart 600, windows 7 64bit

    Per my previous note, the model number is HP TouchSmart 600 and I'm on Windows 7.   This is NOT an upgrade scenario.
    When I purchased and began using the machine, it went through a rountine software update check just after start up.   For some reason, now when I start up the machine, it attempts up look for softward updates and then pops up a message alerting me to the fact that the TS update is not working. When I attempt to diagnose why, the message I get is that the TS update program is not there.
    So, i think that I just need to install the auto-update program again????? Not sure.

  • Push Notification doesn't work at all.

    i had my iphone 4 which bought three months ago. that time i was using ios 4.3.3. however, i found that my push notification doesn't work at all. my data plan was on 24 hours. supposing there will be notificaton for apps like facebook, twitter, intsgram, talkbox and so on. however, mine doesn't work at all. i only reallise there were msg when i open the apps. I thaught it will be my ios problem. So, i decide to upgrade to ios 5 recently. However, the problem still remain the same. i'm very confirm that i had on all the push notification. i even restore for a few times just to hope that the problem can be solved. howevr, it doesn't. i found very dissapointed and frustrated with this issue. can anyone advise??
    sometimes when my fren watsapp or talkbox me, i only realise when i lock in to the apps after a couple of hour which cause my thingy was delayed!

    I have the exact same problem you have? I can occasionally get pushnotification, but only once a day fore facebook. For twitter, I get nothing and newer got. Other programs never got any notification att all. Push notification is on both under notification center and the respective programs.I have iOS 5.0.1 on iPhone 4S.

  • I downloaded a facebook update that doesn't work on my iPhone OS. Can I get the previous version back?

    I downloaded a facebook update that doesn't work on my iPhone OS. Can I get the previous version of facebook back? I have a 3G phone that doesn't upgrade to OS 4.3 which the newest facebook update needs to run. Now I can't use facebook on my iPhone at all. Is there a place to downgrade or to download the older version of the app?

    i can't understan why i can get a facebook apps for my iphone 3g that is so "sad" i'm miss facebook all because u guys Apple have a new version of the facebook and the 3g can,t upgarde i'm vext with apple right now!.....

  • Skype notifications doesn't work!

    I get notifications for Facebook, Twitter, Gmail, games and everything else exept Skype! When somebody calls me, I need to be IN the Skype app and have it in front of me to get the call.
    I have it set on Alert so that it says "*Person* calls you, Confirm - Cancel" or something like that, and then I need to click "Confirm" or "Cancel", that worked before, but now it doesn't work!
    Can I get any help?

    I have had this problem before, with no success. I think the reason is, if you don't have good internet signal, it takes about 3-5 'rings' before it actually reaches the iOS device. Then, you only have 1-2 rings before it automatically hangs up from the other end.
    I think this is a fault within the app, not a problem with your device. I'm sure Skype are aware of this, and so they will most likely fix it within the next update. Be patient.
    Alex.

  • E-mail notification doesn't work after software upgrade

    Based on the recommendation of a sales rep; I did the software upgrade yesterday and have had nothing but problems.  All the e-mail accounts didn't work.  So I spent an hour getting my e-mails setup and guess what?
    Even though I have it setup to check every 10 minutes; it doesn't work.  I have to manually go to each account and click on the 2 arrows to check.  I used to get a flashing blue light on my phone when I had a new e-mail; now I don't.
    What's going on???????????????

    Hi, I did all you mentioned but still same error messages
    Oct 25 14:16:42 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: Using primary internal av scanner code for ClamAV-clamd
    Oct 25 14:16:42 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: Deleting db files __db.001,__db.002,__db.003,__db.004,nanny.db,snmp.db in /Library/Server/Mail/Data/scanner/amavis/db
    Oct 25 14:16:42 xxx/Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: Creating db in /Library/Server/Mail/Data/scanner/amavis/db/; BerkeleyDB 0.54, libdb 4.7
    Oct 25 14:16:43 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: initializing Mail::SpamAssassin (0)
    Oct 25 14:16:43 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: SpamAssassin debug facilities: info
    Oct 25 14:16:43 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: (!!)TROUBLE in pre_loop_hook: config: no rules were found!  Do you need to run 'sa-update'?
    Suicide () TROUBLE in pre_loop_hook: config: no rules were found!  Do you need to run 'sa-update'?
    I removed all spam filters and mail works without, which is not so good but seems to be the only way at the moment.
    Any other idea or should I just reset the whole installation?
    Thanks for your feedback.

  • Update process doesn't work

    Hello all,
    I created the following PLSQL Trigger but it doesn't work as it should.
    If there is a change in the colomn "stunden" in table cn_pl_std_peplanung, the trigger should write the attributes (pl_id, l_art_id, pe_id, idee_id, abt_id, version_id) from cn_pl_std_peplanung into the table cn_pl_aenderungen.
    The problem is that this trigger doesn't just write the row where attribute "stunden" was changed into cn_pl_aenderungen, it writes all rows into cn_pl_aenderungen where the attributes (pl_id, l_art_id, pe_id, idee_id, abt_id, version_id) are matched. I just need the row where attribute "stunden" was changed. cn_pl_aenderungen is a table to log the changes made on cn_pl_peplanung.
    I hope you understood the problem... :-)
    create or replace trigger "CN_PL_STD_PEPLANUNG_T1"
    AFTER
    insert or update on "CN_PL_STD_PEPLANUNG"
    for each row
    DECLARE
    pragma autonomous_transaction;
    cursor c_peplanung(in_stunden number)
       is select pl_id, l_art_id, pe_id, idee_id, abt_id, version_id, stunden FROM cn_pl_std_peplanung
       WHERE stunden = in_stunden;
    rec_plan c_peplanung%rowtype;
    BEGIN
    OPEN c_peplanung (:old.stunden);
    LOOP
    FETCH c_peplanung INTO rec_plan;
    exit when c_peplanung%NOTFOUND OR c_peplanung%NOTFOUNd is Null;
    IF rec_plan.stunden != :new.stunden THEN
    INSERT INTO CN_PL_AENDERUNGEN (l_art_id, pe_id, idee_id, version_id, benutzer, datum)
    VALUES
    (rec_plan.l_art_id, rec_plan.pe_id, rec_plan.idee_id, rec_plan.version_id, v('APP_USER'), sysdate);
    COMMIT;
    END IF;
    END LOOP;
    CLOSE c_peplanung;
    END;

    All you need is just this
    CREATE OR REPLACE TRIGGER CN_PL_STD_PEPLANUNG_T1 AFTER INSERT OR UPDATE ON CN_PL_STD_PEPLANUNG FOR EACH ROW
    BEGIN
         IF :NEW.student != :OLD.student
         THEN
              INSERT INTO CN_PL_AENDERUNGEN (l_art_id, pe_id, idee_id, version_id, benutzer, datum)
                   VALUES (:NEW.l_art_id, :NEW.pe_id, :NEW.idee_id, :NEW.version_id, v('APP_USER'), sysdate);
         END IF;
    END;Don't use ATONOMOUS_TRANSACTION. You dont want to log if nothing happens to the Main table right? Think what happens if the main transaction rolls back.
    Note: Code not tested.

  • The Menu Start and Notification doesn't work and other modern apps too.

    Hi guys! I have a big problem of my Windows 10. I can't use my Start Menu, Apps and Notifications it doesn't work. I don't know what is happened. Everthing was good and on the last time I have strange problems. (The Start menu logo looks like disactivated.)
    I want to add that the OneDrive can't work too and I can't turn on it.
    [Im sorry for mistakes. I'm still learing English :)]

    On Mon, 30 Mar 2015 19:29:37 +0000, sidkum wrote:
    I am facing the same problem. Start menu was working fine and all of sudden it wont show up anymore. I have to rely on the search bar to open apps and do other stuff.
    This forum, as per the name, is for Windows 10 Phone issues. Please repost
    your question to one of the Windows 10 for PCs/tablets forums.
    Paul Adare - FIM CM MVP
    Niklaus Wirth has lamented that, whereas Europeans pronounce his name
    correctly, Americans invariably mangle it into "Nick-les Worth". Which is
    to say that Europeans call him by name, but Americans call him by value.

  • 1st generation; hasn't been updated; simply doesn't work.

    This isn't a 3.0 issue, btw. Got the iPod from a friend. I press the home button, sometimes either the low battery icon will appear, sometimes the Apple logo. Same thing with the menu button. I try to reset it, that doesn't work either. Doesn't even register on my computer, won't charge on the A/C adapter. I have no clue what is wrong with this thing.
    Quick update--as of tonight, the iPod is not responding to anything at all. Completely blank screen.
    Message was edited by: DxS-Phreak

    Reset: Hold the Sleep/Wake and Home buttons and don’t let go until the screen goes dark and the Apple logo appears (no data will be lost)

  • Updater CS5 doesn't work

    the updater in CS5 doesn't work,
    and the most annoying thing is that the link for help is going to a non-existing page !!
    so the updater sucks!

    update manually,
    pre cc updates:  http://www.adobe.com/downloads/updates/
    cc updates:  http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html
    cc 2104 updates:  http://prodesigntools.com/adobe-cc-2014-updates-links-windows.html

  • Updated software doesn't work

    Sooo. I updated software on ipad, now the app buttons just shake, nothing works.  I restarted a few times.   Any thughts? Thanks.

    If it's happening on all the apps that you've downloaded from the App Store, but not the Apple built-in ones, then try downloading any free app from the store (as that appears to reset something) and then re-try them - the free app can then be deleted.
    If it's happening on all apps including Apple's then try closing them all completely and see if they work when you re-open them : from the home screen (i.e.not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Satelitte A60-202 after bad BIOS update PC doesn't work

    Hi
    After one very bad update of my BIOS, my PC doesn't work and doesn't switch on.
    What to do now ?
    It's Toshiba Satellite A60-202 with 512Mb memory and 40Gb of HD.
    type PSA60E-OLP06TFR model SA60-202
    Thanks
    Yves

    HI Yves,
    Unfortunately, if the BIOS update procedure did not work (or complete correctly), then it is likely that the existing BIOS in the CMOS chip had been corrupted and without this you will not be able to boot up your notebook to correct the problem.
    It will be necessary to take (or send) your notebook to an authorised Service Agent to have the BIOS reflashed.
    regards,

Maybe you are looking for

  • Pasing parameters between forms

    Hi. I need to pass two parameters to a subform and if it is posible also get one return value from it. Explanation: I constructed an simple address book (main form) where I can add telephone numbers, names, post codes / names,... I want to popup a su

  • Apple iPhone 3G Dock + Apple Composite AV Cable

    Trying to use an Apple Composite AV Cable (MB129LL/B) on a Apple iPhone 3G Dock (MB484G/A) connected to a LCD: No go (regarding video out) so far - is it only me? Has someone got this working together?

  • Report to record Ztable changes

    Hi frnds i have a requirement here that whenever a change is made in a Ztable it should be recorded and displayed along with the user name who made the change , the time , the field which was changed and also the old value and the new value .

  • Best way to Unit test Modules?

    I am working on a Project where the main app is a separate Flex project and then there are several Modules each having their own unit tests. What is the best recommended way of setting up something like this in terms of test runners? I would like to

  • Validation Error in complaint search with changed on field.

    Hi all, I have added changed on field in complaint search screen of IC agent role, while searching for a complaint using changed on field, data as last month. We are getting an error message saying "Date M+-1 is invalid". Which I am suspecting as an