Dear django-users,

We have two kinds of web servers. One is based on Java(tomcat + spring boot), 
while another is based on Python(Django).

Recently we changed our Oracle db to RAC mode, which theJava server can 
successfully connect to it by following config:

jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=177.177.50.112)
 
(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=177.177.50.113)(PORT=1521))(LOAD_BALANCE=NO)(FAILOVER=YES))(CONNECT_DATA=(SERVICE_NAME=aldb)(SERVER=DEDICATED)))

However for Django server, we can't find a proper way to config such 
connection. Anyone has experience to config Oracle RAC for Django?

Below is our old config which currently works well on non-RAC mode as a 
reference:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.oracle',
        'NAME': 'devdb',
        'USER': 'devuser',
        'HOST': '177.177.50.110',
        'PASSWORD': 'devpassword',
        'PORT': '1521',
        'CONN_MAX_AGE': 60 * 60 * 24 * 30 * 3,
    }
}


Regards,

Felix Hu

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/DM5PR13MB1018FD45A1ABB6C8D4DCD14ABFFB0%40DM5PR13MB1018.namprd13.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to