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 🙂
In the end, it was a problem on the database side – incompatibility caused by registering CQN entries using the 11.2.0.1 Client on a 11.2.0.3 Server.