<?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>Question Re: Oracle database connection error: OCI returned error code -1 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447695#M66779</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Just to make sure, after you've installed the Oracle instantclient and created the tnsnames.ora file, did you also create sqlnet.ora file at the same directory, for example:&lt;/P&gt;&lt;P&gt;sqlnet.ora &lt;/P&gt;&lt;P&gt;
AUTOMATIC_IPC = ON &lt;/P&gt;&lt;P&gt;TRACE_LEVEL_CLIENT = OFF &lt;/P&gt;&lt;P&gt;NAMES.DEFAULT_DOMAIN = WORLD &lt;/P&gt;&lt;P&gt;SQLNET.EXPIRE_TIME = 10 &lt;/P&gt;&lt;P&gt;DEFAULT_SDU_SIZE=32768&lt;/P&gt;&lt;P&gt;Did you also check if the SAP Kernel for Oracle database library dboraslib.so is also available?  And after all the configuration, you'll need to restart the Solution Manager ABAP system.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2017 05:27:03 GMT</pubDate>
    <dc:creator>former_member205280</dc:creator>
    <dc:date>2017-04-27T05:27:03Z</dc:date>
    <item>
      <title>Oracle database connection error: OCI returned error code -1</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaq-p/447689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having problems to set connection between Solman 7.2 ABAP system with sybase DB and managed system's Oracle database. It appears the following error when I execute ADBC_TEST_CONNECTION report:&lt;/P&gt;&lt;P&gt;Could not open connection &amp;lt;ID&amp;gt;.&lt;BR /&gt;sql error  1- occured:&lt;BR /&gt;con=1(&amp;lt;ID&amp;gt;): OCI returned error code -1.&lt;/P&gt;&lt;P&gt;I also check the connection from OS using tnsping having the following error:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/28931-captura1.png" /&gt;&lt;/P&gt;&lt;P&gt;I installed oracle instant client in solman abap system and I also defined those enviroment variables:&lt;/P&gt;&lt;P&gt;LD_LIBRARY_PATH=/usr/sap/&amp;lt;SID&amp;gt;/SYS/global/syb/linuxx86_64/sybodbc:/sybase/OSP/ASE-16_0/lib:/sybase/&amp;lt;DBID&amp;gt;/OCS-16_0/lib:/sybase/&amp;lt;DBID&amp;gt;/OCS-16_0/lib3p64:/sybase/&amp;lt;DBID&amp;gt;/OCS-16_0/lib3p:/usr/sap/&amp;lt;SID&amp;gt;/SYS/exe/run:/usr/sap/OSP/SYS/exe/uc/linuxx86_64:/oracle/instantclient_11203&lt;/P&gt;&lt;P&gt;TNS_ADMIN=/usr/sap/&amp;lt;SID&amp;gt;/SYS/profile/oracle&lt;/P&gt;&lt;P&gt;tnsnames.ora file contains&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/28920-captura.png" /&gt;&lt;/P&gt;&lt;P&gt;It seems that it can't find the TNS file when it is trying to do the connection but &amp;lt;sid&amp;gt;adm user has suficient permissions.&lt;/P&gt;&lt;P&gt;I have been trying for a long time to find the solution but I haven't gotten anything.&lt;/P&gt;&lt;P&gt;Any idea about the solution for this error? &lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 13:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaq-p/447689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-05T13:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle database connection error: OCI returned error code -1</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447690#M66774</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Have you checked SAP note :&lt;BR /&gt;&lt;BR /&gt;1261329 - DBA Cockpit: Oracle as a remote database&lt;BR /&gt;&lt;BR /&gt;I am very confident the issue will be solved if the note is strictly followed.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;James&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 23:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447690#M66774</guid>
      <dc:creator>JamesZ</dc:creator>
      <dc:date>2017-04-05T23:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle database connection error: OCI returned error code -1</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447691#M66775</link>
      <description>&lt;P&gt;I have followed the note, but still I am having the same error. &lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 08:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447691#M66775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-06T08:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle database connection error: OCI returned error code -1</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447692#M66776</link>
      <description>&lt;P&gt;Since you followed the note 1261329, please repdouce this issue once and attach the corresponding SAP dev_w* trace.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 00:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447692#M66776</guid>
      <dc:creator>JamesZ</dc:creator>
      <dc:date>2017-04-10T00:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle database connection error: OCI returned error code -1</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447693#M66777</link>
      <description>&lt;P&gt;This is what appears in dev_w trace when I try to connect to Oracle DB.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/29409-captura2.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 06:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447693#M66777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-10T06:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle database connection error: OCI returned error code -1</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447694#M66778</link>
      <description>&lt;P&gt;Hi Urtzi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This means oracle client is not successfully loaded, please do verify the client installation as per note 1261329 or note 819829.&lt;BR /&gt;&lt;BR /&gt;Or you can share  with us about the details how note 1261329 was applied. As mentioned previously, as long as the note 1261329 is strictly followed, it should work, because this note has been proved years without issues for remote connection setting.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt; Best regards,&lt;BR /&gt;James&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 00:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447694#M66778</guid>
      <dc:creator>JamesZ</dc:creator>
      <dc:date>2017-04-11T00:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle database connection error: OCI returned error code -1</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447695#M66779</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Just to make sure, after you've installed the Oracle instantclient and created the tnsnames.ora file, did you also create sqlnet.ora file at the same directory, for example:&lt;/P&gt;&lt;P&gt;sqlnet.ora &lt;/P&gt;&lt;P&gt;
AUTOMATIC_IPC = ON &lt;/P&gt;&lt;P&gt;TRACE_LEVEL_CLIENT = OFF &lt;/P&gt;&lt;P&gt;NAMES.DEFAULT_DOMAIN = WORLD &lt;/P&gt;&lt;P&gt;SQLNET.EXPIRE_TIME = 10 &lt;/P&gt;&lt;P&gt;DEFAULT_SDU_SIZE=32768&lt;/P&gt;&lt;P&gt;Did you also check if the SAP Kernel for Oracle database library dboraslib.so is also available?  And after all the configuration, you'll need to restart the Solution Manager ABAP system.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 05:27:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-database-connection-error-oci-returned-error-code-1/qaa-p/447695#M66779</guid>
      <dc:creator>former_member205280</dc:creator>
      <dc:date>2017-04-27T05:27:03Z</dc:date>
    </item>
  </channel>
</rss>

