oracle11g最终版本11.2.0.4安装详细过程
--安装背景
oracle 11.02.0.4 安装介质
1,修改内核
1.1 修改f⽂件
[root@orcltest Downloads]# vim/f
# add by tim.man
kernel.shmmax = 277495689510912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
# Controls the maximum number of shared memory segments, in pages kernel.shmall = 4294967296
p_max_tw_buckets = 6000
net.ipv4.ip_local_port_range = 9000 65500
p_tw_recycle = 0
p_tw_reuse = 1
p_max_orphans = 262144
p_max_syn_backlog = 262144
p_synack_retries = 2
p_syn_retries = 1
p_fin_timeout = 1
p_keepalive_time = 30
p_keepalive_probes = 6
p_keepalive_intvl = 5
p_timestamps = 0
fs.aio-max-nr = 1048576
1.2 使参数⽣效
[root@orcltest Downloads]# sysctl –p
2,增加⽤户和组
[root@orcltestDownloads]# groupadd oinstall
[root@orcltestDownloads]# groupadd dba
[root@orcltestDownloads]# groupadd oper
[root@orcltestDownloads]# useradd -g oinstall -G dba,oper oracle
[root@orcltestDownloads]# passwd oracle
3,修改f限制
[root@orcltestDownloads]# vim /etc/f
oracle soft nproc 2047
oracle hard nproc 16384 oracle soft nofile 1024
oracle hard nofile 65536
4,修改/etc/pam.d/login
[root@orcltestDownloads]# vim /etc/pam.d/login
session required/lib64/security/pam_limits.so
5,修改bash_profile⽂件
(1)修改profile:
[root@orcltest Downloads]# vim /etc/profile
# add by tim.man
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
(2)修改bash_profile:
[oracle@orcltest ~]$ vim .bash_profile
export EDITOR=vi
export ORACLE_SID=doea5db
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export INVENTORY_LOCATION=/oraInventory
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export NLS_LANG="American_america.zhs16gbk"
export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:$PATH:$HOME/bin umask 022
使bash_profile⽣效:
[oracle@orcltest ~]$ source .bash_profile
6,创建⽬录
[root@orcltest~]# mkdir /data/oracle
[root@orcltest~]# chown oracle:oinstall /data
[root@azure_earth_dbm1_3_112 app]# mkdir /data/oracle
[root@azure_earth_dbm1_3_112 app]# mkdir /data/oraInventory
[root@azure_earth_dbm1_3_112 app]# cd /oracle/app
[root@azure_earth_dbm1_3_112 app]# ln -s /data/oracle oracle
[root@azure_earth_dbm1_3_112 app]# ln -s /data/oraInventory oraInventory [root@azure_earth_dbm1_3_112 app]# chown -R oracle.oinstall /data
[root@azure_earth_dbm1_3_112 app]# chown -R oracle.oinstall /oracle
[root@azure_earth_dbm1_3_112 app]#
[root@ azure_earth_dbm1_3_112 oracle]# mkdir -p /oracle/app/oracle
[root@ azure_earth_dbm1_3_112 oracle]# chown -R oracle:oinstall /oracle/app/oracle
[root@ azure_earth_dbm1_3_112 oracle]# chmod -R 775 /oracle/app/oracle
[root@ azure_earth_dbm1_3_112 oracle]#
7,安装rpms包
Rpm包安装:rpm -ivh *--force –nodeps
Rpms安装有时候不⼀定保证有效,可以再⽤yum安装:
# 采⽤yum安装,如下:
yum install -y binutils*
yum install -y compat-libstdc*
怎样测试oracle11g安装完成yum install -y elfutils-libelf*
yum install -y gcc*
yum install -y glibc*
yum install -y ksh*
yum install -y libaio*
yum install -y libgcc*
yum install -y libstdc*
yum install -y make*
yum install -y sysstat*
yum install libXp* -y
yum install -y glibc-kernheaders
# 检查下lib是否安装齐全:
[root@powerlong4 ~]# rpm -q --queryformat %-{name}-%{version}-%{release}-%{arch}"\n" \ compat-libstdc++-33 glibc-kernheaders glibc-headers libaio libgcc glibc-devel xorg-x11-deprecated-libs
如果缺少,就继续安装缺失的组件包。
8,安装vnc
9,解压缩
Oracle官⽹⼀般下载不到,需要⽤户名密码登录,⼤家如果需要这款Oracle软件下载,欢迎在下⾯留⾔区留下你的email地址,我看到了会及时发给你的。
安装单点的,就1和2⼀起解压,解压完叫database⽬录;
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论