I\'m a new oracle learner. I\'m trying to write a pandas dataframe into an oracle table. After I have made research online, I found the code itself is very simple, but I don\'t
I've seen similar questions on SO - it happens when you try to write to Oracle DB using connection object created by cx_Oracle
.
Try to create connection using SQL Alchemy:
import cx_Oracle
from sqlalchemy import types, create_engine
conn = create_engine('oracle+cx_oracle://scott:tiger@host:1521/?service_name=hr')
df.to_sql('TEST', conn, if_exists='replace')