<?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 Setting Version of Oracle Query Layer in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842536#M4753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a way to set the version that a tables versioned view uses when referenced inside ArcMap 10.3 with a query layer. In sql I can use the following to return records only visible to the version specified in line 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;EXEC sde.version_util.set_current_version('user.version_name');
select * from user.sometable_evw;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a query layer is added into ArcMap, the table of contents shows it as referencing the version set in the sde connection file.&amp;nbsp; In my testing I have found that even though the layer falls under the version you may want, it is only reading rows referenced in the default version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if there is another way to set the version the view is using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:18:27 GMT</pubDate>
    <dc:creator>JoeJung</dc:creator>
    <dc:date>2021-12-12T10:18:27Z</dc:date>
    <item>
      <title>Setting Version of Oracle Query Layer</title>
      <link>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842536#M4753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a way to set the version that a tables versioned view uses when referenced inside ArcMap 10.3 with a query layer. In sql I can use the following to return records only visible to the version specified in line 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;EXEC sde.version_util.set_current_version('user.version_name');
select * from user.sometable_evw;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a query layer is added into ArcMap, the table of contents shows it as referencing the version set in the sde connection file.&amp;nbsp; In my testing I have found that even though the layer falls under the version you may want, it is only reading rows referenced in the default version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if there is another way to set the version the view is using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:18:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842536#M4753</guid>
      <dc:creator>JoeJung</dc:creator>
      <dc:date>2021-12-12T10:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Version of Oracle Query Layer</title>
      <link>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842537#M4754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see the same behavior with ArcGIS 10.3.1 and SQL Server.&amp;nbsp; It is arguable whether what you are experiencing is a bug, design limitation, or simply the design of query layers.&amp;nbsp; As is discussed in the documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/map/working-with-layers/what-is-a-query-layer-.htm"&gt;What is a query layer?&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A query layer is a layer or stand-alone table that is defined by a SQL query. Query layers allow both spatial and nonspatial information stored in a DBMS to be easily integrated into GIS projects within ArcMap.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Query layers allow ArcMap to integrate data from geodatabases as well as from DBMSs.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The focus or primary purpose of query layers is accessing data from DBMSes, i.e., not geodatabases.&amp;nbsp; If you are using ArcGIS Desktop to access data in a geodatabase, the assumption is that you will be using the normal way of adding data into the application and not query layers.&amp;nbsp; The New Query Layer dialog box uses SDE connection files to get DBMS properties, not geodatabase properties, so the version the SDE connection file is pointed to is basically ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not defending how this works, or doesn't work, I am just explaining that what you are seeing is expected given the current implementation of query layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 16:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842537#M4754</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-10-14T16:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Version of Oracle Query Layer</title>
      <link>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842538#M4755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua, this is what I was afraid of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tend to rely heavily on query layers since I do not have SQL access to my organizations production data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do see a use case where one might want to interact with dbms tables and geodatabase feature classes in a versioned environment, or maybe I am the exception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 20:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842538#M4755</guid>
      <dc:creator>JoeJung</dc:creator>
      <dc:date>2015-10-14T20:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Version of Oracle Query Layer</title>
      <link>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842539#M4756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Query layers is a form of SQL access to data, so I guess I don't understand your statement regarding not having SQL access to your organizations production data.&amp;nbsp; If that were true, you wouldn't be retrieving any data through query layers either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the use case where someone wants to interact with DBMS tables and geodatabase feature classes in a versioned environment, I think that is quite a common situation.&amp;nbsp; If you want to work with DBMS tables, i.e., non-geodatabase tables or feature classes, then you can use query layers to pull the data into ArcMap.&amp;nbsp; If you want to work with versioned data from a geodatabase, you can use the normal add data workflows to load them into ArcMap.&amp;nbsp; There is nothing that prevents someone from mixing different types of data sources in the same map document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may be misunderstanding your situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842539#M4756</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-10-15T13:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Version of Oracle Query Layer</title>
      <link>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842540#M4757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our IT shop creates and manages our sde connection files, so I do not have a username or password to make a database connection outside of ArcMap.&amp;nbsp; By SQL access, I mean using the database outside of the esri environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I meant by interact is using versioned feature classes and dbms in SQL through a query layer, to generate a table using joins, unions, groups, etc.&amp;nbsp; I know how to do these things with GP tools no problem, what I am interested in seeing are these things happen dynamically while CRUD operations are being performed by other systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I made myself clear.&amp;nbsp; I appreciate the insight.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/setting-version-of-oracle-query-layer/m-p/842540#M4757</guid>
      <dc:creator>JoeJung</dc:creator>
      <dc:date>2015-10-15T13:55:34Z</dc:date>
    </item>
  </channel>
</rss>

