How to fix the Oracle error SQL-02120: First and second arguments to SQLRCN both null?

In this post, you’ll learn more about the Oracle ErrorSQL-02120: First and second arguments to SQLRCN both null with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

SQL-02120: First and second arguments to SQLRCN both null

Reason for the Error SQL-02120: First and second arguments to SQLRCN both null

Cause: Both the first and second arguments to sqlrcn were null. An HSTDEF must be passed into SQLRCN in either the form of an OCI lda (first argument) or as an HSTDEF pointer itself (second argument).

How to fix the Error SQL-02120: First and second arguments to SQLRCN both null ?

You can fix this error in Oracle by following the below steps

Action: Pass in either an OCI LDA or an HSTDEF, but not both. *Note: This error *msg* is never actually used. The error *number* is used, given as the return value of sqlrcn if this error occurs.

Tags :

Leave Your Comment