Oracle Connection Problem

20 views
Skip to first unread message

Md. Razibul Hasan Mithu

unread,
Jul 25, 2018, 10:12:53 AM7/25/18
to Django users
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.oracle',
        'NAME': 'orcl',  # my sid is orcl. is this sid or something else??        
        'USER': 'hr',   # my instalation user is hr
        'PASSWORD': 'hr',  # Instalation Pass also hr
        'HOST': '',
        'PORT': '',
    }
}


I can't connect oracle in my project. For last 2 days i tried to solve this issue. But still same problem. I can't able to migrate.I am using Oracle 11g.

Julio Biason

unread,
Jul 25, 2018, 10:22:52 AM7/25/18
to django...@googlegroups.com
Hi Razibul,

Have you tried to add the host and port? IIRC, the default port is 1521 and you need to fill the host value, otherwise the driver won't know where to connect to.

Also, are you getting any specific errors?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/03a2ca2e-1ace-4e71-aa13-3f03d32aeb5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Julio Biason, Sofware Engineer
AZION  |  Deliver. Accelerate. Protect.
Office: +55 51 3083 8101  |  Mobile: +55 51 99907 0554

Md. Razibul Hasan Mithu

unread,
Jul 25, 2018, 8:43:11 PM7/25/18
to Django users
In oracle database ,what does NAME and HOST mean? Can you tell me in details?

Kasper Laudrup

unread,
Jul 26, 2018, 3:56:15 AM7/26/18
to django...@googlegroups.com
Hi Razibul,

On 2018-07-26 02:43, Md. Razibul Hasan Mithu wrote:
> In oracle database ,what does NAME and HOST mean? Can you tell me in details?
>

NAME is the name of the database, HOST is the hostname of the server
running the database. Details here:

https://docs.djangoproject.com/en/2.0/ref/databases/

Kind regards,

Kasper Laudrup
Reply all
Reply to author
Forward
0 new messages