Change Notifications error "ORA-29973: Unsupported query or operation
I am trying to uses Change Notifications with ODP.NET and get the error ORA-29973.
I am using:
VS 2010. .NET Framework 4, Windows 7 x64
ODP.NET Version ODAC112011beta
dim cnx As New OracleConnection("DATA SOURCE=ORCL;DBA PRIVILEGE=SYSDBA;USER ID=SYS;PASSWORD=xxx;")
cnx.Open()
Dim cmd As New OracleCommand("select deptno from scott.emp where deptno < 20", cnx)
OracleDependency.Port = 1200
_dep = New OracleDependency(cmd)
_dep.QueryBasedNotification = True
cmd.Notification.IsNotifiedOnce = False
cmd.ExecuteNonQuery()
I did grant Change Notification to user sys. Strangely revokint this right does not result in a different error message.
The following Oracle example throws the same exception:
http://www.oracle.com/technology/obe/hol08/dotnet/changenotification/odpnetchg_otn.htm
What am I doing wrong?