<?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: Diconnected from DB - ERROR: CLI prepare error: Unable to retrieve error message. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/752507#M39038</link>
    <description>&lt;P&gt;Hi SASKiwi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your reply. i checked with the administrator and they said they have removed the time limit (not sure if they doing it right though).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however the issue persists. in another operation connected to the same DB they use the below code to reconnect to the library&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname KSACT oracle user=WORK pass=TEST path=GMACT schema=work;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however when i only know the libname and i don't know what to write in the rest of the fields (User, Pass,Path &amp;amp; Schema)&lt;/P&gt;&lt;P&gt;could you guide me how to acquire these info from SAS or if their a similar approach to this code to reconnect to the libname.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="notranslate"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Wed, 07 Jul 2021 09:52:35 GMT</pubDate>
    <dc:creator>L5ive</dc:creator>
    <dc:date>2021-07-07T09:52:35Z</dc:date>
    <item>
      <title>Diconnected from DB - ERROR: CLI prepare error: Unable to retrieve error message.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/751969#M39033</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;im new with SAS Enterprise so my terminologies might be a little different from yours. i have an ODBC connection to oracle data base. and when i start a new session the library is connected and i can execute any code. however if i left a session open for few hours and try to use it again i get the following Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;ERROR: CLI prepare error: Unable to retrieve error message.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;i will provide you with the necessary info however please guide me how to to get since im not the administrator of the server.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 10:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/751969#M39033</guid>
      <dc:creator>L5ive</dc:creator>
      <dc:date>2021-07-04T10:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Diconnected from DB - ERROR: CLI prepare error: Unable to retrieve error message.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/751998#M39034</link>
      <description>&lt;P&gt;The database connection is likely timing out because of the lack of activity. The timeout setting could in the Oracle database, or it could be the consequence of a SAS server firewall port rule setting. There is no default timeout setting at the SAS end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you talk to your SAS administrator about getting this behaviour changed. There is no setting at your end that you can apply to fix this. I'm assuming here that the EG Oracle data connection is not created by you with a LIBNAME statement.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 20:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/751998#M39034</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-07-04T20:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Diconnected from DB - ERROR: CLI prepare error: Unable to retrieve error message.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/752507#M39038</link>
      <description>&lt;P&gt;Hi SASKiwi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your reply. i checked with the administrator and they said they have removed the time limit (not sure if they doing it right though).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however the issue persists. in another operation connected to the same DB they use the below code to reconnect to the library&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname KSACT oracle user=WORK pass=TEST path=GMACT schema=work;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however when i only know the libname and i don't know what to write in the rest of the fields (User, Pass,Path &amp;amp; Schema)&lt;/P&gt;&lt;P&gt;could you guide me how to acquire these info from SAS or if their a similar approach to this code to reconnect to the libname.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="notranslate"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Jul 2021 09:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/752507#M39038</guid>
      <dc:creator>L5ive</dc:creator>
      <dc:date>2021-07-07T09:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Diconnected from DB - ERROR: CLI prepare error: Unable to retrieve error message.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/752668#M39041</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"however when i only know the libname and i don't know what to write in the rest of the fields (User, Pass,Path &amp;amp; Schema) could you guide me how to acquire these info from SAS or if their a similar approach to this code to reconnect to the libname."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The details for user, password and schema will be provided by your team. You should ask your SAS Admin ? Manager to provide them&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 19:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/752668#M39041</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-07-07T19:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Diconnected from DB - ERROR: CLI prepare error: Unable to retrieve error message.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/752684#M39044</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/342896"&gt;@L5ive&lt;/a&gt;&amp;nbsp;- Please refer to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;'s response to answer your questions. Most likely your SAS administrator would have tested database connections in LIBNAMEs before defining them in SAS metadata. You should also pass on the connection timeout problem to your administrator as it is really their responsibility to sort out. I also recommend adding the DEFER = YES option to all external database connections. This option delays connecting to the database until it is actually used so it will help reduce timeouts.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 20:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Diconnected-from-DB-ERROR-CLI-prepare-error-Unable-to-retrieve/m-p/752684#M39044</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-07-07T20:04:56Z</dc:date>
    </item>
  </channel>
</rss>

