This is a Java-based tool to compare and synchronize tables between a benchmark database and a target Oracle/PostgreSQL database
- Install Maven for Mac/Linux or Windows
- Clone the repository:
git clone https://github.com/Joshua-Sun-CompSci/Database-Synchronization.git
- Navigate to the program directory depends on your database management system:
or
cd Database-Synchronization/Database-Synchronization-Oraclecd Database-Synchronization/Database-Synchronization-PostgreSQL - Navigate to the resources folder and add the tables you want to synchronize to table.txt located at:
src/main/resources/table.txt
- Compile the program:
mvn clean package
- Run the program using your IDE. Add "en" to the end of the running command if you wish to run in English.
- Enter the information needed to connect to the benchmark/target databse. Format:
url = "jdbc:oracle:thin:@//YourHost:YourPort/YourServiceName"(Oracle) or "jdbc:postgresql://hostname:port/dbname"(PostgreSQL) username = "YourUsername" password = "YourPassword"