<?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 9.3 Direct Connection with Oracle in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116730#M6654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Network connectivity is required for any TCP/IP session to function (both ArcSDE and TNS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use TCP/IP).&amp;nbsp; I've never successfully placed a single box on two VPNs at the same time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;though it should be possible if they're not the *same* network.&amp;nbsp; I doubt an Esri forum is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the best place to find help in exotic subnet configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unsatisfied link errors all derive from improper DLL search path resolution.&amp;nbsp; You'll need to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;walk through what files are required and identify where they're coming from.&amp;nbsp; This is a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;trivial exercise on Unix hosts (`which`, `ldd`, and `file` are your friends), but can be a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;source of agony on Windows hosts, even with a tool like &lt;/SPAN&gt;&lt;A href="http://dependencywalker.com/"&gt;Dependency Walker&lt;/A&gt;&lt;SPAN&gt; available.&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, 09 Jun 2011 13:06:12 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2011-06-09T13:06:12Z</dc:date>
    <item>
      <title>ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116725#M6649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm writing code in Java to get direct connection to an Oracle database but unsuccessfully. I've looked around and looked for a solution for almost a week but unable to find one. Hopefully someone here can help me with this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server: Enterprise Geodatabase in Oracle 10g, ArcSDE 9.3.1, ArcGIS 9.3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've installed ArcGIS 9.3.1 and ArcSDE931 SDK on my client computer [Windows 7 32-bit]. I also set the SDEHOME, ORAHOME [and also tried ORACLE_HOME], as well as add %SDEHOME%/bin and %ORAHOME%/bin to my path. I also set the TNS_ADMIN to %ORAHOME%/NETWORK/ADMIN. I downloaded both "10201_client_win32" (i.e. Oracle Client 10g) and "10203_vista_w2k8_x86_production_client" (i.e. Oracle Client 10g for Win 7) from Oracle download site and custom installed all the possible softwares that it has on the list. Then, I tried to test the connection based on this instruction &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Setting_up_clients_for_a_direct_connection&amp;amp;anchor=dcoracle"&gt;http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Setting_up_clients_for_a_direct_connection&amp;amp;anchor=dcoracle&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and stuck with the 2nd step: sqlplus &amp;lt;user name&amp;gt;/&amp;lt;password&amp;gt;@&amp;lt;Oracle Net service name&amp;gt;. The message error I received was "ORA-12560: TNS: protocol adapter error." I think I got this error because Oracle service is not running. But since I only installed Oracle Client, I don't think the Oracle service is supposed to be there and thus doing "lsnrctl" in the command line does not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I went ahead and wrote some Java code. And I've never got passed this one line [conn = new SeConnection(server, instance, database, user, password);].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SeConnection conn = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; System.out.println("Connecting");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; conn = new SeConnection(server, "sde:oracle10g", database, user, password);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; System.out.println("Connected");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} catch (SeException e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; _log.error(e.getMessage());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; _log.error(e.getSeError().getErrDesc());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; _log.error(e.getSeError().getSdeErrMsg());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error message that I received was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: com.esri.sde.sdk.client.JGsrvr.gsrvrGetErrorCode(J)I&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.sde.sdk.client.JGsrvr.gsrvrGetErrorCode(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.sde.sdk.client.JGsrvr.run(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I googled the error and it seems like no one's got it yet. According to my understanding the "java.lang.UnsatisfiedError" occurred when the library is not properly linked. However, I've checked all the ArcSDE jar files and required dll in the %SDEHOME% and they're all there. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does any of you have the solution for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 20:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116725#M6649</guid>
      <dc:creator>KhoaTran1</dc:creator>
      <dc:date>2011-06-03T20:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116726#M6650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If TNSPING and SQL*Plus can't connect, there's little chance that ArcGIS will. You need to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;configure your client tnsnames.ora file with an HOST that points to the Oracle server and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a SERVICE_NAME that specifies the ORACLE_SID.&amp;nbsp; The Net Configuration Assistant utility&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can help (I generally copy tnsnames.ora from the server).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To make your life easier, be sure that you only have one Oracle client installed (use the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10.2.0.3 known to be compatible with Windows 7).&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>Fri, 03 Jun 2011 22:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116726#M6650</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-06-03T22:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116727#M6651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your quick response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I currently have the 10.2.0.3 client installed [only] and a tnsnames.ora. I made some progress after using the Net Configuration Utility. The error is now "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor". I'm guessing my problem now is the listener.ora . I'll try to play around with this a little bit more. I'll take your advise to establish the connection with SQL*Plus first before using direct connection with ArcSDE. Will report tomorrow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jun 2011 04:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116727#M6651</guid>
      <dc:creator>KhoaTran1</dc:creator>
      <dc:date>2011-06-04T04:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116728#M6652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure you can access the server from the server, then use the server tnsnames.ora&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from the client.&amp;nbsp; You would need to allow traffic on the listener port if a firewall is enabled.&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, 04 Jun 2011 18:47:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116728#M6652</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-06-04T18:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116729#M6653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vince, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I apologize for the late response. Thanks to your instructions, I've successfully connect to the remote Oracle server through SQL*Plus with the command: sqlplus &amp;lt;user name&amp;gt;/&amp;lt;password&amp;gt;@&amp;lt;Oracle Net service name&amp;gt;. Besides using Net Configuration Assistant utility, I figured out that my computer needs to be IN THE SAME NETWORK of that server (i.e. using vpn). That, however, leads to another problem to test the connection with ArcCatalog since I'm using a server license manager in a different network. Once I used vpn to connect to the Oracle server, I was unable to open ArcCatalog. Do you have any solution for this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, my main goal is to use direct connection with Java. I'm not sure if that would help to stay away from the 2 different vpn problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: I already tried the Java code [SeConnection] but received the same error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: com.esri.sde.sdk.client.JGsrvr.gsrvrGetErrorCode(J)I&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.sde.sdk.client.JGsrvr.gsrvrGetErrorCode(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.sde.sdk.client.JGsrvr.run(Unknown Source)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 03:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116729#M6653</guid>
      <dc:creator>KhoaTran1</dc:creator>
      <dc:date>2011-06-09T03:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116730#M6654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Network connectivity is required for any TCP/IP session to function (both ArcSDE and TNS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use TCP/IP).&amp;nbsp; I've never successfully placed a single box on two VPNs at the same time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;though it should be possible if they're not the *same* network.&amp;nbsp; I doubt an Esri forum is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the best place to find help in exotic subnet configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unsatisfied link errors all derive from improper DLL search path resolution.&amp;nbsp; You'll need to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;walk through what files are required and identify where they're coming from.&amp;nbsp; This is a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;trivial exercise on Unix hosts (`which`, `ldd`, and `file` are your friends), but can be a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;source of agony on Windows hosts, even with a tool like &lt;/SPAN&gt;&lt;A href="http://dependencywalker.com/"&gt;Dependency Walker&lt;/A&gt;&lt;SPAN&gt; available.&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, 09 Jun 2011 13:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116730#M6654</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-06-09T13:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116731#M6655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try something else tomorrow but I want to make sure with you I have the right configuration for PATH, SDEHOME, ORAHOME, and TNS_ADMIN. Could you please check the followings and confirm if it's right (or I don't need to do anything else with the environment variable, the dlls)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Windows\system32&amp;gt;echo %PATH%&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;C:\oracle\product\10.2.0\client_4\bin&lt;/STRONG&gt;&lt;SPAN&gt;;C:\Windows\system32;C:\Windows;C:\Windows\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Micro&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;soft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Bi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nn;C:\arcgis\arcexe9x\bin;&lt;/SPAN&gt;&lt;STRONG&gt;C:\arcgis\arcexe9x\lib;C:\Program Files\Java\jdk1.6.0_&lt;BR /&gt;25\bin;C:\Python31;C:\Program Files\ArcGIS\arcsde\bin&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Windows\system32&amp;gt;echo %SDEHOME%&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;C:\Program Files\ArcGIS\arcsde&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Windows\system32&amp;gt;echo %ORAHOME%&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;C:\oracle\product\10.2.0\client_4&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Windows\system32&amp;gt;echo %TNS_ADMIN%&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;C:\oracle\product\10.2.0\client_4\network\ADMIN&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think my Oracle Client is working because I can do SQL*Plus. To be able to do direct connection, the above 4 variables are all I need to worry, correct?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 23:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116731#M6655</guid>
      <dc:creator>KhoaTran1</dc:creator>
      <dc:date>2011-06-09T23:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116732#M6656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The proper variable for Oracle is ORACLE_HOME (at which point the TNS_NAMES&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;variable would not be required).&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>Fri, 10 Jun 2011 00:17:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116732#M6656</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-06-10T00:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116733#M6657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great!! Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 00:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116733#M6657</guid>
      <dc:creator>KhoaTran1</dc:creator>
      <dc:date>2011-06-10T00:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116734#M6658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to your help, I finally got the code working to connect to the server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are currently several references on how to set up direct connection but I think the followings would save other people some time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I was originally working on Windows 7 but if it's possible, I strongly recommend to use Windows XP. You'd save a lot of time in setting up the environment. In case you use Windows 7, remember to run program as administrator. Otherwise, there'd be several errors when you install, read, and write file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) You'll need to install ArcGIS (of course), ArcSDE SDK, and Oracle Client. I got it working with Oracle Client 10 (10201_client_win32) and ArcGIS 10. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) As Vince had in this thread, Net Configuration Assistant utility is highly recommended to set up the "tnsnames.ora". In order to know if you get the correct "tnsnames.ora", use SQL*Plus from the command line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Follow the instructions on the following page to test your connection: &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Setting_up_clients_for_a_direct_connection&amp;amp;anchor=dcoracle"&gt;http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Setting_up_clients_for_a_direct_connection&amp;amp;anchor=dcoracle&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;5) You need to manually set up SDEHOME. The default destination for ArcGIS 10 is C:\Program Files\ArcGIS\arcsde. You also need to add some parameters to PATH, which are C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\ArcGIS\arcsde\bin. You might NOT need to set up ORACLE_HOME (C:\oracle\product\10.2.0\client_1) and TNS_NAMES (C:\oracle\product\10.2.0\client_1\network\admin). I get rid of those two variables and my code is still working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6) In case you receive "The supplied SDEHOME path is invalid or null" when catching the exception, besides other cause and solutions on other web pages, confirm your input [server, instance, database, user, password]. The value for instance would be based on your oracle client. In my case, I installed Oracle Client 10g so I put "sde:oracle10g". If you install 11g, that would change accordingly. For the password, it should be YOUR_PASSWORD@&amp;lt;Oracle Net Service name&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, I really appreciate your help, Vince.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2011 03:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116734#M6658</guid>
      <dc:creator>KhoaTran1</dc:creator>
      <dc:date>2011-06-13T03:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 9.3 Direct Connection with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116735#M6659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Technically, you don't need ArcGIS installed to develop or deploy ArcSDE applications&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(either Java or 'C' API).&amp;nbsp; In practice, it's useful for developers to have access to the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE administration binaries ('sdelayer', 'sdetable', etc) in an ArcSDE for {DBMS}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;installation, but once the application is compiled, then you only need one ArcSDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;client install (which includes ArcGIS Desktop and Server, the SDK, and all ArcSDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;server installations).&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>Mon, 13 Jun 2011 09:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-9-3-direct-connection-with-oracle/m-p/116735#M6659</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-06-13T09:57:53Z</dc:date>
    </item>
  </channel>
</rss>

