Welcome 微信登录

首页 / 数据库 / MySQL / RHEL 6.2 64位安装Oracle 11g R2

1、安装环境:操作系统及版本[root@stone ~]# cat /etc/issueRed Hat Enterprise Linux Server release 6.2 (Santiago)内存设置[root@stone ~]# free -mtotal used free shared buffers cachedMem: 1063 721 341 0 25 387-/+ buffers/cache: 309 754Swap: 1999 0 1999#内存至少1G,swap至少为1.5倍内存磁盘分区[root@stone ~]# df -ahFilesystem Size Used Avail Use% Mounted on/dev/sda1 23G 2.9G 19G 14% /proc 0 0 0 - /procsysfs 0 0 0 - /sysdevpts 0 0 0 - /dev/ptstmpfs 532M 264K 532M 1% /dev/shmnone 0 0 0 - /proc/sys/fs/binfmt_miscsunrpc 0 0 0 - /var/lib/nfs/rpc_pipefsgvfs-fuse-daemon 0 0 0 - /root/.gvfsvmware-vmblock 0 0 0 - /var/run/vmblock-fuse.host:/ 76G 26G 50G 35% /mnt/hgfs#建议Oracle所作分区(本例为/)至少10G2、配置YUM(需要上公网或架设内网服务器)[root@stone ~]# cd /etc/yum.repos.d/[root@stone yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo--2014-03-09 14:35:00-- http://mirrors.163.com/.help/CentOS6-Base-163.repoResolving mirrors.163.com... 123.58.173.106Connecting to mirrors.163.com|123.58.173.106|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 2006 (2.0K) [application/octet-stream]Saving to: “CentOS6-Base-163.repo”100%[===========================================================================>] 2,006 --.-K/s in 0s2014-03-09 14:35:00 (137 MB/s) - “CentOS6-Base-163.repo” saved [2006/2006][root@stone yum.repos.d]# lsCentOS6-Base-163.repo RedHat.repo rhel-source.repo[root@stone ~]# vim /etc/yum.repos.d/CentOS6-Base-163.repo:g/$releasver/s//6/g:wq[root@stone ~]# yum makecacheLoaded plugins: product-id, refresh-packagekit, security, subscription-managerUpdating certificate-based repositories.base | 3.7 kB 00:00base/group_gz | 220 kB 00:00base/filelists_db | 5.9 MB 00:28base/primary_db | 4.4 MB 00:20base/other_db | 2.8 MB 00:12extras | 3.4 kB 00:00extras/filelists_db | 11 kB 00:00extras/prestodelta | 907 B 00:00extras/primary_db | 19 kB 00:00extras/other_db | 5.8 kB 00:00updates | 3.4 kB 00:00updates/filelists_db | 1.3 MB 00:05updates/prestodelta | 169 kB 00:00updates/primary_db | 2.0 MB 00:09updates/other_db | 16 MB 01:11Metadata Cache Created3、安装所需软件包[root@stone ~]# cat ora_software1.txtbinutils*compat-libstdc++*elfutils-libelf*elfutils-libelf-devel*elfutils-libelf-devel-static*gcc*gcc-c++*glibc*glibc-common*glibc-devel*glibc-headers*kernel-headers*ksh*libaio*libaio*libgcc*libgomp*libstdc++*libstdc++-devel*make*sysstat*unixODBC*unixODBC-devel*[root@stone ~]# cat ora_software1.txt | xargs yum install -y 4、建立oracle所需组和用户[root@stone ~]# groupadd oinstall[root@stone ~]# groupadd dba[root@stone ~]# useradd -g oinstall -G dba oracle[root@stone ~]# passwd oracleChanging password for user oracle.New password:BAD PASSWORD: it is too simplistic/systematicBAD PASSWORD: is too simpleRetype new password:passwd: all authentication tokens updated successfully.5、设置安装目录[root@stone ~]# mkdir -p /u01/oraInventory[root@stone ~]# chown -R oracle:oinstall /u01/[root@stone ~]# chmod -R 775 /u01/将第4步和第5步做成脚本:[root@stone ~]# cat ora_user_dir.sh#!/bin/bashgroupadd oinstallgroupadd dbauseradd -g oinstall -G dba oracleecho "123456" | passwd --stdin oraclemkdir -p /u01/oraInventorychown -R oracle:oinstall /u01/chmod -R 775 /u01/[root@stone ~]# sh ora_user_dir.shChanging password for user oracle.passwd: all authentication tokens updated successfully.6、设置环境变量[root@stone ~]#xhost +[root@stone ~]# su - oracle[oracle@stone ~]$ export ORACLE_BASE=/u01/app/oracle7、解压安装包[oracle@stone ~]$ unzip /mnt/hgfs/software/linux.x64_11gR2_database_1of2.zip[oracle@stone ~]$ unzip /mnt/hgfs/software/linux.x64_11gR2_database_2of2.zip[oracle@stone ~]$ lsdatabase8、开始安装:[oracle@stone ~]$ ./database/runInstaller选择不接收安全更新先仅安装数据库软件,后面再创建数据库在CentOS 6.4下安装Oracle 11gR2(x64) http://www.linuxidc.com/Linux/2014-02/97374.htmOracle 11gR2 在VMWare虚拟机中安装步骤 http://www.linuxidc.com/Linux/2013-09/89579p2.htm
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 下一页
MySQL 中 group by 基本实现原理基准测试工具之tpcc-mysql相关资讯      Oracle 11g R2  Oracle 11g R2安装 
  • CentOS 5.10安装Oracle 11G R2  (01月22日)
  • Oracle Linux 6.4安装Oracle 11g   (12/04/2015 08:30:35)
  • Oracle 11g R2(GI)启动过程  (10/10/2014 17:31:49)
  • Oracle Linux 5.5 (64bit)安装  (12/04/2015 08:46:12)
  • 在Red Hat Enterprise Linux 7.0   (01/05/2015 07:56:38)
  • CentOS 5.10 下静默安装Oracle 11g  (10/10/2014 17:17:39)
本文评论 查看全部评论 (0)
表情: 姓名: 字数