CentoS6.8安装Oracle
来源:互联网 发布:sqlserver工程师培训 编辑:程序博客网 时间:2024/06/08 09:02
·1、查询主机名称hostname
cat /etc/sysconfig/network
2、设置主机表
vi /etc/hosts
3、创建用户和组
groupadd oinstall
useradd -g oinstall oracle
password oracle
4、创建文件夹并且修改 /stage 的权限
mkdir stage
chown -R oracle:oinstall /home/stage
4、在/etc/sysctl.conf加入系统参数
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 1987162112
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
3、检查并运用新的数值
[root@centos6 ~]# sysctl -p
[root@centos6 ~]# sysctl -a
4、在 /etc/security/limits.conf 为 oracle 用户设置上限
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
5、将 Oracle 数据库软件的 zip 文件(linuxamd64_12102_database_1of2.zip, linuxamd64_12102_database_2of2.zip)解压至 /stage 目录。
[root@centos6 ~]# yum install -y zip unzip
[root@centos6 ~]# unzip linuxamd64_12102_database_1of2.zip -d /stage/
[root@centos6 ~]# unzip linuxamd64_12102_database_2of2.zip -d /stage/
export ORACLE_HOME=/home/stage/u01/app/oracle/product/12.1.0/dbhome_1
export ORACLE_HOME_LISTNER=$ORACLE_HOME
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
7、配置系统自动启动数据库
1.修改oratab
#vim /etc/oratab
xx:/opt/oracle/11.2.0:Y(N改为Y)
2.修改dbstart,dbshut
vim /u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart
ORACLE_HOME_LISTNER=$ORACLE_HOME(原来为$1)
vim /u01/app/oracle/product/12.1.0/dbhome_1/bin/dbshut
ORACLE_HOME_LISTNER=$ORACLE_HOME(原来为$1)
- CentoS6.8安装Oracle
- centos6.8 静默安装 oracle 11.2.0.4
- 11->centos6 安装oracle
- Centos6安装oracle
- centos6.5 oracle安装
- Linux centos6.7 安装oracle
- centos6.5安装oracle 11
- centos6安装oracle 10gr2
- CentOs6.5 Oracle静默安装
- Centos6.8下安装Oracle 11g数据库图文详解
- [Oracle] centos6.2图形界面安装oracle数据库
- centos6安装svn1.8
- Centos6.8 安装locate
- centOS6.8安装JDK
- centos6.8安装
- centos6.8安装anjuta
- centOS6.8 安装tomcat7
- centos6.8 安装memcached
- js 去除空格、回车、换行
- Python之re方法
- equals的问题
- 11.15学习心得
- 718. Maximum Length of Repeated Subarray
- CentoS6.8安装Oracle
- Android 气泡碰撞
- js-DOM知识点
- Golang面试解析
- iOS输入框和button圆角问题
- 三、Python的输入输出
- Python编程:从入门到实践的动手试一试答案(第九章)
- 比较不同目录文件夹下同名文件的数量和显示同名文件名
- Hough Transform