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
Database Developer Tools
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Nov 12, 2009 8:39 AM by
Nov 3, 2009 1: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
This content has been marked as final.
Show 1 reply
Nov 12, 2009 8:39 AM
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