--安装oracle环境准备
创建组和用户
groupadd dba
groupadd oinstall

useradd -g oinstall -G dba oracle
passwd oracle

修改linux系统内核参数
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240

 

创建目录
mkdir /u01/app
chown -R oracle:oinstall /u01/app
chmod -R 775 /u01/app
rwx: oracle用户
r-x: 和oracle用户同组的其他用户权限
r-x: 不同组的用户的权限

修改oracle用户的profile文件
su - oracle
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/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=mysid
export PATH=$ORACLE_HOME/bin:$PATH
export EDITOR=vi

 

补充:

经过试验发现,如果安装oracle11.2.0.4,采用客户化方式安装数据库的时候,可能会要求 oper 组,

最好加入 groupadd oper

最后:useradd -g oinstall -G dba,oper oracle

或者:usermod -g oinstall -G dba,oper oracle

 

 

相关文章:

  • 2021-12-24
  • 2021-10-21
  • 2021-11-05
  • 2021-04-07
  • 2021-12-22
  • 2022-12-23
  • 2021-06-24
  • 2022-01-24
猜你喜欢
  • 2022-01-20
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-12-04
相关资源
相似解决方案