Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkej/oracle2mysql
https://github.com/pkej/oracle2mysql
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pkej/oracle2mysql
- Owner: pkej
- Created: 2022-03-11T22:04:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-03-16T09:44:09.000Z (over 2 years ago)
- Last Synced: 2023-11-09T17:32:03.443Z (about 1 year ago)
- Language: Dockerfile
- Size: 62.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# oracle2mysql
Create a migration from [oracle to mysql](https://dba.stackexchange.com/questions/114793/migrating-from-oracle-to-mysql-via-mysql-workbench-table-list-is-empty) using etlalchemy.# Get enough swap space!
```sh
dd if=/dev/zero of=/tmp/tempswap.img bs=1024 count=110M
mkswap /tmp/tempswap.img
sudo swapon /tmp/tempswap.img
```## Run
Download instantclient-basic-linux.x64-12.2.0.1.0.zip and instantclient-sdk-linux.x64-12.2.0.1.0 from [Oracle](https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html) and place them in the "oracle/linux" folder.Open the app.py file in your edior and add your own configuration for oracle and mysql.
```DOCKER_BUILDKIT=1 docker build . --platform=linux/amd64 --tag etlalchemy:latest```
to build the docker imageRun the image in Docker Desktop.
Open a shell into the image and run the command:
```apt-get install -y mariadb-server```fill in the root password, doesn't matter what, we're not using it (or perhaps you are?)
```python /app/app.py```
## Ripped code, ideas and fixes from:
* https://github.com/seanharr11/etlalchemy
* https://github.com/CollinEstes/docker-node-oracle
* https://stackoverflow.com/questions/55823744/how-to-fix-cx-oracle-databaseerror-dpi-1047-cannot-locate-a-64-bit-oracle-cli
* https://vbaoverall.com/transfer-data-from-oracle-to-mysql-using-sqlalchemy-python/
* https://stackoverflow.com/questions/67908500/sql-alchemy-python-script-to-migrate-from-oracle-to-mysql