1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Syncing with Oracle Databases</title>
<link rel="stylesheet" href="gettingStarted.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
<link rel="start" href="index.html" title="Getting Started with the Oracle Berkeley DB SQL APIs" />
<link rel="up" href="admin.html" title="Chapter 5. Administrating Berkeley DB SQL Databases" />
<link rel="prev" href="admin.html" title="Chapter 5. Administrating Berkeley DB SQL Databases" />
<link rel="next" href="datamigration.html" title="Data Migration" />
</head>
<body>
<div xmlns="" class="navheader">
<div class="libver">
<p>Library Version 11.2.5.3</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">Syncing with Oracle Databases</th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="admin.html">Prev</a> </td>
<th width="60%" align="center">Chapter 5. Administrating Berkeley DB SQL Databases</th>
<td width="20%" align="right"> <a accesskey="n" href="datamigration.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="sync"></a>Syncing with Oracle Databases</h2>
</div>
</div>
</div>
<div class="toc">
<dl>
<dt>
<span class="sect2">
<a href="sync.html#syncunix">Syncing on Unix Platforms</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="sync.html#syncwin">Syncing on Windows Platforms</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="sync.html#syncwinmobile">Syncing on Windows Mobile Platforms</a>
</span>
</dt>
</dl>
</div>
<p>
Oracle's SQLite Mobile Client product allows you to synchronize a
SQLite database with a back-end Oracle database. Because the
BDB SQL interface is a drop-in replacement for SQLite, this means you
can synchronize a Berkeley DB database with an Oracle back-end as well.
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
Berkeley DB SQL databases are not compatible with
SQLite databases. In order for sync to work, you
must remove any currently existing SQLite
databases.
</p>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="syncunix"></a>Syncing on Unix Platforms</h3>
</div>
</div>
</div>
<p>
For Unix platforms, the easiest way to use Oracle's SQLite Mobile Client
is to build the BDB SQL interface with the
compatibility option. That is, specify both
<code class="literal">--enable-sql</code> and
<code class="literal">--enable-sql-compat</code> when you configure
your Berkeley DB installation. This causes libraries with the exact
same name as the SQLite libraries to be created when you
build Berkeley DB.
</p>
<p>
Having done that, you must then change your platform's
library search path so that it finds the Berkeley DB libraries
<span class="emphasis"><em>before</em></span> any installed SQLite libraries.
On many (but not all) Unix platforms, you do this by
modifying the <code class="literal">LD_LIBRARY_PATH</code> environment
variable. See your operating system documentation for
information on how to change your search path for dynamically
linked libraries.
</p>
<p>
Once you have properly configured and built your Berkeley DB
installation, and you have properly configured your operating
system, you can use the Oracle SQLite Mobile Client in
exactly the same way as you would if you were using standard
SQLite libraries and databases with it. See the
<a class="ulink" href="http://download.oracle.com/docs/cd/E12095_01/nav/portal_booklist.htm" target="_top">
Oracle Database Lite
</a>
documentation for information on using SQLite Mobile Client.
</p>
<p>
For information on building the BDB SQL interface, see the
<a href="../installation/build_unix_sql.html" class="olink">Configuring the SQL Interface</a> section in the
<em class="citetitle">Berkeley DB Installation and Build Guide</em>.
</p>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="syncwin"></a>Syncing on Windows Platforms</h3>
</div>
</div>
</div>
<p>
For Windows platforms, you use Oracle's SQLite Mobile Client
by building the BDB SQL interface in the same way as you normally do.
See the <a href="../installation/build_win.html" class="olink">Building Berkeley DB for Windows</a>
chapter in the <em class="citetitle">Berkeley DB Installation and Build Guide</em> for more information.
</p>
<p>
Once you have built the product, rename the Berkeley DB
SQL dlls so that they are named identically to the standard
SQLite dlls (sqlite3.dll). Install the renamed Berkeley DB SQL dll along with the
main Berkeley DB dll (libdb5x.dll) in the same directory as the SQLite dlls. See the
<a href="../installation/build_win_sql.html" class="olink">Building the SQL API</a> section for details.
</p>
<p>
Finally, configure your Windows PATH environment variable so
that it finds your Berkeley DB dlls before it finds any standard
SQLite dlls that might be installed on your system.
</p>
<p>
Once you have built your Berkeley DB installation and renamed your
dlls, and you have properly configured your operating system,
you can use the Oracle SQLite Mobile Client in exactly the
same way as you would if you were using standard SQLite
libraries and databases with it. See the
<a class="ulink" href="http://download.oracle.com/docs/cd/E12095_01/nav/portal_booklist.htm" target="_top">
Oracle Database Lite </a> documentation for
information on using SQLite Mobile Client.
</p>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="syncwinmobile"></a>Syncing on Windows Mobile Platforms</h3>
</div>
</div>
</div>
<p>
For Windows Mobile platforms, you use Oracle's SQLite Mobile Client
by building the BDB SQL interface in the same way as you normally do.
See the <a href="../installation/build_wince.html" class="olink">Building Berkeley DB for Windows Mobile</a>
chapter in the <em class="citetitle">Berkeley DB Installation and Build Guide</em> for more information.
</p>
<p>
Once you have built the product, rename the Berkeley DB
SQL dll to <code class="literal">sqlite3.dll</code>. Then, copy
the dll to the <code class="literal">\Windows</code> path on
the phone. Note that you only need the new
<code class="literal">sqlite3.dll</code>; you do not need any
of the other Berkeley DB dlls.
</p>
<p>
Once you have built your Berkeley DB installation and renamed your
dlls, and you have properly configured your operating system,
you can use the Oracle SQLite Mobile Client in exactly the
same way as you would if you were using standard SQLite
libraries and databases with it. See the
<a class="ulink" href="http://download.oracle.com/docs/cd/E12095_01/nav/portal_booklist.htm" target="_top">
Oracle Database Lite </a> documentation for
information on using SQLite Mobile Client.
</p>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="admin.html">Prev</a> </td>
<td width="20%" align="center">
<a accesskey="u" href="admin.html">Up</a>
</td>
<td width="40%" align="right"> <a accesskey="n" href="datamigration.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Chapter 5. Administrating Berkeley DB SQL Databases </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> Data Migration</td>
</tr>
</table>
</div>
</body>
</html>
|