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