【问题标题】:how to pass the sqlalchemyconnection string for oracle modin read_sql如何为 oracle modin read_sql 传递 sqlalchemyconnection 字符串
【发布时间】:2026-02-24 03:10:01
【问题描述】:
UserWarning: To use parallel implementation of `read_sql`, pass the sqlalchemyconnection string instead of <class 'sqlalchemy.engine.base.Engine'>.

我用这个字符串得到了这个错误

'oracle://username:password@server:1521/SID'

我也尝试使用 cx_Oracle 时出现同样的错误

我也试过直接传递 con 字符串:

OraTbl = pd.read_sql(colqry, 'oracle://username:password@{}:1521/SID'.format(server))

ORA-12170: TNS: 发生连接超时

【问题讨论】:

  • 我也试过``` oracle+cx_oracle://username:password@{}:1521/SID'.format(server)``` 没有成功

标签: oracle modin read-sql


【解决方案1】:

跟踪此问题#3400 以获得您问题的答案。

【讨论】: