forked from Fabriquartz/laptop-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoracle_client.sh
32 lines (21 loc) · 997 Bytes
/
oracle_client.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
fancy_echo() {
local fmt="$1"; shift
printf "\n$fmt\n" "$@"
}
fancy_echo "This script will help you install the Oracle client"
fancy_echo "Before you start you will need to download a few packages:"
echo " - (64-bit) Instant Client - Basic Lite"
echo " - (64-bit) Instant Client - SDK"
fancy_echo "Please ensure they are downloaded to ~/Downloads as .zip files"
fancy_echo "Press any key to open the download page ..."
read
open "http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html"
fancy_echo "Press any key when you are done downloading the packages"
read
fancy_echo "Installing instant client!"
ln -sf ~/Downloads/instantclient-basiclite-macos.x64-11.2.0.4.0.zip /Library/Caches/Homebrew/
ln -sf ~/Downloads/instantclient-sdk-macos.x64-11.2.0.4.0.zip /Library/Caches/Homebrew/
brew install InstantClientTap/instantclient/instantclient-basiclite
brew install InstantClientTap/instantclient/instantclient-sdk
export OCI_DIR=$(brew --prefix)/lib
fancy_echo "Done!"