title: wrong number or types of arguments in call to
body: <p>I have created a package successfully.
  But when I try to call this on my C# program
  I am getting an error:
  wrong number or types of arguments in call to LOG_STATUS</p>
  
  <p>LOG_STATUS is the name of the procedure:</p>
  
  <pre><code>CREATE OR REPLACE PACKAGE BODY ITMON.SERVERSTATUS AS  
  PROCEDURE LOG_STATUS(out_RESULT OUT sys_refcursor)   
  IS 
  BEGIN
  OPEN out_RESULT FOR
      SELECT HOSTNAME, USERS, PS_NAME 
      FROM PS_COLLECT
      WHERE NOT EXISTS
  ( 
          SELECT HOSTNAME, USERS, PS_NAME
          FROM PS_MASTER
          WHERE PS_MASTER.HOSTNAME = PS_COLLECT.HOSTNAME 
          AND PS_MASTER.USERS = PS_COLLECT.USERS 
          AND PS_MASTER.PS_NAME = PS_COLLECT.PS_NAME
      );
   END LOG_STATUS;  
  END;
  </code></pre>
  
  <p>Here is my C# Code:</p>
  
  <pre><code>            OracleCommand OCom = new OracleCommand("SERVERSTATUS.LOG_STATUS", oc);
              OCom.CommandType = CommandType.StoredProcedure;
  
              OCom.Parameters.Add("out_RESULT", OracleType.VarChar, 30000).Direction = ParameterDirection.Output;
  
              OCom.Parameters[0].Value = sid;
  
              OracleDataAdapter _daGrid1 = new OracleDataAdapter(OCom);
  
              _daGrid1.Fill(_dsGrid);
  </code></pre>