How to substitute secondary directory in DA

Hello i’ve some secondary directory with DA. One of this directory have make some trouble with replica and i want to substitute with new replica. If i go to directory assistance and i take offline the directory or delete the document the DB still in use and i can’t delete it ( i want to delete DB and than replace with new replica).

i’ve make dbacache flush the db still in use

Subject: Response

Dbcache flush will do nothing if the database is actively open. If you’ve disabled Directory Assistance, drop the database and then flush the cache, as follows:

drop database “names2.nsf”

dbcache flush

Subject: this does’n work

Hello i’ve tried to drop database and make the dbcache flush but the db still in use and i can’t delete it…

05/08/2008 10.07.47 Delete - name server/ORG names2.nsf: Database is currently in use by you or another user

i think we must restart somete task

Subject: Did you verify DA is disabled?

Run “show xdir” on your console and see if your DA directory is still active. If it is, the database will just be reopened as soon as you drop it. You can confirm it’s open by running “show opendatabases”.

Subject: yes

yes i’ve check with show xdir and i see other directory (i’ve 3 directory in total).

All is ok but i can’t delete…

Subject: Check this

If you can’t delete the database and if it’s Domino that has it locked, then the database should either be actively open or in the database cache. You can tell which by running these commands:

  1. show opendatabases

If the database is shown in this output, you need to do the following:

drop database “db.nsf”

dbcache flush

  1. dbcache show

If the database is shown in this output, you need to do the following:

dbcache flush

This assumes directory assistance is disabled for this directory, as the database will just be reopened by the server as soon as you drop it.

Subject: the db still in use

I’ve make this step1) disabled the secondary names from DA

  1. show xdir and the names was not in use

  2. show opendatabase and the db was opened

  3. drop database names2.nsf and dbcache flush

my collegue try to rename the names2.nsf in the same time i drop and flush the cache but he can’t

in show opendatabase the DB still in use…

thanks

Subject: Database is still in use

You can’t delete a database that is still in use. Because a directory is a system database, it is likely to be in use all of the time. I’m not sure what you did to disable directory assistance, but I would think I restart would be required for the server not to keep it open as a secondary address book. And since you’d be restarting the server anyway, that would be the appropriate time to delete the database.

If this is a cluster, you can try setting it to pending delete and then drop the database and flush the cache, but you may just have to delete it with the server down.