We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Cannot Connect Remote Postgresql from a Oracle Cloud Infrastructure Jupyter Notebook

edited Feb 28, 2021 3:52PM in Database


Dear All,

I'm currently testing Oracle Cloud Infrastructures technologies with Python and Postgresql (kindle see the figure herewith). So far, I managed to install my Cloud Jupyter Notebook, and ran some basic Python commands. However, when I tried to connect to my Postgresql DB or even upload csv any Data from my local machine raise this exception: 

OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused

               Is the server running on host "" and accepting

               TCP/IP connections on port 5432?

(Background on this error at: http://sqlalche.me/e/13/e3q8)

Just to mention  that when reproduce the same test case on my local_host it works perfectly

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!