Oracle database is the popular database that is commonly used in transaction processing, data warehousing, and various other applications. SQLplus is an interface that is developed by Oracle itself. The main purpose of SQLplus is to interact with the Oracle DB and run various queries or code. We can say SQLplus is a powerful tool rather than an interface. It acts like an editor, writer and also executes the SQL queries and displays the output. In this article, we will be going through the installation steps of SQLplus in the Linux Operating System. Installing SQLplus on LinuxFollow the below steps to install SQLPlus on Linux Operating System: Step 1: Download theBasic Package (ZIP) by using the following command:
Step 2: Download the SQL*Plus Package (ZIP) by using the following command:
Step 3: Make a new directory for the instant client.
Step 4: Unzip the Basic Package in the newly-created directory.
Step 5: Unzip the SQL *Plus Package in the newly-created directory.
Step 6: List out the file contents of the newly-created directory.
Step 7: Set the LD_LIBRARY_PATH in your ~/.bashrc source file.
Step 8: Set the PATH env vars in your ~/.bashrc
Step 9: Source your ~/.bashrc file
Step 10: Run sqlplus -V command to confirm it’s installed or not.
-테스트베드 OS 정보.
-하단의링크접속후원하는오라클클라이언트버전에 맞춰서 Basic Package (RPM) & SQL*Plus Package (RPM) 파일다운로드.
-root 계정으로접속후다운로드한 *.rpm 파일설치.
-다운로드한 *.rpm 파일설치간하단의에러발생할경우, libaio 라이브러리설치해야함.
-libaio 라이브러리 설치 방법.
-"/etc/profile.d/oracle.sh" 생성후하단과같이 $ORACLE_HOME, $TNS_ADMIN 설정추가.
-oracle instant client 사용하려는계정의 .bash_profile에하단과같이 $ORACLE_HOME, $TNS_ADMIN, $PATH 설정추가후 .bash_profile 적용.
-oracle instant client에서 oracle server로접속(sqlplus)을위해서 tnsnames.ora 설정.
-oracle instant client에서 oracle server로접속(sqlplus) 확인. |