ORA-06550:第1行第8列:PLS-00306:参数的数量或类型错误

时间:2012-11-10 17:48:42

标签: c# oracle odac

系统:
OracleXE112 Win32
ODTwithODAC1120320 32位
Windows 7 64位
.Net Framework 4.5
Microsoft Visual Studio 2010
ADO.Net实体数据模型

我有一个Database.dll(带有模型和实体)和一个引用此dll的分离应用程序。
我调用了三个SQL程序。每个人都有一个不同的输入参数,每个都有自己的输出光标 但每个过程都会返回此错误消息:
ORA-06550:第1行第8列:PLS-00306:参数的数目或类型错误
我认为,这可能是兼容性问题。

程序声明:

    PROCEDURE P$GetList1
(
    pnID1       IN NUMBER,
    rprecordset     OUT NOCOPY cGet1curtyp
)

PROCEDURE P$GetList2
(
    pnID2       IN NUMBER,
    rprecordset     OUT NOCOPY cGet2curtyp
)

PROCEDURE P$GetList3
(
    pnID3       IN NUMBER,
    rprecordset  OUT NOCOPY cGet3curtyp
)

.Net查询:

DatabaseEntities ctx = new DatabaseEntities(connectionString);
ctx.P_GETLIST1(ID1).ToList<P_GETLIST1_Result>();
ctx.P_GETLIST2(ID2).ToList<P_GETLIST2_Result>();
ctx.P_GETLIST3(ID3).ToList<P_GETLIST3_Result>();

的app.config:

<configuration>
<connectionStrings>
  <add name="DatabaseEntities" connectionString="metadata=res://*/DatabaseModel.csdl|res://*/DatabaseModel.ssdl|res://*/DatabaseModel.msl;provider=Oracle.DataAccess.Client;provider connection string=&quot;DATA SOURCE=MyDatabase;PASSWORD=something;PERSIST SECURITY INFO=True;USER ID=SCHEMA&quot;" providerName="System.Data.EntityClient" />
