dbTalk Databases Forums  

Deleting a database in an environment

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Deleting a database in an environment in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Fletcher
 
Posts: n/a

Default Deleting a database in an environment - 09-25-2003 , 09:27 AM






Within a transaction-protected environment, what's the best way to
delete a database? Can I just delete the underlying file (assuming no
processes are using the environment)? Do I need to run db_recover on
the environment first? I'm not looking to truncate the database, the
database is no longer needed.

Thanks,

Mark

Reply With Quote
  #2  
Old   
Michael Ubell
 
Posts: n/a

Default Re: Deleting a database in an environment - 09-25-2003 , 12:52 PM






Mark,

Please see:
http://www.sleepycat.com/docs/api_c/db_remove.html
http://www.sleepycat.com/docs/api_cxx/db_remove.html

Using the remove method is the best way to delete a database.

Michael Ubell
Sleepycat Software.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.