BookmarkSubscribeRSS Feed
twalla96
Calcite | Level 5

I am trying to connect to Postgres in Base SAS 9.4 for the first time using the following command:

libname pg postgres user=**** pwd=***** server="****" database=**** conopts="sslmode=require" ;

I am receiving the following error:

CLI error trying to establish connection: Service negotation failed; The client and server
cannot communicate, because they do not possess a common algorithm. in
DoSchannelNegotiation:CreateSchannelCredentials

If anyone recognizes this error, please let me know how you resolved it!

2 REPLIES 2
ballardw
Super User

I find this https://community.denodo.com/answers/question/details?questionId=9064u000000HA0PAAW&title=Setting+up...

with most of the same error text and a "solution" that points to possible TLS protocol settings as being involved.

 

May mean a call to SAS tech support is the way to go.

wormenhi
Calcite | Level 5

Did you configure the pg_hba.conf file to allow the connection from remote? If there is no specific entry with user, database and network you will not be able to connect to the PostgreSQL database at all.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 648 views
  • 0 likes
  • 3 in conversation