<?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 Field Alias Automatic Generation - AGS 10.1 - SDE - Oracle in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/field-alias-automatic-generation-ags-10-1-sde/m-p/295925#M16959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My knowledge is a little bit limited about sde / oracle and databases management so please forgive me if my question is not accurately defined or if my problem is too easy to solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an oracle database with three schemas. I can connect to these schemas using the ArcCatalog SDE connection (so they are "SDE enabled"). Then I have my sde features classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the schema contains a table referencing aliases for each field of each table and also the schema the table belongs to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;SCHEMA&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALIAS&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;SCHEM1&amp;nbsp;&amp;nbsp;&amp;nbsp; TABL1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BLABLA1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCHEM2&amp;nbsp;&amp;nbsp;&amp;nbsp; TABL2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BLABLA2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This as been implemented for something else but I'd like to use this information to automate the Aliases generation for my sde feature classes fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have a clue how this could work. :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to do it through a Python script from ArcGIS side?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should I use sql developer (Oracle) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be awesome if someone could spend a few minutes to put me on the track. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 16:13:01 GMT</pubDate>
    <dc:creator>SchoppMatthieu</dc:creator>
    <dc:date>2012-09-11T16:13:01Z</dc:date>
    <item>
      <title>Field Alias Automatic Generation - AGS 10.1 - SDE - Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/field-alias-automatic-generation-ags-10-1-sde/m-p/295925#M16959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My knowledge is a little bit limited about sde / oracle and databases management so please forgive me if my question is not accurately defined or if my problem is too easy to solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an oracle database with three schemas. I can connect to these schemas using the ArcCatalog SDE connection (so they are "SDE enabled"). Then I have my sde features classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the schema contains a table referencing aliases for each field of each table and also the schema the table belongs to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;SCHEMA&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALIAS&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;SCHEM1&amp;nbsp;&amp;nbsp;&amp;nbsp; TABL1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BLABLA1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCHEM2&amp;nbsp;&amp;nbsp;&amp;nbsp; TABL2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BLABLA2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This as been implemented for something else but I'd like to use this information to automate the Aliases generation for my sde feature classes fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have a clue how this could work. :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to do it through a Python script from ArcGIS side?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should I use sql developer (Oracle) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be awesome if someone could spend a few minutes to put me on the track. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 16:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-alias-automatic-generation-ags-10-1-sde/m-p/295925#M16959</guid>
      <dc:creator>SchoppMatthieu</dc:creator>
      <dc:date>2012-09-11T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field Alias Automatic Generation - AGS 10.1 - SDE - Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/field-alias-automatic-generation-ags-10-1-sde/m-p/295926#M16960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the name of the class ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No any help at all ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 06:54:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-alias-automatic-generation-ags-10-1-sde/m-p/295926#M16960</guid>
      <dc:creator>SchoppMatthieu</dc:creator>
      <dc:date>2012-09-12T06:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Field Alias Automatic Generation - AGS 10.1 - SDE - Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/field-alias-automatic-generation-ags-10-1-sde/m-p/295927#M16961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've made some good progress but there is still something going wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In python :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for featureClass in featureClasses:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; fields = arcpy.ListFields(featureClass)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; for f in fields:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if f.name == "ARI_ID":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; f.aliasName = "ArianeID"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; print f.name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; print f.aliasName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(print)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ARI_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArianeID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The alias has been updated apparently, however I can't see any changes in the "alias" of the field in my geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I print my "alias" in another function, the alias hasn't kept the changes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for featureClass in featureClasses:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; fields = arcpy.ListFields(featureClass)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; for fieldF in fields:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if f.name == "ARI_ID":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; print fieldF.aliasName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(print) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ARI_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why the new alias hasn't been saved ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 12:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-alias-automatic-generation-ags-10-1-sde/m-p/295927#M16961</guid>
      <dc:creator>SchoppMatthieu</dc:creator>
      <dc:date>2012-09-12T12:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field Alias Automatic Generation - AGS 10.1 - SDE - Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/field-alias-automatic-generation-ags-10-1-sde/m-p/295928#M16962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matshopp,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not believe that any geoprocessing methods are exposed that will allow a user to permanently change a geodatabase field alias. I'm not sure why, it seems like it would be a very useful geoprocessing tool. Hopefully someone else can tell me that I am incorrect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For table aliases, you can use the arcpy.AlterAliasName(table, alias) method. I think this is new at 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In 9.x geodatabases, it was possible (but definitely NOT recommended) to alter aliases by editing the GDB_FieldInfo table. If done incorrectly you could trash the geodatabase so I won't go into further detail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have experience with ArcObjects, you can use the esriGeodatabase.IClassSchemaEdit and AlterFieldAliasName methods. I have used this with ArcGIS 9.3 and MS SQL Server but haven't checked to see if these still apply at 10.x.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 13:35:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-alias-automatic-generation-ags-10-1-sde/m-p/295928#M16962</guid>
      <dc:creator>StevePeaslee</dc:creator>
      <dc:date>2012-11-16T13:35:02Z</dc:date>
    </item>
  </channel>
</rss>

