title: ORA-03111 error on Entity Framework
body: <p>I'm trying to execute a stored procedure in Entity Framework that receives an input (string) and an output (ref_cursor):</p>
  
  <pre><code>public virtual List&lt;UserCost&gt; GET_USER_CUSTO(string p_ANOMES)
  {
      var p_ANOMESParameter = new OracleParameter("P_ANOMES", OracleDbType.Varchar2, p_ANOMES, ParameterDirection.Input);
      var p_refCursor = new OracleParameter("USER_CUSTO", OracleDbType.RefCursor, ParameterDirection.Output);
  
      return this.Database.SqlQuery&lt;UserCost&gt;(
                          "BEGIN TIM_FUNCTIONS.GET_TIM_USER_CUSTO(:P_ANOMES, :USER_CUSTO); end;", p_ANOMESParameter, p_refCursor).ToList();
  }
  </code></pre>
  
  <p>But I keep getting this exception:</p>
  
  <blockquote>
    <p>ORA-03111: Break received on communication channel</p>
  </blockquote>
  
  <p>I read that could be a problem with DB/dll versions but I already did the same to 2 other stored procedures and everything works fine. So I guess this is not the case.</p>
  
  <p>This question was asked on the Oracle Forum with some helpful replies but no solution:
  <a href="https://community.oracle.com/thread/3967933" rel="nofollow">https://community.oracle.com/thread/3967933</a></p>