Database Tuning (MOSC)

MOSC Banner

Poor performance after using alter session

edited Jan 25, 2011 8:08PM in Database Tuning (MOSC) 4 commentsAnswered
 We are developing a Java application, and in our queries, we need to ignore special characters such as "á" or '...
Ejm. A query for "Raúl" should consider "Raúl" and "Raul"...
To do this, we found these two alter session sentences that helped us to do that:
stmt.execute("ALTER SESSION SET NLS_COMP=LINGUISTIC");

stmt.execute("ALTER SESSION SET NLS_SORT=
BINARY_AI");
The problem is, that after executing those two sentences, performance becomes very poor, a result set, that takes around a second to be retrieved, takes more than 3 minutes after executing the "alter session" commands.

Is there a better way to achieve this?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center