Christoph Zwerschke wrote:
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(...)?
No, The following line doesn't work:
sqlalchemy.create_engine("oracle://sfera:[email protected]:1521/shell").connect()
Do you run TG in the same environment as the above (ORACLE_HOME,
LD_LIBRARY_PATH etc.)?
Well, I need to check for this environment variables... :-\
Check that you really separate user and name with ":" in your dburi,
not "/" as usual in Oracle.
yes
Also check with SID in lower case.
yes
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.