-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impelement oracle database migration #341
base: master
Are you sure you want to change the base?
Conversation
Sorry, I just realized the CI build would fail, because oci8 driver is not a pure golang driver and it needs some extra configuration to make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I didn't realize that Oracle had publicly available Docker images.
You'll need to remove the bin/migrate
file.
Sorry, I just realized the CI build would fail, because oci8 driver is not a pure golang driver and it needs some extra configuration to make make build-cli works, will try to fix it
You can work around this by only enabling Oracle for tests in the Makefile and the Dockerfile. Any other users will need to build migrate
and specify support for Oracle.
2. Update readme 3. Add dockerfile for oracle
Hi, there are some dependencies dynamic libraries missing in the And I introduced an assets dir in oracle for this docker file because It requires to login to the oracle official site & config the license manually for downloading these oracle lib, we can't use wget & curl to download directly. |
…e oracle sdk, header files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have the bandwidth to test this PR manually. e.g. I rely on TravisCI to test PRs
Also, maintaining this driver would also be difficult without automated tests.
So unless there are publicly available Oracle docker images, Oracle won't be supported in migrate
.
I really appreciate the work you've done so far and don't want that to go to waste!
Options going forward:
- We merge this PR after adding language to the README about the lack of official support
- You host this driver elsewhere and we link to the driver. This would make it more explicit that the driver isn't officially supported.
- ??? - Any other ideas?
Either way, the official CLI builds (docker and github releases) won't support Oracle due to the lack of automate tests.
If you want to move forward with this PR, the following need to be addressed:
- Remove
database/oracle/assets/instantclient-basiclite-linux.x64-18.5.0.0.0dbru.zip
e.g. binary blobs don't belong in the source repo - Rebase/merge from master. Postgres tests are failing which should be fixed now.
|
any update to this PR? |
Had a quick recap and check, since the oracle released official public docker image(XE express version). will continue this PR and try to send review request again in next few days ASAP |
Signed-off-by: maxnilz <[email protected]>
Signed-off-by: maxnilz <[email protected]>
Signed-off-by: maxnilz <[email protected]>
Signed-off-by: maxnilz <[email protected]>
Signed-off-by: maxnilz <[email protected]>
Signed-off-by: maxnilz <[email protected]>
Signed-off-by: maxnilz <[email protected]>
Looks promising? Any updates? |
Since the oracle released official public docker image(XE express version), This PR was updated accordingly and Waiting @dhui to Review again |
Signed-off-by: maxnilz <[email protected]>
any news? also already exists go-ora driver that can be added too. |
@maxnilz @xianchaoyu I should have some bandwidth the next couple weeks to review and merge this PR. Re: go-ora vs godror |
Signed-off-by: maxnilz <[email protected]>
Signed-off-by: maxnilz <[email protected]>
Signed-off-by: maxnilz <[email protected]>
@dhui
Please have a review on these, thanks. |
Hi. can we resolve conflicts and merge this in? |
@dhui @xianchaoyu Thank you Steffen |
Signed-off-by: maxnilz <[email protected]>
Signed-off-by: maxnilz <[email protected]>
Hi @maxnilz, thank you for forcing the restart of the pipeline. After that I took a look into the linter problem. Means, since options is not used for creating the dsn, line 50 of oracle_test.go can be removed completely, then this linter problem is solved. Edit: Hope that helps. Steffen |
Signed-off-by: maxnilz <[email protected]>
Found an issue: Previously I was using the |
@dhui
It seems like there is a pending PR dhui/dktest#21 to fix this. Will wait for it to be merged and continue to fix the test cases. Thanks |
Anything new with this PR? |
Hi, Here is an implementation for oracle DB migration.
Please help to review and see if there is anything need to improve so that we can merge this to master.
Since the Oracle docker image is very big(6GB-8GB) and it will take a long time to do the first start, I'm running a local Oracle docker for the test instead of following the current test routine.
Here are the test results for different Oracle version: