Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding New Entity in Oracle database
Message
From
27/01/2009 20:01:55
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
27/01/2009 18:03:02
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Database:
Oracle
Application:
Desktop
Miscellaneous
Thread ID:
01377558
Message ID:
01377574
Views:
17
Vidya,

>Could you please help me with this issue?
>
>I have a problem while inserting a new record in oracle database, but it works fine while inserting the same in SQL database.
>
>I have used business layer generator wizard to create Business objects, Entities, Dataaccess and Rules classes for the table named Client_Master
>
>But while trying to insert a record
>
>When I call
>
>ClientMasterEntity ODEntity = clientMaster.NewEntity();
>
>Which in turn calls the method CreateSelectCommand()
>
>public override System.Data.IDbCommand CreateSelectCommand()
>
> {
>
> System.Data.OracleClient.OracleCommand SelectCommand = (System.Data.OracleClient.OracleCommand)this.CreateCommand
> ("WORLDKING.MMNET_CLIENT_MASTER_GEN.CLIENT_MASTERSelect");
>
> SelectCommand.CommandType = System.Data.CommandType.StoredProcedure;
>
> SelectCommand.Parameters.AddRange(new System.Data.OracleClient.OracleParameter[] {
>
> new System.Data.OracleClient.OracleParameter("P_RC", System.Data.OracleClient.OracleType.Cursor, 0,
> System.Data.ParameterDirection.Output, true, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null)});
>
> return SelectCommand;
>
> }
>
>And then calls CreateDataAdapter()
>
>public override System.Data.IDataAdapter CreateDataAdapter()
>{
> return this.DataAdapter;
> }
>
>
>Which raises an exception
>ORA-06550: line 1, column 7:
>PLS-00306: wrong number or types of arguments in call to 'CLIENT_MASTERSELECT'
>ORA-06550: line 1, column 7:
>PL/SQL: Statement ignored
>
>
>
>The business layer generator created the SQL as follows for CLIENT_MASTERSelect Procedure
>
>PROCEDURE CLIENT_MASTERSelect
>(
>
> P_RC OUT SYS_REFCURSOR
>
>)
>
>IS
>
>BEGIN
>
> OPEN P_RC FOR
>
> SELECT NAME , SHORT_NAME
> FROM CLIENT_MASTER ;
>
>END CLIENT_MASTERSelect;
>
>
>
>Please let me know, if I am missing something here?
>
>Thanks & Kind Regards,
>
>Vidya

I responded to your message in the other category before I realized you found this area OK. Is it possible that you could post the full Stack Trace of the error?
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform