Am 14.12.2011 11:42, schrieb jose soares:
This code works:

import cx_Oracle
import sqlalchemy
c2 = cx_Oracle.connect("sfera/[email protected]:1521/SHELL")

Does it work if you use sqlalchemy.create_engine(...).connect() instead of cx_Oracle.connect(...)? Do you run TG in the same environment as the above (ORACLE_HOME, LD_LIBRARY_PATH etc.)? Check that you really separate user and name with ":" in your dburi, not "/" as usual in Oracle. Also check with SID in lower case. SQLAlchemy actually feeds the parts of the dburi to cx_Oracle.makedsn().

-- Christoph

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to