mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.8.x] Made assorted improvements to the Oracle documentation.
Backport of 6f1b09bb5c from master
This commit is contained in:
committed by
Tim Graham
parent
eb0bbb8f3a
commit
a0ce708c1c
@@ -762,13 +762,15 @@ for Django's own test suite.
|
||||
All of these privileges are included in the DBA role, which is appropriate
|
||||
for use on a private developer's database.
|
||||
|
||||
The Oracle database backend uses the ``SYS.DBMS_LOB`` package, so your user
|
||||
will require execute permissions on it. It's normally accessible to all users
|
||||
by default, but in case it is not, you'll need to grant permissions like so:
|
||||
The Oracle database backend uses the ``SYS.DBMS_LOB`` and ``SYS.DBMS_RANDOM``
|
||||
packages, so your user will require execute permissions on it. It's normally
|
||||
accessible to all users by default, but in case it is not, you'll need to grant
|
||||
permissions like so:
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
GRANT EXECUTE ON SYS.DBMS_LOB TO user;
|
||||
GRANT EXECUTE ON SYS.DBMS_RANDOM TO user;
|
||||
|
||||
Connecting to the database
|
||||
--------------------------
|
||||
@@ -892,10 +894,10 @@ some limitations on the usage of such LOB columns in general:
|
||||
|
||||
* LOB columns may not be used in a ``SELECT DISTINCT`` list. This means that
|
||||
attempting to use the ``QuerySet.distinct`` method on a model that
|
||||
includes ``TextField`` columns will result in an error when run against
|
||||
Oracle. As a workaround, use the ``QuerySet.defer`` method in conjunction
|
||||
with ``distinct()`` to prevent ``TextField`` columns from being included in
|
||||
the ``SELECT DISTINCT`` list.
|
||||
includes ``TextField`` columns will result in an ``ORA-00932`` error when
|
||||
run against Oracle. As a workaround, use the ``QuerySet.defer`` method in
|
||||
conjunction with ``distinct()`` to prevent ``TextField`` columns from being
|
||||
included in the ``SELECT DISTINCT`` list.
|
||||
|
||||
.. _third-party-notes:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user