Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connect to oracle db instance using service name (TNS) - cx_Oracle. How?

bluef1shorclAug 18 2017 — edited Aug 19 2017

How can I connect to remote oracle instance using service_name defined in TNSNAMES,ORA defined in local and using cx_Oracle 6.0 ? any code samples available?

I have tried the conn_str = u'username/pwd@service_name'  , got this error -

cx_Oracle.DatabaseError: DPI-1041: invalid character set id 178

This post has been answered by Anthony Tuininga-Oracle on Aug 18 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 16 2017
Added on Aug 18 2017
3 comments
8,012 views