一、使用oracle硬件要求
1、内存要求
最小内存1G,推荐2G或2G以上
2、swap大小设定
1GB跟2GB物理内存之间的,设定swap大小为物理内存的1.5倍
2GB跟16GB物理内存之间的,设置swap大小与物理内存相等
16GB物理内存以上的,设置swap大小为16GB
3、共享内存/dev/shm要求
至少比在每个oracle实例中的MEMORY_MAX_TARGET和MEMORY_TARGET要大。
4、/tmp空间大小要求
至少1GB空间
5、硬盘大小要求
存放oracle软件文件和数据文件的空间至少6GB
二、使用oracle软件要求
1、操作系统要求
Asianux Server 3 SP2
Oracle Linux 4 Update 7
Oracle Linux 5 Update 2
Oracle Linux 5 Update 5 (with the Oracle Unbreakable Enterprise Kernel for Linux)
Red Hat Enterprise Linux 4 Update 7
Red Hat Enterprise Linux 5 Update 2
Red Hat Enterprise Linux 5 Update 5 (with the Oracle Unbreakable Enterprise Kernel for Linux)
SUSE Linux Enterprise Server 10 SP2
SUSE Linux Enterprise Server 11
2、软件包要求
下面是64位centos 5或6的软件包要求
binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel make sysstat
三、开始安装oracle
因为本机没有安装桌面环境,所以我们采用静默安装oracle。
1、安装依赖
- yum -y install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel make sysstat
2、添加用户
- /usr/sbin/groupadd oinstall
- /usr/sbin/groupadd dba
- /usr/sbin/useradd -g oinstall -G dba oracle
- passwd oracle
3、修改内核参数
- 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
- #######
- /sbin/sysctl -p
4、修改用户资源限制
- 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
- #####
5、目录创建
- mkdir -p /usr/local/oracle /usr/local/oraInventory /usr/local/oradata/
- chown -R oracle:oinstall /usr/local/oracle /usr/local/oraInventory /usr/local/oradata/
- chmod -R 775 /usr/local/oracle /usr/local/oraInventory /usr/local/oradata/
6、设置用户环境
- su - oracle
- vi .bash_profile
- #####
- export ORACLE_BASE=/usr/local/oracle
- export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
- export ORACLE_SID=sales
- export ORACLE_OWNER=oracle
- export PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
- ####
- source .bash_profile
7、下载oracle
切换到root用户
- su -
下载oracle 11g到/home/并解压
- chmod 777 /home/database
- chown -R oracle.oinstall /home/database
8、创建oraInst.loc
- vi /etc/oraInst.loc
- #####
- inventory_loc=/usr/local/oraInventory
- inst_group=oinstall
- #####
- chown oracle:oinstall /etc/oraInst.loc
- chmod 664 /etc/oraInst.loc
9、创建Response 文件
- vi /home/database/response/db_install.rsp
- ###
- oracle.install.option=INSTALL_DB_AND_CONFIG
- ORACLE_HOSTNAME=oracledb
- UNIX_GROUP_NAME=oinstall
- INVENTORY_LOCATION=/usr/local/oraInventory
- SELECTED_LANGUAGES=en,zh_CN
- ORACLE_HOME=/usr/local/oracle/product/11.2.0/db_1
- ORACLE_BASE=/usr/local/oracle
- oracle.install.db.InstallEdition=EE
- oracle.install.db.DBA_GROUP=oinstall
- oracle.install.db.OPER_GROUP=oinstall
- oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
- oracle.install.db.config.starterdb.globalDBName=oracle
- oracle.install.db.config.starterdb.SID=sales
- oracle.install.db.config.starterdb.memoryLimit=512
- oracle.install.db.config.starterdb.password.ALL=Oracle123
- oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
- oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/usr/local/oradata/ora11g/ORA11G
- DECLINE_SECURITY_UPDATES=true
- ###
10、开始安装
- su - oracle
- /home/database/runInstaller -silent -responseFile /home/database/response/db_install.rsp
- su - root
- /usr/local/oracle/product/11.2.0/db_1/root.sh
安装参考:http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm
错误大全:http://docs.oracle.com/cd/E11882_01/server.112/e17766/toc.htm#BEGIN
相关推荐
在centos下安装oracle11g 使用yum源进行搭建 包括配置监听
centos6.6 Oracle11G安装文档,能够帮助实施和初学linux成员快速掌握oracle的安装。
CentOS7下安装oracle11g具体步骤
Centos 6.5 Oracle 11G R2 安装文档
centos6.8上Oracle11g的安装,适合初学者安装学习,经试验无误
文档中按照步骤进行centos 7 下,针对oracle 11g 进行静默安装;
CentOS7离线安装oracle 11g_r2所有离线依赖包,并附详细安装说明,安装详细说明和依赖包,轻松在CentOS7安装oracle
在CentOS7下安装ASM,然后在ASM上安装Oracle数据库11g,详细的图片说明,出现问题时的解决办法
Centos6.5下安装Oracle 11g.docxCentos6.5下安装Oracle 11g.docx
Centos7安装部署Oracle RAC 11G说明文档,Oracle 11g R2安装,RAC环境搭建
Centos6.4安装Oracle11G,图形化界面安装
centos6.8 64位安装oracle 11g需要的全部文件part4
目前来说整理得最全的Oracle 11g静默安装手册,望大伙支持! 一、安装前环境准备 二、操作系统准备工作 三、根据响应文件静默安装Oracle 11g 四、以静默方式配置监听 五、以静默方式建立新库,同时也建立一个对应的...
解决CentOS7无外网环境下通过图形桌面安装Oracle11g时无法下载rpm包的问题,内附GNOME桌面的rpm安装包和安装Oracle11g数据库所需依赖包;请使用命令 rpm命令安装,例如将下载好的包上传到 /home/oracle/下载/ 目录下...
CentOS7一键静默安装oracle11G
linux下安装oracle11g详细教程(每一步都有截图),按照文档步骤一定能安装成功。希望能对大家有所帮助
自己的安装笔记,有需要的朋友拿走。
Centos5.4环境安装Oracle11G
centos 6.5 安装 oracle 11g,常见问题总结; 配置环境变量,系统设置,oracle图形化安装; 遇到的问题以及部分操作的解析。可以直接复制粘贴里面的配置。
centos 6下oracle 11g的安装配置 关于Oracle 11g安装配置详细说明,照着文档执行就可以安装成功oracle 11g ,本文档没有提供相关软件,需要自行下载。Vmware,centos 6,以及Oracle 11g