cx_Oracle with Windows authentication

前端 未结 1 1540
醉话见心
醉话见心 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)
提交回复
热议问题