【发布时间】:2012-05-16 21:29:19
【问题描述】:
我正在使用Oracle Database 10g xe universal Rel.10.2.0.1.0 against cx_Oracle-5.0.4-10g-unicode-py26-1.x86_64 on a django project on Ubuntu 10.04
我的数据库由Oracle 10gr2 enterprise edition 生成(在Windows XP 上,导入在US7ASCII character set and AL16UTF16 NCHAR character set 中完成,导入服务器使用AL32UTF8 character set,导出客户端使用EL8MSWIN1253 character set)
当我尝试django-admin.py inspectdb 时,我收到以下错误:
......."indexes = connection.introspection.get_indexes(cursor, 表名)文件 “/usr/lib/pymodules/python2.6/django/db/backends/oracle/introspection.py”, 第 116 行,在 get_indexes 中 对于 cursor.fetchall() 中的行:文件“/usr/lib/pymodules/python2.6/django/db/backends/oracle/base.py”,行 483,在 fetchall 中 for r in self.cursor.fetchall()]) cx_Oracle.DatabaseError: OCI-22061: invalid format text [T".
我知道"inspectdb works with PostgreSQL, MySQL and SQLite",但正如我从其他帖子中了解到的那样,它也以某种方式与 Oracle 一起工作。
有谁知道我为什么会收到此错误或如何修复它?
【问题讨论】:
标签: django django-models oracle-xe cx-oracle inspectdb