文档详情

Oracle11g安装手册forCentOS6.3_64位.doc

发布:2016-08-11约7.62千字共38页下载文档
文本预览下载声明
CentOS6.3_X64下Oracle11g 安装手册 目录结构 1 系统用户一览 1 2 安装地址 1 3 安装准备 1 3.1 创建Oracle相关用户和目录 1 3.2 修改内核参数 1 3.3 为Oracle用户设置Shell限制 2 3.4 上传文件 2 4 安装Oracle11g 3 4.1 安装数据库软件 3 4.1 创建数据库监听 15 4.2 创建数据库实例 20 4.3 设置开机启动Oracle 11g 35 4.4 重新安装需要的操作 36 4.5 自动备份 36 4.6 问题 37 前提 按照我的方法安装centos系统,并更新了组件。请下载centos6.3安装手册。 系统用户一览 序号 用户 所在组 权限 密码 root root 超级用户 root123 oracle oinstall dba oracle 安装地址 序号 地址 ORACLE_BASE /usr/local/oracle ORACLE _HOME /usr/local/oracle/product/1120 安装准备 创建Oracle相关用户和目录 以下命令按顺序执行: groupadd oinstall groupadd dba useradd -g oinstall -G dba oracle passwd oracle 如果有乱码,先使用export LANG=en_US usermod -g oinstall -G dba oracle mkdir -p /usr/local/oracle chown -R oracle:oinstall /usr/local/oracle chmod -R 755 /usr/local/oracle 修改内核参数 编辑/etc/sysctl.conf: cat /etc/sysctl.conf EOF kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65500 net.core.rmem_default = 4194304 net.core.wmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_max = 262144 EOF 修改完成后,运行sysctl -p使设置生效。 为Oracle用户设置Shell限制 编辑/etc/security/limits.conf: cat /etc/security/limits.conf EOF oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 EOF 编辑/etc/pam.d/login: cat /etc/pam.d/login EOF session required pam_limits.so EOF 编辑系统环境配置文件/etc/profile,在最后添加如下内容: if [ $USER = oracle ]; then if [ $SHELL = /bin/ksh ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi 编辑/etc/csh.login,在最后添加如下内容: if ( $USER == oracle) then limit maxproc 16384 limit descriptors 65536 endif 编辑/home/oracle/.bash_profile,在最后添加如下内容: export ORACLE_BASE=/usr/local/oracle export ORACLE_HOME=/usr/local/oracle/product/1120 export ORACLE_SID=orcl export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin 注:这里的ORACLE_SID的值,是后面安装数据库时候用到的SID。 如果修改后未生效,使用 source /home/oracl
显示全部
相似文档