Ask the Expert

Performance issues with bind variables in 9.2

We have upgraded from 8.0.6 to 9.2.04 on AIX. This db has a stored procedure, using dynamic sql(V7) with bind variabes, and accesses a remote database to pull the data. This takes about three seconds on 8.0.6, but about 50 minutes on 9.2. If the bind variables are replaced by actual values, the query runs as expected in three to five seconds. Is there any specific performance issue with bind variables and 9.2? If so, is there any workaround? We tried to gather system stats etc, set optimizer_enables_features back to 8.0.6 and 8.1.7, but nothing helped. The remote database is 8.1.7 on NT.

    Requires Free Membership to View

If the presence of bind variables is your only difference, then I'd look at the setting for CURSOR_SHARING. This might be set to FORCE, which probably isn't what you want to use on a 9.2.0 installation. Instead, try using SIMILAR or EXACT.

This was first published in February 2004

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.