DBA > Job Interview Questions > DERBY Java Database FAQs

When Path Is Ambiguous Because of Databases in C

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

When Path Is Ambiguous Because of Databases in Class Path ?

To connect to a database in the file system when the connection URL that you would use would be ambiguous with a database in the class path, use the following form of the connection URL:

jdbc:derby:directory:databasePathInFileSystem

For example,
jdbc:derby:directory:/products/boiledfood

Apart from the connection URL, databases in archives in the class path behave just like databases in archives accessed through the file system. However, databases in archives are read-only.

(Continued on next question...)

Other Job Interview Questions