Is there a way to specify columns to be excluded from the NLSSORT function

Hi, in order to enable case-insensitive searches in oracle without making significant app changes, we've added a login trigger that enables linguistic sorting by setting the session params:
alter session set nls_comp=LINGUISTIC;
alter session set nls_sort=BINARY_CI;
While this gives us exactly the desired behavior for all our actual linguistic data, 90% of our primary key fields are typed as varchar2 fields that contain GUIDs. This is a problem because the primary key index is a binary index but when we query for a row by its primary key, we're getting table scans because the query is being translated to using the NLSSORT function because of our session setup.
Here's a specific example of what we're seeing:
SQL> create table t1 (c1 varchar2(255) not null, c2 varchar2(255) null, primary key (c1));
Table created.
SQL> set autotrace traceonly explain;
SQL> select * from t1 where c1='t';
Execution Plan
Plan hash value: 3617692013
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 258 | 2 (0)| 00:00:01 |
|* 1 | TABLE ACCESS FULL| T1 | 1 | 258 | 2 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - filter(NLSSORT("C1",'nls_sort=''BINARY_CI''')=HEXTORAW('7400') )
Note
- dynamic sampling used for this statement
I understand why this is occurring and I know that if I add an NLSSORT based index to the primary key columns on each of our tables (in addition to the existing unique index used by the PK constraint) that second index will cause my query to perform an index range scan. However, for various reasons this is something of a daunting task in our app and we'd like to avoid the double indexes for performance reasons as well. So what I'd prefer to do is find a way to tell the session to NOT apply the NLSSORT function when it sees these columns in incoming SQL, but I haven't read anything that leads me to believe that such blacklisting is a feature of the NLS libraries. If anyone knows whether this is possible or not or if you have an alternate approach, I'd really appreciate your feedback.
Thanks!
Message was edited by:
user616116

Unfortunately, there is no way to avoid this problem globally. We are aware of this deficiency and we will look for a solution for some future release. In the meantime, you will need, unfortunately, to code the workaround you mentioned.
-- Sergiusz

