<?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: retrieve data into ABAP program from external Oracle database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-into-abap-program-from-external-oracle-database/m-p/1227015#M138168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well .. According to my understanding. Under the following possibilities you can read the data from external data base &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- SAP connectors &lt;/P&gt;&lt;P&gt;- RFC function which listen  both sides!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like we did it in one project with e&lt;STRONG&gt;gate , we have an RFC which connect to e&lt;/STRONG&gt;gate server and on e*gate they have register our SAP server with SAP gateway parameters . &lt;/P&gt;&lt;P&gt;After that we are able to see the connection if its establish or not in t-code !!SMGW . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to see in SMGW . Any connection you see there ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you some idea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Saquib Khan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2006 15:58:21 GMT</pubDate>
    <dc:creator>former_member181966</dc:creator>
    <dc:date>2006-04-05T15:58:21Z</dc:date>
    <item>
      <title>retrieve data into ABAP program from external Oracle database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-into-abap-program-from-external-oracle-database/m-p/1227014#M138167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gurus,&lt;/P&gt;&lt;P&gt;I reviewed bunch of links regarding DBCON, tnsnames.ora settings and all that and still could not get the connection working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need is to connect from within SAP (SAP_ABA and SAP_BASIS = 640) to a imaging system called Filenet (oracle database). I got the Basis folks to put in tnsnames.ora entry with the SID, server name and Port number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDB =                              &lt;/P&gt;&lt;P&gt;  (DESCRIPTION =                   &lt;/P&gt;&lt;P&gt;    (SDU = 4096)                   &lt;/P&gt;&lt;P&gt;    (ADDRESS_LIST =                &lt;/P&gt;&lt;P&gt;        (ADDRESS =                 &lt;/P&gt;&lt;P&gt;          (COMMUNITY = sap.world)  &lt;/P&gt;&lt;P&gt;          (PROTOCOL = TCP)         &lt;/P&gt;&lt;P&gt;          (Host = &amp;lt;Server name&amp;gt;)        &lt;/P&gt;&lt;P&gt;          (Port = 1521)            &lt;/P&gt;&lt;P&gt;        )                          &lt;/P&gt;&lt;P&gt;    )                              &lt;/P&gt;&lt;P&gt;    (CONNECT_DATA =                &lt;/P&gt;&lt;P&gt;       (SID = IDB)                 &lt;/P&gt;&lt;P&gt;       (GLOBAL_NAME = IDB.world)   &lt;/P&gt;&lt;P&gt;    )                              &lt;/P&gt;&lt;P&gt;  )                                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configued an entry in DBCON table:&lt;/P&gt;&lt;P&gt;CON_NAME = 'FILENET'.&lt;/P&gt;&lt;P&gt;DBMS = ORA&lt;/P&gt;&lt;P&gt;User name and password &lt;/P&gt;&lt;P&gt;CONV_ENV = &amp;lt;Server name&amp;gt;&lt;/P&gt;&lt;P&gt;DB_reco = space.&lt;/P&gt;&lt;P&gt;and zeros in max_connections and opt_connections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I used this straight forward code in a program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA con_name LIKE dbcon-con_name VALUE 'FILENET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;  CONNECT TO 'FILENET' as 'C1'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;   SET CONNECTION 'C1'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have been getting sy-subrc = 4 on both statements. I didnt write the real SQL code to connect to the tables yet, as I guess there is no point at this time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My basis folks are lost on this and they are not able to resolve the problem. Can you guys help me with tools to find the problem out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need any entries in DBCONUSR?&lt;/P&gt;&lt;P&gt;Are Basis guys missing something - some settings?&lt;/P&gt;&lt;P&gt;How do I trace whats happening to the request. The basis guy showed me the log and I wasnt able to grep the server name or the alias (FILENET). Please help me get to the bottom of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 15:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-into-abap-program-from-external-oracle-database/m-p/1227014#M138167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-05T15:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data into ABAP program from external Oracle database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-into-abap-program-from-external-oracle-database/m-p/1227015#M138168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well .. According to my understanding. Under the following possibilities you can read the data from external data base &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- SAP connectors &lt;/P&gt;&lt;P&gt;- RFC function which listen  both sides!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like we did it in one project with e&lt;STRONG&gt;gate , we have an RFC which connect to e&lt;/STRONG&gt;gate server and on e*gate they have register our SAP server with SAP gateway parameters . &lt;/P&gt;&lt;P&gt;After that we are able to see the connection if its establish or not in t-code !!SMGW . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to see in SMGW . Any connection you see there ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you some idea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Saquib Khan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 15:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-into-abap-program-from-external-oracle-database/m-p/1227015#M138168</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-04-05T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data into ABAP program from external Oracle database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-into-abap-program-from-external-oracle-database/m-p/1227016#M138169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saquib,&lt;/P&gt;&lt;P&gt;Thanks for the response. We finally figured out that the conv_env in the dbcon table should have the same alias 'IDB.world' as in the tns.ora file. This solved the problem. I appreciate your time and the suggestion for alternate solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 18:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-into-abap-program-from-external-oracle-database/m-p/1227016#M138169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-06T18:22:28Z</dc:date>
    </item>
  </channel>
</rss>

