13

I need to connect to existing database from SQLAlchemy via proxy.

        self.DB = {
            'drivername': 'oracle',
            'host': url,
            'port': port,
            'username': username,
            'password': password,
            'database': dbname
        }
        _engine = create_engine(URL(**self.DB))

        self.connection = _engine.connect()

I'm getting:

cx_Oracle.DatabaseError: ORA-12170: TNS:Connect timeout occurred

And I'm pretty sure I just need proxy because of my company policy. I couldn't find any tips in documentation how can I create connection via proxy.

a121
  • 807
  • 4
  • 8
  • 18
Dawid Fieluba
  • 1,241
  • 11
  • 32

0 Answers0