<?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: Registering a view as a layer using the sdelayer command in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454244#M25917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks you are missing a ',' between OBJECTID and SDE for the -C option.&amp;nbsp; Here is an example on registering a table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;SQL&amp;gt; CREATE TABLE building (OBJECTID INTEGER, shape SDE.ST_GEOMETRY);

SQL&amp;gt; INSERT INTO building VALUES (1, SDE.ST_Polygon ('polygon ((0 0, 0 10, 10 10, 10 0, 0 0))', 2));
SQL&amp;gt; INSERT INTO building VALUES (2, SDE.ST_Polygon ('polygon ((20 0, 30 20, 40 0, 20 0))', 2));
SQL&amp;gt; INSERT INTO building VALUES (3, SDE.ST_Polygon ('polygon ((20 30, 25 35, 30 30, 20 30))', 2));

SQL&amp;gt; create index bf_indx on building(shape) indextype is SDE.ST_spatial_index parameters = ('SDE.ST_grids=1,0,0 SDE.ST_srid=2');

$ sdelayer -o regiSDE.STer -l building,shape -e nac+ -C OBJECTID,SDE -P HIGH -t SDE.ST_GEOMETRY -i 5151 -u vector -p vector&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:15:36 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-11T20:15:36Z</dc:date>
    <item>
      <title>Registering a view as a layer using the sdelayer command</title>
      <link>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454243#M25916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good day&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A view was created with the sdetable command.&amp;nbsp; It was registered with ArcSDE as a table, Oracle View "ERGIS.ARCVW_BUILDING".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To see the view as a layer, it must be registered using the sdelayer command but on execution of this command the layer is not being created.&amp;nbsp; Please see attached screen shots.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone give guidance on what I could do to successfully execute this command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nicholle&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 15:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454243#M25916</guid>
      <dc:creator>NicholleFrontin</dc:creator>
      <dc:date>2011-07-18T15:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Registering a view as a layer using the sdelayer command</title>
      <link>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454244#M25917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks you are missing a ',' between OBJECTID and SDE for the -C option.&amp;nbsp; Here is an example on registering a table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;SQL&amp;gt; CREATE TABLE building (OBJECTID INTEGER, shape SDE.ST_GEOMETRY);

SQL&amp;gt; INSERT INTO building VALUES (1, SDE.ST_Polygon ('polygon ((0 0, 0 10, 10 10, 10 0, 0 0))', 2));
SQL&amp;gt; INSERT INTO building VALUES (2, SDE.ST_Polygon ('polygon ((20 0, 30 20, 40 0, 20 0))', 2));
SQL&amp;gt; INSERT INTO building VALUES (3, SDE.ST_Polygon ('polygon ((20 30, 25 35, 30 30, 20 30))', 2));

SQL&amp;gt; create index bf_indx on building(shape) indextype is SDE.ST_spatial_index parameters = ('SDE.ST_grids=1,0,0 SDE.ST_srid=2');

$ sdelayer -o regiSDE.STer -l building,shape -e nac+ -C OBJECTID,SDE -P HIGH -t SDE.ST_GEOMETRY -i 5151 -u vector -p vector&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454244#M25917</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T20:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Registering a view as a layer using the sdelayer command</title>
      <link>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454245#M25918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks JSkinn3 but I ended up with the same error "Cannot Create Layer".&amp;nbsp; "Object name is not a regular identifier for the underlying DBMS (-322). The current environment is Linux OS, ArcSDE 9.3.1 and Oracle 9i. Nicholle&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 16:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454245#M25918</guid>
      <dc:creator>NicholleFrontin</dc:creator>
      <dc:date>2011-07-19T16:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Registering a view as a layer using the sdelayer command</title>
      <link>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454246#M25919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The example above looks like a search and replace went hog-wild. It also doesn't take the fact that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you want to register a view into account (views require USER-set rowids). Try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
sdelayer -o register -l ARCVW_BUILDING,shape -e nac+ -C OBJECTID,USER -P HIGH -t ST_GEOMETRY -i 5151 -u ERGIS -p ERGISpass
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then again, if this view was created with 'sdetable -o create_view', and it didn't capture the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geometry column correctly, then you really need to start over with view creation. I generally&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;recommend that views involving SDE.ST_GEOMETRY (or MDSYS.SDO_GEOMETRY) columns be &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;constructed via SQL, and the result registered, rather than using 'sdetable -o create_view'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you give more details in ASCII (vice a Word document), you're more likely to get responses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind that Oracle 9i (and 10g) are no longer supported by Oracle, so it's going to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;more and more difficult for Esri to support ArcSDE on these older databases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:15:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454246#M25919</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2021-12-11T20:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Registering a view as a layer using the sdelayer command</title>
      <link>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454247#M25920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vince et al:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to register a view that is not a spatial view (i.e. no GEOMETRY column) in the same way one would register a table in SDE?&amp;nbsp; I tried to do so in ArcCatalog and it returned the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to register with Geodatabase.&amp;nbsp; Underlying DBMS error [ORA-00942: table or view does not exist]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is using ArcSDE for Oracle v10 SP2 against Oracle 10g (which according to Vince's note may be obsolete).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 15:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454247#M25920</guid>
      <dc:creator>ChrisBeaudette</dc:creator>
      <dc:date>2011-07-21T15:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Registering a view as a layer using the sdelayer command</title>
      <link>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454248#M25921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The 'sdetable -o create_view' command exists to create spatially-aware views with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDEBINARY or SDELOB storage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'sdelayer -o register' command exists to synchronize native geometry (which includes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ST_GEOMETRY storage) with an existing ArcSDE instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no need to register a view which doesn't contain geometry with ArcSDE (which&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will see it as a table as soon as it is created [provided it is limited to the supported column&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;types, of course]).&amp;nbsp; It is not possible to register views with the geodatabase, since ArcGIS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;expects SDE-set registered rowid columns, and these are not possible with views.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While Oracle no longer supports 10gR2 databases, Esri does continue to support ArcSDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in them at ArcGIS 10.&amp;nbsp; The last ArcSDE release to support Oracle 9iR2 was 9.3.1.&amp;nbsp; It's &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not too early to be planning 11g&amp;nbsp; database transition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 17:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/registering-a-view-as-a-layer-using-the-sdelayer/m-p/454248#M25921</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-07-21T17:55:04Z</dc:date>
    </item>
  </channel>
</rss>