Similar Messages

  • Is there a way to check what I had purchased from the itune store to match the charges on my credit card, because there is a charge that I do not recognize

    Is there a way to check what I had purchased from the itune store to match the charges on my credit card, because there is a charge that I do not recognize

    http://support.apple.com/kb/HT2727
    Regards.

  • Is there a way to switch between workspaces in Spaces from the command line?  I want to write a script to set up certain applications in certain workspaces (without having to do it manually each time)...

    Is there a way to switch between workspaces in Spaces from the comnand line?  I use several workspaces from Spaces, each workspace having a certain number of fixed applications running.  Rather than set all this up each time I log on, I'd like to write a script from the command line (I use gawk) to automate this. Currently I have a gawk script that, given a directory, opens a few xterms whose working directory is the given directory, and opens "preview" applied to a certain file in that directory.  However, at present I have to manually move an xterm through each workspace and run my gawk script in each workspace (applied to each directory that I'm working on).
    There must be a better way...

    Addendum: Can this be done via:   open -a Spaces --args xxx  , where xxx is some set of arguments (or something like this)?

  • Please help! Is There a way to separate a song by itself from the beat?

    Please help! Is There a way to separate a song by itself from the beat? If I have 1 already mixed track. Is it possible to do in GarageBand or or in Logic Express.
    If yes, then how?
    Thx al lot.

    There are a few things you could try like phase inversion or possibly some EQ stuff, but at best you're going to get the instruments a little softer.
    It's virtually impossible in most cases to eliminate specific elements of a full mix.

  • Is there any way to send more then 1 parameter to the listener function?

    Hi guys, so is there any way to send more then 1 parameter to the listener function?

    Hi,
    sure.
    The first variant is to add many parameters to event.
    The second variant is to extend calling callback functions.
    For example,
    public function addCallBack(eventName:String, callBack:Function = null, ... rest):void
         // save callBack function and event type and other args (rest)
         addEventListener(eventName, myHandler);
    private function myHandler(event:Event):void
         // get function and args by eventName
         fnc.apply(null, [event, args]);

  • I have had my iphone 5 stolen and last backed up approx. 2 months ago. I don't think I've ever gone through and set up PhotoStream however it has always appeared on my phone. Is there any way of getting back messages/photos/etc from the past 2 months?

    I have had my iphone 5 stolen/have lost my iphone 5. I haven't backed it up for a while (2 months?!) and I am not sure that I actually set up  Photostream however it's always been on there from what I can tell (icon is there). Is there anyway of getting back contacts/messages/photos/anything from the phone onto my new replacement phone if it hadn't been backed up recently? I've got everything up until the last backup - contacts and messages aren't such an issue for me but the photos mean a lot!!!

    If you are logged in to icloud with your same Apple ID. Go to setting on your phone>Photos & Camera and turn ON my Photo Stream.

  • Is there a way to specify which fields are displayed in the "new contact" window in the adress book, or at least highlight the ones that are important to me?

    It would be nice if I could put together the fields in the "new contact" window in the adress book, or at least highlight the ones I need with bold letters or a different color. Is there a way? Thank you.

    No method I am aware of.
    This add-on adds many features, but I don't know if what you seek is included.
    https://freeshell.de//~kaosmos/morecols-en.html
    How to install
    http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html

  • Is there any way for a basemap to be manipulated from the client side?

    Hello,
    Essentially, we have a basemap (+basemap A+) that contains boundary geography (i.e., county, tract, block boundaries) and we have a theme (+theme A+) that contains housing unit points.
    The idea is that theme A will be a layer that the user will be able to switch on/off. We know how to do this, but the problem comes in where performance is concerned.
    Previously, theme A was actually included in basemap A, and performance was not an issue, but the problem then was that the user was not able to turn that layer on/off.
    Also I have done everything I know in terms of caching as well as using the mapviewer API
    (e.g.,
    test_theme.setClickable(false);
    test_theme.enableInfoWindow(false);
    test_theme.enableInfoTip(false);
    test_theme.enableLabels(false);
    test_theme.enableAutoWholeImage(true);
    test_theme.setMinVisibleZoomLevel(5);),
    but rendering the theme on the client side is still way too slow (even at zoom level 5).
    So, my question boils down to this. Is there any way for a basemap to be manipulated by a user? I.e., Is there a way for a user to pass parameters to a basemap, essentially telling it which themes to turn on/off?
    I know you can specify which zoom level the basemap's themes are visible, but again, we want the user to be able to have control of when a certain theme is shown or not.
    Thank you for any help you can provide,
    John
    Edited by: user641525 on Mar 18, 2009 10:29 AM
    Edited by: user641525 on Mar 18, 2009 10:30 AM

    What you may try is to replicate your base map but take the point theme out of its definition. Then create a second tile layer for the new base map. You can add both tile layers to the client (but set only one of them to be visible). Then simply switch the tile layers' visibility on/off based on user turning on/off the point theme. The built-in Oracle Maps tutorial #22 (Multiple Base maps) has some sample code you might be able to re-use.
    thanks
    LJ

  • I live in Europe France can I only download movies from the French Itunes site or is there a way for me to get english movies from the USA

    I live in Europe, France, I want to use apple TV, but people tell me that the english movies on the French Itunes are very limited, do I have a way to get more English movies downloaded from Itunes?

    There have been three or four questions like this one today relating to the apple stores in various countries.  You have to have an account, credit card and address in the country in which the store resides.  So you need a US store account, credit card and address to use the US store.
    Since I used to live in France, have been frustrated trying to buy books and music from the French app store.

  • Is there a way to programati​cally switch a control from the default style to the system style

    I was wondering if there was any way to conditionally make a control look like either the default control style or the system control style. The front panel that contained the control would not be running. I'm running Labview 8.0. One possisble way I'm thinking of is changing the type descriptor but I'm not sure how to write to it (I can read it from the 7.x flatten to string function). Another way I'm thinking is maybe changing or applying a typedef but I'm not sure if that's possible either.
    CLD (2014)

    " ... If the user wants to pursue this method then it will work, but be prepared to deal with more work than you'd expect."...
    My sentiments, exactly. There may come a day when I need to spend an afternoon making one really cool control ... but I don't see it happening anytime soon.
    Message Edited by PaulG. on 05-17-2007 05:04 PM
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

  • Is there any way to recover lost iTune I purchased from the itunes store?

    Is there any way to recover my iTunes Library without re-purchasing all the songs-library was lost in PC problems.

    Go to the iTunes Store, log into your account, and click the Purchases link under the Quick Links. From there you should be able to re-download some or all of your purchased content. Note that not all content has been licensed for re-downloading in all countries at this time; you can see what content you can download here:
    http://support.apple.com/kb/HT5085
    You can also re-download content using an iOS device.
    For more information, see:
    http://support.apple.com/kb/ht2519
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Is there any way to add a credit card number from the iPhone for the app store

    Is there any way to add a credit card to my account from my phone my computer has crashed and I can't update any of my apps

    I don't believe so. I will have a closer look though and report back

  • Is there a way to format a Jukebox Zen Xtra from the device itself?

    Forgot to subscribe to the post

    It's been a while since I used my Xtra but I seem to recall there's an option to format the player from the rescue screen - hold down the play button and press the reset button in with a paperclip and you should see a screen with an option to completely format the player. I may be dreaming it, but it's worth a try!
    That said, if you can find someone with a PC running Windows XP and Windows Media Player 10 (alternatively, install Windows XP in VirtualBox and upgrade to Windows Media Player 10) you can install the latest "PlaysForSure" Xtra firmware from the download page. Once installed this turns the Xtra into a standard MTP device, allowing you to use it on any machine that supports MTP without having to install any drivers (this includes Windows with Media Player 10 or later installed, so Vista and later are automatically supported). However, you can only install the firmware from a machine running Windows Media Player 10 - if you try with Windows Media Player 11 or later installed the firmware updater will fail to detect the player.
    I updated my Zen Xtra to the PlaysForSure firmware when it was first released and never had any issues with my player after that, in XP, Vista or 7 (and it made life much easier as I no longer had to rely on Creative's drivers, which were a little problematic).

  • Is there any way to delete more than one email from the iPhone at a time?

    What if I know I've read everything already online - can I press my Mail icon and instead of opening & deleting one by one, can't I delete everything in my Mail that's there? THANKS!

    Use the edit button, then select all messages you want to delete, and press "Delete" button. You still have to select one by one, but you'd have to do it anyway.

  • *** Is There Any Way To Hide RAID "Boot OSX" Volumnes from the Finder? ***

    I have several RAID volumes, and these darn "Boot OSX" guys take up space and distract.
    Couldn't find a utility that will hide them.
    - Ted.

    Hi Nasa,
    Please try the authorization object S_RS_ICUBE. One of the fields is "SubObject". One of the choices for this field is "Data".
    Be sure that your developers do not have this field for the InfoCube/InfoArea in question.
    That might work.
    Another option (if you are on BI 7.0) is turn on authorization relevance for one of the InfoObjects in the Cube.
    Then, be sure that the developers do not have an analysis authorization with this characteristic (or that they don't have 0BI_ALL). This is another layer, and might not stop access in all situations, for example transaction listcube.
    Good Luck
    Rob

Maybe you are looking for

  • FI posting on basis of travel expenses

    Hi, We have an external system where relevant employees can enter their travel expenses. What we need now is to upload these data into SAP and most importantly, we need to generate the FI postings (2) for each of these travel expense lines from the e

  • Understanding explain plan

    Oracle Gurus, I am trying to understand the below explain plan which I generated using DBMS_XPLAN. This explain plan shows 380M cost, what do "M" and "K" mean here? If anyone has any good documentation to understand explain plan, please pass on. | Id

  • Unimplemented error

    Aslam o Alikum (Hi) i am using Reports 6i. From Screen previewer when i click Generate to file -> pdf or other formats it show me error message "Unimplemented error". But report run well in previewer. solution urgently needed. Allah Hafiz

  • Acrobat 8 Pro and Office 2007 Problem

    I posted this in the CS3 forum originally. They told me to post here too. Issue: When logged in as a local user (no admin rights) Word 2007 will crash the whole computer when you type a key. The reason I am posting on Adobe forums is that this only h

  • Keep getting spam email from Apple

    So far 7 times I get an email about my iCloud is almost full. There is no unsubscribe option at the bottom of the message.