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