ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle12c安装

Oracle12c安装

原创 Linux操作系统 作者:spaking 时间:2013-07-02 20:07:03 0 删除 编辑
上周Oracle终于发布了12c (Release 12.1),马上下载在虚拟机上尝试安装。下面是安装步骤:
1.软件版本
数据库软件:Oracle release 12.1
操作系统:Oracle linux 5.6 64bit

2.安装步骤

修改系统参数

[root@oracle12c dev]# vi /etc/sysctl.conf

 

kernel.shmall = 4294967296

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 2075004928

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

 

系统参数生成

[root@oracle12c dev]# /sbin/sysctl -p

net.ipv4.ip_forward = 0

net.ipv4.conf.default.rp_filter = 2

net.ipv4.conf.default.accept_source_route = 0

kernel.sysrq = 0

kernel.core_uses_pid = 1

net.ipv4.tcp_syncookies = 1

kernel.msgmnb = 65536

kernel.msgmax = 65536

kernel.shmmax = 68719476736

kernel.shmall = 4294967296

kernel.shmall = 4294967296

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

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

 

硬件相关的限制设置

[root@oracle12c ~]# vi /etc/security/limits.conf

添加:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536


安装rpm

查看相关的包,缺少的通过yum install package_name安装

binutils-2.17.50.0.6-14.el5.x86_64

compat-libstdc++-33.x86_64

compat-libstdc++-33.i386

gcc-c++.x86_64

gcc-4.1.2-50.el5.x86_64

glibc.i686  

glibc.x86_64

glibc-devel.i386

glibc-devel.x86_64

ksh.x86_64 

libgcc.i386 

libgcc.x86_64

libstdc++.i386

libstdc++.x86_64 

libstdc++-devel.x86_64

libstdc++-devel.i386 

libaio.i386

libaio.x86_64

libaio-devel.i386

libaio-devel.x86_64

libXext.i386

libXext.x86_64 

libXtst.i386     

libXtst.x86_64   

libX11.i386 

libX11.x86_64

libXau.i386       

libXau.x86_64

libXi.i386 

libXi.x86_64

make.x86_64

sysstat.x86_64

unixODBC.x86_64 

unixODBC-devel.x86_64


建立用户组和用户

[root@oracle12c dev]#  groupadd -g 1000 oinstall

[root@oracle12c dev]# groupadd -g 1200 dba

[root@oracle12c dev]#  useradd -u 1100 -g oinstall -G dba oracle

[root@oracle12c dev]#  passwd oracle

Changing password for user oracle.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.


建立目录

[root@oracle12c dev]# mkdir -p /u01/app/

[root@oracle12c dev]# chown -R oracle:oinstall /u01/app/

[root@oracle12c dev]# chmod -R 775 /u01/app/

 

设置oracle用户环境变量

[root@oracle12c dev]# su - oracle

[oracle@oracle12c ~]$ vi .bash_profile

# Oracle Settings

TMP=/tmp; export TMP

TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/u01/app; export ORACLE_BASE

DB_HOME=$ORACLE_BASE/product/12.1/db_1; export DB_HOME

ORACLE_HOME=$DB_HOME; export ORACLE_HOME

ORACLE_SID=jessica; export ORACLE_SID

ORACLE_TERM=xterm; export ORACLE_TERM

BASE_PATH=/usr/sbin:$PATH; export BASE_PATH

PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH


安装Oracle软件

解压缩完安装介质后,有database目录

[root@oracle12c ~]# mkdir /u01/oraInventory

[root@oracle12c ~]# chown -R oracle:oinstall /u01/oraInventory

[root@oracle12c u01]# chown -R oracle:oinstall database

[root@oracle12c u01]# ll

total 8

drwxrwxr-x 2 oracle oinstall 4096 Jun 29 23:20 app

drwxr-xr-x 7 oracle oinstall 4096 Jun 10 20:14 database

 

[oracle@oracle12c ~]$  export DISPLAY=192.168.1.55:0

[oracle@oracle12c ~]$ cd /u01/database

[oracle@oracle12c database]$ ls

install  response  rpm  runInstaller  sshsetup  stage  welcome.html

[oracle@oracle12c database]$ ./runInstaller

Starting Oracle Universal Installer...

 

Checking Temp space: must be greater than 500 MB.   Actual 57901 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 10001 MB    Passed

Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-06-29_11-28-18PM. Please wait ...

 

之后就会跳出窗口进行Oracle12c的安装,在安装过程中可以看到允许创建PDB(pluggable  database),这个是12c中的新特性。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25525563/viewspace-765346/,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2013-05-30

  • 博文量
    6
  • 访问量
    15902