question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Moving a dataframe to Oracle with cx_oracle

See original GitHub issue

I am getting an error when I try and move a dataframe to oracle: do_executemany cursor.executemany(statement, parameters) TypeError: expecting number

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zzzeekcommented, Feb 19, 2021

No problem! Provide a working test case, stack trace, and turn on echo=‘debug’ on your create_engine() and provide the SQL log output, hit reopen and we can get you on your way.

1reaction
zzzeekcommented, Oct 30, 2019

hi there -

you’d want to look at the SQL being emitted using echo=True with create_engine and also at the stack trace which would indicate what function is receiving the wrong kind of value. these things can be shared here if you’d like help interpreting them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to write pandas dataframe to oracle database using ...
I tried, then it shows DatabaseError: (cx_Oracle.DatabaseError) ORA-01950: no privileges on tablespace 'xxx_DATA' [SQL: 'INSERT INTO 'TEST' (" ...
Read more >
Insert pandas dataframe to Oracle database using cx_Oracle
Insert pandas dataframe to Oracle database using cx_Oracle - insert2DB.py.
Read more >
SQL Execution — cx_Oracle 8.3.0 documentation
Executing SQL statements is the primary way in which a Python application communicates with Oracle Database. Statements are executed using ...
Read more >
Import a CSV file into an Oracle database with Python
Python 3.8.3, Oracle 11.2.0.2.0, cx_Oracle · Prepare or identify your data · Connect to Oracle database and create a table · Import the...
Read more >
Python and Oracle Database Tutorial: Scripting for the Future
Review the code contained in connect_pool.py : import cx_Oracle import threading import db_config pool = cx_Oracle.SessionPool(db_config.user, db_config.pw, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found