简体   繁体   English

Oracle无效号码ORA-06512

[英]Oracle Invalid Number ORA-06512

I am trying to execute a packageprocedure from ODP.NET C# which insert data into the table and I am getting following error: 我正在尝试从ODP.NET C#执行将数据插入表的packageprocedure,并且出现以下错误:

ORA-01722: invalid number ORA-06512: at "TTS.EMP_PKG", line 86 ORA-06512: at line 1 ORA-01722:无效编号ORA-06512:在“ TTS.EMP_PKG”中,第86行ORA-06512:在第1行

Here is the Line 86 of that package: 这是该程序包的第86行:

UPDATE TTS.TRAN_EMPLOYEE_TBL 
   SET EMP_ID = EMPID, 
       FIRST_NAME = FIRSTNAME, 
       LAST_NAME = LASTNAME, 
       COMIT_ID = COMITID, 
       RACF_ID = RACFID,
       EMAIL_ID = EMAILID, 
       LOC_CITY = LOCCITY, 
       LOC_COUNTRY = LOCCOUNTRY, 
       REGION = REGION,
       USER_MODIFIED = USERMODIFIED, 
       DATE_MODIFIED = SYSDATE 
 WHERE TRAN_EMP_ID = 9440

All are varchar2 fields and also input params are also varchar2 type. 所有都是varchar2字段,并且输入参数也是varchar2类型。 Originally I had an input param for 9440 but when I got the above error I hard coded the number and I am still getting it. 最初,我有一个9440的输入参数,但是当遇到上述错误时,我对该数字进行了硬编码,但仍然得到它。 Can you please help? 你能帮忙吗?

Joachim Isaksson you are right.. I forgot that one of the columns in table is an integer and once I did to_number it's working again. Joachim Isaksson,您是对的。.我忘了表中的一列是整数,一旦我做了to_number,它就会再次起作用。 Thank you for the help 感谢您的帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ORA-06502,ORA-06512 Oracle存储过程错误 - ORA-06502, ORA-06512 Oracle stored procedure error Oracle Data Access ORA-06512:字符串缓冲区太小 - Oracle Data Access ORA-06512: character string buffer too small ORA-01403:找不到数据ORA-06512:尝试使用ODP.NET运行存储的proc的第1行 - ORA-01403: no data found ORA-06512: at line 1 when trying to run a stored proc using ODP.NET OracleCommandBuilder.DeriveParameters() 抛出 OracleException:ORA-06564:object 不存在 ORA-06512:在“SYS.DBMS_UTILITY” - OracleCommandBuilder.DeriveParameters() throws OracleException: ORA-06564: object does not exist ORA-06512: at “SYS.DBMS_UTILITY” Oracle.ManagedDataAccess.Client.OracleException-ORA-01722:无效的数字 - Oracle.ManagedDataAccess.Client.OracleException - ORA-01722: invalid number {“ORA-06502:PL/SQL:数字或值错误:字符到数字的转换错误\\nORA-06512:在第 1 行”} - {"ORA-06502: PL/SQL: numeric or value error: character to number conversion error\nORA-06512: at line 1"} ORA-01722:编号#2无效 - ORA-01722: invalid number #2 C#Oracle试图传递字符串参数-ORA-01722:无效的数字 - C# oracle trying to pass string parameter - ORA-01722: invalid number ORA-01722:C#中INSERT上的无效数字 - Oracle 11g - ORA-01722: invalid number on INSERT in C# - Oracle 11g SQL错误:ORA-00904:无效的标识符-发送给oracle - SQL Error: ORA-00904: invalid identifier - Send to oracle
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM