summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMoayad Mardini <moayad.m@gmail.com>2014-05-19 10:33:12 +0300
committerTim Graham <timograham@gmail.com>2014-05-19 07:42:11 -0400
commitbfac6bef833d2520853c88188560b81bc7e3988d (patch)
tree88373e418d67a71741ea0b5cb17d395386cfa591 /docs
parent7999ed9b69b8f1a0aed035d56d9102ef7881643f (diff)
Fixed #22368 -- clarified connecting to Oracle DB using service name
Used the official terminology listed in http://docs.oracle.com/cd/B19306_01/network.102/b14212/glossary.htm#i997309 Thanks michael.cherkasov for the report.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/databases.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
index 35a63719a3..07fe4dd84d 100644
--- a/docs/ref/databases.txt
+++ b/docs/ref/databases.txt
@@ -732,7 +732,8 @@ by default, but in case it is not, you'll need to grant permissions like so:
Connecting to the database
--------------------------
-Your Django settings.py file should look something like this for Oracle::
+To connect using the service name of your Oracle database, your ``settings.py``
+file should look something like this::
DATABASES = {
'default': {
@@ -746,8 +747,9 @@ Your Django settings.py file should look something like this for Oracle::
}
-If you don't use a ``tnsnames.ora`` file or a similar naming method that
-recognizes the SID ("xe" in this example), then fill in both
+In this case, you should leave both :setting:`HOST` and :setting:`PORT` empty.
+However, if you don't use a ``tnsnames.ora`` file or a similar naming method
+and want to connect using the SID ("xe" in this example), then fill in both
:setting:`HOST` and :setting:`PORT` like so::
DATABASES = {
@@ -761,8 +763,9 @@ recognizes the SID ("xe" in this example), then fill in both
}
}
-You should supply both :setting:`HOST` and :setting:`PORT`, or leave both
-as empty strings.
+You should either supply both :setting:`HOST` and :setting:`PORT`, or leave
+both as empty strings. Django will use a different connect descriptor depending
+on that choice.
Threaded option
----------------