You can download and install the latest package for Oracle sqlplus instant client from the URL https://www.oracle.com/in/database/technologies/instant-client/downloads.html as per your OS. Please follow the below steps to install sqlplus in AWS EC2 instance running Amazon Linux 2 OS.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
## Download the latest package curl https://download.oracle.com/otn_software/linux/instantclient/214000/oracle-instantclient-basic-21.4.0.0.0-1.x86_64.rpm \ --output oracle-instantclient-basic-21.4.0.0.0-1.x86_64.rpm ## Install sql*plus sudo rpm -ivh oracle-instantclient-basic-21.4.0.0.0-1.x86_64.rpm ## Set environment variables in your ~/.bash_profile ORACLE_HOME=/usr/lib/oracle/21/client64 PATH=$ORACLE_HOME/bin:$PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib export ORACLE_HOME export LD_LIBRARY_PATH export PATH ## Reload your .bash_profile source ~/.bash_profile ## Connect using sql*plus sqlplus "username/pass@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST= |