Hi Rick Hillegas,
Thank you very much for your reply. I just want some more information regarding derby.
I want to move this database directory from my home directory. I use windows xp professional. My c drive is not having enough space. So, it is not good to put the database in my home directory. Moreover, When I have to install I will format my c drive. So, I need a way to tell derby to store databases in some other location. I am having 2 more problems with derby is that I am unable to start derby network server using derbynet.jar and derbyrun.jar. At present, What is working is thru setNetworkServerCP,startNetworkServer and stopNetworkServer. Can you or any body help me in this issues?
On Mon, Jul 20, 2009 at 8:40 PM, Rick Hillegas <Richard.Hillegas@sun.com>
There is no Derby command for deleting a database. A database is simply a directory of files--if you want to delete it, you just use operating system commands to remove the directory. In your case, you would be deleting the sampleDB directory.
You also asked a question about schemas, which I didn't understand. Forgive me if I am talking past your question: You can use the CREATE SCHEMA command to create schemas other than sys and app. If you use an authentication mechanism to control who logs into the database and if you turn on fine-grained SQL access checks, you can control who is able to read and write the data in the schema which you created. For more information, you may want to consult the security documentation in the Derby Developer's guide: http://db.apache.org/derby/docs/10.5/devguide/devguide-single.html#cdevcsecuree
Hope this helps,
sridhar devatha wrote:
I hava a database, let us call it, sampleDB.
I connect to it using ij through the below command.
I want to remove sampleDB. So that nobody can connect to it even using sys schema.
This database is in different schema other than sys and app.
I am unable to find in docs and google on deleting derby database.
Can I delete it from my own schema from which I usually connect to this database?
what is the command for deleting database?
how to know the tables / data in the database?