Sep-20-2019, 07:40 AM
Make a seperate file with the query. Let´s say: file.sql. And in the code you could use that sql file.
sqlplus = Popen(["sqlplus", "-S", "/", "as", "sysdba", "@file.sql"], stdout=PIPE, stdin=PIPE)I guess that should work.