Oracel12cR1installforOracleLinux6.6(二)

2015-01-22 21:05:06 · 作者: · 浏览: 14
.conf文件

在文件“/etc/security/limits.d/90-nproc.conf”添加下面的内容

?

$ vi /etc/security/limits.d/90-nproc.conf
# Change this
*          soft    nproc    1024
 
# To this
* - nproc 16384

?

修改"/etc/selinux/config"文件

SELINUX=permissive #或是enforcing

?

执行下面的命令使生效或重启服务器

# setenforce Permissive

?

关闭防火墙

# service iptables stop
# chkconfig iptables off

?

创建软件安装目录

mkdir -p /u01/app/oracle/product/12.1.0.2/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01

?

设置环境变量

su - oracle

vi .bash_profile

# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_TERM=xterm
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/db_1
export ORACLE_GRID=$ORACLE_BASE/product/12.1.0.2/grid
export ORACLE_SID=ocbi
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_GRID/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
export ALERT=$ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace
stty erase ^H
umask 022
if [ $USER = "oracle" ]; then
 if [ $SHELL = "/bin/ksh" ]; then
       ulimit -p 16384
       ulimit -n 65536
    else
       ulimit -u 16384 -n 65536
            fi
           fi

?

?

创建ASM分区(grid use)

fdisk -l

[root@racdb ~]# fdisk -l

?

Disk /dev/sda: 107.4 GB, 107374182400 bytes

255 heads, 63 sectors/track, 13054cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x0008977b

?

Device Boot Start End Blocks Id System

/dev/sda1 * 1 26 204800 83 Linux

Partition 1 does not end on cylinderboundary.

/dev/sda2 26 11971 95947776 83 Linux

/dev/sda3 11971 13055 8704000 82 Linux swap / Solaris

?

Disk /dev/sdb: 53.7 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x00000000

?

Disk /dev/sdc: 21.5 GB, 21474836480 bytes

64 heads, 32 sectors/track, 20480 cylinders

Units = cylinders of 2048 * 512 = 1048576bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x00000000

?

[root@racdb ~]#

fdisk /dev/sdb

n p 1 w

?

[root@racdb soft]# rpm -qa oracleasm*

oracleasm-support-2.1.8-1.el6.x86_64

?

rpm -vih asmlib

\

?

[root@racdb ~]# /etc/init.d/oracleasmconfigure

Configuring the Oracle ASM library driver.

?

This will configure the on-boot propertiesof the Oracle ASM library

driver. The following questions will determine whether the driver is

loaded on boot and what permissions it willhave. The current values

will be shown in brackets ('[]'). Hitting without typing an

answer will keep that current value. Ctrl-C will abort.

?

Default user to own the driver interface[]: oracle

Default group to own the driver interface[]: asmadmin

Start Oracle ASM library driver on boot(y/n) [n]: y

Scan for Oracle ASM disks on boot (y/n)[y]: y

Writing Oracle ASM library driverconfiguration: done

Initializing the Oracle ASMLib driver:[ OK ]

Scanning the system for Oracle ASMLibdisks: [ OK ]

?

[root@racdb ~]# /etc/init.d/oracleasmcr