Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Can't Drop Database

Gustavo Lopes
on 6/18/14, 10:24 AM 1,315 views

when I try from base management it says:

Could not drop database !

and when I try to drop via terminal:

dropdb: database removal failed: ERROR:  database "database" is being accessed by other users
DETAIL:  There are 4 other session(s) using the database.

I can drop other databases, but not the one I need to drop

any other possibilities?


Ludo - Neobis

--Ludo - Neobis--
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--


Ludo - Neobis
On 6/18/14, 11:18 AM

Restart the service ( /etc/init.d/openerp-server restart) and immediately try again. If you are going to drop the database from commandline, then you can completely stop the OpenERP server and then try again.

Restarting the server may not fix this. If a user is logged into PostgreSQL, then restarting Odoo won't disconnect them. A better answer would be to restart PostgreSQL and try again.

Bista Solutions US, Ray Carnes
on 6/18/14, 1:18 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 6/18/14, 10:24 AM
Seen: 1315 times
Last updated: 3/16/15, 8:10 AM