SQLCODE Values
After every SQL operation, Oracle returns a status code to the SQLCODE variable currently in scope. The status code, which indicates the outcome of the SQL operation, can be any of the following numbers:小于0的时候
Oracle did not execute the statement because of a database, system, network, or application error. Such errors can be fatal. When they occur, the current transaction should, in most cases, be rolled back. Negative return codes correspond to error codes listed in Oracle7 Server Messages.
大体意思
sqlcode=-1054
去查ora-01054这个错误

解决方案 »

  1.   

    ORA-01405 fetched column value is NULLCause: The INTO clause of a FETCH operation contained a NULL value, and no indicator was used. The column buffer in the program remained unchanged, and the cursor return code was +2. This is an error unless you are running Oracle with DBMS=6, emulating version 6, in which case it is only a warning.Action: You may do any of the following: Use the NVL function to convert the retrieved NULL to another value, such as zero or blank. This is the simplest solution. Use an indicator to record the presence of the NULL. You probably should use this option when you want a specific action to be taken when a NULL arises. Revise the cursor definition so that no columns possibly containing NULL values are retrieved
      

  2.   

    give you a site 
    --->http://www.orafaq.com/error/ora-01405.htm