Oracle Case insensitivity problem

Hi
To alter my session to make case insensitive I've set session variables as follows,
NLS_SORT------>BINARY_CI
NLS_COMP------>LINGUISTIC
Now when I ran the following query I'm getting error ORA-00600.
select * from (select customer_id ,row_number() over (order by customer_id) from customer where customer_name like 's%')
when I change the query as follows I'm getting the results,
select * from (select customer_id from (select customer_id from customer where customer_name like 's%'))
As per my observation if I use either ROW_NUMBER() or ROWNUM in the inner query I'm getting the mentioned exception.
How to avoid this exception, as I require ROW_NUMBER() in the inner query to restrict the no.of case insensitive records dynamically.
regards,
harry

harrry wrote:
Hi
To alter my session to make case insensitive I've set session variables as follows,
NLS_SORT------>BINARY_CI
NLS_COMP------>LINGUISTIC
Now when I ran the following query I'm getting error ORA-00600.ORA-00600 = open an SR with Oracle Support or use the ora-0600 lookup tool on MetaLink.
select * from (select customer_id ,row_number() over (order by customer_id) from customer where customer_name like 's%')
when I change the query as follows I'm getting the results,
select * from (select customer_id from (select customer_id from customer where customer_name like 's%'))
As per my observation if I use either ROW_NUMBER() or ROWNUM in the inner query I'm getting the mentioned exception.
How to avoid this exception, as I require ROW_NUMBER() in the inner query to restrict the no.of case insensitive records dynamically.
regards,
harry

