Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
Database Application Development
This discussion is archived
on Nov 12, 2009 2:39 PM by 402929
Nov 3, 2009 7:07 PM
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
I have the same question
Show 0 Likes
This content has been marked as final.
Show 1 reply
Nov 12, 2009 2:39 PM
in response to
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