<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: case insensitive search against Oracle backend on AGS using MapServer/Query? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/case-insensitive-search-against-oracle-backend-on/m-p/524350#M20317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the help. I had done some more digging this weekend and came across the "Standardized Queries" thing as a good compromise. You just confirmed it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2013 16:31:34 GMT</pubDate>
    <dc:creator>ericliprandi</dc:creator>
    <dc:date>2013-11-11T16:31:34Z</dc:date>
    <item>
      <title>case insensitive search against Oracle backend on AGS using MapServer/Query?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/case-insensitive-search-against-oracle-backend-on/m-p/524348#M20315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are an ISV and recently built an application that, among other things, allows you to search your features, using the simple &lt;/SPAN&gt;&lt;STRONG&gt;MapServer/Query &lt;/STRONG&gt;&lt;SPAN&gt;option (documented &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Map_Service_Layer/02r3000000p1000000/" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;). All we do is pass in the &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style:italic;"&gt;text&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;SPAN&gt;parameter and let Esri do the work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works great on SQL Server as it performs a case insensitive search of the display field (we haven't verified, but we assume this follows the SQL Server configuration of collation). However, I am at a loss to try to get it to query an Oracle backend and ignore the case of the search text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, we might have to convert to using the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN&gt; clause instead, but as an ISV, this seems to be wrong choice as we might have to build different &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN&gt;clauses depending on the RDBMS backend &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;(or is &lt;SPAN style="font-style:italic;"&gt;UPPER('field name') LIKE UPPER('%term%')&lt;/SPAN&gt; truly universal - at least SQL Server and Oracle?)&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, is there a simple way to have this &lt;/SPAN&gt;&lt;STRONG&gt;MapServer/Query &lt;/STRONG&gt;&lt;SPAN&gt;with &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style:italic;"&gt;text&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;SPAN&gt;be case insensitive in Oracle? I have tried setting environment variables NLS_COMP and NLS_SORT to LINGUISTIC on the ArcGIS Server (Windows) but even after a full restart, it doesn't seem to have taken them. I also tried setting NLS_COMP and NLS_SORT values in the registry key HKLM\SOFTWARE\ORACLE\KEY_OraClient11g_home1, but no luck there either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our environments would be: &lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;ArcGIS 10.2 - Windows&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Oracle 11g - Windows&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;or SQL Server 2012 and up&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Thanks in advance for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 19:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/case-insensitive-search-against-oracle-backend-on/m-p/524348#M20315</guid>
      <dc:creator>ericliprandi</dc:creator>
      <dc:date>2013-11-08T19:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: case insensitive search against Oracle backend on AGS using MapServer/Query?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/case-insensitive-search-against-oracle-backend-on/m-p/524349#M20316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know whether Oracle supports case insensitive searches...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;having said that...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;this seems to be wrong choice as we might have to build different WHERE clauses depending on the RDBMS backend (or is UPPER('field name') LIKE UPPER('%term%') truly universal - at least SQL Server and Oracle?)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems to me that your this particular problem can be solved with the StandardizedQueries - which is enabled by default. This is a new features starting at 10.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With StandardizedQueries enabled, you DO NOT need to build different WHERE clauses depending on the backend RDBMS, instead your query MUST conform to StandardizedQueries specifications, and ArcGIS Server will do the conversion for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Supported_SQL_functions_in_ArcGIS_Server/015400000686000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Supported_SQL_functions_in_ArcGIS_Server/015400000686000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. in this case, simply pass in your where-clause as &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;UPPER('field name') LIKE UPPER('%term%')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; without worrying about the underlying database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/case-insensitive-search-against-oracle-backend-on/m-p/524349#M20316</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-11-11T16:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: case insensitive search against Oracle backend on AGS using MapServer/Query?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/case-insensitive-search-against-oracle-backend-on/m-p/524350#M20317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the help. I had done some more digging this weekend and came across the "Standardized Queries" thing as a good compromise. You just confirmed it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/case-insensitive-search-against-oracle-backend-on/m-p/524350#M20317</guid>
      <dc:creator>ericliprandi</dc:creator>
      <dc:date>2013-11-11T16:31:34Z</dc:date>
    </item>
  </channel>
</rss>

