Hi,
I'm fighting with subscription (DCN);
I'm trying to write a wrapper with Go, but with my 11.2.0.2.0 db even the example does not work:
gthomas@waterhouse:~/src/github.com/tgulacsi/gocilib/tmp$ gcc -o subs -locilib subs.c && ./subs XE tgulacsi tgulacsi
=> Initializing OCILIB in event mode...
=> Connecting to tgulacsi@XE...
=> Creating statement...
=> Creating tables...
=> Registering subscription...
=> Adding queries to be notified...
=> Executing some DDL operation...
=> Executing some DML operation...
=> Droping tables...
=> Disconnecting from DB...
=> Stopping the remote database...
** Error - ORA-12154: TNS:could not resolve the connect identifier specified
=> Starting the remote database...
** Error - ORA-12154: TNS:could not resolve the connect identifier specified
=> Unregistering subscription...
** Error - ORA-29970: Specified registration id does not exist
=> Cleaning up OCILIB resources...
=> Done...
Meanwhile user_change_notification_regs is empty!
Thanks,
Tamás Gulácsi
I've created an account, if it helps.
Hi,
Did you specify a specific port ? DO you have a firewall?
Regards,
Vincent
Both (Oracle-XE and the test binary) are running on my laptop, without firewall.
The only modification from the example in the documentation is the
non-fixed login.
Thanks,
Tamás Gulácsi
2014-03-31 19:42 GMT+02:00 Vincent Rogier vince_del_paris@users.sf.net:
Related
Bugs: #28
Hi,
I am testing same examples and have same problem. Do you found solution, please let me know. Thanks
Nope, I don't have a firewall, and Oracle XE is running on the same laptop, as the client.
If you can show a minimal C example, that will help.
Hi,
I've been able to manage to use DCN - both with OCILIB, and with "raw" OCI: the trick is to try on a properly configure machine with proper (allowing) network.
So on my laptop it still does not work, but at work it does.