在影刀连接数据库时报错
回答
收藏

在影刀连接数据库时报错

D
Dyuqian
2023-09-20 18:19·浏览量:261
D
Dyuqian
发布于 2023-09-20 18:19261浏览

DPI-1047: Cannot locate a 32-bit Oracle Client library: "C:\app\13810\product\12.1.0\dbhome_1\bin\oci.dll is not the correct architecture". See https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html for help

Traceback (most recent call last):

 File "C:\Program Files (x86)\ShadowBot\shadowbot-5.13.33\python\lib\runpy.py", line 193, in _run_module_as_main

   "__main__", mod_spec)

 File "C:\Program Files (x86)\ShadowBot\shadowbot-5.13.33\python\lib\runpy.py", line 85, in _run_code

   exec(code, run_globals)

 File "C:\Program Files (x86)\ShadowBot\shadowbot-5.13.33\python\lib\site-packages\xbot_interpreter.py", line 94, in <module>

   main()

 File "C:\Program Files (x86)\ShadowBot\shadowbot-5.13.33\python\lib\site-packages\xbot_interpreter.py", line 53, in main

   try:

 File "C:\Users\13810\AppData\Local\ShadowBot\users\120779934125543425\apps\73d9c635-57cd-4d38-9e28-3df328e3b0ed\xbot_robot\process3.py", line 21, in main

   ], _block=("子流程3", 2, "执行 SQL 语句"))

 File "<string>", line 89, in wrapper

 File "<string>", line 84, in wrapper

 File "<string>", line 82, in run

 File "C:\Users\13810\AppData\Local\ShadowBot\users\120779934125543425\apps\73d9c635-57cd-4d38-9e28-3df328e3b0ed\xbot_extensions\activity_759a3f99\process1.py", line 56, in main

   }, _block=("执行 SQL 语句", 20, "调用模块"))

 File "<string>", line 89, in wrapper

 File "<string>", line 84, in wrapper

 File "<string>", line 37, in invoke_module

 File "C:\Users\13810\AppData\Local\ShadowBot\users\120779934125543425\apps\73d9c635-57cd-4d38-9e28-3df328e3b0ed\xbot_extensions\activity_759a3f99\utils.py", line 67, in execute_sql

   query_result = Oracle_functions.excute_sql(host, port, username, password, database_name, sql_sentence)

 File "C:\Users\13810\AppData\Local\ShadowBot\users\120779934125543425\apps\73d9c635-57cd-4d38-9e28-3df328e3b0ed\xbot_extensions\activity_759a3f99\Oracle_functions.py", line 88, in excute_sql

   connection = cx_Oracle.connect(user=user, password=password, dsn=host + ":" + str(port) + "/" + db, encoding="UTF-8")

cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 32-bit Oracle Client library: "C:\app\13810\product\12.1.0\dbhome_1\bin\oci.dll is not the correct architecture". See https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html for help


收藏
全部回答1
最新
发布回答
回答