使用CX_oracle和Kerberos auth的Python Oracle连接
有没有办法使用Oracle Python驱动程序包CX_oracle并指定Kerberos身份验证?
我已经看到了使用Oracle JDBC驱动程序完成的,但没有专门使用CX_oracle。以下是我当前的连接代码:
dsn = cx_Oracle.makedsn(host="some host", port="some port", service_name="some service")
con = cx_Oracle.connect("user", "password", dsn, threaded=True)
Is there a way to use the oracle python driver package cx_Oracle and specify Kerberos authentication?
I've seen this done using oracle jdbc drivers, but not with cx_Oracle specifically. Below is my current connection code:
dsn = cx_Oracle.makedsn(host="some host", port="some port", service_name="some service")
con = cx_Oracle.connect("user", "password", dsn, threaded=True)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许这些会有所帮助:
类似的设置?
使用Oracle Client和Kerberos与Python
cx-oracle或python oracledB,带有外部auth:
https://github.com/oracle.com/oracle/oracle/python-cx_oracle/siss/ 61#issuecomment-320121457
Maybe these will help:
Similar setup?
Connect to Database using oracle client and kerberos with Python
CX-Oracle or Python OracleDB with External Auth:
https://github.com/oracle/python-cx_Oracle/issues/61#issuecomment-320121457