Skip to content

Commit

Permalink
updated install_oracle_sqlcl.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Oct 13, 2024
1 parent adc341b commit a00bcf1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions install/install_oracle_sqlcl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ timestamp "Unzipping to $install_base/"
unzip -n sqlcl-latest.zip -d "$install_base/"
echo

timestamp "Fixing stupid default 0640 permissions on '$install_base/sqlcl/lib/*' to avoid this error:
Error: Could not find or load main class oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli
Caused by: java.lang.ClassNotFoundException: oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli
"
timestamp "Fixing library permissions"
# don't print this in case it scares users
#timestamp "Fixing stupid default 0640 permissions on '$install_base/sqlcl/lib/*' to avoid this error:
#
#Error: Could not find or load main class oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli
#Caused by: java.lang.ClassNotFoundException: oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli
#"
chmod -R o+r "$install_base/sqlcl/lib"
echo

# clashes with GNU parallel which installs an 'sql' program in the path so link this to sqlcl to avoid path priority clashes
#if ! [ -e /usr/local/bin/sql ]; then
Expand Down

0 comments on commit a00bcf1

Please sign in to comment.