Shouldn't you have to set up the file like PL/SQL?
with declare, begin and end Example here: https://docs.oracle.com/cd/B13789_01/app...06_ora.htm
cx_oracle is supposed to be able to run these queries directly from the file
(looking at docs here): https://oracle.github.io/python-cx_Oracle/
with declare, begin and end Example here: https://docs.oracle.com/cd/B13789_01/app...06_ora.htm
cx_oracle is supposed to be able to run these queries directly from the file
(looking at docs here): https://oracle.github.io/python-cx_Oracle/