4 Replies Latest reply: Oct 26, 2012 1:19 PM by Don Kleppinger RSS

    Oracle 11g Case Insensitive Issue

      For our .net framework 4.0 Application we need case insenstive search. So I have tried setting NLS_COMP=LINGUISTIC & NLS_SORT=BINARY_CI in environmental variable.. But this is not working. But when I tried firing trigger on each logon and setting NLS_COMP for each session.. It is working.. But because of performance reason we don't want to fire on trigger for each database logon.

      Pls Let me know why it is not working setting environmental variable. We are using Oracle 11g client and 10g server and connecting from our .net application through ODP.NET.

        • 1. Re: Oracle 11g Case Insensitive Issue
          gdarling - oracle
          Do you see the same behavior when connecting via SQLPlus after setting the environment variables? Is this an ODP.NET specific issue? If it's not specific to ODP, you'll probably get better insight by posting in one of the generic database forums.

          With respect to ODP specific solutions, have you already checked out the OracleGlobalization class?

          Hope it helps,
          • 2. Re: Oracle 11g Case Insensitive Issue
            Yes even connecting to SQLPlus having environmental variable setting.. facing same problem.. However on explicitly setting NLS cases insensitive session values on each logon it is working..
            • 3. Re: Oracle 11g Case Insensitive Issue
              Don Kleppinger
              We have always used the login trigger to set the NLS settings. Our DBA set this up when we were on 10g and still do it now that we are on 11g. There must have been a reason he set up up using the trigger. Maybe same issue you're having. Since we are using connection pooling anyway I believe the login trigger only fires once anyway and we don't have any performance problems with getting connections.
              • 4. Re: Oracle 11g Case Insensitive Issue
                Don Kleppinger
                note that if you use the global NLS setting, all of your indexes on text columns must be function based indexes or they won't be used.