You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/getting-started/installation.md
+32-61Lines changed: 32 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,29 @@ The following software is required to build and run SynchDB. The versions listed
119
119
120
120
* libprotobuf-c v1.5.2. Refer to [here](https://github.com/protobuf-c/protobuf-c.git) to build from source.
121
121
122
-
### **Prepare Source (Using 16.3 as example)**
122
+
**The following is required if you would like to use FDW based snapshot**
123
+
124
+
* OCI v23.9.0. Refer to here for more information
125
+
* oracle_fdw v2.8.0. Refer to here to build from source
126
+
127
+
128
+
### **Default SynchDB Build - Support MySQL, SQLServer and Oracle Connectors**
129
+
130
+
If you already have PostgreSQL installed, you can build and install Default SynchDB with PGXS. Please note that your PostgreSQL installation must have pgcrypto extension as required by SynchDB.
131
+
132
+
```sh
133
+
USE_PGXS=1 make PG_CONFIG=$(which pg_config)
134
+
USE_PGXS=1 make build_dbz PG_CONFIG=$(which pg_config)
135
+
136
+
sudo USE_PGXS=1 make PG_CONFIG=$(which pg_config) install
137
+
sudo USE_PGXS=1 make install_dbz PG_CONFIG=$(which pg_config)
138
+
```
139
+
140
+
### **Build SynchDB with Openlog Replicator Connector Support**
141
+
142
+
To build Synchdb with Openlog Replicator Connector support, an additional Synchdb Oracle Parser component must be built as well. This component is based on IvorySQL's Oracle Parser, modified to suit SynchDB and it requires PostgreSQL backend source codes to build successfully. Here's the procedure:
143
+
144
+
#### **Prepare Source (Using 16.3 as example)**
123
145
124
146
Clone the PostgreSQL source and switch to 16.3 release tag
If you are working on Ubuntu 22.04.4 LTS, install the OpenJDK as below:
151
-
```BASH
152
-
## on Ubuntu
153
-
sudo apt install openjdk-21-jdk
154
-
155
-
## on MacOS
156
-
brew install openjdk@22
157
-
```
158
-
159
-
#### --> libprotobuf-c (optional)
160
-
**Warning**: This library is needed if SynchDB is to be built with openlog replicator support. Refer to [here](https://github.com/protobuf-c/protobuf-c.git) to build from source.
161
-
160
+
#### **Build and Install PostgreSQL**
162
161
163
-
### **Build and Install PostgreSQL**
164
-
165
-
Follow the official PostgreSQL documentation [here](https://www.postgresql.org/docs/current/install-make.html) to build and install PostgreSQL from source. Generally, the procedure consists of:
162
+
This can be done by following the standard build and install procedure as described [here](https://www.postgresql.org/docs/current/install-make.html)
166
163
167
164
**Warning**: SynchDB depends on pgcrypto to encrypt and decrypt sensitive access information. Please ensure PostgreSQL is built with SSL support.
168
165
@@ -173,56 +170,30 @@ make
173
170
sudo make install
174
171
```
175
172
176
-
You should build and install the default extensions as well:
173
+
Build the required pgcrypto extension
177
174
```sh linenums="1"
178
-
cd /home/$USER/postgres/contrib
175
+
cd /home/$USER/postgres/contrib/pgcrypto
179
176
make
180
177
sudo make install
181
178
```
182
179
183
-
### Build SynchDB Main Components
184
-
185
-
#### --> Build Debezium Runner Engine
186
-
The commands below build and install the Debezium Runner Engine jar file to your PostgreSQL's lib folder.
180
+
#### Build SynchDB with Additional Openlog Replicator Connector Support
187
181
188
-
```BASH
182
+
```sh linenums="1"
183
+
# build and install debezium runner
189
184
cd /home/$USER/postgres/contrib/synchdb
190
185
make build_dbz
191
186
sudo make install_dbz
192
-
```
193
187
194
-
#### --> Build Oracle Parser (optional)
195
-
This Oracle parser (a shared library) is a modified and isoalted version of IvorySQL's Oracle parser required by openlog replicator to process incoming Oracle DDL statements. The commands below install Oracle Parser to your PostgreSQL's lib folder.
196
-
197
-
**Warning**: Required if SynchDB is built with openlog replicator support.
198
-
199
-
```BASH
200
-
cd /home/$USER/postgres/contrib/synchdb
201
-
make clean_oracle_parser
188
+
# build and install oracle parser
202
189
make oracle_parser
203
190
sudo make install_oracle_parser
204
-
```
205
-
206
-
#### --> Build SynchDB
207
-
The commands below build and install SynchDB extension to your PostgreSQL's lib and share folder.
208
191
209
-
```BASH
210
-
cd /home/$USER/postgres/contrib/synchdb
211
-
make
212
-
sudo make install
213
-
```
214
-
215
-
SynchDB can be built with additional Openlog Replicator Connector support
216
-
217
-
```BASH
218
-
cd /home/$USER/postgres/contrib/synchdb
219
-
make WITH_OLR=1 clean
192
+
# build and install synchdb
220
193
make WITH_OLR=1
221
194
sudo make WITH_OLR=1 install
222
195
```
223
196
224
-
**Warning**: Openlog Replicator Connector support requires both `libprotobuf-c` and `oracle parser`.
225
-
226
197
### Configure your Linker to find Java (Ubuntu)
227
198
Lastly, we also need to tell your system's linker where the newly added Java library (libjvm.so) is located in your system.
0 commit comments