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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: