Oracle安装部署之Oracle 10g在redhat5下的安装

[root@localhost ~]# groupadd dba -g 111

[root@localhost ~]# groupadd oinstall -g 110

[root@localhost ~]# useradd oracle -u 110 -g 110 -G 111

[root@localhost ~]# passwd oracle

Changing password for user oracle.

New UNIX password:

BAD PASSWORD: it does not contain enough DIFFERENT characters

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

[root@localhost ~]# su - oracle

[oracle@localhost ~]$ vi .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi

# User specific environment and startup programs

export ORACLE_BASE=/u01/oracle

export ORACLE_HOME=$ORACLE_BASE/10g

export ORACLE_SID=orcl

PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

export PATH

[oracle@localhost ~]$ su -

口令:

[root@localhost ~]# mkdir /u01

[root@localhost ~]# mkdir /u01/oracle

[root@localhost ~]# chown oracle:oinstall /u01 -R

[root@localhost ~]# chown oracle:oinstall /u01/oracle -R

[root@localhost ~]# sysctl -a|grep sem

kernel.sem = 250        32000   32      128

[root@localhost ~]# sysctl -a|grep sem|sed 's/32/100/2'

kernel.sem = 250        32000   100     128

[root@localhost ~]# sysctl -a|grep sem|sed 's/32/100/2' >>/etc/sysctl.conf

[root@localhost ~]# sysctl -a|grep ip_local

net.ipv4.ip_local_port_range = 32768    61000

 [root@localhost ~]# sysctl -a|grep ip_local|sed -e 's/32768/1024/' -e 's/61/65/'

net.ipv4.ip_local_port_range = 1024     65000

[root@localhost ~]# sysctl -a|grep ip_local|sed -e 's/32768/1024/' -e 's/61/65/'>>/etc/sysctl.conf

[root@localhost ~]# sysctl -a|grep rmem_d

net.core.rmem_default = 109568

[root@localhost ~]# sysctl -a|grep rmem_d|sed 's/109568/262144/'

net.core.rmem_default = 262144

[root@localhost ~]# sysctl -a|grep rmem_d|sed 's/109568/262144/'>>/etc/sysctl.conf

[root@localhost ~]# sysctl -a|grep rmem_ma

net.core.rmem_max = 131071

[root@localhost ~]# sysctl -a|grep rmem_ma|sed 's/131071/262144/'

net.core.rmem_max = 262144

[root@localhost ~]# sysctl -a|grep rmem_ma|sed 's/131071/262144/'>>/etc/sysctl.conf

[root@localhost ~]# sysctl -a|grep wmem_ma|sed 's/131071/262144/'>>/etc/sysctl.conf

[root@localhost ~]# sysctl -a|grep wmem_d|sed 's/109568/262144/'>>/etc/sysctl.conf

[root@localhost ~]# sysctl -a|grep file-max

fs.file-max = 102279

[root@localhost ~]# sysctl -a|grep file-max|sed 's/102279/65536/'>>/etc/sysctl.conf

[root@localhost ~]# sysctl -p

net.ipv4.ip_forward = 0

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.default.accept_source_route = 0

kernel.sysrq = 0

kernel.core_uses_pid = 1

net.ipv4.tcp_syncookies = 1

kernel.msgmnb = 65536

kernel.msgmax = 65536

kernel.shmmax = 4294967295

kernel.shmall = 268435456

kernel.sem = 250        32000   100     128

net.ipv4.ip_local_port_range = 1024     65000

net.core.rmem_default = 262144

net.core.rmem_max = 262144

net.core.wmem_max = 262144

net.core.wmem_default = 262144

fs.file-max = 65536

[root@localhost ~]# xhost +

access control disabled, clients can connect from any host

linux下卸载oracle数据库:

手工删除:

/etc/ora*

/usr/local/bin/oraenv|dbhome|coraenv

$ORACLE_BASE/

原文地址:https://www.cnblogs.com/wcwen1990/p/4376918.html