Oracle_官方安装文档
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
一.请检查系统包是否已经安装。
rpm -q grep binutils-2.* \
elfutils-libelf-0.* \
glibc-2.* \
glibc-common-2.* \
libaio-0.* \
libgcc-4.* \
libstdc++-4.* \
make-3.* \
compat-libstdc++-33 \
elfutils-libelf-devel-0.* \
glibc-devel-2.* \
gcc-4.* \
gcc-c++-4.* \
libaio-devel-0.* \
libstdc++-devel-4.* \
unixODBC-2.* \
unixODBC-devel-2.* \
sysstat-7.*
2.如缺少相应的补丁包,可以到系统安装盘安装相关的补丁包
cd /media/Enterprise\ Linux\ dvd\ 20090127/Server/
rpm -Uvh grep binutils-2.*
rpm -Uvh elfutils-libelf-0.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh libaio-0.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh make-3.*
rpm -Uvh compat-libstdc++-33
rpm -Uvh elfutils-libelf-devel-0.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
rpm -Uvh sysstat-7.*
3.添加oracle组和用户(Oracle Enterprise Linux默认把oracle的
用户创建完了,这一步骤可以省略)
# groupadd oinstall -g 501
# groupadd dba -g 502
# groupadd oper -g 503
# useradd oracle -u 500 -g oinstall -G dba,oper
# passwd oracle
输入密码:oracle
4.修改参数文件 sysctl.conf
# cat >> /etc/sysctl.conf << EOF
kernel.sem=1055 32000 100 128
kernel.shmmax=2147483648
kernel.shmall = 2097152
net.ipv4.tcp_sack = 0
net.ipv4.tcp_timestamps = 0
net.ipv4.conf.default.rp_filter = 0
net.core.optmem_max = 65535
net.core.rmem_default = 4194304
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 262144
fs.file-max = 6553600
net.ipv4.ip_local_port_range = 1024 65000
EOF
5.以下命令加载sysctl.conf文件中的内容,检查参数值是否正确设定。# /sbin/sysctl -p
6.修改参数文件limits.conf
# cat >> /etc/security/limits.conf << EOF
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
EOF
7.修改参数文件login
# cat >> /etc/pam.d/login << EOF
session required /lib/security/pam_limits.so
session required pam_limits.so
EOF
8.修改参数文件config
# vi /etc/selinux/config
注销其他的,仅留下面的内容
SELINUX=disabled
SELINUXTYPE=disabled
9.创建安装目录
# mkdir -p /oracle/u01/app/oracle/product/1101/db
# mkdir -p /oracle/u02/oradata
# chown -R oracle:oinstall /oracle
# chmod -R 775 /oracle
10.确认系统版本号
[root@RHEL53 /]# cat /etc/issue
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Kernel \r on an \m
[root@RHEL53 /]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
11.修改oracle的环境变量.bash_profile
# su - oracle
$ vi ~/.bash_profile
##################################################
# Oracle Settings
##################################################
export ORA_NLS10=$ORACLE_HOME/nls/data
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/oracle/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/1101/db
export ORACLE_SID=ora11g
export ORACLE_TERM=xterm
export PATH=$PATH:$ORACLE_HOME/bin:/sbin:/usr/sbin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME