I have a simple stored procedure as such:
create or replace procedure tdate as
Which returns the following from within SQL Plus:
I want to know how to execute this stored procedure in a Python Script to return the
value it returns in SQL Plus.
Can anyone help with this.
Also do you know of any documentation with examples of how to do this?
Thanks in advance
If you need a return value and don't need just side efect you have to write a function
using Cx_Oracle your script should be something like
cur.execute("select WhateverFunctionYouNeed() from dual")
# this is the value you want