Closed Newspaperman57 closed 10 months ago
I tried this with my own database and it worked just fine. You are missing the flag oracledb.SUBSCR_QOS_QUERY
if you want to use query change notification (instead of database change notification). Can you clarify what Oracle environment you are using for both the client and the database?
Hi, sorry for the late response
I'm using instantclient-basic 12.2.0.1.0 on x86-64 to connect to "Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production" on a power8-based system.
Hmmm, that strongly suggests that this is a limitation in the database or client software you are using -- they are quite old at this point! Are you able to try with a newer client/server combination?
I don't currently have access to a newer database, no. I guess we'll use a single connection for the CQN, it's no big deal :) Thank you anyway :)
And thanks for the hint about oracledb.SUBSCR_QOS_QUERY
. I'm new to CQN and you're right, i want query-level changes :)
An error:
ORA-24911: Cannot start listener thread at specified port
When using CQN (Continous Query Notification) in connection pooling mode and setting a port in
connection.subscribe()
, i'm getting this traceback:Yes, using thick mode
The following snippet using a simple connection instead is working as expected: