Q

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.
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

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close