I have below code for Import a file ,but on line
int recordsInserted = o_Cls_OracleConnect.CallStoredProcedure("IMP_PKG.BANKMSTIMP");
o_Cls_OracleConnect.Dispose();
it gives me below exception
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BANKMSTIMP'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
if (imp_module == "m_impbankmaster")
{
try
{
s_dsnstr = o_Cls_Utility.utl_fnGetDSNStr(SessionCheck.s_sessiondpid);
OracleConnect o_Cls_OracleConnect = new OracleConnect(s_dsnstr);
o_Cls_OracleConnect.CallStoredProcedure_PreInit();
o_Cls_OracleConnect.CallStoredProcedure_Varchar2_AddParameters("Par2", parameter2);
o_Cls_OracleConnect.CallStoredProcedure_Varchar2_AddParameters("Par3", parameter3);
o_Cls_OracleConnect.CallStoredProcedure_Varchar2_AddParameters("Par4", parameter4);
int recordsInserted = o_Cls_OracleConnect.CallStoredProcedure("IMP_PKG.BANKMSTIMP");
o_Cls_OracleConnect.Dispose();
}
catch (Exception ex)
{
throw ex;
}
}
Below is Store Procedure.
Case 8
Par2 = aArr(1)
Par3 = aArr(2)
Par4 = aArr(3)
conn.Open dsn
conn.BeginTrans
On Error GoTo ErrTrap:
SQL = " Begin " & _
" imp_pkg.BankMstImp('" & Par2 & "','" & Par3 & "','" & Par4 & "'); " & _
" End; "
conn.Execute SQL
conn.CommitTrans
Label1.Caption = "Bank Master Import - CD10 has completed."
Below is Store Procedure.
CREATE OR REPLACE PROCEDURE imp_pkg.BankMstImp(cPath VARCHAR2,cFilename VARCHAR2,cUserName VARCHAR2) AS