安装Oracle之前的环境准备

简介:

--安装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






本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/archive/2012/10/12/2721337.html,如需转载请自行联系原作者

目录
相关文章
|
Oracle 关系型数据库 MySQL
Oracle linux 8 二进制安装 MySQL 8.4企业版
Oracle linux 8 二进制安装 MySQL 8.4企业版
592 1
|
Oracle 关系型数据库 Linux
linux8安装oracle 11g遇到的问题记录
Oracle 11g在Linux 8上安装时会遇到link编译环节的问题。官方建议忽略安装中的链接错误,安装完成后应用DBPSU 11.2.0.4.240716补丁及一次性补丁33991024,再重新编译二进制文件,并配置监听器和数据库。但因11g已退出服务期,这些补丁需付费获取。网上信息显示22年1月的PSU补丁也可解决问题,找到该补丁后按常规方式打补丁即可。如有需求或疑问可咨询我。
816 20
|
存储 Oracle 关系型数据库
|
Oracle 关系型数据库 网络安全
Oracle 19c 安装教程学习
Oracle 19c 安装教程学习
5758 2
|
机器学习/深度学习 Oracle 关系型数据库
Oracle 19c单机一键安装脚本分享
Oracle 19c单机一键安装脚本分享
1030 2
|
存储 Oracle 关系型数据库
|
SQL Oracle 关系型数据库
关系型数据库Oracle设置 RMAN 环境:
【7月更文挑战第25天】
419 2
|
SQL Oracle 关系型数据库
MySQL、SQL Server和Oracle数据库安装部署教程
数据库的安装部署教程因不同的数据库管理系统(DBMS)而异,以下将以MySQL、SQL Server和Oracle为例,分别概述其安装部署的基本步骤。请注意,由于软件版本和操作系统的不同,具体步骤可能会有所变化。
1440 3
|
Oracle 关系型数据库 数据库

推荐镜像

更多