Skip to content

Commit

Permalink
Use 23c client
Browse files Browse the repository at this point in the history
  • Loading branch information
yahonda committed Sep 25, 2023
1 parent ceaa818 commit eb8bf8e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
'2.7'
]
env:
ORACLE_HOME: /usr/lib/oracle/21/client64
LD_LIBRARY_PATH: /usr/lib/oracle/21/client64/lib
ORACLE_HOME: /opt/oracle/instantclient_23_3
LD_LIBRARY_PATH: /opt/oracle/instantclient_23_3
NLS_LANG: AMERICAN_AMERICA.AL32UTF8
TNS_ADMIN: ./ci/network/admin
DATABASE_NAME: FREEPDB1
Expand Down Expand Up @@ -54,19 +54,19 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install required package
run: |
sudo apt-get install alien
- name: Download Oracle instant client
run: |
wget -q https://download.oracle.com/otn_software/linux/instantclient/2111000/oracle-instantclient-basic-21.11.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/2111000/oracle-instantclient-sqlplus-21.11.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/2111000/oracle-instantclient-devel-21.11.0.0.0-1.x86_64.rpm
wget -q https://download.oracle.com/otn_software/linux/instantclient/23c/instantclient-basic-linux.x64-23.3.0.0.0.zip
wget -q https://download.oracle.com/otn_software/linux/instantclient/23c/instantclient-sdk-linux.x64-23.3.0.0.0.zip
wget -q https://download.oracle.com/otn_software/linux/instantclient/23c/instantclient-sqlplus-linux.x64-23.3.0.0.0.zip
- name: Install Oracle instant client
run: |
sudo alien -i oracle-instantclient-basic-21.11.0.0.0-1.x86_64.rpm
sudo alien -i oracle-instantclient-sqlplus-21.11.0.0.0-1.x86_64.rpm
sudo alien -i oracle-instantclient-devel-21.11.0.0.0-1.x86_64.rpm
sudo mkdir -p /opt/oracle/
sudo unzip instantclient-basic-linux.x64-23.3.0.0.0.zip -d /opt/oracle/
sudo unzip -o instantclient-sdk-linux.x64-23.3.0.0.0.zip -d /opt/oracle/
sudo unzip -o instantclient-sqlplus-linux.x64-23.3.0.0.0.zip -d /opt/oracle/
echo "/opt/oracle/instantclient_23_3" >> $GITHUB_PATH
- name: Install JDBC Driver
run: |
wget -q https://download.oracle.com/otn-pub/otn_software/jdbc/211/ojdbc11.jar -O ./lib/ojdbc11.jar
Expand Down
2 changes: 1 addition & 1 deletion ci/setup_accounts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ev

${ORACLE_HOME}/bin/sqlplus system/${DATABASE_SYS_PASSWORD}@${DATABASE_NAME} <<SQL
sqlplus system/${DATABASE_SYS_PASSWORD}@${DATABASE_NAME} <<SQL
@@spec/support/alter_system_set_open_cursors.sql
@@spec/support/create_oracle_enhanced_users.sql
exit
Expand Down

0 comments on commit eb8bf8e

Please sign in to comment.