I am working with Oracle and ODP.Net and registering some continuous query notifications.
Everything worked fine untile the database was upgraded to 11.2.0.3 - now I see that my queries are registered and deregistered after a few seconds. The code looks like this:
OracleCommand cmd = new OracleCommand();
cmd.Connection = getOpenConnection();
cmd.CommandText = _sqlStatement;
_odep = new OracleDependency(cmd, false, 0, false);
_odep.OnChange += new OnChangeEventHandler(_odep_OnChange);
OracleDB.bindVars(ref cmd, arguments);
cmd.Notification.IsNotifiedOnce = false;
cmd.ExecuteNonQuery();
Is there a log for CQN registration somewhere on the database?
Edit: getOpenConnection() is just a function that returns an open connection, while OracleDB.bindVars just binds the existing bind variables to the command. Emphasis on the fact that everything worked fine before the DB update :)
SELECT * FROM DBA_CHANGE_NOTIFICATION_REGS(after you registered your notification)http://www.oracle.com/technetwork/developer-tools/visual-studio/downloads/index.html). Do you even get any notifications? Maybe there was some change regarding a firewall (on the machine that runs the client - because the server connects to the client) or something.