我正在使用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, table_name) 文件“/usr/lib/pymodules/python2.6/django/db/backends/oracle/introspection.py”,第 116 行,在cursor.fetchall() 中的行的 get_indexes:文件“/usr/lib/pymodules/python2.6/django/db/backends/oracle/base.py”,第 483 行,在 self.cursor.fetchall( )]) cx_Oracle.DatabaseError: OCI-22061: 无效的格式文本 [T"。
我知道,"inspectdb works with PostgreSQL, MySQL and SQLite"
但正如我从其他帖子中了解到的那样,它也以某种方式与 Oracle 一起工作。
有谁知道我为什么会收到此错误或如何修复它?