In sid guess module SERVICE_NAME instead of SID is used in DSN.
It is correct to use SID for it:
link += "(CONNECT_DATA=(SID=%s)))"
By the way the is special function for create DSN in cx_Oracle called cx_Oracle.makedsn (see patch below).
Log in to post a comment.