Upgrade 8i to 12c - Procedure with parameter slow
Hi,
We upgraded from Oracle 8i(8.1.7) to 12c(12.1.0.2) and we are finding that when executed directly against the database the query is fast, but API code in a procedure is slow.
The column in the query being compared and the parameter are both varchar2, so it is not due to an implicit conversion.
Below are the two scenarios with which we are hitting the slow performance.
Issue 1:
Procedure is called with parameters as below.
function get_customer_data(p_x_accno VARCHAR2, p_schedule_id VARCHAR2)
p_schedule_id is causing issue in the below query as highlighted . If we hard code it to ‘1’ it works fine.