Now I want to connect to oracle database through vpn, I already set up vpn configurations with cli and programmatically .
When I connect to the database using SqlAlchemy or cx_Oracle it gives me connection timeout occured
Python == 2.7
cx_Oracle == 6.01rc
oracle == 10g
os = linux ubuntu 16.04
oracle_instant_client = 12.2 Basic
using cx_Oracle
ip = '<ip>'
port = 1521
service = '<dbname>'
sd = cx_Oracle.makedsn(ip, port, service)
db = cx_Oracle.connect('<username>', '<pass>', sd)
cx_Oracle
is 6.01rc and oracle version is 10g, it returns me
DatabaseError: ORA-12170: TNS:Connect timeout occurred
First of all
What ip should I use, the ip that I already connected to in the vpn which is 41.22x.x.8 or the ip when ifconfig
>> ppp0 >>> p-t-p:10.0.xx.21x ??
Where is the problem ? Is it authentication one or what, I don't understand why its timeout error
I think that cx_Oracle
6.01rc is not proper version to connect to oracle 10g so I tried cx_Oracle 5.3 but can't install