【[Oracle】-【安裝】-Cent OS安裝Oracle Client
http://www.oracle.com/technology/tech/oci/instantclient/index.html下載:
oracle-instantclient-basic-10.2.0.4-1.i386.zip
oracle-instantclient-sqlplus-10.2.0.4-1.i386.zip
先建立客戶端的安裝目錄,這兩個目錄可以自定義,但配置環境變數時,需要一致。
mkdir -p /opt/oracle/lib
mkdir -p /opt/oracle/network/admin
(有文章說還需要下載sdk,這裡沒下載試過也可以。)
解壓上面下載的檔案。
unzip oracle-instantclient-basic-10.2.0.4-1.i386.zip
unzip oracle-instantclient-sqlplus-10.2.0.4-1.i386.zip
其中,這二個檔案都解壓到當前目錄下的同一個目錄下面:
instantclient_10_2
cd instantclient_10_2
把這個目錄下的所有檔案搬到/opt/oracle/lib
若僅讓當前使用者能用sqlplus,則僅需要配置檔案的修改:
.bash_profile:
原:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
Fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
現:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_HOME=/opt/oracle
LD_LIBRARY_PATH=/opt/oracle/lib
PATH=.:$PATH:$HOME/bin:$LD_LIBRARY_PATH//若無此處,則開啟一個shell後,不能用sqlplus。
export PATH
export ORACLE_HOME
export LD_LIBRARY_PATH
有文章介紹需要修改/etc/profile配置環境變數,針對所有使用者。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7192724/viewspace-767151/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Cent OS 安裝 RedisRedis
- Cent OS 7安裝和使用dockerDocker
- RochyLinux 8.6安裝Oracle19c ClientLinuxOracleclient
- Oracle client安裝the jre is 0故障處理Oracleclient
- Oracle:Windows10下安裝oracle client (win32_11gR2_client)OracleWindowsclientWin32
- G016-OS-LIN-CENT-01 CentOS 7.8.2003 安裝CentOS
- oracle安裝配置Oracle
- Oracle RUR 安裝Oracle
- Linux安裝oracleLinuxOracle
- golang oracle 安裝GolangOracle
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.1. Oracle軟體安裝OracleLinux
- 「Oracle」Oracle 資料庫安裝Oracle資料庫
- oracle 19c 安裝、解除安裝Oracle
- 靜默方式安裝、升級oracle(一): 安裝oracle軟體Oracle
- oracleLinux下安裝oracleOracleLinux
- ubuntu下安裝oracleUbuntuOracle
- Oracle 12.2 OJVM安裝OracleJVM
- Docker中安裝OracleDockerOracle
- windows下oracle安裝WindowsOracle
- 安裝centOS版本oracleCentOSOracle
- Oracle靜默安裝Oracle
- Oracle GoldenGate安裝(一)OracleGo
- Oracle GoldenGate安裝(二)OracleGo
- Oracle GoldenGate安裝(三)OracleGo
- Oracle Payment Interface安裝Oracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.3. Oracle net配置OracleLinux
- Oracle OCP(35):Database 安裝OracleDatabase
- Docker-ORACLE11安裝DockerOracle
- Oracle 12C安裝Oracle
- 圖形化安裝OracleOracle
- 2 Oracle Data Guard 安裝Oracle
- Oracle 客戶端安裝Oracle客戶端
- oracle之 11.2.0.4 bbed安裝Oracle
- ORACLE透明加密安裝操作Oracle加密
- Toad for Oracle 2020 安裝教程(附安裝方法步驟)Oracle
- Oracle Linux 6.5 安裝Oracle 10gR2LinuxOracle 10g
- aix安裝oracle客戶端AIOracle客戶端
- 使用docker安裝設定oracleDockerOracle