Call oracle stored procedure with cursor output parameter from python script
问题 I am trying to call a oracle stored procedure with 2 in and 1 out parameter from python script. The problem I am having is passing a cursor out-parameter. The Oracle stored procedure is essentially: PROCEDURE ci_lac_state (LAC_ID_IN IN VARCHAR2, CI_ID_IN IN VARCHAR2 DEFAULT NULL, CGI_ID OUT SYS_REFCURSOR) AS BEGIN OPEN cgi_id FOR ... END; The python code calling to the database is: #! /usr/bin/python import cx_Oracle lac='11508' ci='9312' try: my_connection=cx_Oracle.Connection('login/passwd