</connectionStrings>
<oracle.dataaccess.client>
<settings>
  <!--Protocol.P$GetList1-->
  <add name="SCHEMA.P$GetList1.RefCursor.rprecordset" value="implicitRefCursor bindinfo='mode=Output'" />
  <add name="SCHEMA.P$GetList1.RefCursorMetaData.rprecordset.Column.0" value="implicitRefCursor metadata='ColumnName=Column1;BaseColumnName=Column1;BaseSchemaName=SCHEMA;BaseTableName=E$Table1;IsUnique=true;IsKey=true;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList1.RefCursorMetaData.rprecordset.Column.1" value="implicitRefCursor metadata='ColumnName=Column2;BaseColumnName=Column2;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList1.RefCursorMetaData.rprecordset.Column.2" value="implicitRefCursor metadata='ColumnName=Column3;BaseColumnName=Column3;NATIVEDATATYPE=DATE;ProviderType=Date;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList1.RefCursorMetaData.rprecordset.Column.3" value="implicitRefCursor metadata='ColumnName=Column4;BaseColumnName=Column4;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList1.RefCursorMetaData.rprecordset.Column.4" value="implicitRefCursor metadata='ColumnName=Column5;BaseColumnName=Column5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <!--Protocol.P$GetList2-->
  <add name="SCHEMA.P$GetList2.RefCursor.rprecordset" value="implicitRefCursor bindinfo='mode=Output'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.0" value="implicitRefCursor metadata='ColumnName=Column1;BaseColumnName=Column1;BaseSchemaName=SCHEMA;BaseTableName=E$Table2;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.1" value="implicitRefCursor metadata='ColumnName=Column2;BaseColumnName=Column2;BaseSchemaName=SCHEMA;BaseTableName=E$Table2;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.2" value="implicitRefCursor metadata='ColumnName=Column3;BaseColumnName=Column3;BaseSchemaName=SCHEMA;BaseTableName=E$Table2;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.3" value="implicitRefCursor metadata='ColumnName=Column4;BaseColumnName=Column4;BaseSchemaName=SCHEMA;BaseTableName=E$Table2TEMPLATE;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.4" value="implicitRefCursor metadata='ColumnName=Column5;BaseColumnName=Column5;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.5" value="implicitRefCursor metadata='ColumnName=Column6;BaseColumnName=Column6;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Number;ProviderType=Decimal;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.6" value="implicitRefCursor metadata='ColumnName=Column7;BaseColumnName=Column7;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Number;ProviderType=Decimal;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.7" value="implicitRefCursor metadata='ColumnName=Column8;BaseColumnName=Column8;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.8" value="implicitRefCursor metadata='ColumnName=Column9;BaseColumnName=Column9;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.9" value="implicitRefCursor metadata='ColumnName=Column10;BaseColumnName=Column10;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=char;ProviderType=char;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.10" value="implicitRefCursor metadata='ColumnName=Column11;BaseColumnName=Column11;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=char;ProviderType=char;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.11" value="implicitRefCursor metadata='ColumnName=Column12;BaseColumnName=Column12;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=char;ProviderType=char;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.12" value="implicitRefCursor metadata='ColumnName=Column13;BaseColumnName=Column13;BaseSchemaName=SCHEMA;BaseTableName=E$Table4;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.13" value="implicitRefCursor metadata='ColumnName=Column14;BaseColumnName=Column14;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList2.RefCursorMetaData.rprecordset.Column.14" value="implicitRefCursor metadata='ColumnName=Column15;BaseColumnName=Column15;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <!--Protocol.P$GetList3-->
  <add name="SCHEMA.P$GetList3.RefCursor.rprecordset" value="implicitRefCursor bindinfo='mode=Output'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.0" value="implicitRefCursor metadata='ColumnName=Column1;BaseColumnName=Column1;BaseSchemaName=SCHEMA;BaseTableName=E$Table6;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.1" value="implicitRefCursor metadata='ColumnName=Column2;BaseColumnName=Column2;BaseSchemaName=SCHEMA;BaseTableName=E$Table6;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.2" value="implicitRefCursor metadata='ColumnName=Column3;BaseColumnName=Column3;BaseSchemaName=SCHEMA;BaseTableName=E$Table2;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.3" value="implicitRefCursor metadata='ColumnName=Column4;BaseColumnName=Column4;BaseSchemaName=SCHEMA;BaseTableName=E$Table2;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.4" value="implicitRefCursor metadata='ColumnName=Column5;BaseColumnName=Column5;BaseSchemaName=SCHEMA;BaseTableName=E$Table2TEMPLATE;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.5" value="implicitRefCursor metadata='ColumnName=Column6;BaseColumnName=Column6;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.6" value="implicitRefCursor metadata='ColumnName=Column7;BaseColumnName=Column7;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Number;ProviderType=Decimal;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.7" value="implicitRefCursor metadata='ColumnName=Column8;BaseColumnName=Column8;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Number;ProviderType=Decimal;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.8" value="implicitRefCursor metadata='ColumnName=Column9;BaseColumnName=Column9;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.9" value="implicitRefCursor metadata='ColumnName=Column10;BaseColumnName=Column10;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.10" value="implicitRefCursor metadata='ColumnName=Column11;BaseColumnName=Column11;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=char;ProviderType=char;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.11" value="implicitRefCursor metadata='ColumnName=Column12;BaseColumnName=Column12;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=char;ProviderType=char;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.12" value="implicitRefCursor metadata='ColumnName=Column13;BaseColumnName=Column13;BaseSchemaName=SCHEMA;BaseTableName=E$Table3;NATIVEDATATYPE=char;ProviderType=char;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.13" value="implicitRefCursor metadata='ColumnName=Column14;BaseColumnName=Column14;BaseSchemaName=SCHEMA;BaseTableName=E$Table4;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.14" value="implicitRefCursor metadata='ColumnName=Column15;BaseColumnName=Column15;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.15" value="implicitRefCursor metadata='ColumnName=Column16;BaseColumnName=Column16;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.16" value="implicitRefCursor metadata='ColumnName=Column17;BaseColumnName=Column17;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.17" value="implicitRefCursor metadata='ColumnName=Column18;BaseColumnName=Column18;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.18" value="implicitRefCursor metadata='ColumnName=Column19;BaseColumnName=Column19;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.19" value="implicitRefCursor metadata='ColumnName=Column20;BaseColumnName=Column20;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.20" value="implicitRefCursor metadata='ColumnName=Column21;BaseColumnName=Column21;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
  <add name="SCHEMA.P$GetList3.RefCursorMetaData.rprecordset.Column.21" value="implicitRefCursor metadata='ColumnName=Column22;BaseColumnName=Column22;BaseSchemaName=SCHEMA;BaseTableName=E$Table5;NATIVEDATATYPE=Number;ProviderType=Int32;AllowDBNull=true'" />
</settings>

0 个答案:

没有答案