Mục tiêu: Cài đặt gói client full 11R2 ( thay vì bản Instant client) trên server CentOS 6.x 64bit.
Chuẩn bị:
– Download bản cài đặt trên trang chủ Oralce ( Down bản 64bit) ( linux.x64_11gR2_client.zip)
– Chuẩn bị OS 6.x 64bit đã cài đặt các gói cần thiết cho Oracle client.
Bắt đầu:
1. Cài đặt các gói sau:
yum -y install binutils compat-libstdc++-33 compat-libstdc++-33.i686 ksh elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 make sysstat unixODBC unixODBC-devel
vi /etc/sysctl.conf#net.bridge.bridge-nf-call-ip6tables = 0
#net.bridge.bridge-nf-call-iptables = 0#net.bridge.bridge-nf-call-arptables = 0net.ipv4.ip_local_port_range = 9000 65500fs.file-max = 6815744
kernel.shmall = 10523004
kernel.shmmax = 6465333657
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_max=1048576
fs.aio-max-nr = 1048576
sysctl -pnet.ipv4.ip_forward = 0net.ipv4.conf.default.rp_filter = 1net.ipv4.conf.default.accept_source_route = 0kernel.sysrq = 0kernel.core_uses_pid = 1net.ipv4.tcp_syncookies = 1net.ipv4.ip_local_port_range = 9000 65500fs.file-max = 65536kernel.shmall = 10523004kernel.shmmax = 6465333657kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.core.rmem_default = 262144net.core.wmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_max = 1048576fs.aio-max-nr = 1048576
groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle
echo “oracle:oracle” | chpasswdid oracle
mkdir -p /opt/oracle
chown oracle:oinstall /opt/oracle/
su – oracle
unzip linudx.x64_11gR2_client.zipThư mục chứa source cài đặt : /home/oracle/clientcd response/
cp client_install.rsp client_install.rsp.orig
./runInstaller -silent -responseFile ~/client/response/client_install.rsp
[WARNING] [INS-13014] Target environment do not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. /opt/oracle/OraInventory/logs/installActions2015-07-02_12-13-40AM.log
ACTION: Identify the list of failed prerequisite checks from the log: /opt/oracle/OraInventory/logs/installActions2015-07-02_12-13-40AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The following configuration scripts need to be executed as the “root” user.
#!/bin/sh
#Root scripts to run
/opt/oracle/OraInventory/orainstRoot.sh
/opt/oracle/product/11.2.0.1/client/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as “root”
3. Run the scripts
4. Return to this window and hit “Enter” key to continueSuccessfully Setup Software.
/opt/oracle/OraInventory/orainstRoot.sh
/opt/oracle/product/11.2.0.1/client/root.sh
export TMP=/tmp
export TMPDIR=/tmp
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.1/client
export PATH=$ORACLE_HOME/bin:$PATH
sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 2 19:58:21 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.Enter user-name: