<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:1493450301;
        mso-list-template-ids:-1085128266;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=PT-BR link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:windowtext'>Dave,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:windowtext'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:windowtext'> </span><span lang=EN-US style='font-size:
11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>I need a little
help here.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:windowtext'> Based on the instructions below I installed
Visual Studio C++ Express and successfully executed the step a).<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:windowtext'> Then I downloaded </span><span
class=apple-style-span><span lang=EN-US style='font-family:"Calibri","sans-serif";
color:windowtext'>SQLite JDBC from </span></span><span class=apple-style-span><span
style='font-family:"Calibri","sans-serif";color:windowtext'><a
href="http://www.ch-werner.de/javasqlite/"><span lang=EN-US style='color:windowtext;
text-decoration:none'>http://www.ch-werner.de/javasqlite/</span></a></span></span><span
class=apple-style-span><span lang=EN-US style='font-family:"Calibri","sans-serif";
color:windowtext'> but I’m not sure how to executed the step c).<o:p></o:p></span></span></p>
<p class=MsoNormal><span class=apple-style-span><span lang=EN-US
style='font-family:"Calibri","sans-serif";color:windowtext'> I read
the instructions that come with SQLite JDBC (</span></span><span
style='font-family:"Calibri","sans-serif";color:windowtext'><a
href="http://www.ch-werner.de/javasqlite/javasqlite-20100131.tar.gz"><span
lang=EN-US style='color:windowtext'>javasqlite-200100131.tar.gz</span></a></span><span
lang=EN-US style='font-family:"Calibri","sans-serif";color:windowtext'>)</span><span
class=apple-style-span><span lang=EN-US style='font-family:"Calibri","sans-serif";
color:windowtext'> but I don’t know how to use the makefile to create
sqlite.jar and libsqlite_jni.dll<o:p></o:p></span></span></p>
<p class=MsoNormal><span class=apple-style-span><span lang=EN-US
style='font-family:"Calibri","sans-serif";color:windowtext'>based on
libsqlite3.dll generated from step a).<o:p></o:p></span></span></p>
<p class=MsoNormal><span class=apple-style-span><span lang=EN-US
style='font-family:"Calibri","sans-serif";color:windowtext'> Could
you give some instructions?<o:p></o:p></span></span></p>
<p class=MsoNormal><span class=apple-style-span><span lang=EN-US
style='font-family:"Calibri","sans-serif";color:windowtext'> I’m
doing all these steps in a Windows machine<o:p></o:p></span></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Essentially, you would want to do the
following: <br>
a) build the Berkeley DB 11gR2 library from source; <br>
b) <span class=apple-style-span>download the SQLite JDBC driver package from</span><span
class=apple-converted-space> </span></span><span class=apple-style-span><a
href="http://www.ch-werner.de/javasqlite/"><span lang=EN-US style='color:#BB0000;
text-decoration:none'>http://www.ch-werner.de/javasqlite/</span></a></span><span
class=apple-style-span><span lang=EN-US>;</span></span><span lang=EN-US
style='font-size:13.5pt'><br>
</span><span lang=EN-US>c) using the package and the instructions from step b),
build a sqlite.jar and libsqlite_jni.dll based on the libsqlite3.dll that was
built/generated from step a)</span><span class=apple-style-span><span
lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>,</span></span><span
lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><br>
</span><span lang=EN-US>d) you should then be able to build and run a Java
application that calls the SQLite Java interface using the JDBC driver from
step c), <br>
<br>
</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:windowtext'>Thanks,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:windowtext'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:windowtext'>Luis<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>
Dave Segleau [mailto:dave.segleau@oracle.com] <br>
<b>Sent:</b> quarta-feira, 17 de fevereiro de 2010 17:07<br>
<b>To:</b> Luis Paolini<br>
<b>Cc:</b> Sandra Whitman; Kent Rollins; bdb-beta-feedback@oss.oracle.com;
Sleepycat Software Support; Claudio Ferreira<br>
<b>Subject:</b> Re: [BDB 11gR2 Beta] [#18298] First Questions about DBD 11gR2<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Luis,<br>
<br>
Thanks for the reply. I wanted to follow up on Sandra's email from this
morning. We're looking into your questions in more depth, but I just want to
make sure we understand what it is that you're trying to do so that we're
answering the right questions. We understand that you have existing
applications, built with various Oracle development tools. Some of these
applications use the Oracle Database Server and some apparently use Berkeley DB
Java Edition. <o:p></o:p></p>
<ul type=disc>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo1'>Specifically, which application development tool
are you trying to use to build <i>this </i>application? <o:p></o:p></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo1'>Is this a new application, specifically for the
mobile platform? Or is it a single application with two modes: a)
connected to an Oracle Server database and b) disconnected, running on a
smartphone device with SQLite/Berkeley DB installed locally? <o:p></o:p></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo1'>Does this new application plan to use Berkeley DB
11gR2 via the SQL API, which is based on SQLite? <o:p></o:p></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo1'>Does this new application plan to access the
SQLite/Berkeley DB database via JDBC? <o:p></o:p></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo1'>Does this new application plan on using
capabilities of the SQLite spatial functionality, just simple SQL or
something else? <o:p></o:p></li>
</ul>
<p class=MsoNormal>With regards to your recent question: <o:p></o:p></p>
<p class=MsoNormal>"I used to work with BDB as a single jar file (like
je-3.3.87.jar) that was referenced in a JDeveloper Application. For deployment,
this jar file was packed with my application libraries and files to be deploy
to the client. Now it seems that this process must be changed. The way to
install BDB in a windows machine will consider some Dlls installation. Is this
correct?"<o:p></o:p></p>
<p class=MsoNormal>Berkeley DB Java Edition is not the same library as the
Berkeley DB 11gR2 Beta release. They are two separate products. Berkeley DB
Java Edition does not have support for a SQL API -- it provides a Key/Value
pair API, a Java collections API and a Data Persistence Layer API for
POJO-style Java Object persistence. The Berkeley DB 11gR2 Beta release library
is written in C, has the same API support and is the product that is
introducing a new SQL API, based on integration of the SQLite library. How you
build, link and deploy Berkeley DB Java Edition vs Berkeley DB is different. <br>
<br>
In the case of Berkeley DB Java Edition, being referenced in a JDeveloper
Application, all you needed was the Berkeley DB Java Edition jar file. <br>
<br>
In the case of Berkeley DB 11gR2 Beta, the SQL API is based on SQLite. As such,
your build, link and deployment process would be different than using Berkeley
DB Java Edition. Essentially, you would want to do the following: <br>
a) build the Berkeley DB 11gR2 library from source; <br>
b) <span class=apple-style-span>download the SQLite JDBC driver package from</span><span
class=apple-converted-space> </span><span class=apple-style-span><a
href="http://www.ch-werner.de/javasqlite/"><span style='color:#BB0000;
text-decoration:none'>http://www.ch-werner.de/javasqlite/</span></a>;</span><span
style='font-size:13.5pt'><br>
</span>c) using the package and the instructions from step b), build a
sqlite.jar and libsqlite_jni.dll based on the libsqlite3.dll that was
built/generated from step a)<span class=apple-style-span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>,</span></span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><br>
</span>d) you should then be able to build and run a Java application that
calls the SQLite Java interface using the JDBC driver from step c), <br>
<br>
Does this make sense and does it help you make forward progress? <o:p></o:p></p>
<p class=MsoNormal>If we're still not in sync with regards to what you're
trying to do, we can either continue to have this discussion via email or get
on a conference call. Please let me know if you would like to schedule a call
and what time works best for you. I just want to make sure that we properly
understand what it is that you are trying to build. <br>
<br>
Regards, <br>
<br>
Dave<br>
<br>
On 2/17/2010 4:20 AM, Luis Paolini wrote: <o:p></o:p></p>
<pre>Hi Sandra,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> Thank you for the answers.<o:p></o:p></pre><pre> I have an additional question based on the answer for question 2.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> Additional Question 2:<o:p></o:p></pre><pre> I used to work with BDB as a single jar file (like je-3.3.87.jar)<o:p></o:p></pre><pre>that was referenced in a JDeveloper Application.<o:p></o:p></pre><pre> For deployment, this jar file was packed with my application<o:p></o:p></pre><pre>libraries and files to be deploy to the client.<o:p></o:p></pre><pre> Now it seems that this process must be changed. The way to install<o:p></o:p></pre><pre>BDB in a windows machine will consider some<o:p></o:p></pre><pre> Dlls installation. Is this correct?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Regards,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Luis Paolini<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>-----Original Message-----<o:p></o:p></pre><pre>From: Sandra Whitman [<a
href="mailto:sandra.whitman@oracle.com">mailto:sandra.whitman@oracle.com</a>] <o:p></o:p></pre><pre>Sent: domingo, 14 de fevereiro de 2010 22:48<o:p></o:p></pre><pre>To: Luis Paolini<o:p></o:p></pre><pre>Cc: <a
href="mailto:bdb-beta-feedback@oss.oracle.com">bdb-beta-feedback@oss.oracle.com</a>; <a
href="mailto:support@sleepycat.com">support@sleepycat.com</a>; Whitman,Sandra<o:p></o:p></pre><pre>Subject: Re: [BDB 11gR2 Beta] [#18298] First Questions about DBD 11gR2<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Hi Luis,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Thank you again for your email. I have been investigating your <o:p></o:p></pre><pre>questions and do have some answers which I will list below in the <o:p></o:p></pre><pre>question/answer section. I am still doing some more research regarding <o:p></o:p></pre><pre>ADF and JDBC access and will get back to you on those. In the mean time <o:p></o:p></pre><pre>if you have any other questions, or if I did not completely answer <o:p></o:p></pre><pre>something, please let me know.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Question 1:<o:p></o:p></pre><pre>Is necessary to build BDB from source files?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Answer 1:<o:p></o:p></pre><pre>At the current time you do need to build Berkeley DB from source. This <o:p></o:p></pre><pre>requires Visual Studio C++. You can use the free Express version <o:p></o:p></pre><pre>available from Microsoft.com. We will however consider a pre-built <o:p></o:p></pre><pre>version for the future.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Question 2:<o:p></o:p></pre><pre>How is the BDB jar file obtained?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Answer 2:<o:p></o:p></pre><pre>What are the plans for the Berkeley DB jar file? Is that to be used <o:p></o:p></pre><pre>with ADF? I am still checking, but a jar file may not be<o:p></o:p></pre><pre>needed for this. If a Berkeley DB jar file is needed, it can be built <o:p></o:p></pre><pre>with Version 1.5 or 1.6 of the Java JDK.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Question 3:<o:p></o:p></pre><pre>How is BDB configured to support SQL?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Answer 3:<o:p></o:p></pre><pre>SQL support is built automatically on Windows. The SQL library is built <o:p></o:p></pre><pre>as libdb_sql50.dll in the Release mode or libdb_sql50d.dll in the Debug <o:p></o:p></pre><pre>mode. An SQL command line interpreter called db_sql_shell.exe is also <o:p></o:p></pre><pre>built.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Please take a look in the documentation titled "Building the SQL API - <o:p></o:p></pre><pre>Chapter 5. Building Berkeley DB for Windows"<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> From there:<o:p></o:p></pre><pre>Building the SQL API<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Binary Compatibility With SQLite<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>SQL support is built automatically on Windows. The SQL library is built <o:p></o:p></pre><pre>as libdb_sql50.dll in the Release mode or libdb_sql50d.dll in the Debug <o:p></o:p></pre><pre>mode. An SQL command line interpreter called db_sql_shell.exe is also built.<o:p></o:p></pre><pre>Binary Compatibility With SQLite<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Both libdb_sql50.dll and libdb_sql50d.dll are compatible with <o:p></o:p></pre><pre>sqlite3.dll. You can rename libdb_sql50.dll to sqlite3.dll and <o:p></o:p></pre><pre>db_sql_shell.exe to sqlite3.exe, and use these applications as a <o:p></o:p></pre><pre>replacement for the standard SQLite binaries with same names.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Question 4:<o:p></o:p></pre><pre>Are the SQLite data types are supported by Oracle ADF?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Answer 4:<o:p></o:p></pre><pre>I am still investigating this point. However, the ADF components <o:p></o:p></pre><pre>support SQLite so there should not be a problem here.<o:p></o:p></pre><pre>I will get back to you on this though.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Question 5:<o:p></o:p></pre><pre>Is any documentation available regarding JDBC access to the database.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Answer 5:<o:p></o:p></pre><pre>The ODBC and JDBC drivers are not included in the initial Beta release <o:p></o:p></pre><pre>package, but they are supported and they will be included in the <o:p></o:p></pre><pre>production release. In order to build the drivers, please download the <o:p></o:p></pre><pre>open source ODBC driver from <a
href="http://www.ch-werner.de/sqliteodbc/">http://www.ch-werner.de/sqliteodbc/</a> and the <o:p></o:p></pre><pre>open source JDBC driver from <a
href="http://www.ch-werner.de/javasqlite">http://www.ch-werner.de/javasqlite</a>.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Question 6:<o:p></o:p></pre><pre>Are there any examples using BDB SQLite Interfaces?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Answer:<o:p></o:p></pre><pre>The BDB SQLite interface examples are under the distribution at <o:p></o:p></pre><pre>sql\examples\c.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Best Regards,<o:p></o:p></pre><pre>Sandra<o:p></o:p></pre><pre>Sandra Whitman<o:p></o:p></pre><pre>Oracle Global Customer Support<o:p></o:p></pre><pre> <o:p></o:p></pre>
<div>
<p class=MsoNormal>-- <br>
<a href="http://www.oracle.com" target="_blank"><span style='text-decoration:
none'><img border=0 width=114 height=26 id="_x0000_i1025"
src="cid:image001.gif@01CAB0B5.111071E0" alt=Oracle></span></a><br>
<span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#666666'>David
Segleau | Director Product Management - Berkeley DB<br>
Phone: +1 425 945 8533 | Mobile: +1 408 420 7350 <br>
</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:red'>Oracle</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#666666'> Database Engineering<br>
</span><br>
<a href="http://www.oracle.com/commitment" target="_blank"><span
style='text-decoration:none'><img border=0 width=44 height=28 id="_x0000_i1026"
src="cid:image002.gif@01CAB0B5.111071E0" alt="Green Oracle"></span></a><span
style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#4B7D42'>Oracle
is committed to developing practices and products that help protect the
environment</span> <o:p></o:p></p>
</div>
<p class=MsoNormal><br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4875 (20100217) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a href="http://www.eset.com">http://www.eset.com</a><o:p></o:p></p>
</div>
<BR><BR>__________ Information from ESET NOD32 Antivirus, version of virus signature database 4878 (20100218) __________<BR><BR>The message was checked by ESET NOD32 Antivirus.<BR><BR><A HREF="http://www.eset.com">http://www.eset.com</A><BR> </body>
</html>