I am trying to connect to Oracle database using the following script;
import cx_Oracle
username = user
password = pwd
host = host
port = '1521'
service = service
dbconn = cx_Oracle.connect(username + '/' + password + '@'+ host + ':' + port + '/' + service)
But I got the following error;
TNS:Connect timeout occurred
Can anybody please suggest me what is going wrong here?