admin 管理员组文章数量: 887021
oracle hard stack,oracle
1.系统环境准备
2.关闭iptables,selinux,NetworkManager;准备yum仓库;配置ip
3.建立组及用户
# groupadd dba
# groupadd oinstall
# useradd -m -g oinstall -G dba oracle
# passwd oracle
// 如果nobody用户不存在(id nobody命令查看),则创建:
# useradd nobody
4.yum安装rpm包
yum install -y compat-libstdc*
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
yum -y install unix*
5.调整内核参数
# vim /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 = 1048576
# /sbin/sysctl -p //保存后生效
6.修改操作系统对oracle用户资源的限制
# vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle hard stack 10240
7.目录规划
# mkdir -p /home/oracle/app/oracle
# chown -R oracle:oinstall /home/oracle/app/oracle
# chmod -R 775 /home/oracle/app/oracle
# chown -R oracle:oinstall /home/oracle/app
# chmod -R 775 /home/oracle/app
# chown -R oracle:oinstall /home/oracle
# chmod -R 775 /home/oracle
# chmod -R 775 /home/
# chown -R oracle:oinstall /home/
8.配置环境变量(实例名为:*your SID*)
# vim /home/oracle/.bash_profile
#added by timman for oracle
export ORACLE_BASE=/home/oracle/app/oracle
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
export ORACLE_SID=*your SID*
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/oracm/lib:$ORACLE_HOME/lib
export CLASSPATH=$CLASSPATH:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/jlib:$ORACLE_HOME/network/lib
#export NLS_LANG=american_america.ZHS16GBK *添加临时环境变量后面在安装时避免出现图形界面乱码*
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"
export EDITOR=vi
9.给/dev/shm 添加内存
# vim /etc/fstab
tmpfs /dev/shm tmpfs defaults,size=6G 0 0
#mount -o remount /dev/shm
10.root给xhost权限,偷java 6的内核切换oracle用户
# yum -y install java-1.6.0
# cd /usr/lib/jvm/jre-1.6.0/lib/
# mv fontconfig.bfc fontconfig.bfc.origin
# cp fontconfig.RedHat.6.bfc fontconfig.bfc
# xhost +
# su - oracle
$ export DISPLAY=:0.0
# su - root
11.安装orcale
$ cd /home/oracle/database/
$ sh runInstaller -jreLoc /usr/lib/jvm/jre-1.6.0
12.以root身份执行脚本
# sh /home/oracle/app/oraInventory/orainstRoot.sh
# sh /home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh
13.创建监听程序
su - oracle
export LANG=en_US.gbk
$ netca
14.创建数据库
$ dbca
(创建DBA密码为:********)
[原来设的密码为:********安装进度条一直卡97%,日志报public synonym to be dropped does not exist]
15.数据库服务及监听服务的开机自启动
# vim /etc/rc.d/rc.local
su - oracle -c "dbstart"
su - oracle -c "lsnrctl start"
# vim /etc/oratab
*your SID*:/oracle/app/oracle/product/11.2.0/dbhome_1:Y
本文标签: oracle hard stack Oracle
版权声明:本文标题:oracle hard stack,oracle 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1699107556h329152.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论