Dinakar Ullas
Dinakar Ullas

Reputation: 325

Python cx_oracle/oracledb log bad records

After executing,

cursor.executemany("insert into table(col1, col2, col3) values (:1, :2, :3"), data, batcherrors = True)

connection.commit()

for errorobj in cursor.getbatcherrors():

I want to load the bad records from the list data as a pipe delimited string into a table with three columns run_date, data_string, error.

is this possible?

Upvotes: 0

Views: 33

Answers (0)

Related Questions