-
Notifications
You must be signed in to change notification settings - Fork 61
Add ojdbc17, ojdbc11, and ojdbc8 to JDBC driver search list #259
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
cf73740
Add modern JDBC driver support (ojdbc17, ojdbc11, ojdbc8)
yahonda e57583e
Bypass DriverManager for JDBC connections loaded at runtime
yahonda b43cc83
Disable JDBC auto-commit on new connections
yahonda 81f297d
Accept Closed ResultSet error message in cursor spec
yahonda 2d45da2
Namespace ORACLE_DRIVER and polish JDBC loader error handling
yahonda 9b16ad3
Upgrade CI workflows to ojdbc17.jar 23.26.1
yahonda d8dc593
Add jruby-10.0.5.0 to CI test matrix with Oracle JDK 21
yahonda edc3c6e
Set up Oracle JDK 21 for jruby_head workflow
yahonda a60ef59
Add jruby-10.0.5.0 to test_11g matrix with Oracle JDK 21
yahonda 1a13513
Add test_11g_ojdbc11 workflow with Oracle JDK 21
yahonda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| name: test_11g_ojdbc11 | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
|
|
||
| jobs: | ||
| build: | ||
| if: github.event_name != 'pull_request' || !github.event.pull_request.draft | ||
|
|
||
| runs-on: ubuntu-latest | ||
| continue-on-error: false | ||
| strategy: | ||
| matrix: | ||
| ruby: [ | ||
| 'jruby-10.0.5.0' | ||
| ] | ||
| env: | ||
| ORACLE_HOME: /opt/oracle/instantclient_21_15 | ||
| LD_LIBRARY_PATH: /opt/oracle/instantclient_21_15 | ||
| NLS_LANG: AMERICAN_AMERICA.AL32UTF8 | ||
| TNS_ADMIN: ./ci/network/admin | ||
| DATABASE_NAME: XE | ||
| TZ: Europe/Riga | ||
| DATABASE_SYS_PASSWORD: Oracle18 | ||
|
|
||
| services: | ||
| oracle: | ||
| image: gvenzl/oracle-xe:11 | ||
| ports: | ||
| - 1521:1521 | ||
| env: | ||
| TZ: Europe/Riga | ||
| ORACLE_PASSWORD: Oracle18 | ||
| options: >- | ||
| --health-cmd healthcheck.sh | ||
| --health-interval 10s | ||
| --health-timeout 5s | ||
| --health-retries 10 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Java | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: oracle | ||
| java-version: '21' | ||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby }} | ||
|
yahonda marked this conversation as resolved.
|
||
| - name: Create symbolic link for libaio library compatibility | ||
| run: | | ||
| sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1 | ||
| - name: Download Oracle instant client | ||
| run: | | ||
| wget -q https://download.oracle.com/otn_software/linux/instantclient/2115000/instantclient-basic-linux.x64-21.15.0.0.0dbru.zip | ||
| wget -q https://download.oracle.com/otn_software/linux/instantclient/2115000/instantclient-sqlplus-linux.x64-21.15.0.0.0dbru.zip | ||
| wget -q https://download.oracle.com/otn_software/linux/instantclient/2115000/instantclient-sdk-linux.x64-21.15.0.0.0dbru.zip | ||
| - name: Install Oracle instant client | ||
| run: | | ||
| sudo mkdir -p /opt/oracle/ | ||
| sudo unzip -q instantclient-basic-linux.x64-21.15.0.0.0dbru.zip -d /opt/oracle | ||
| sudo unzip -qo instantclient-sqlplus-linux.x64-21.15.0.0.0dbru.zip -d /opt/oracle | ||
| sudo unzip -qo instantclient-sdk-linux.x64-21.15.0.0.0dbru.zip -d /opt/oracle | ||
| echo "/opt/oracle/instantclient_21_15" >> $GITHUB_PATH | ||
| - name: Install JDBC Driver | ||
| run: | | ||
| wget -q https://download.oracle.com/otn-pub/otn_software/jdbc/23261/ojdbc11.jar -O ./lib/ojdbc11.jar | ||
| - name: Configure ORA_TZFILE to match Oracle 11g server | ||
| run: | | ||
| # Oracle 11g XE uses timezone file v14; Instant Client 21.15 embeds | ||
| # v35. This mismatch causes ORA-01805 when fetching DATE/TIMESTAMP | ||
| # values. Copy the v14 files from the 11g container and point the | ||
| # Instant Client at them via ORA_TZFILE. | ||
| ORACLE_CONTAINER="${{ job.services.oracle.id }}" | ||
| sudo mkdir -p "$ORACLE_HOME/oracore/zoneinfo" | ||
| docker cp "$ORACLE_CONTAINER":/u01/app/oracle/product/11.2.0/xe/oracore/zoneinfo/timezlrg_14.dat /tmp/timezlrg_14.dat | ||
| docker cp "$ORACLE_CONTAINER":/u01/app/oracle/product/11.2.0/xe/oracore/zoneinfo/timezone_14.dat /tmp/timezone_14.dat | ||
| sudo mv /tmp/timezlrg_14.dat "$ORACLE_HOME/oracore/zoneinfo/" | ||
| sudo mv /tmp/timezone_14.dat "$ORACLE_HOME/oracore/zoneinfo/" | ||
| echo "ORA_TZFILE=timezlrg_14.dat" >> $GITHUB_ENV | ||
| - name: Create database user | ||
| run: | | ||
| ./ci/setup_accounts.sh | ||
| - name: Bundle install | ||
| run: | | ||
| bundle install --jobs 4 --retry 3 | ||
| - name: Run RSpec | ||
| run: | | ||
| RUBYOPT=-w bundle exec rspec | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.