internal OciStatementHandle GetOutRefCursor (OracleCommand cmd)
{
OciStatementHandle cursorStatement = new OciStatementHandle (cmd.Connection.ServiceContext, cursor);
cursorStatement.ErrorHandle = cmd.ErrorHandle;
cursorStatement.Command = cmd;
cursorStatement.SetupRefCursorResult (cmd.Connection);
cursorStatement.Service = cmd.Connection.ServiceContext;
cursor = IntPtr.Zero;
return cursorStatement;
}