Oracle12cRAC搭建手册(四)

2015-02-02 23:08:52 · 作者: · 浏览: 103
ME/bin PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib export CLASSPATH THREADS_FLAG=native; export THREADS_FLAG export TEMP=/tmp export TMPDIR=/tmp umask 022

2.6 为安装用户设置资源限制

?

?

2.6.1 修改/etc/security/limits.conf

?

以 root 用户身份,在每个 Oracle RAC 节点上,在 /etc/security/limits.conf 文件中添加如下内容,或者执行执行如下命令:

[root@rac1 ~]# cat >> /etc/security/limits.conf < 
 

2.6.2 修改/etc/pam.d/login

在每个 OracleRAC 节点上,在 /etc/pam.d/login 文件中添加或编辑下面一行内容:

[root@rac1 ~]# cat >> /etc/pam.d/login < 
 

?

2.6.3 shell 的限制

对默认的 shell 启动文件进行以下更改,以便更改所有 Oracle 安装所有者的 ulimit 设置:

[root@rac1 ~]# cat >> /etc/profile < 
 

注:红色部分一起执行

?

2.6.4 修改/etc/sysctl.conf

#vi /etc/sysctl.conf



kernel.shmmax = 4294967295

kernel.shmall = 2097152

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 6815744

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=1048576

fs.aio-max-nr=1048576

使修改的参数生效:

[root@rac1 ~]# sysctl -p

?

?

2.6.5 修改/etc/hosts文件(所有节点)

[root@rac1 ~]# cat/etc/hosts

127.0.0.1 localhost



192.168.56.5 rac1

192.168.57.5 rac1-priv

192.168.56.7 rac1-vip



192.168.56.6 rac2

192.168.57.6 rac2-priv

192.168.56.8 rac2-vip



192.168.56.9 rac-scan


3 安装Grid

?

在节点1,用grid用户运行runInstaller。

?

\

\

\

\

?

\

\

\

\

\

\

\

\

\

\

\

\

\

\

\

\

\

\

\

\

\

?

[root@rac1 /]# /u01/oraInventory/orainstRoot.sh

Changing permissions of /u01/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions forworld.



Changing groupname of /u01/oraInventory tooinstall.

The execution of the script is complete.



[root@rac2 /]#/u01/oraInventory/orainstRoot.sh

Changing permissions of /u01/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions forworld.



Changing groupname of /u01/oraInventory tooinstall.

The execution of the script is complete.

[root@rac2 /]#



--节点1执行root.sh, 过程很长: 17分钟:

[root@rac1 /]# /u01/gridsoft/12.1.0/root.sh

Performing root user operation for Oracle12c



The following environment variables are setas:

ORACLE_OWNER= grid

ORACLE_HOME= /u01/gridsoft/12.1.0



Enter the full pathname of the local bindirectory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...





Creating /etc/oratab file...

Entries will be added to the /etc/oratabfile as needed by

Database Configuration Assistant when adatabase is created

Finished running generic part of rootscript.

Now product-specific root actions will beperformed.

Using configuration parameter file: /u01/gridsoft/12.1.0/crs/install/crsconfig_params

2014/08/07 02:42: