When returning result sets from Oracle to ColdFusion, you do
NOT include an OUT cfprocparam tag, as the ref cursor returned is
actually captured in the cfprocresult tag. Drop the cfprocparam.
<cfstoredproc procedure="OracleTest.sel_user"
datasource="test_ora_dsn">
<cfprocresult name="qry_sel_user">
</cfstoredproc>
Make sure that you are NOT using an Oracle Thin client
connection, as returning result sets in this manner is not
supported.
See the LiveDocs for
cfprocparam,
specifically this note:
To use reference cursors in packages or stored procedures, use
the cfprocresult tag. This causes Datadirect JDBC to put Oracle
reference cursors into a result set. (You cannot use this method
with Oracle's ThinClient JDBC drivers.)
Phil