<?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: Select all annotation classes with sql in an Oracle SDE in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/select-all-annotation-classes-with-sql-in-an/m-p/1226426#M7974</link>
    <description>&lt;P&gt;Okay, I think I got it. The key is to use the class extension from the items xml found in the sde.gdb_items_vw.&lt;SPAN&gt;definition field. In the xml you will find the extclsid or&amp;nbsp;class extension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_0-1666906887097.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54671iDBEFAFCA2BF1960B/image-size/large?v=v2&amp;amp;px=999" role="button" title="forestknutsen1_0-1666906887097.png" alt="forestknutsen1_0-1666906887097.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once you know what guid to look for you can make up a sql statement to grab the anno classes.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;with fc as
(select i.name, i.physicalname, i.path, i.definition
    from sde.gdb_items_vw i
    join sde.gdb_itemtypes t
      on i.type = t.uuid
   where t.name = 'Feature Class')
select name, physicalname, path
  from fc
where extractvalue(xmltype(fc.definition), '/DEFeatureClassInfo/EXTCLSID') =
       '{24429589-D711-11D2-9F41-00C04F6BC6A5}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 21:44:20 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2022-10-27T21:44:20Z</dc:date>
    <item>
      <title>Select all annotation classes with sql in an Oracle SDE</title>
      <link>https://community.esri.com/t5/geodatabase-questions/select-all-annotation-classes-with-sql-in-an/m-p/1226007#M7971</link>
      <description>&lt;P&gt;How can I select all annotation classes with sql in an Oracle SDE? I can get all feature classes (including annotation) with this:&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;select i.name, i.physicalname, i.path, t.name
  from sde.gdb_items_vw i
  join sde.gdb_itemtypes t
    on i.type = t.uuid
where t.name = 'Feature Class'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 00:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/select-all-annotation-classes-with-sql-in-an/m-p/1226007#M7971</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2022-10-27T00:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select all annotation classes with sql in an Oracle SDE</title>
      <link>https://community.esri.com/t5/geodatabase-questions/select-all-annotation-classes-with-sql-in-an/m-p/1226426#M7974</link>
      <description>&lt;P&gt;Okay, I think I got it. The key is to use the class extension from the items xml found in the sde.gdb_items_vw.&lt;SPAN&gt;definition field. In the xml you will find the extclsid or&amp;nbsp;class extension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_0-1666906887097.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54671iDBEFAFCA2BF1960B/image-size/large?v=v2&amp;amp;px=999" role="button" title="forestknutsen1_0-1666906887097.png" alt="forestknutsen1_0-1666906887097.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once you know what guid to look for you can make up a sql statement to grab the anno classes.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;with fc as
(select i.name, i.physicalname, i.path, i.definition
    from sde.gdb_items_vw i
    join sde.gdb_itemtypes t
      on i.type = t.uuid
   where t.name = 'Feature Class')
select name, physicalname, path
  from fc
where extractvalue(xmltype(fc.definition), '/DEFeatureClassInfo/EXTCLSID') =
       '{24429589-D711-11D2-9F41-00C04F6BC6A5}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 21:44:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/select-all-annotation-classes-with-sql-in-an/m-p/1226426#M7974</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2022-10-27T21:44:20Z</dc:date>
    </item>
  </channel>
</rss>

