#31464: Oracle destroy test database mixes tablespace, database and tables.
-------------------------------------+-------------------------------------
Reporter: JorisBenschop | Owner: nobody
Type: Uncategorized | Status: closed
Component: Database layer | Version: 3.0
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: new => closed
* resolution: => invalid
Comment:
It's [https://docs.djangoproject.com/en/3.0/ref/databases/#oracle-notes
documented] that to run a project's test suite in on Oracle the user needs
additional privileges, e.g. ''"CREATE TABLESPACE"''.
> the actual destruction of tables depends on this line if
`self._test_database_create()`:
Not really, all tables are created in a test user scope, so they should be
dropped when we drop test user.
> However, the `CREATE_DB` governs the ability to create the database, not
the tables within.
It's about creating/dropping test tablespaces, see
[https://docs.djangoproject.com/en/3.0/ref/settings/#create-db
documentation]. Django doesn't manage pluggable databases.
> As for most Oracle devs, there is no way I will be allowed to get DB-
create permissions of tablespace create permissions.
It's a matter of your company policy, I worked 10 years with Oracle DBs
and it has never been an issue.
To sum up if you don't have permissions to create/drop tablespaces, then
you need at least permissions to create/drop a test user. In such case
settings like
{{{
'TEST': {
'USER': 'JB_UNITTEST',
'PASSWORD': 'y',
'CREATE_DB': False,
'CREATE_USER': True,
}
}}}
should work properly.
Closing per TicketClosingReasons/UseSupportChannels.
--
Ticket URL: <https://code.djangoproject.com/ticket/31464#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/071.7dae7193968c7ff546ee7fe2da000ee2%40djangoproject.com.