---
title: "How-to Install Oracle 12c Database on CentOS 6.X 64bit"
author: "BenjaminYu"
date: "2014-04-29T03:21:44Z"
tags: []
categories: ["数据库"]
slug: "how-to-install-oracle-12c-database-on-centos-6-x-64bit"
draft: false
lastmod: "2014-04-29T03:21:44Z"
id: 2056436
url: "https://benjaminyu.iteye.com/blog/2056436"
---

http://blog.csdn.net/chncaesar/article/details/17320755

1\. Login as root。这是必须的。  
2\. 创建用户，组，目录，配置访问权限，将oracle用户加入sudoers  
groupadd dba  
groupadd oinstall  
useradd -g oinstall -G dba oracle  
cd /  
mkdir /u01  
chown -R oracle:oinstall /u01  
chmod 775 /u01  
visudo  
拷贝root的配置，并将root改为oracle。  
oracle    ALL=(ALL)    ALL  
:wq

(vi  yy p)  
3\. 配置CentOS的yum：  
由于12c的preinstall包只在Oracle Linux中配置。CentOS需要手动配置。preinstall自动帮用户配置好诸如：gcc，打开文件限制等内核参数。若不安装，需要对着官方安装文档一个个安装配置，非常消耗时间，也容易出错。步骤如下：

1\) cd /etc/yum.repos.d  
2\) wget http://public-yum.oracle.com/public-yum-ol6.repo  
3\) vi public-yum-ol6.repo  
将各个enabled=0的改成1。我改了el6\_addons，ol6\_u4\_base，ol6\_uek\_latest  
4)  yum search oracle  
找到oracle-rdbms-server-12cR1-preinstall.x86-64.  
5)  yum install oracle-rdbms-server-12cR1-preinstall.x86-64  
(

```
wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
```

http://www.tecmint.com/oracle-database-11g-release-2-installation-in-linux/

)

4\. 切换到oracle 用户，使用ssh工具将下载的oracle 安装包上传到home目录下，并解压缩，得到一个database 文件夹，大小为2.x GB.  若有必要，执行service sshd start，以允许ssh登录。  
2013/08/07 更新：在每个虚拟机设置项里，可以配置共享文件夹，将宿主OS（Win 7）上某个文件夹与虚拟机OS共享。在虚拟机里使用：mount -t vboxsf \[win7 文件夹共享名] \[linux挂载点]命令后，在linux即可以访问win7共享的文件夹。该方法前提是：虚拟机OS安装了Additional Pack。

unzip linuxamd64\_12c\_database\_1of2.zip  
unzip linuxamd64\_12c\_database\_2of2.zip

5\. cd ~/Downloads/database  
    ./runInstaller  
(

 

## [\[FATAL\] PRVF-0002 : Could not retrieve local nodename](http://www.krenger.ch/blog/fatal-prvf-0002-could-not-retrieve-local-nodename/ "[FATAL] PRVF-0002 : Could not retrieve local nodename")

http://www.krenger.ch/blog/fatal-prvf-0002-could-not-retrieve-local-nodename/

)  
开始图形界面创建oracle database！

 

http://tutorialforlinux.com/2013/10/06/how-to-install-oracle-12c-database-on-centos-6-linux-64bit-step-by-step-easy-guide/