Problem solve Get help with specific problems with your technologies, process and projects.

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 last published in February 2004

Dig Deeper on Oracle database design and architecture

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.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.