Skip to Main Content

Oracle Database Discussions

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!

cx_Oracle connect using tnsnames.ora for dedicated server connection

User_A5K3VDec 18 2017 — edited Dec 18 2017

Hello,

I am trying to connect to a oracle database through cx_Oracle python module. I can successfully connect using service name as below,

cx_Oracle.connect("username", "password", "<hostname/ip>/<servicename>")

Since oracle service is connecting through shared server. I would need this to connected to a dedicated server. i am trying to achieve it by adding <TNS_ALIAS> entry on client side's tnsname.ora file but couldn't. Can anyone help me how do i connect to oracle database's dedicated server through cx_oracle module.

Thanks,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2018
Added on Dec 18 2017
3 comments
1,217 views