python - cx_Oracle 与 kerberized db 的连接崩溃
问题描述
我正在使用 cx_Oracle 连接到远程 kerberized oracle db。
import cx_Oracle
dsn_tns = cx_Oracle.makedsn('<hostname>','<port>',service_name='<service_name>')
con = cx_Oracle.connect(dsn=dsn_tns,user="<user>")
相同的代码仅在几天前工作,但现在它崩溃并显示以下错误消息。我不知道如何重现此问题。
Windows 提示错误:
Problem signature:
Problem Event Name: APPCRASH
Application Name: python.exe
Application Version: 3.7.150.1013
Application Timestamp: 5b331a30
Fault Module Name: KERNELBASE.dll
Fault Module Version: 6.1.7601.24563
Fault Module Timestamp: 5fae08d0
Exception Code: c0000005
Exception Offset: 000000000000b87d
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: cb1c
Additional Information 2: cb1c85eb73e69a06d2e8c780e8325b32
Additional Information 3: 3935
Additional Information 4: 393568d2fdb6ac418d437663b21cf147
终端错误:
ORA-24550: signal received: Unhandled exception: Code=c0000005 Flags=0
kpedbg_dmp_stack()+387<-kpeDbgCrash()+94<-kpeDbgSignalHandler()+119<-skgesig_Win_UnhandledExceptionFilter()+167<-0000000076ECB970<-00000000770C8515<-00000000770A6798<-00000000770BB41D<-000000007708F77A<-0
0000000770BAABE<-000007FEE4856EF8<-000007FEA8FBB141<-000007FEA911A132<-000007FEA911EE1F<-000007FEA91235AC<-000007FEA904088D<-ttcdrv()+1464<-000007FEA9063C2C<-xupirtrc()+1703<-xupirtr()+194<-xupiver()+215<
-upiver()+25<-kpusrel()+1498<-OCIServerRelease()+111<-kpu8lgn()+14276
但是我可以使用 sqldeveloper 直接连接到数据库,所以我认为连接到数据库没有任何错误。任何帮助深表感谢。谢谢
解决方案
推荐阅读
- c# - 使用 HttpClient 发送大量请求的最快和最安全的方法是什么?
- mysql - 基于插入率预测 MySQL 中的主键耗尽
- java - 如何将类从另一个文件导入/加载到 jenkinsfile
- generics - Kotlin中的“双向”类型投影/方差?
- random - 如何在 C# 的层次结构中生成可预测的随机流?
- php - 获取具有相同索引标签的会话值并选择更大的 int 值
- c# - 在响应中返回对象时面临问题 Swashbuckle.Examples 中的示例
- java - 后端返回 html 但前端不重定向
- javascript - 在这个例子中如何使用 vue.js 访问嵌套的 json?
- scala - Spark - 警告 HDFSBackedStateStoreProvider:loadedMaps 中不存在版本 1 的状态