cx_Oracle with Windows authentication

前端 未结 1 1537
醉话见心
醉话见心 2021-01-28 18:25

I would like to make cx_Oracle work with Windows OS authentication but fail miserably:

  1. I know that with pyodbc you can make it work using trusted_connecti

相关标签:
1条回答
  • 2021-01-28 18:49

    For external authentication with cx_Oracle, the code to use is as simple as this:

    import cx_Oracle
    
    conn = cx_Oracle.connect(dsn = "the_tns_entry_name")
    
    0 讨论(0)
提交回复
热议问题