软件:oracle 10g R1
准备工作:
linux 5(企业版)软件:orac
下载oracle 10g install for linux官方文档
Linux系统需安装的软件:
GNOME Desktop Environment / KDE
linux 5(企业版)软件:orac
X Window System
Editors
Development Tools
ORACLE 10g for linux
Legacy Software Development
Oracle 10g 要求linux 的版在2.4.21-15.EL以上
ORACLE 10g for linux
在linux 系统上的准备工作:
=====================================================
acle 10g install for
更改主机名:
le 10g R1 准备工作:下载orHostname node1
acle 10g install for
Vi etc/sysconfig/network
5(企业版) 操作系统:RedHat NETWORKING=yes
NETWORKING_IPV6=yes
5(企业版) 操作系统:RedHat
HOSTNAME=node2
le 10g R1 准备工作:下载or
Vi /etc/hosts
5(企业版) 操作系统:RedHat
# Do not remove the following line, or various programs
le 10g R1 准备工作:下载or# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
acle 10g install for
::1 localhost6.localdomain6 localhost6
ORACLE 10g for linux192.168.1.120 node2
acle 10g install for
=====================================================
建立用户和用户组
ORACLE 10g for linux
groupadd dba 建立用户组
groupadd oinstall 建立安装组
useradd -g oinstall -G dba oracle 建立用户
acle 10g install for
passwd oracle
mkdir /opt/oracle/
chown oracle:dba /opt/oracle/ -R
5(企业版) 操作系统:RedHat
切换oracle用户
Su - oracle
le 10g R1 准备工作:下载or
编辑 .bash_profile文件
ORACLE_BASE=/opt/oracle
ORACLE_HOME=/opt/oracle/10g
le 10g R1 准备工作:下载or
ORACLE_SID=orcl
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID
linux 5(企业版)软件:orac
source .bash_profile ---à 执行bash文件
5(企业版) 操作系统:RedHat
切换至root用户:
===========================================================================
检查rpm包是否安装齐全:
le 10g R1 准备工作:下载or
make-3.79.1
gcc-3.2.3-34
glibc-2.3.2-95.20
le 10g R1 准备工作:下载or
compat-gcc-7.3-2.96.128
compat-gcc-c++-7.3-2.96.128
compat-libstdc++-7.3-2.96.128
linux 5(企业版)软件:orac
compat-libstdc++-devel-7.3-2.96.128
openmotif21-2.1.30-8
setarch-1.3-1
5(企业版) 操作系统:RedHat
libXp-1.0.0-8.i386.rpm
libXp-devel-1.0.0-8.i386.rpm
libaio-0.3.106-3.2.i386.rpm
acle 10g install for
libaio-devel-0.3.106-3.2.i386.rpm
libtermcap-devel-2.0.8-46.1.i386.rpm
libXau-devel-1.0.1-3.1.i386.rpm
linux 5(企业版)软件:orac
unzip-5.52-2.2.1.i386.rpm
readline-5.1-1.1.i386.rpm
readline-devel-5.1-1.1.i386.rpm
le 10g R1 准备工作:下载or
===========================================================================
安装时可能会出现的内核参数调整
5(企业版) 操作系统:RedHat
Vi /etc/sysctl.conf
kernel.shmall = 2097152
linux 5(企业版)软件:orac
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
le 10g R1 准备工作:下载or
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
ORACLE 10g for linux
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
linux 5(企业版)软件:orac
sysctl –p 让刚才的选项生效
===============================================================================
linux 5(企业版)软件:orac
切换 root用户在文件/etc/security/limits.conf
添加
oracle soft nproc 2048
le 10g R1 准备工作:下载or
oracle hard nproc 16384
oracel soft nofile 1024
oracle hard nofile 65536
acle 10g install for
在文件 /etc/pam.d/login
中添加
session required /lib/security/pam_limits.so
acle 10g install for
session required pam_limits.so
=========================================================================
Vi 5(企业版) 操作系统:RedHat /etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
linux 5(企业版)软件:orac
ulimit -p 16384
ulimit -n 65536
else
ORACLE 10g for linux
ulimit -u 16384 -n 65536
fi
fi
5(企业版) 操作系统:RedHat
linux 5(企业版)软件:orac=====================================================
xhost + 关闭当前终端 输出到新的终端
vi /etc/redhat-release 将5改成4
acle 10g install for
Su – oracle
找到oracle的安装文件,
ORACLE 10g for linux
./runInstaller
/opt/oracle/10g 安装路径
acle 10g install for
安装过程中按照提示运行下面的脚本,以root用户运行
/opt/oracle/oraInventory/orainstRoot.sh
ORACLE 10g for linux
/opt/oracle/10g/root.sh
安装完后 可以启动 sqlplus
le 10g R1 准备工作:下载or
sqlplus /nolog
为sqlplus增加翻页功能
ORACLE 10g for linux
安装包
IO-Tty-1.07.tar.gz
Term-ReadLine-Gnu-1.16.tar
le 10g R1 准备工作:下载or
编译Term-ReadLine-Gnu-1.16.tar时需要以下软件包:
readline-5.1-1.1
readline-devel-5.1-1.1
ORACLE 10g for linux
uniread-1.01.tar
安装都是
perl Makefile.pl
linux 5(企业版)软件:orac
make
make install
在oracle用户的启动脚本里面添加别名
acle 10g install for
vi .bashrc
alias sql="uniread sqlplus"
在启动 sqlplus的时候 使用 sql /nolog即可
5(企业版) 操作系统:RedHat
查看oracle进程
ps -ef | grep oracle