Oracle 安装前准备
原创Steven__Fan ©著作权
©著作权归作者所有:来自51CTO博客作者Steven__Fan的原创作品,请联系作者获取转载授权,否则将追究法律责任
[root@localhost Desktop]# groupadd -g 110 oinstall 用来安装oracle软件
[root@localhost Desktop]# groupadd -g 111 dba 数据库维护管理
[root@localhost Desktop]# groupadd -g 112 asmadmin
[root@localhost Desktop]# groupadd -g 114 asmdba
[root@localhost Desktop]# groupadd -g 115 asmoper
useradd -g oinstall -G dba,asmdba oracle
passwd oracle
useradd -g oinstall -G dba,asmdba,asmadmin,asmoper grid
passwd grid
[root@localhost Desktop]# su - grid
[grid@localhost ~]$ vi .bash_profile
export ORACLE_BASE=/u01/oracle
export GRID_HOME=/u01/grid/11g
export ORACLE_HOME=$GRID_HOME
export ORACLE_SID=+ASM
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
[root@localhost Desktop]# su - oracle
[oracle@localhost ~]$ vi .bash_profile
export ORACLE_BASE=/u01/oracle
export DB_HOME=/u01/oracle/11g
export ORACLE_HOME=$DB_HOME
export ORACLE_SID=updb
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
[root@localhost Desktop]# mkdir /u01/oracle/11g -p
[root@localhost Desktop]# mkdir /u01/grid/11g -p
[root@localhost Desktop]# mkdir /u01/oraInventory -p
[root@localhost Desktop]# chown grid.oinstall /u01/ -R
[root@localhost Desktop]# chown oracle.oinstall /u01/oracle/ -R
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 = 1048576
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
oracle hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
[root@localhost Desktop]# vi /etc/sysconfig/ntpd
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g"
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
[root@localhost Desktop]# /etc/init.d/ntpd restart
Shutting down ntpd: [FAILED]
Starting ntpd: [ OK ]
[root@localhost Desktop]# chkconfig ntpd on

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Oracle OEM Agent 安装手册
OEM agent 单实例数据库安装
oracle 主机名 数据库 OEM监控 -
安装Thiz Server前的准备
Linux安装
职场 Server 休闲 Thiz -
3、vCenter安装前的准备
vCenter安装前的准备
安装 准备 vcenter