<?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 Accessing Oracle from Python for automated publishing to ArcGIS for Server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/accessing-oracle-from-python-for-automated/m-p/393271#M31136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I've been tasked with automating the daily publishing of an Oracle table to an ArcGIS for Server instance.&amp;nbsp; There is no SDE installed on Oracle, and I have little control over the database instance itself.&amp;nbsp; My solution to this is the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Install ArcMap on a server machine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Have a recurring Python script that updates a local geodatabase with a fresh copy of the table from the Oracle instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Automate republishing of the data to an ArcGIS for server instance using ArcGIS for Server admin utilities and arcpy.mapping.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simpler way to do this?&amp;nbsp; If not, does anyone have any tips on how to get started on accessing Oracle database through Python using OBDC connections?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 16:35:12 GMT</pubDate>
    <dc:creator>Jay_Gregory</dc:creator>
    <dc:date>2014-03-14T16:35:12Z</dc:date>
    <item>
      <title>Accessing Oracle from Python for automated publishing to ArcGIS for Server</title>
      <link>https://community.esri.com/t5/python-questions/accessing-oracle-from-python-for-automated/m-p/393271#M31136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I've been tasked with automating the daily publishing of an Oracle table to an ArcGIS for Server instance.&amp;nbsp; There is no SDE installed on Oracle, and I have little control over the database instance itself.&amp;nbsp; My solution to this is the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Install ArcMap on a server machine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Have a recurring Python script that updates a local geodatabase with a fresh copy of the table from the Oracle instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Automate republishing of the data to an ArcGIS for server instance using ArcGIS for Server admin utilities and arcpy.mapping.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simpler way to do this?&amp;nbsp; If not, does anyone have any tips on how to get started on accessing Oracle database through Python using OBDC connections?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 16:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-oracle-from-python-for-automated/m-p/393271#M31136</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2014-03-14T16:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Oracle from Python for automated publishing to ArcGIS for Server</title>
      <link>https://community.esri.com/t5/python-questions/accessing-oracle-from-python-for-automated/m-p/393272#M31137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am definitely not the greatest programmer and I probably can't help too much but I import "cx_Oracle" module in python and that allows me to query oracle tables through sql. I don't know if I am saying that correctly. You can check out my recent post where I had another issue, and see in the script that is attached to it what I am referring to. It is a starting point anyway. I think there are other modules to import that can connect you to oracle as well, just not sure exactly what they are. Hope that helps a little.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 19:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-oracle-from-python-for-automated/m-p/393272#M31137</guid>
      <dc:creator>MikePowell</dc:creator>
      <dc:date>2014-03-14T19:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Oracle from Python for automated publishing to ArcGIS for Server</title>
      <link>https://community.esri.com/t5/python-questions/accessing-oracle-from-python-for-automated/m-p/393273#M31138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The cx_Oracle module digmapper mentioned is developed by Oracle but some people prefer &lt;/SPAN&gt;&lt;A href="https://code.google.com/p/pyodbc/"&gt;pyodbc&lt;/A&gt;&lt;SPAN&gt; module. In any case you need the &lt;/SPAN&gt;&lt;A href="http://www.oracle.com/technetwork/topics/winsoft-085727.html"&gt;Instant Oracle Client&lt;/A&gt;&lt;SPAN&gt; installed on the computer that will connect to your Oracle database. If the client has not been installed, it may take a while to figure out what version you need to install and how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution you propose should work but I am thinking there must be an easier way. I'd try to add the table to ArcMap using one of the many options&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//006600000452000000"&gt;oledb connection&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="&amp;lt;/span&amp;gt;&amp;lt;a" target="_blank"&gt;Enterprise" rel="nofollow" target="_blank"&amp;gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00290000003q000000]Enterprise&lt;/A&gt;&lt;SPAN&gt; database connection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;other...?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you may need to use Make Query Table tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and publish the document as a service (if validation allows you to do that).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can manage to register the database in your Server's data stores, will the service reflect changes in the database instantly? If you don't want instant changes, you might need to go with the approach you outlined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Filip.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 10:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-oracle-from-python-for-automated/m-p/393273#M31138</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2014-03-15T10:45:09Z</dc:date>
    </item>
  </channel>
</rss>