Similar Messages

  • Set Oracle case Insensitive?

    Hi All,
    Is there any way I can make Oracle 10g Case Insensitive. I tried searching and found this link, but I didn't got my answer as http://www.dba-oracle.com/t_case_insensitive_indexes_searches.htm is not working.
    case insensitive
    Thanks,
    Danish

    Is there any way I can make Oracle 10g Case Insensitive.For all the database ? I'm really not convinced that's a good idea, on query level it looks better.
    Anyway, here below an example :
    Re: case sensitivity
    Nicolas.

  • How to go from case-insensitive to case-sensitive HFS?

    I installed Leopard server with the case-insensitive file system. Can I go from this to the case-sensitive HFS?
    The trouble I am having is with installing Wordpress... The sign-up page does not work at all and looking in the Apache log files reveals 'child exit signal buss error (10) and turning up the logs, I get:
    [Fri Feb 08 15:29:30 2008] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7l PHP/5.2.4 configured -- resuming normal operations
    [Fri Feb 08 15:29:55 2008] [debug] modhfsapple2.c(180): [client x.x.x.x] modhfsapple: / is case-insensitive, referer: http://wordpress.domain.net/wp-signup.php
    [Fri Feb 08 15:29:55 2008] [debug] modhfsapple2.c(180): [client x.x.x.x] modhfsapple: /var/empty/ is case-insensitive, referer: http://wordpress.domain.net/wp-signup.php
    [Fri Feb 08 15:29:55 2008] [debug] modhfsapple2.c(180): [client x.x.x.x] modhfsapple: /Library/WebServer/Wordpress/ is case-insensitive, referer: http://wordpress.domain.net/wp-signup.php
    [Fri Feb 08 15:29:55 2008] [debug] modhfsapple2.c(180): [client x.x.x.x] modhfsapple: /usr/share/httpd/error/ is case-insensitive, referer: http://wordpress.domain.net/wp-signup.php
    [Fri Feb 08 15:29:55 2008] [debug] modhfsapple2.c(180): [client x.x.x.x] modhfsapple: /Library/WebServer/share/httpd/manual/ is case-insensitive, referer: http://wordpress.domain.net/wp-signup.php
    [Fri Feb 08 15:29:55 2008] [debug] modhfsapple2.c(180): [client x.x.x.x] modhfsapple: .*\\.\\.namedfork/ is case-insensitive, referer: http://wordpress.domain.net/wp-signup.php
    [Fri Feb 08 15:29:57 2008] [notice] child pid 2279 exit signal Bus error (10)
    Which indicates that Apache is bombing out because of the HFS case-insensitive problem... anyone else agree?
    So apart from getting the Wordpress people to fix this - can they? How do I go about changing the case sensitivity of the FS? Just don't tell me I have to re-install Leopard!!

    I just discovered the crash logs... Can anyone give me a clue to what is cause the bus error from this?
    Process: httpd [180]
    Path: /usr/sbin/httpd
    Identifier: httpd
    Version: ??? (???)
    Code Type: X86-64 (Native)
    Parent Process: httpd [64]
    Date/Time: 2008-02-11 13:43:41.343 +0000
    OS Version: Mac OS X Server 10.5.1 (9B18)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000100394709
    Crashed Thread: 0
    Application Specific Information:
    * single-threaded process forked *
    Thread 0 Crashed:
    0 libresolv.9.dylib 0x000000010180c2c6 resbuildstart + 213
    1 libresolv.9.dylib 0x000000010180d97c res9vinit + 128
    2 libresolv.9.dylib 0x0000000101808164 res9search + 68
    3 libphp5.so 0x00000001011e37d5 zifdns_checkrecord + 1088
    4 libphp5.so 0x00000001012a1df4 zenddo_fcall_common_helperSPEC + 2042
    5 libphp5.so 0x000000010129fccb execute + 367
    6 libphp5.so 0x00000001012a1ed9 zenddo_fcall_common_helperSPEC + 2271
    7 libphp5.so 0x000000010129fccb execute + 367
    8 libphp5.so 0x00000001012a1ed9 zenddo_fcall_common_helperSPEC + 2271
    9 libphp5.so 0x000000010129fccb execute + 367
    10 libphp5.so 0x00000001012a1ed9 zenddo_fcall_common_helperSPEC + 2271
    11 libphp5.so 0x000000010129fccb execute + 367
    12 libphp5.so 0x00000001012a1ed9 zenddo_fcall_common_helperSPEC + 2271
    13 libphp5.so 0x000000010129fccb execute + 367
    14 libphp5.so 0x00000001012848b4 zendexecutescripts + 460
    15 libphp5.so 0x000000010124696a phpexecutescript + 665
    16 libphp5.so 0x0000000101307f22 php_handler + 1220
    17 httpd 0x00000001000019d1 aprunhandler + 90
    18 httpd 0x0000000100002285 apinvokehandler + 347
    19 httpd 0x000000010002e02c approcessrequest + 103
    20 httpd 0x000000010002a9fa approcess_httpconnection + 116
    21 httpd 0x00000001000126d5 aprun_processconnection + 90
    22 httpd 0x0000000100012b24 approcessconnection + 87
    23 httpd 0x0000000100034a34 child_main + 1087
    24 httpd 0x0000000100034be0 make_child + 329
    25 httpd 0x0000000100034e78 performidle_servermaintenance + 510
    26 httpd 0x00000001000353a8 apmpmrun + 1249
    27 httpd 0x0000000100009aed main + 2879
    28 httpd 0x000000010000100c start + 52
    Thread 0 crashed with X86 Thread State (64-bit):
    rax: 0x0000000100394419 rbx: 0x0000000000000015 rcx: 0x0000000100292e8e rdx: 0x0000000000000000
    rdi: 0x0000000000000015 rsi: 0x617072612e367069 rbp: 0x00007fff5fbfc7f0 rsp: 0x00007fff5fbfc7e0
    r8: 0x00000001009c65f0 r9: 0x00000001009c667c r10: 0x00000001002a26a6 r11: 0x0000000000000246
    r12: 0x00000001003fad60 r13: 0x000000000000000f r14: 0x0000000000000001 r15: 0x0000000000000035
    rip: 0x000000010180c2c6 rfl: 0x0000000000000202 cr2: 0x00000001002ded34
    Binary Images:
    0x100000000 - 0x100056fff +httpd ??? (???) /usr/sbin/httpd
    0x10007b000 - 0x10008cff3 libaprutil-1.0.dylib ??? (???) <85e7d2d6a33dcb106ccabd76d529388f> /usr/lib/libapru
    til-1.0.dylib
    0x100094000 - 0x10011cfe7 libsqlite3.0.dylib ??? (???) <1f05db59fc71009238955b6b11b6f1ca> /usr/lib/libsqlite
    3.0.dylib
    0x100125000 - 0x100145fff libexpat.1.dylib ??? (???) <d80d701396f8870b27dda4a7166fadc0> /usr/lib/libexpat.1.
    dylib
    0x10014c000 - 0x100244fef libiconv.2.dylib ??? (???) <2b42104e7aa2da6e64f979e585af02e9> /usr/lib/libiconv.2.
    dylib
    0x10024b000 - 0x100267fef libapr-1.0.dylib ??? (???) <e739530447f1dc66d55b881d2ca19ef9> /usr/lib/libapr-1.0.
    dylib
    0x100271000 - 0x1003f0feb libSystem.B.dylib ??? (???) <a9297f52cb1431e26cd3ffd4b9ca7615> /usr/lib/libSystem.
    B.dylib
    0x10049e000 - 0x1004aaff1 libgcc_s.1.dylib ??? (???) <6fc905606335f261db4da9529c7e2711> /usr/lib/libgcc_s.1.
    dylib
    0x1004af000 - 0x1004b1fff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
    0x1004b8000 - 0x1004b8fff modauthnfile.so ??? (???) /usr/libexec/apache2/modauthnfile.so
    0x1004bb000 - 0x1004bcfff modauthzhost.so ??? (???) /usr/libexec/apache2/modauthzhost.so
    0x1004bf000 - 0x1004c5fff mod_cache.so ??? (???) /usr/libexec/apache2/mod_cache.so
    0x1004c8000 - 0x1004ccfff modmemcache.so ??? (???) /usr/libexec/apache2/modmemcache.so
    0x1004cf000 - 0x1004d2fff moddiskcache.so ??? (???) /usr/libexec/apache2/moddiskcache.so
    0x1004d5000 - 0x1004d6fff mod_dumpio.so ??? (???) /usr/libexec/apache2/mod_dumpio.so
    0x1004d9000 - 0x1004dcfff modextfilter.so ??? (???) /usr/libexec/apache2/modextfilter.so
    0x1004df000 - 0x1004eafff mod_include.so ??? (???) /usr/libexec/apache2/mod_include.so
    0x1004ed000 - 0x1004effff mod_filter.so ??? (???) /usr/libexec/apache2/mod_filter.so
    0x1004f2000 - 0x1004f6fff mod_deflate.so ??? (???) /usr/libexec/apache2/mod_deflate.so
    0x1004f9000 - 0x1004fdfff modlogconfig.so ??? (???) /usr/libexec/apache2/modlogconfig.so
    0x100600000 - 0x100611ffd libz.1.dylib ??? (???) <2022cc8950afdf485ba1df76364ba725> /usr/lib/libz.1.dylib
    0x100617000 - 0x100617fff mod_logio.so ??? (???) /usr/libexec/apache2/mod_logio.so
    0x10061a000 - 0x10061afff mod_env.so ??? (???) /usr/libexec/apache2/mod_env.so
    0x10061d000 - 0x10061efff mod_expires.so ??? (???) /usr/libexec/apache2/mod_expires.so
    0x100621000 - 0x100623fff mod_headers.so ??? (???) /usr/libexec/apache2/mod_headers.so
    0x100626000 - 0x100627fff mod_ident.so ??? (???) /usr/libexec/apache2/mod_ident.so
    0x10062a000 - 0x10062bfff mod_setenvif.so ??? (???) /usr/libexec/apache2/mod_setenvif.so
    0x10062e000 - 0x10063dfff mod_proxy.so ??? (???) /usr/libexec/apache2/mod_proxy.so
    0x100642000 - 0x100647fff modproxyhttp.so ??? (???) /usr/libexec/apache2/modproxyhttp.so
    0x10064b000 - 0x10064ffff modproxybalancer.so ??? (???) /usr/libexec/apache2/modproxybalancer.so
    0x100652000 - 0x100679ffb mod_ssl.so ??? (???) /usr/libexec/apache2/mod_ssl.so
    0x100683000 - 0x1006aefef libssl.0.9.7.dylib ??? (???) <088aa0e89525fbb374d9985ba9d37178> /usr/lib/libssl.0.
    9.7.dylib
    0x1006be000 - 0x10079ffff libcrypto.0.9.7.dylib ??? (???) <c39effd87ec6fb72b9a95a5c63baca41> /usr/lib/libcry
    pto.0.9.7.dylib
    0x1007f7000 - 0x1007fafff mod_mime.so ??? (???) /usr/libexec/apache2/mod_mime.so
    0x1007fd000 - 0x1007fdfff mod_asis.so ??? (???) /usr/libexec/apache2/mod_asis.so
    0x101000000 - 0x101004fff mod_status.so ??? (???) /usr/libexec/apache2/mod_status.so
    0x101007000 - 0x10100dfff mod_autoindex.so ??? (???) /usr/libexec/apache2/mod_autoindex.so
    0x101010000 - 0x101012fff mod_info.so ??? (???) /usr/libexec/apache2/mod_info.so
    0x101015000 - 0x101019fff mod_cgi.so ??? (???) /usr/libexec/apache2/mod_cgi.so
    0x10101d000 - 0x10101efff modvhostalias.so ??? (???) /usr/libexec/apache2/modvhostalias.so
    0x101021000 - 0x101027fff mod_negotiation.so ??? (???) /usr/libexec/apache2/mod_negotiation.so
    0x10102a000 - 0x10102afff mod_dir.so ??? (???) /usr/libexec/apache2/mod_dir.so
    0x10102d000 - 0x10102ffff mod_imagemap.so ??? (???) /usr/libexec/apache2/mod_imagemap.so
    0x101032000 - 0x101032fff mod_actions.so ??? (???) /usr/libexec/apache2/mod_actions.so
    0x101035000 - 0x101036fff mod_speling.so ??? (???) /usr/libexec/apache2/mod_speling.so
    0x101039000 - 0x10103afff mod_userdir.so ??? (???) /usr/libexec/apache2/mod_userdir.so
    0x10103d000 - 0x10103efff mod_alias.so ??? (???) /usr/libexec/apache2/mod_alias.so
    0x101041000 - 0x10104efff mod_rewrite.so ??? (???) /usr/libexec/apache2/mod_rewrite.so
    0x101052000 - 0x1015d2fff libphp5.so ??? (???) <b6b01a52bcf09953aa161be044f8c01e> /usr/libexec/apache2/libph
    p5.so
    0x1017f9000 - 0x10181afff libresolv.9.dylib ??? (???) <90be5db0e9ea61eb69457958db0841ae> /usr/lib/libresolv.
    9.dylib
    0x101823000 - 0x10182ffff libexslt.0.dylib ??? (???) <b69d752e600accf6159145441f520678> /usr/lib/libexslt.0.
    dylib
    0x101835000 - 0x101878ffb libiodbc.2.dylib ??? (???) <16d614ee826d1d40799cce4b01d75a2d> /usr/lib/libiodbc.2.
    dylib
    0x101886000 - 0x1018bdfff com.apple.LDAPFramework 1.4.3 (106) <6766f8bbf5ef998722483d7caf3d6a83> /System/Lib
    rary/Frameworks/LDAP.framework/Versions/A/LDAP
    0x1018c8000 - 0x1018f8ffb libcurl.4.dylib ??? (???) <276acb990f3a40bbae7aaa39c0ae6305> /usr/lib/libcurl.4.dy
    lib
    0x101903000 - 0x1019f8fff libxml2.2.dylib ??? (???) <9b882819fde96b95972426b99ecaa22b> /usr/lib/libxml2.2.dy
    lib
    0x101a25000 - 0x101b93fff libicucore.A.dylib ??? (???) <a0360f4a6f39c2b063bb7b3bf0549819> /usr/lib/libicucor
    e.A.dylib
    0x101be7000 - 0x101ca5fff edu.mit.Kerberos 6.0.11 (6.0.11) <db4f23dfaee0767dcb621ad5e21f5d09> /System/Librar
    y/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x101cd1000 - 0x101cf8fff libxslt.1.dylib ??? (???) <edd5bcbc17be0053cc2014d045ccbe08> /usr/lib/libxslt.1.dy
    lib
    0x101d02000 - 0x101d76fe7 libstdc++.6.dylib ??? (???) <379a6a2dc6e21ba77310b3d2d9ea30ac> /usr/lib/libstdc++.
    6.dylib
    0x101dc6000 - 0x101dc6fff com.apple.Carbon 136 (136) <03d8b56572c45d8e6de756bc2fb86187> /System/Library/Fram
    eworks/Carbon.framework/Versions/A/Carbon
    0x101dca000 - 0x101dcffff com.apple.CommonPanels 1.2.4 (85) <8f5631ff238ad1bad2e031fe5e7442d2> /System/Libra
    ry/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Vers ions/A/CommonPanels
    0x101dd7000 - 0x101ddaffb com.apple.help 1.1 (36) <625c2d6bb29ee822f9dce6322d08df47> /System/Library/Framewo
    rks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
    0x101de0000 - 0x1020c5feb com.apple.HIToolbox 1.5.0 (???) <46637338322de85c62a6a533685278ae> /System/Library
    /Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/ A/HIToolbox
    0x10220c000 - 0x102222ff9 com.apple.ImageCapture 4.0 (5.0.0) /System/Library/Frameworks/Carbon.framework/Ver
    sions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
    0x10223e000 - 0x1022d9fe7 com.apple.ink.framework 101.3 (86) <03096cd083a6e70bc7a18ad1b81feb15> /System/Libr
    ary/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/I nk
    0x1022fa000 - 0x1022fcfff com.apple.NavigationServices 3.5.1 (161) <a5bffaee5164cca8b80082f7a8eec01b> /Syste
    m/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.f ramework/Versions/A/NavigationServices
    0x102301000 - 0x10231afff com.apple.openscripting 1.2.6 (???) <c1625319b1a114ffac2b866c3aa0ddd5> /System/Lib
    rary/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/V ersions/A/OpenScripting
    0x10232d000 - 0x10232ffff com.apple.print.framework.Print 218 (220) <23e69d8d75c4fe464508c2fe74a8ff6d> /Syst
    em/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Ver sions/A/Print
    0x102335000 - 0x102338fff com.apple.securityhi 3.0 (30817) <1112cafa6d76e27196cd0579b589d8df> /System/Librar
    y/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Version s/A/SecurityHI
    0x10233d000 - 0x102347fff com.apple.speech.recognition.framework 3.7.24 (3.7.24) <a49d89814bff9aff6d477c00e4
    26e158> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechReco
    gnition
    0x102350000 - 0x102350ff8 com.apple.ApplicationServices 34 (34) <29a6f07deb1ef821735e2c18ef1e9fa5> /System/L
    ibrary/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x102354000 - 0x102354ffa com.apple.CoreServices 32 (32) <f1ae7e34fb008524b502ed0185b32794> /System/Library/
    Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x102358000 - 0x1025f1ff3 com.apple.Foundation 6.5.1 (677.1) <7dd0ab8f638f733f92fb404ab52a9469> /System/Libr
    ary/Frameworks/Foundation.framework/Versions/C/Foundation
    0x102810000 - 0x102904fff libobjc.A.dylib ??? (???) <2a75ad1e409456e8a3c7eeb08ecca65b> /usr/lib/libobjc.A.dy
    lib
    0x102996000 - 0x102acdfef com.apple.CoreFoundation 6.5 (476) <ff4f53a27625b5452ddd0c02ca705039> /System/Libr
    ary/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x102be0000 - 0x102c7ffe3 com.apple.ApplicationServices.ATS 3.0 (???) <9dfc9cd49821959f17751d77642d791f> /Sy
    stem/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS. framework/Versions/A/ATS
    0x102ca7000 - 0x102d72fe7 com.apple.ColorSync 4.5.0 (4.5.0) /System/Library/Frameworks/ApplicationServices.f
    ramework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x102db7000 - 0x103379fef com.apple.CoreGraphics 1.351.0 (???) <6af0f30911afe064a606954f5436a8ea> /System/Li
    brary/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphic s.framework/Versions/A/CoreGraphics
    0x103461000 - 0x1034dbff3 com.apple.CoreText 2.0.0 (???) <3f29babe3dccac95d426e71f113d88b8> /System/Library/
    Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framewor k/Versions/A/CoreText
    0x103520000 - 0x103574fe3 com.apple.HIServices 1.6.0 (???) <57f759c74c1e7eca6b934ce50d624beb> /System/Librar
    y/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.fram ework/Versions/A/HIServices
    0x10359c000 - 0x1036d7fe9 com.apple.ImageIO.framework 2.0.0 (2.0.0) <1ca4f6031de7b5aa67dc5b37342283f9> /Syst
    em/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageI O.framework/Versions/A/ImageIO
    0x103736000 - 0x1037a5ff9 com.apple.print.framework.PrintCore 5.5 (245) <bf6986a814e44613d1cb077dde368e56> /
    System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/Pr intCore.framework/Versions/A/PrintCore
    0x1037dc000 - 0x10381ffef com.apple.QD 3.11.50 (???) <550738019c21ba70e7876fc5f88819c6> /System/Library/Fram
    eworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions /A/QD
    0x103834000 - 0x103845fff com.apple.speech.synthesis.framework 3.6.59 (3.6.59) <959487d33391362535845289e644
    0d24> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/S
    peechSynthesis
    0x103855000 - 0x103b4ffe3 com.apple.CoreServices.CarbonCore 783 (783) <771f850baf0dafb0de64af0550740fa6> /Sy
    stem/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore. framework/Versions/A/CarbonCore
    0x103bb6000 - 0x103c3dff3 com.apple.CFNetwork 220 (221) <a9a6f87532b6c9fc3037feb5a17e6181> /System/Library/F
    rameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versi ons/A/CFNetwork
    0x103c78000 - 0x103cc4fe7 com.apple.Metadata 10.5.0 (398) <e11fd065380013a5ab73401c531ace51> /System/Library
    /Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Vers ions/A/Metadata
    0x103ce1000 - 0x103d8cfef com.apple.CoreServices.OSServices 210.2 (210.2) <b89b40233364ac3bf4e562037e4d4d60>
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x103de2000 - 0x103e73fff com.apple.SearchKit 1.2.0 (1.2.0) <b5dc67de31f5d81eec9cbb4a6bcc3c28> /System/Libra
    ry/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/V ersions/A/SearchKit
    0x103ebe000 - 0x103ef9fff com.apple.AE 402 (402) <7843f8c320e391d5c1ffe58966b1a561> /System/Library/Framewor
    ks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x103f13000 - 0x103fa8ffb com.apple.LaunchServices 286 (286) <227910304d217f41613dfbfe64637e3e> /System/Libr
    ary/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.frame work/Versions/A/LaunchServices
    0x103ff1000 - 0x104009fff com.apple.DictionaryServices 1.0.0 (1.0.0) <ce7135044e951deaa2b687bc8537809a> /Sys
    tem/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionarySe rvices.framework/Versions/A/DictionaryServi
    ces
    0x10401b000 - 0x104059fef com.apple.framework.IOKit 1.5.1 (???) <4b61f44558a20ceb97b15203d1f8d306> /System/L
    ibrary/Frameworks/IOKit.framework/Versions/A/IOKit
    0x104070000 - 0x104076fff com.apple.DiskArbitration 2.2 (2.2) <c0e47dd82571204334c94fbad7b4844f> /System/Lib
    rary/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x10407f000 - 0x104087ffa libbsm.dylib ??? (???) <a870a8e515e1a6407c81ddeebba21793> /usr/lib/libbsm.dylib
    0x10408d000 - 0x1040beff7 libauto.dylib ??? (???) <b24cb5456ebe26429fe58761f01d1b8a> /usr/lib/libauto.dylib
    0x1040cc000 - 0x1042cdffb com.apple.security 5.0.1 (32736) <4945ca87363b0c57b23f625022978c56> /System/Librar
    y/Frameworks/Security.framework/Versions/A/Security
    0x104425000 - 0x104461ff7 com.apple.SystemConfiguration 1.9.0 (1.9.0) <43c49a2517aaa3d4b9111451b338d576> /Sy
    stem/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfigura tion
    0x104483000 - 0x104483ffd com.apple.Accelerate 1.4 (Accelerate 1.4) /System/Library/Frameworks/Accelerate.fr
    amework/Versions/A/Accelerate
    0x104487000 - 0x10454bfe2 com.apple.vImage 3.0 (3.0) /System/Library/Frameworks/Accelerate.framework/Version
    s/A/Frameworks/vImage.framework/Versions/A/vImage
    0x10455b000 - 0x10455bffd com.apple.Accelerate.vecLib 3.4 (vecLib 3.4) /System/Library/Frameworks/Accelerate
    .framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x10455f000 - 0x1045ccfef libvMisc.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/
    A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x1045d8000 - 0x1045f2fff libvDSP.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A
    /Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x1045fa000 - 0x104db7fef libBLAS.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A
    /Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x104e00000 - 0x1051b8fff libLAPACK.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions
    /A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x1051e4000 - 0x105206fff libJPEG.dylib ??? (???) <0b51f0afb5fb084ff31bbcae8e9cf342> /System/Library/Framewo
    rks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versio ns/A/Resources/libJPEG.dylib
    0x10520d000 - 0x105250fef libTIFF.dylib ??? (???) <ef7ca7cb3a458d691d950e916a58e864> /System/Library/Framewo
    rks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versio ns/A/Resources/libTIFF.dylib
    0x10525c000 - 0x105260fff libGIF.dylib ??? (???) <28ed5fa039c8b1952b429387dbdc5007> /System/Library/Framewor
    ks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Version s/A/Resources/libGIF.dylib
    0x105265000 - 0x105282fef libPng.dylib ??? (???) <d2954ec6cb33de7d57d118085d6f0609> /System/Library/Framewor
    ks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Version s/A/Resources/libPng.dylib
    0x105289000 - 0x10528bff9 libRadiance.dylib ??? (???) <8ee3b6e664d605633d85807d6aaabd92> /System/Library/Fra
    meworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Ve rsions/A/Resources/libRadiance.dylib
    0x10528f000 - 0x1052b8fff libcups.2.dylib ??? (???) <59720983b28e0acbe37d2eb3f3730d5b> /usr/lib/libcups.2.dy
    lib
    0x1052c2000 - 0x1052fffe7 com.apple.coreui 0.1 (60) /System/Library/PrivateFrameworks/CoreUI.framework/Versi
    ons/A/CoreUI
    0x105320000 - 0x1056f4fff com.apple.QuartzCore 1.5.1 (1.5.1) <37571df994ca7218ce5a3341db57dac8> /System/Libr
    ary/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x105868000 - 0x10592bfef com.apple.DesktopServices 1.4.3 (1.4.3) <c8a09b7a4b3e1f75d077f23e04975609> /System
    /Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServi cesPriv
    0x10598f000 - 0x10599efe7 com.apple.opengl 1.5.5 (1.5.5) <e0518a68235f91820bef6c18168f99b9> /System/Library/
    Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x1059a5000 - 0x1059e0ff7 libGLImage.dylib ??? (???) <02e442d055de52cc3a161e09e985ea95> /System/Library/Fram
    eworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x1059e9000 - 0x1059ebff7 libffi.dylib ??? (???) <5ccd57a3de7db7f7bffa1b6ef2217b0c> /usr/lib/libffi.dylib
    0x1059ef000 - 0x105a0cfef com.apple.CoreVideo 1.5.0 (1.5.0) <29ba8e2178713b13d6f57dac5dfd919c> /System/Libra
    ry/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x105a20000 - 0x105a84fef libGLU.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libr
    aries/libGLU.dylib
    0x105a98000 - 0x105aadff7 libGL.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libra
    ries/libGL.dylib
    0x105ab9000 - 0x105fd5f16 libGLProgrammability.dylib ??? (???) <9c4a1b209fe5068d72abe22a3e84d2d2> /System/Li
    brary/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dyli b
    0x10611a000 - 0x10611affb com.apple.installserver.framework 1.0 (8) /System/Library/PrivateFrameworks/Instal
    lServer.framework/Versions/A/InstallServer
    0x10611e000 - 0x10612ffff libsasl2.2.dylib ??? (???) <a892d65a9a2f0db3308daac62c42b9f6> /usr/lib/libsasl2.2.
    dylib
    0x106159000 - 0x10615bfff modauthapple.so ??? (???) <11144ad26b721e67ba8a4c32530afb66> /usr/libexec/apache
    2/modauthapple.so
    0x10615e000 - 0x106161fff modspnegoapple.so ??? (???) <221442ae9f81a5336be453e23231a6e5> /usr/libexec/apac
    he2/modspnegoapple.so
    0x106164000 - 0x106166fff com.apple.spnegoapache 10.5 (10.5) <1e0ed64370b3528d271b242dc0146204> /System/Libr
    ary/PrivateFrameworks/SpnegoApache.framework/Versions/A/SpnegoApache
    0x10616a000 - 0x106188ff3 com.apple.DirectoryService.Framework 3.5 (3.5) <8b37d94eea85646e896f096d4a306a94>
    /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServic e
    0x106194000 - 0x106198fff moddigestapple.so ??? (???) <fcc93ac5b54dbd9824158e533ddcb626> /usr/libexec/apac
    he2/moddigestapple.so
    0x10619c000 - 0x10619dfff modhfsapple.so ??? (???) <11e2b3485553dfc46a12d9a4b5c578a0> /usr/libexec/apache2
    /modhfsapple.so
    0x1061a0000 - 0x1061b7feb mod_WebObjects.so ??? (???) /System/Library/WebObjects/Adaptors/Apache2.2/mod_WebO
    bjects.so
    0x7fff5fc00000 - 0x7fff5fc2e3a3 dyld 95.3 (???) <cd99d065ba4917450dca6958a854c594> /usr/lib/dyld
    0x7fffffe00000 - 0x7fffffe01780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
    0xfffffffffffec000 - 0xfffffffffffeffff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib

  • Case insensitivity setting?

    I hope someone can help me. I am using Oracle 9i as my database with Remedy ARS on top. I want to have all queries/searches on text fields to be case insensitive. Remedy indicates this is a database setting but I can't find it documented anywhere. Please Advise...
    Thanks,
    Doug...

    Hi,
    As far as I know there is no way to make Oracle case insensitive, without using functions.
    Paolo

  • Casi insensitive while inserting

    I have seen a new feature in oracle10G where we can make oracle case insensitive but it works at select but not at insert.
    For example
    SQL> create table a(name varchar2(10) primary key);
    Table created.
    SQL> create table b(name varchar2(10) references a)
    2 ;
    Table created.
    SQL> insert into a values('Pan');
    1 row created.
    SQL> insert into b values('pan');
    insert into b values('pankaj')
    ERROR at line 1:
    ORA-02291: integrity constraint (DBO.SYS_C00673363) violated - parent key not
    found
    If i write p in lower case it gives me error in referential integrity.Is there any way where we can insert without checking the case.I dont want to use upper function.

    I wouldn't work through a reference constraint.
    Maybe through a trigger "instead of" as I show here below, but you have to think about the business rule of such thing :
    SQL> create table a(name varchar2(10) primary key);
    Table created.
    SQL>
    SQL> create table b(name varchar2(10) references a);
    Table created.
    SQL>
    SQL> insert into a values('Pan');
    1 row created.
    SQL>
    SQL> insert into b values('pan');
    insert into b values('pan')
    ERROR at line 1:
    ORA-02291: integrity constraint (SYSADM.SYS_C00465443) violated - parent key
    not found
    SQL>
    SQL> drop table b;
    Table dropped.
    SQL> create table b_tbl(name varchar2(10));
    Table created.
    SQL> create or replace view b as select * from b_tbl;
    View created.
    SQL> create or replace trigger trg_bi_b
      2  instead of insert on b
      3  begin
      4      insert into b_tbl
      5      select :new.name
      6      from   a
      7      where  upper(name)=upper(:new.name);
      8      if sql%rowcount = 0 then
      9         raise_application_error(-20001,'Name doesn''t exists into a table');
    10      end if;
    11  end;
    12  /
    Trigger created.
    SQL> insert into b values('pan');
    1 row created.
    SQL> insert into b values('Pan');
    1 row created.
    SQL> insert into b values('pAn');
    1 row created.
    SQL> insert into b values('PAN');
    1 row created.
    SQL> insert into b values('paN');
    1 row created.
    SQL> insert into b values('pankaj');
    insert into b values('pankaj')
    ERROR at line 1:
    ORA-20001: Name doesn't exists into a table
    ORA-06512: at "SYSADM.TRG_BI_B", line 7
    ORA-04088: error during execution of trigger 'SYSADM.TRG_BI_B'
    SQL> select * from a;
    NAME
    Pan
    SQL> select * from b;
    NAME
    pan
    Pan
    pAn
    PAN
    paN
    SQL> You have to create same one for update.
    Nicolas.

  • Case INSENSITIVE Columns on Oracle

    Hello Friends,
    Good Monday for everyone....
    I would like to ask you guys if there is a way to create a case INSENSITIVE Columns on Oracle. I used on Sqlserver before the COLLATE sintax, and I was able to make a columns (just that one) INSENSITIVE.
    I'm using oracle 10gr2 on Windows plataform and herte is my nls_parameters. My ideia is to search on this column without the need of performing a function UPPER and LOWER and etc...
    NLS_LANGUAGE BRAZILIAN PORTUGUESE
    NLS_TERRITORY BRAZIL
    NLS_CURRENCY Cr$
    NLS_ISO_CURRENCY BRAZIL
    NLS_NUMERIC_CHARACTERS ,.
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD/MM/RR
    NLS_DATE_LANGUAGE BRAZILIAN PORTUGUESE
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_SORT WEST_EUROPEAN
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD/MM/RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT DD/MM/RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY Cr$
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    tks a lot
    Keen

    APC wrote:
    No, they mean a setting which makes "APC" or "apc" match "Apc".
    There is nothing to be done on 10g, other than building a function based index on the column in question, so that any UPPER() searches are optimized.
    Well, as Kamran Agayev already noted CI is available in 10g too. It also worth mentioning FBI creates a hidden column. Also, your statement
    In 11g we have the option to set the NLS_SORT parameter so that any searches are case-insensitive (or indeed accent insensitive). Find out more.
    is incomplete. NLS_SORT affects nothing but sort:
    SQL> connect scott
    Enter password: *****
    Connected.
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    order by name
    12  /
    NAM
    Joe
    Max
    Sam
    joe
    max
    sam
    6 rows selected.
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    where name = 'max'
    12  /
    NAM
    max
    SQL> alter session set nls_sort = binary_ci
      2  /
    Session altered.
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    order by name
    12  /
    NAM
    Joe
    joe
    max
    Max
    Sam
    sam
    6 rows selected.
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    where name = 'max'
    12  /
    NAM
    max
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    where name like 'm%'
    12  /
    NAM
    max
    SQL> select 'Max' name from dual union
      2  select 'max' name from dual
      3  /
    NAM
    Max
    max
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  distinct name
    10    from  t
    11  /
    NAM
    sam
    Joe
    joe
    max
    Sam
    Max
    6 rows selected.
    SQL> As you can see, NLS_SORT alone works on sort but not on "searches". We also need to set NLS_COMP, which by default is BINARY. Prior to 10g R2 (I am not 100% sure, it could be prior 10g), the only NLS_COMP choice, besides BINARY, was ANSI. However, ANSI does not work with all comparison operators (e.g. does not work for LIKE, UNION, DISTINCT):
    SQL> alter session set nls_sort = binary_ci
      2  /
    Session altered.
    SQL> alter session set nls_comp=ansi
      2  /
    Session altered.
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    order by name
    12  /
    NAM
    Joe
    joe
    max
    Max
    Sam
    sam
    6 rows selected.
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    where name = 'max'
    12  /
    NAM
    Max
    max
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    where name like 'm%'
    12  /
    NAM
    max
    SQL> select 'Max' name from dual union
      2  select 'max' name from dual
      3  /
    NAM
    Max
    max
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  distinct name
    10    from  t
    11  /
    NAM
    sam
    Joe
    joe
    max
    Sam
    Max
    6 rows selected.
    SQL> Starting 10g R2 NLS_COMP can be set to LINGUISTIC, which will also work for LIKE and UNION but not for DISTINCT:
    SQL> alter session set nls_sort = binary_ci
      2  /
    Session altered.
    SQL> alter session set nls_comp=linguistic
      2  /
    Session altered.
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    order by name
    12  /
    NAM
    Joe
    joe
    max
    Max
    Sam
    sam
    6 rows selected.
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    where name = 'max'
    12  /
    NAM
    Max
    max
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  name
    10    from  t
    11    where name like 'm%'
    12  /
    NAM
    Max
    max
    SQL> select 'Max' name from dual union
      2  select 'max' name from dual
      3  /
    NAM
    Max
    SQL> with t as (
      2             select 'Max' name from dual union all
      3             select 'sam' name from dual union all
      4             select 'Joe' name from dual union all
      5             select 'max' name from dual union all
      6             select 'joe' name from dual union all
      7             select 'Sam' name from dual
      8            )
      9  select  distinct name
    10    from  t
    11  /
    NAM
    sam
    Joe
    joe
    max
    Sam
    Max
    6 rows selected.
    SQL> However even LINGUISTIC does not work with:
    • CLOB or NCLOB data types
    • Object data types
    • Table partitions
    • Index-organized tables
    SY.

  • Make oracle database case insensitive

    Hi All,
    I am using oracle 10g EE as my back end database and front end is in C# .NET. I want to make my oracle database to perform any comparison case insensitively. I searched on the net and found several ways to achieve that
    1. using upper function in procedures - can't afford
    2. function index - can't afford
    3. setting the session parameters
    ALTER SESSION SET NLS_COMP=ANSI;
    ALTER SESSION SET NLS_SORT=BINARY_CI;
    The 3rd looks promising and can save lot of time. I have several question
    1. Is there any way I can set these parameters from .NET?
    2. Is there any way I can set once and will make only my database case insensitive?
    any link, reference is highly appreciated.
    Thanks,

    user10768079 wrote:
    Thanks for your mail.
    I want to apply these settings to my oracle database only. It should not affect other oracle database that exist with my db.
    Thanks,It would make sense to issue "ALTER SESSION" statements during logon process from the .NET code instead of changing the entire database - which might affect other users. Judging by the way you have written this, I feel you are referring to a schema rather than database.
    .NET surely has the capability to run "ALTER SESSION" statements.

  • Case Insensitive Comparison in Oracle 9i

    hi all
    in Oracle 10g we have the following statement to enable case-INsensitive comparison:
    ALTER SESSION SET nls_sort=binary_ai
    do we have somthing like this in Oracle 9i to enable case-INsensitive comparison
    thnx
    Ashu :)

    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    JServer Release 9.2.0.7.0 - Production
    SQL> create table t as select 'télé' t from dual
    union select 'TÉLÉ' from dual
    union select 'tele' from dual
    union select 'TELE' from dual
    union select 'Bebe' from dual;
    Table created.
    SQL> alter session set nls_comp=ansi;
    Session altered.
    SQL> ALTER SESSION SET NLS_SORT=GENERIC_BASELETTER;
    Session altered.
    SQL> select * from t where t='tele';
    T
    TELE
    TÉLÉ
    tele
    télé

  • Phonetic and case insensitive searches in Oracle

    Hi,
    Do you know if Oracle 9i allows phonetic searches ? I've found several solutions for case insensitive searches, but I'd need phonetic searches too (like 'había' vs. 'havia' vs. 'habia', etc)
    Any comment would be really welcome.
    Thanks in advance,
    Juan

    lookup soundex in the SQL Reference guide.

  • Intermittent oracle errors with case-insensitive searches

    Hi
    I have a table with several columns, two of them are indexed with oracle text.
    When I ask queries containing "CONTAINS"-clauses against these columns everything works great. However I have a few other columns in table that I want to run case-insensitive comparisons with.
    So I enable case-insensitivity:
    ALTER SESSION SET NLS_COMP=LINGUISTIC
    ALTER SESSION SET NLS_SORT=BINARY_CI
    Now I suddenly start getting intermittent errors.
    When I call a query:
    SELECT
    FROM
    article_table at
    WHERE
    CONTAINS(searchfield , '%MEAT%') > 0
    Sometimes it works, but sometimes I get:
    ERROR
    ORA-29902: ett fel inträffade när rutinen ODCIIndexStart() kördes
    ORA-20000: Oracle Text error:
    DRG-00100: internal error, arguments : [50935],[drpn.c],[1051],[],[]
    DRG-00100: internal error, arguments : [50935],[drpnw.c],[601],[],[]
    DRG-00100: internal error, arguments : [51002],[drwa.c],[594],[],[]
    DRG-00100: internal error, arguments : [51028],[drwaw.c],[297],[0],[%MEAT%]
    DRG-00100: internal error, arguments : [50401],[dreb.c],[1033],[],[]
    ORA-00600: intern felkod, argument: [qernsRowP], [1], [], [], [], [], [], []
    Anyone knows what is going on? Is this bug? Is there a fox for it?
    Thanks for any help anyone can provide.
    /Kjell

    Clearly that's a bug. Unless anyone here recognizes it and can point you to the bug/patch number I would strongly recomend you to take it to oracle support.
    Incidently, doing a search for '%MEAT%' is usually a bad idea. Leading wildcards will disable the use of the index on the $I table, so unless you're using the SUBSTRING_INDEX option such searches will usually perform very badly. They shouldn't cause "internal errors", of course.

  • Case insensitive search and replace using ASP and Oracle database

    I am interested in providing a case insensitive search and replace query in a Active server page. At present data is collected from a html form which passes the text values to a ASP page. The ASP page runs a search (select query) to find if the data is already in the Oracle database, if it isn't the ASP page runs sql (INSERT) to insert the record, if not the page returns a form indicating that the record already exists. At present we can convert the case of new records using the VB UCase() function. But can't do a insensitive search with the existing records. *The Query must be able to utilize ASP variables.
    Any help would be much appreciated.
    David Cheryk
    null

    I can't check your script right now since I'm not on Mac. I recommend you to use FindChangeByList script for CS4 instead (it works with CS3): http://forums.adobe.com/servlet/JiveServlet/download/2080627-12695/FindChangeByListCS4.zip together with Martin Fisher's: http://www.kasyan.ho.com.ua/downloads/RecordFindChange_CS3_Kas.zip
    Use this script to record settings from Text and GREP tabs, then copy and paste them into FindChandgeList.txt file.
    Or, optionally you can use this script: http://www.kasyan.ho.com.ua/find_change_by_queries.html.
    Kasyan

  • Case Insensitive Search coupled with "LIKE" operator.

    Greetings All, I am running Oracle 11gR1 RAC patchet 25 on Windows X64.
    This db supports and application that requires case insensitive searches.
    Because there are a few entry points into the db I created an "after login" trigger:
    CREATE OR REPLACE TRIGGER MyAppAfterLogon_TRGR
    AFTER LOGON
    ON DATABASE
    DECLARE
    vDDL VARCHAR2(200) := 'alter session set nls_comp=''linguistic''';
    vDDL2 VARCHAR2(200) := 'alter session set nls_sort=''binary_ci''';
    BEGIN
    IF ((USER = 'MyAppUSER') OR(USER = 'MyAppREPORTINGUSER')) THEN
    EXECUTE IMMEDIATE vDDL;
    EXECUTE IMMEDIATE vDDL2;
    END IF;
    END MyAppAfterLogon_TRGR;
    This ensures that everyone connecting to the DB via any mechanism will automatically have case insensitive searches.
    Now, to optimize the know queries I created the standard index to support normal matching queries:
    select * from MyTable where Name = 'STEVE';
    The index looks like:
    CREATE INDEX "CONTACT_IDX3 ON MYTABLE (NLSSORT("NAME",'nls_sort=''BINARY_CI'''))
    This all works fine, no issues.
    The problem is when I write a query that uses the "LIKE" operator:
    select * from MyTable where Name like 'STEV%';
    I get back the record set I expect. However, my index is not used? I can't for the life of me get this query to use an index.
    The table has about 600,000 rows and I have run gather schema stats.
    Does anyone know of any issues with case insensitive searches and the "LIKE" clause?
    Any and all help would be appreciated.
    L

    I think there is issue with your logon trigger :
    "IF ((USER = 'MyAppUSER') OR(USER = 'MyAppREPORTINGUSER')) THEN"
    it should be :
    IF UPPER(USER) = 'MYAPPUSER' OR UPPER(USER) = 'MYAPPREPORTINGUSER' THEN
    because user name stored in Upper case. Check and try.
    HTH
    Girish Sharma

  • How to serch a character string in a BLOB (case insensitive)

    Hi
    Could somebody help me with this please.
    I need to search for the existance of a character string in a BLOB column of a table.
    I can do it in the below way.
    PROCEDURE search (in_search VARCHAR2) IS
    lob_doc BLOB;
    Pattern VARCHAR2(30);
    Position INTEGER := 0;
    Offset INTEGER := 1;
    Occurrence INTEGER := 1;
    BEGIN
    Pattern := utl_raw.cast_to_raw(in_search);
    SELECT BLOB_CONTENT INTO lob_doc
    FROM documents WHERE ein = '702265981';
    DBMS_LOB.OPEN (lob_doc, DBMS_LOB.LOB_READONLY);
    Position := DBMS_LOB.INSTR(lob_doc, Pattern, Offset, Occurrence);
    IF Position = 0 THEN
    DBMS_OUTPUT.PUT_LINE('Pattern not found');
    ELSE
    DBMS_OUTPUT.PUT_LINE('The pattern occurs at '|| position);
    END IF;
    DBMS_LOB.CLOSE (lob_doc);
    END search;
    But the problem is, it does a case sensitive search.
    I need a case-insensitive search
    Thanks in Advance

    The best way would be to use Oracle Text.
    However, if you want a quick and dirty solution, I would convert to CLOB, and (assuming 9i) you can use LOWER on the CLOB.
    Click on this link for a blob_to_clob function.
    Re: BLOB to CLOB?

  • SELECT INTO doing case insensitive query?

    Hi all,
    I'm having a problem with a query acting as if it is case-insensitive when I do a "SELECT table.x INTO variable ...". If I do the same query, without the "INTO variable", I get one result, as expected.
    The query is similar to the following:
    SELECT table_id INTO variable FROM table WHERE table.varchar2column = 'name' AND table.integercolumn = int_variable;
    There is a unique constraint forcing the varchar2column / integercolumn values to be unique.
    If the varchar2column has two entries that differ only in case, a regular select statement returns one result. However, in the stored procedure using the INTO, I get the following error message:
    ORA-01422: exact fetch returns more than requested number of rows
    It does not get that if I remove the entry that differs only in letter-case. This is Oracle 10.2.0.1.0, if that matters.
    I need this query to be case sensitive. I'm not a DB expert, I'm just a developer trying to fix a problem. I attempted to run "ALTER session SET nls_sort = binary" in the stored procedure, but I guess I can't do that...
    Any suggestions would be appreciated.

    791307 wrote:
    SELECT table_id INTO variable FROM table WHERE table.varchar2column = 'name' AND table.integercolumn = int_variable;
    ...When you say, "...AND table.integercolumn = int_variable;" What is the name of int_variable? Does that name match some column name? Could you post the table creats and a complete sample PL/SQL block with your issue?
    One of the things that gets me every once in awhile is having a variable name that matches a column name. In that case the column name is used inside the select statement, not the variable. To avoid that issue, I use v_ for all my variables. (Others have different standard prefixes.)
    I only point this out, because it might be given results that look case insensitive on the varchar2 column, but is really an issue with the integer column matching to a variable:
    SQL> drop table T;
    Table dropped.
    SQL> create table T (id number constraint T_PK primary key
      2      , Varchar2Data varchar2(20)
      3      , NumberData number(38)
      4      , constraint T_UK1 unique (Varchar2Data, NumberData)
      5  );
    Table created.
    SQL> insert into T values (1, 'STRING', 100);
    1 row created.
    SQL> insert into T values (2, 'string', 200);
    1 row created.
    SQL> insert into T values (3, 'STRING', 300);
    1 row created.
    SQL> select * from T where Varchar2Data = 'STRING' and NumberData = 100;
            ID VARCHAR2DATA         NUMBERDATA
             1 STRING                      100
    SQL> declare
      2      NumberData number(38);
      3      Id Number;
      4  begin
      5      NumberData := 100;
      6      select Id into Id
      7      from T
      8      where T.Varchar2Data = 'STRING'
      9      and T.NumberData = NumberData;
    10      DBMS_OUTPUT.PUT_LINE(Id);
    11  end;
    12  /
    declare
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at line 6
    SQL> declare
      2      v_NumberData number(38);
      3      v_Id Number;
      4  begin
      5      v_NumberData := 100;
      6      select Id into v_Id
      7      from T
      8      where T.Varchar2Data = 'STRING'
      9      and T.NumberData = v_NumberData;
    10      DBMS_OUTPUT.PUT_LINE(v_Id);
    11  end;
    12  /
    1
    PL/SQL procedure successfully completed.
    SQL>

  • Blank padding in case of nchar columns while case insensitive comparison

    hi
    i have my database on oracle 9i .
    i want case insensitive behaviour so i set nls_comp=ANSi and nls_sort to GENERIC_BASELETTER.
    all columns of type character are nchar in my database.
    but when i execute a query having a where condition on nchar column blanks are not padded and there is no result ( documentation says lanks are padded while comparisons)..
    for e.g select * from area where code='bom' does not return result.
    i need to do select * from area where rtrim(code) = 'bom'. (note code is of length nchar(10))
    please suggest if here is any solutions for this.

    It's always helpful when you have problems if you can provide a concrete example of those problems. For example can you provide something like the following the exhibits the problem?
    SQL> SELECT * FROM V$VERSION;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> CREATE TABLE AREA(CODE NCHAR(10));
    Table created.
    SQL> INSERT INTO AREA VALUES ('bom       ');
    1 row created.
    SQL> SELECT * FROM AREA WHERE CODE = 'bom';
    CODE
    bom
    SQL> SHOW PARAMETER NLS_COMP
    NAME                                 TYPE        VALUE
    nls_comp                             string
    SQL> SHOW PARAMETER NLS_SORT
    NAME                                 TYPE        VALUE
    nls_sort                             string
    SQL> ALTER SESSION SET NLS_COMP=ANSI;
    Session altered.
    SQL> ALTER SESSION SET NLS_SORT=GENERIC_BASELETTER;
    Session altered.
    SQL> SELECT * FROM AREA WHERE CODE = 'bom';
    CODE
    bom

Maybe you are looking for

  • I installed Lion this week and my life is over ..

    when I try to use PowerPoint in Lion for inserting a file into the presentation it now crashes.  how do i fix this? when I try to charge my iPhone in Lion it does not charge and its not the cable, it works for itunes.  how do I fix this? and I NOTE T

  • Error Handling in tables using ABap Webdynpro

    Hi All, I am new to this ABAP webdynpro programming. I have a small question. I am using a table control in one of my iview. I need to check some validations on some columns of this table. Let's say I have a table with 3 columns A,B and C.  Case 1 :

  • Transaction logs not being generated.

    Hi Team, We have configured the log shipping sucessfully on SQl 2000 & ECC 5.0. However it ran fine untill yesterdays night and today we found that logshipping is not happening as expected. Now ,we found that transactions logs are not being genereate

  • Selection question

    I have just upgraded from elements to PS CS4. I'm used to using the magnetic lasso to grab stuff, then magnifying to the edges of the select, then using a brush to touch up a few areas of the selection. I'm finding I can do all that in PS CS4 except

  • Can't even start the Safari

    I can't even start my safari ever since the recent upgrade. So after reading almost all the similar posting found in here, I try to put away different stuff. At last, putting away the 'icons' folder could make the Safari start but no page open. Thing