设为首页 加入收藏

TOP

centos下静默安装oracle数据库遇到的坑(一)
2018-10-23 18:08:41 】 浏览:223
Tags:centos 静默 安装 oracle 数据库 遇到

oracle 安装过程遇到很多的问题赶紧记录一下

安装oracle jdk

依赖安装

依赖安装直接用yum 安装方式 一般都可以直接执行成功

yum -y install make gcc binutils gcc-c++ compat-libstdc++ elfutils-libelf-devel elfutils-libelf-devel-static ksh libaio libaio-devel numactl-devel sysstat unixODBC unixODBC-devel pcre-devel glibc.i686

用户组创建

  groupadd oinstall
  groupadd dba
  useradd -g oinstall -G dba -d /home/oracle oracle

安装目录创建

 
    echo "create all oracle directory"
    echo "  -> 数据库系统安装目录"
    sudo mkdir -p /mnt/soft/app/oracle
    sudo chown -R oracle:oinstall /mnt/soft/app/oracle
    sudo chmod -R 755 /mnt/soft/app/oracle
    echo "  -> 数据库数据安装目录"
    sudo mkdir -p /mnt/soft/app/data/oradata
    echo "  -> 数据备份目录"
    sudo mkdir -p /mnt/data/app/data/oradata_back
    echo "  -> 清单目录"
    sudo mkdir -p /mnt/data/app/data/inventory

    sudo chown -R oracle:oinstall /mnt/data/app/data
    sudo chown -R oracle:oinstall /mnt/soft/app/oracle
	

    sudo chmod -R 775 /mnt/data/app/oracle
    sudo chmod -R 775 /mnt/soft/app/data

系统的配置

以下脚本直接 保存成sh 文件运行即可需要注意的是安装的路径和sid 名字

#!/bin/bash

#writed by csc   2018-10-12

cat >> /etc/sysctl.conf <
  
   > /etc/security/limits.conf << done

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

done


echo "limits.conf  success"
  
################################################

#modify /etc/pam.d/login                       #

################################################

echo "session    required     pam_limits.so">>/etc/pam.d/login



################################################

#  edit profile config                   #

################################################ 

echo " profile  start " 
cat >> /etc/profile  <
   
    

响应模板文件

1.db_install.rsp 验证过的

####################################################################
## Copyright(c) Oracle Corporation 1998,2008. All rights reserved.##
##                                                                ##
## Specify values for the variables listed below to customize     ##
## your installation.                                             ##
##                                                                ##
## Each variable is associated with a comment. The comment        ##
## can help to populate the variables with the appropriate        ##
## values.							  ##
##                                                                ##
## IMPORTANT NOTE: This file contains plain text passwords and    ##
## should be secured to have read permission only by oracle user  ##
## or db administrator who owns this installation.                ##
##                                                                ##
####################################################################

#------------------------------------------------------------------------------
# Do not change the following system generated value. 
#------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0

#------------------------------------------------------------------------------
# Specify the installation option.
# It can be one of the following:
# 1. INSTALL_DB_SWONLY
# 2. INSTALL_DB_AND_CONFIG
# 3. UPGRADE_DB
#-------------------------------------------------------------------------------
oracle.install.option=INSTALL_DB_SWONLY

#-------------------------------------------------------------------------------
# Specify the hostname of the system as set during th
编程开发网
首页 上一页 1 2 3 4 5 6 7 下一页 尾页 1/8/8
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇SQL高级操作之查询数据精讲 下一篇sql:COALESCE()函数解析

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

array(4) { ["type"]=> int(8) ["message"]=> string(24) "Undefined variable: jobs" ["file"]=> string(32) "/mnt/wp/cppentry/do/bencandy.php" ["line"]=> int(214) }