You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with connection.cursor() as cursor:
print(sql_cmd)
st = time.time()
cursor.execute(sql_cmd)
rows = cursor.fetchall()
print(f' Read from DB takes: {time.time() - st:.1f} secs, of len={len(rows)}')
df= pd.read_sql(sql_cmd, engine)
Does your application call init_oracle_client()?
No
This tells us whether you are using the python-oracledb Thin or Thick mode.
Thin mode.
Include a runnable Python script that shows the problem.
The text was updated successfully, but these errors were encountered:
Thank you for using python-oracledb.
See https://www.oracle.com/corporate/security-practices/assurance/vulnerability/reporting.html for how to report security issues
Please answer these questions so we can help you.
Use Markdown syntax, see https://docs.github.com/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
-->
Oracledb 3.1.1
Give your database version.
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.25.0.0.0
Also run Python and show the output of:
And:
platform.platform: Windows-10-10.0.19045-SP0
sys.maxsize > 2**32: True
platform.python_version: 3.12.9
oracledb.version: 3.1.1
Is it an error or a hang or a crash? No
What error(s) or behavior you are seeing?
I get this error when I use SQLAlchemy and pandas to read data from an orcale sql db and the same result when I use oracledb to read data directly.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 9: invalid continuation byte
Cut and paste text showing the command you ran. No screenshots.
Use a gist for long screen output and logs: see https://gist.github.com/
with connection.cursor() as cursor:
print(sql_cmd)
st = time.time()
cursor.execute(sql_cmd)
rows = cursor.fetchall()
print(f' Read from DB takes: {time.time() - st:.1f} secs, of len={len(rows)}')
df= pd.read_sql(sql_cmd, engine)
No
This tells us whether you are using the python-oracledb Thin or Thick mode.
Thin mode.
The text was updated successfully, but these errors were encountered: