首页 > 解决方案 > 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 直接连接到数据库,所以我认为连接到数据库没有任何错误。任何帮助深表感谢。谢谢

标签: pythoncx-oracle

解决方案


推荐阅读