Skip to content

Commit

Permalink
Merge pull request #175 from pythian/rel/oratk-18
Browse files Browse the repository at this point in the history
Add compatibility for installing Oracle Free Editions
  • Loading branch information
mfielding authored Jan 28, 2025
2 parents 546851d + 46af825 commit c08e659
Show file tree
Hide file tree
Showing 23 changed files with 809 additions and 86 deletions.
10 changes: 8 additions & 2 deletions check-swlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ if [ $? != 4 ]; then
fi

ORA_VERSION="${ORA_VERSION:-19.3.0.0.0}"
ORA_VERSION_PARAM='^(19\.3\.0\.0\.0|18\.0\.0\.0\.0|12\.2\.0\.1\.0|12\.1\.0\.2\.0|11\.2\.0\.4\.0)$'
ORA_VERSION_PARAM='^(23\.[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,6}|19\.3\.0\.0\.0|18\.0\.0\.0\.0|12\.2\.0\.1\.0|12\.1\.0\.2\.0|11\.2\.0\.4\.0)$'

ORA_RELEASE="${ORA_RELEASE:-latest}"
ORA_RELEASE_PARAM="^(base|latest|[0-9]{,2}\.[0-9]{,2}\.[0-9]{,2}\.[0-9]{,2}\.[0-9]{,6})$"

ORA_EDITION="${ORA_EDITION:-EE}"
ORA_EDITION_PARAM="^(EE|SE|SE2)$"
ORA_EDITION_PARAM="^(EE|SE|SE2|FREE)$"

ORA_SWLIB_BUCKET="${ORA_SWLIB_BUCKET}"
ORA_SWLIB_BUCKET_PARAM='^gs://.+[^/]$'
Expand Down Expand Up @@ -62,6 +62,7 @@ while true; do
;;
--ora-version)
ORA_VERSION="$2"
if [[ "${ORA_VERSION}" = "23" ]] ; then ORA_VERSION="23.0.0.0.0"; fi
if [[ "${ORA_VERSION}" = "19" ]] ; then ORA_VERSION="19.3.0.0.0"; fi
if [[ "${ORA_VERSION}" = "18" ]] ; then ORA_VERSION="18.0.0.0.0"; fi
if [[ "${ORA_VERSION}" = "12" ]] ; then ORA_VERSION="12.2.0.1.0"; fi
Expand Down Expand Up @@ -113,6 +114,11 @@ done
exit 1
}

# Oracle Database free edition parameter overrides
if [[ "${ORA_EDITION}" = "FREE" && ! "${ORA_VERSION}" =~ ^23\. ]]; then
ORA_VERSION="23.0.0.0.0"
fi

# Mandatory options
if [ "${ORA_SWLIB_BUCKET}" = "" ]; then
echo "Please specify a GS bucket with --ora-swlib-bucket"
Expand Down
Loading

0 comments on commit c08e659

Please sign in to comment.