<?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: ArcSDE Connection in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcsde-connection/m-p/71925#M5916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think your issue is with the entry of the "serviceName". Unless you modified the Windows services file on your client PC to supply the corresponding TCP/IP number, you will not be able to connect by entering a service name (for some details regarding editing the services file, &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002m000000s4000000"&gt;see this Help page&lt;/A&gt;&lt;SPAN&gt;). You may try entering the port number instead. In a default installation of ArcSDE, the port number is 5151, so enter that instead of &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"ssss.sss.sss.sss.au" ? OR "MyEDB" (database?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should allow you to connect without specifying the service name. In addition, it is better to include the file extension "*.sde" to the name of the connection file, so "myConn.sde".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An introduction to setting up and connecting too an Application Server can be found in this ESRI Australia blog article:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://esriaustraliatechblog.wordpress.com/2012/09/27/creating-an-arcsde-service-on-windows-using-arcgis-10-1/"&gt;http://esriaustraliatechblog.wordpress.com/2012/09/27/creating-an-arcsde-service-on-windows-using-arcgis-10-1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of this assumes you have an ArcSDE Application Server running on a server, and don't attempt to connect via Direct Connect, for which the "Create ArcSDE Connection File" tool is not meant to be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are not familiar with the distinction between Direct Connect and an ArcSDE Application Server, you may also wish to read the document I recently posted in another thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/83644-quot-The-ESRI-Geodatabase-Framework-quot-PDF"&gt;http://forums.arcgis.com/threads/83644-quot-The-ESRI-Geodatabase-Framework-quot-PDF&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2013 09:32:08 GMT</pubDate>
    <dc:creator>MarcoBoeringa</dc:creator>
    <dc:date>2013-05-06T09:32:08Z</dc:date>
    <item>
      <title>ArcSDE Connection</title>
      <link>https://community.esri.com/t5/python-questions/arcsde-connection/m-p/71924#M5915</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;BR /&gt;&lt;SPAN&gt;I've been frustrated to connect to ArcSDE in ArcGIS 10.1 (windows 7 o.s.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been following the document &amp;amp; help supply connection properties for CreateArcSDEConnectionFile_management such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;folderName = r'D:\temp'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fileName = "myConn"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;serverName = "oraMyDb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;serviceName = "ssss.sss.sss.sss.au" ? OR "MyEDB" (database?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;databaseName = ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;authType = "DATABASE_AUTH"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;username = "myusername"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;password = "mypassword"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;saveUserInfo = "SAVE_USERNAME"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;versionName = "SDE.DEFAULT"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;saveVersionInfo = "SAVE_VERSION"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Am I supplying correct property details for the command ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Am I missing something ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Or Any trick to connect in ArcGIS 10.1 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I greatly appreciate your help\assistance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 May 2013 22:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcsde-connection/m-p/71924#M5915</guid>
      <dc:creator>BasuMathapati</dc:creator>
      <dc:date>2013-05-05T22:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE Connection</title>
      <link>https://community.esri.com/t5/python-questions/arcsde-connection/m-p/71925#M5916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think your issue is with the entry of the "serviceName". Unless you modified the Windows services file on your client PC to supply the corresponding TCP/IP number, you will not be able to connect by entering a service name (for some details regarding editing the services file, &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002m000000s4000000"&gt;see this Help page&lt;/A&gt;&lt;SPAN&gt;). You may try entering the port number instead. In a default installation of ArcSDE, the port number is 5151, so enter that instead of &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"ssss.sss.sss.sss.au" ? OR "MyEDB" (database?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should allow you to connect without specifying the service name. In addition, it is better to include the file extension "*.sde" to the name of the connection file, so "myConn.sde".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An introduction to setting up and connecting too an Application Server can be found in this ESRI Australia blog article:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://esriaustraliatechblog.wordpress.com/2012/09/27/creating-an-arcsde-service-on-windows-using-arcgis-10-1/"&gt;http://esriaustraliatechblog.wordpress.com/2012/09/27/creating-an-arcsde-service-on-windows-using-arcgis-10-1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of this assumes you have an ArcSDE Application Server running on a server, and don't attempt to connect via Direct Connect, for which the "Create ArcSDE Connection File" tool is not meant to be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are not familiar with the distinction between Direct Connect and an ArcSDE Application Server, you may also wish to read the document I recently posted in another thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/83644-quot-The-ESRI-Geodatabase-Framework-quot-PDF"&gt;http://forums.arcgis.com/threads/83644-quot-The-ESRI-Geodatabase-Framework-quot-PDF&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 09:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcsde-connection/m-p/71925#M5916</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-05-06T09:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE Connection</title>
      <link>https://community.esri.com/t5/python-questions/arcsde-connection/m-p/71926#M5917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At 10.1 ideally you're moving away from using the SDE service and towards using direct connections.&amp;nbsp; Read the section "Create Database Connection (Data Management)" in the documentation which should suggest how to create a connection file to a 10.1 geodatabase.&amp;nbsp; The 10.1 connections look a bit different than the previous connection dialogs.&amp;nbsp; Below is a sample I used to connect to my Oracle geodatabase that does not have user schema geodatabases in it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

folderName = r"c:\temp"
fileName = "testConnection.sde"
databasePlatform = "ORACLE"
instance = "mydatabase.world"
username = "myusername"
password = "secretpassword"

arcpy.CreateDatabaseConnection_management(folderName, fileName,databasePlatform,instance,"DATABASE_AUTH",username,password,"SAVE_USERNAME","#","#","TRANSACTIONAL","sde.DEFAULT")

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcsde-connection/m-p/71926#M5917</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2021-12-10T22:47:07Z</dc:date>
    </item>
  </channel>
</rss>

