I have a connection string that looks like this
con_str = \"myuser/mypass@oracle.sub.example.com:1521/ora1\"
Where ora1
is the
If you are using sqlalchemy and ORACLE 12, the following seems to work.
from sqlalchemy import create_engine
con='oracle://user:password@hostname:1521/?service_name=DDDD'
engine = create_engine(con)
Note, you have to use the service name and not the SID. I don't know why, but the simple connection string that uses SID does not work.