db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: Close Derby DB
Date Tue, 07 Jul 2009 16:08:39 GMT
sivagururaja wrote:
> Thanks Mr.Rick,
>
> I tried the following,
> DriverManager.getConnection("jdbc:derby:C:/MyDB;user=un;password=pw;shutdown=true");
> It throws, Database 'C:/MyDB' not found.
>
> If i remove the "shutdown=true", it works fine. Except the connection is not
> getting closed.
> And my schema is APP. As per documents "only the database owner can shut
> down the database."
> Is that any thing i missed? 
>   

You actually have to boot the database before you shut it down, so prior 
to your shutdown, you would need to first connect with:

DriverManager.getConnection("jdbc:derby:C:/MyDB;user=un;password=pw");
then you should be able to shut down with the command above.

Kathey






Mime
View raw message