linux 下安装oracle 12c

一、下载地址

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
二、系统配置准备

1、创建Oracle用户和用户组

groupadd dba
groupadd oinstall
 useradd -g oinstall -G dba oracle
id oracle
2、 创建安装目录.

mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
3、 查看SELinux状态 

 

 /usr/sbin/sestatus      ##如果SELinux status参数为enabled即为开启状
/usr/sbin/getenforce                ##也可以用这个命令检查

    修改配置文件需要重启机器:

    修改/etc/selinux/config 文件

    将SELINUX=enforcing改为SELINUX=disabled

    重启机器即可

4、修改系统内核参数。在修改系统内核参数前,你可以用命令先查看一下当前各类系统参数的值,亦或直接查看配置文件/etc/sysctl.conf。修改ysctl.conf文件。修改完成后保存,然后运行sysctl -p 命令使之生效


5、设置用户限制。在/etc/security/limits.conf中添加如下配置,或者添加到用户的环境变量上。


6、配置环境变量。首先切换到oracle账户 ,编辑修改主目录下 .bash_profile


三、解压安装镜像文件

 unzip linuxamd64_12102_database_2of1.zip
 unzip linuxamd64_12102_database_2of2.zip

参考1:https://jingyan.baidu.com/article/86fae346f132263c49121aac.html

参考2:https://www.cnblogs.com/kerrycode/archive/2013/09/13/3319958.html


猜你喜欢

转载自blog.csdn.net/xuefenxi/article/details/79076773