oracle - Does importing Django.db.Models affect the way cx_Oracle connects to other databases? -


i have django app uses cx_oracle backend using oracle db here in our office, uses cx_oracle directly, connect other remote oracle databases (our customers). of remote databases ( same few ) cannot connected after have created sub-class of django.db.models ( found out through trial-and-error )

if don't import models, or if change django db "oracle" else, works fine , can connect of remote databases. in django model code seems affecting cx_oracle in global way.

here's 1 clue have: used wireshark compare successful connection unsuccessful connection, , found unsuccessful connection attempt did include looked sort of "handshake" coming server initially, client sent lot of "alter session...nls_date_format", , many other "nls" settings, etc. after server never responds. nsl not there during successful attempts.

the confusing part of "bad" databases ( few have problem ) of alter session commands during connection. "good" databases don't those, after have imported models. have searched differences between "good" , "bad" databases ( nls settings, db settings, db version, etc ), same.

it huge mystery me. thinking moving actual django db on mysql, avoid problem -- crazy -- oracle shop, , have many oracle databases running.

so question this: base django.db.oracle code cx_oracle affects way connects? possibly doing? difference between "bad" databases , "good" ones? practically identical, , work fine except django. work fine cx_oracle, long never import models.

edit:

to fix problem, have switched django backend oracle mysql. installed mysql directly on web server, , migrated of data using django's "dumpdata" , "loaddata" tools. surprisingly easy. able connect of remote oracle databases no problem, because django no longer messes python/oracle driver. app faster too, because db on same box web server. recommend solution in situation.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -