1.安装前装备

1.1 硬件要求
要求 查看方式
内存 至少1G内存 grep MemTotal /proc/meminfo
SWAP
如果内存为大于512M则swap大小为内存2倍
如果内存在1到2G之间则swap大小为内存1.5倍
如果内存在2到8G之间则swap大小为内存1倍
如果内存大于8G则swap大小为内存0.75倍
grep SwapTotal /proc/meminfo
磁盘
/tmp目录至少400MB
oracle安装目录大约在1.5到3.5G之间
数据文件至少1.2G
df -h
1.2软件要求
CentOS5.6标准安装,使用YUM安装以下所需软件
yum install -y compat-db pdksh sysstat screen libXp compat-libstdc++*
Red Hat Enterprise Linux 4.0需安装以下所需软件包
binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2

1.3添加用户及用户组
添加必要的用户组:/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/groupadd oper

建立oracle用户
/usr/sbin/useradd -g oinstall -G dba,oper oracle
配置oracle的密码:
passwd oracle

1.4配置内核参数、修改用户环境变量
编辑/etc/sysctl.conf文件,在此文件中加入:
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

运行命令: sysctl -p 使设置生效
编辑/etc/security/limits.conf文件,加入以下内容:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
编辑/etc/pam.d/login文件,加入以下内容:
session required pam_limits.so
同时在/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/profile文件中加入以下内容:
ORACLE_BASE="/opt/app/oracle"
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE"/product/10.2.0/db_1"
ORACLE_SID=xmydlinux
#此SID在后面安装时需要填入和这里配置一样的
export ORACLE_HOME ORACLE_SID
vi /etc/redhat-release,修改redhat-release文件内容如下:(10G默认不支持5.6版本,修改掉此信息可略过错误)
redhat-4
修改oracle用户的环境配置文件
执行:su oracle 切换到oracle用户环境,然后编辑 .bash_profile 文件,更改PATH的配置,同时在环境变量中增加NLS_LANG的配置。如下:
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
1.5 创建目录
创建ORACLE_BASE目录: mkdir -p /opt/app/oracle
权限设置: chown -R oracle:oinstall /opt/app/
2.安装
2.1 切换至oracle用户,copy 10201_database_linux32.zip文件到/OPT目录。执行:unzip 10201_database_linux32.zip解压10g文件。
执行:export LANG=en_US (防止乱码)
2.2  执行:/opt/database/runInstaller
选择安装方法,建议选择高级模式,如下图所示:
点击“next”,进入下一步骤
使用默认配置,点击“next”进入下一步骤
选择数据库版本,选择“企业版”,点击“产品语言”,出现下图对话框
在对话框中添加“简体中文”,点击“OK”,进入下一步
使用默认的安装目录,点击“next”进入下一步骤
进行数据库安装前检查,如上图所示,检查通过,如果没有任何错误,点击“next”
此处选择“只安装数据库软件”,点击“next”,进入下一步骤
点击“install”,进行安装
正在安装,如上图所示安装完成后点击“OK”
用root用户,运行以下脚本:
/opt/app/oracle/oraInventory/orainstRoot.sh
/opt/app/oracle/product/10.2.0/db_1/root.sh
[root@xmydlinux]# /opt/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /opt/app/oracle/oraInventory to 770.
Changing groupname of /opt/app/oracle/oraInventory to oinstall.
The execution of the script is complete
[root@xmydlinux]# /opt/app/oracle/product/10.2.0/db_1/root.sh
Running Oracle10 root.sh script…
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME=  /opt/app/oracle/product/10.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
(此处直接回车,选择默认的安装目录)
Copying dbhome to /usr/local/bin …
Copying oraenv to /usr/local/bin …
Copying coraenv to /usr/local/bin …
Creating /etc/oratab file…
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
此时数据库软件的安装完成。
3.创建数据库
数据库软件安装完成后还需要创建数据库实例,在原来运行runInstall的终端中运行dbca命令,运行此命令后,将会在本地的xmanager-passive的显示如下界面:
点击“next”进行配置
选择“create a database”进行创建数据库,点击“Next”进入下一步
勾选“Create Database”,点击“Finish”进入下一步
选择“General Purpose”,点击“Next”,进入下一步,
输入SID,此处输入的SID应该与环境变量的中设置的SID一致,注意区分大小写。点击“Next”进入下一步,
点击“Next”进入下一步
输入密码,点击“Next”进入下一步
在存储选项中选择“File System”,点击“Next”进入下一步
使用默认配置,点击“Next”进入下一步
使用默认配置,点击“Next”进入下一步
点击“Next”进入下一步
在初始化参数设置中的选项卡中选择“Sizing”,在Processes中填写600
在字符集选项卡中,选择字符集为“ZHS16FBK”,点击“Next”进入下一步
使用默认值,点击“Next”进入下一步
点击“Finish”创建数据库
点击“OK”确认配置
建数据库创建中……
在sys和system账号中输入密码,点击“OK”至此数据库安装完成。
附:oracle 10g下载地址:
Oracle Database 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Microsoft Windows (32-bit)
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
http://download.oracle.com/otn/nt/oracle10g/10201/10201_client_win32.zip
http://download.oracle.com/otn/nt/oracle10g/10201/10201_clusterware_win32.zip
http://download.oracle.com/otn/nt/oracle10g/10201/10201_gateways_win32.zip
OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Microsoft Windows (x64)
http://download.oracle.com/otn/nt/oracle10g/10201/102010_win64_x64_database.zip
http://download.oracle.com/otn/nt/oracle10g/10201/102010_win64_x64_client.zip
http://download.oracle.com/otn/nt/oracle10g/10201/102010_win64_x64_clusterware.zip
OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Linux x86
http://download.oracle.com/otn/linux/oracle10g/10201/10201_database_linux32.zip
http://download.oracle.com/otn/linux/oracle10g/10201/10201_client_linux32.zip
http://download.oracle.com/otn/linux/oracle10g/10201/10201_gateways_linux32.zip
OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Linux x86-64
http://download.oracle.com/otn/linux/oracle10g/10201/10201_database_linux_x86_64.cpio.gz
http://download.oracle.com/otn/linux/oracle10g/10201/10201_client_linux_x86_64.cpio.gz
http://download.oracle.com/otn/linux/oracle10g/10201/10201_clusterware_linux_x86_64.cpio.gz
http://download.oracle.com/otn/linux/oracle10g/10201/10201_gateways_linux_x86_64.cpio.gz
OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for AIX5L
http://download.oracle.com/otn/aix/oracle10g/10201/10gr2_aix5l64_database.cpio.gz
http://download.oracle.com/otn/aix/oracle10g/10201/10gr2_aix5l64_client.cpio.gz
http://download.oracle.com/otn/aix/oracle10g/10201/10gr2_aix5l64_cluster.cpio.gz
http://download.oracle.com/otn/aix/oracle10g/10201/10gr2_aix5l64_gateways.cpio.gz
OracleDatabase 10g Release 2 (10.2.0.2) Enterprise/Standard Edition for Solaris Operating System (x86)
http://download.oracle.com/otn/solaris/oracle10g/10202/10202_database_solx86.zip
http://download.oracle.com/otn/solaris/oracle10g/10202/10202_client_solx86.zip
http://download.oracle.com/otn/solaris/oracle10g/10202/10202_clusterware_solx86.zip
OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Solaris Operating System (x86-64)
http://download.oracle.com/otn/solaris/oracle10g/10201/x8664/10201_database_solx86_64.zip
http://download.oracle.com/otn/solaris/oracle10g/10201/x8664/10201_client_solx86_64.zip
http://download.oracle.com/otn/solaris/oracle10g/10201/x8664/10201_clusterware_solx86_64.zip

转载于:https://www.cnblogs.com/huangjingzhou/articles/2140115.html

CentOS5.6环境安装oracle 10g(完整版)相关推荐

  1. CentOS 6.3(x86_64)下安装Oracle 10g R2

    CentOS 6.3(x86_64)下安装Oracle 10g R2 目 录 一.硬件要求 二.软件 三.系统安装注意 四.安装Oracle前的系统准备工作 五.安装Oracle,并进行相关设置 六. ...

  2. centos5.5上安装oracle 11g R2[转发-参考用]

    centos5.5上安装oracle 11g R2[转发-参考用] + ------------------ CentOS 5.5上安装配置oracle 11g R2  --------------- ...

  3. aix 6.1 安装oracle,AIX 6.1 安装 oracle 10G

    第一章    AIX系统调整查询系统版本: # oslevel -r 6100-07 2:查询系统是否64位: # bootinfo -K 64 3:查询物理内存大小(2G): # lsattr -E ...

  4. win7 安装Oracle 10g 数据库详细步骤教程

    win7 安装Oracle 10g 数据库详细步骤教程 一:环境 操作系统:win 7 64位 内存:8G Oracle 10g 压缩包:oracle.7z 客户端:Oracle_client_win ...

  5. linux下安装oracle 10g

    Oracle 10g 对软硬件的要求都非常的高,所以要玩转的话的花不少银子.首先来看看它对硬件的要求:内存512兆(建议1G),cpu 主频2.0G以上,硬盘转速7200转以上(建议使用scsi硬盘) ...

  6. 在Win7中安装Oracle 10g时检测报错的解决办法

    在Windows 7中安装Oracle 10g. 使用的Orcale版本是10g. 步骤1: 在Orcale官网上下载,下载地址为:http://download.oracle.com/otn/nt/ ...

  7. oracle好难装,安装oracle 10g 的艰难之旅

    安装oracle 10g 的艰难之旅 作者:田逸 (sery@163.com) 发表于http://www.xue5.com/itedu/2740.html 在linux下安装oracle是一件令人生 ...

  8. 在RedHat4 64位操作系统下,安装Oracle 10g

    在RedHat4 64位操作系统下,安装Oracle <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:offi ...

  9. aix 5.3 安装oracle 10g r2,AIX 5.3 安装 Oracle 10g R2(64)

    AIX 5.3 安装 Oracle 10g R2(64) 系统环境: 操作系统: AIX5300-09 Oracle:  Oracle 10gR2(64) 一.安装前准备 1.查看操作系统的版本 [r ...

最新文章

  1. OpenCV实现图像颜色特征提取
  2. DDD领域驱动之干货(二)
  3. 【渝粤教育】 国家开放大学2020年春季 1001中国法制史 参考试题
  4. ASP.NET会员注册登录模块(MD5加密,Parameters防止SQL注入,判断是否注册)
  5. 前端学习(3326):闭包的形式1
  6. python 画三角函数_python,将三角函数绘制成二维数组
  7. 计算机类说课比赛视频,全国“xx杯”计算机类说课大赛课件一等奖作品:制作逐帧动画说课课件...
  8. 常用的Oracle命令整理
  9. SQL 日期格式化处理.sql
  10. Moment.js在Vue中使用
  11. Yii --Command 任务处理
  12. 线程安全的CopyOnWriteArrayList介绍
  13. 渗透入门——术语概述
  14. bolt界面引擎学习笔记一
  15. java旋转太极图_无聊做了个旋转太极图
  16. 嵌入式实操----基于RT1170 首板硬件之CAN BUS TJA1043显示调试(十八)
  17. 实现一个返回顶部的按钮功能(基于better-scroll实现)
  18. python基于flask_sockets实现WebSocket——叁
  19. win101909要不要更新_近年最稳的Win10更新?Win10 1909值得升级吗
  20. Vista下最好用输入法 - 搜狗拼音输入法4.0正式版闪亮登场!

热门文章

  1. Java RandomAccessFile close()方法与示例
  2. 编写一个函数,计算下式当n=10和n=100的值。
  3. java接口并发衡量_java 后端设计高并发接口总结
  4. 汇编语言-007(ADD_SUB_NEG 、 PUSH和POP指令应用 、 AND,OR,XOR使用 、 条件跳转应用)
  5. php数组的声明和类型
  6. android 队列上传图片,话说android端七牛图片上传
  7. python类的成员函数_Python为类对象动态添加成员函数
  8. Effective C++学习第八天
  9. android保持服务不休眠,Android开发保持屏幕常亮和CPU不休眠唤醒状态
  10. 浅拷贝+引用计数--写时拷贝---模拟实现string容器