- 安装依赖包
su - root
yum -y install unzip
yum -y install binutils.x86_64
yum -y install gcc.x86_64
yum -y install gcc-c++.x86_64
yum -y install glibc.i686
yum -y install glibc.x86_64
yum -y install glibc-devel.i686
yum -y install glibc-devel.x86_64
yum -y install csh
yum -y install ksh
yum -y install libaio.i686
yum -y install libaio.x86_64
yum -y install libaio-devel.i686
yum -y install libaio-devel.x86_64
yum -y install libgcc.i686
yum -y install libgcc.x86_64
yum -y install libstdc++.i686
yum -y install libstdc++.x86_64
yum -y install libstdc++-devel.i686
yum -y install libstdc++-devel.x86_64
yum -y install libXi.i686
yum -y install libXi.x86_64
yum -y install libXtst.i686
yum -y install libXtst.x86_64
yum -y install libXrender.i686
yum -y install make.x86_64
yum -y install sysstat.x86_64
yum -y install libnsl.i686 -y
- 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.
- 编辑hosts文件
- 创建用户和组
- 创建目录并授权
- 解压文件
- 编辑响应文件
su - oracle
vi /home/oracle/client.rsp
-------
oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v19.0.0
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
ORACLE_HOME=/u01/app/oracle/product/19.0.0/client_1
ORACLE_BASE=/u01/app/oracle
oracle.install.client.installType=Administrator
---------
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 安装客户端
- 配置Oracle用户环境变量
vi /home/oracle/.bash_history
export CV_ASSUME_DISTID=RHEL7.6 #在RHEL 8.*上的系统安装一定要设置这个参数
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/client_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export PATH=$ORACLE_HOME/bin:$PATH
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 执行脚本
- 测试连接
sqlplus dbcheck@//100.67.50.220:1521/invstest
[oracle@[servername] client32]$ sqlplus dbcheck@//192.168.1.111:1521/wxbtest
SQL*Plus: Release 19.0.0.0.0 - Production on Mon Apr 22 18:14:50 2024
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Enter password:
Last Successful login time: Mon Apr 22 2024 17:56:13 +08:00
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.22.0.0.0
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 打补丁
- 发送环境变量给用户
192.168.1.111
用户:oracle 密码:!QAZwsx#EDC
环境变量:
export CV_ASSUME_DISTID=RHEL7.6
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/client_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export PATH=$ORACLE_HOME/bin:$PATH
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 卸载客户端