Oracle12c基于ASM的单实例搭建手册(三)

2015-02-02 23:25:56 · 作者: · 浏览: 30
84 -n 65536

> fi

> umask 022

> fi

> EOF

[root@12cAsm dave]#

?

7 修改内核参数/etc/sysctl.conf

?

在sysctl.conf 中加入以下内容:

?

kernel.shmmni = 4096

net.ipv4.ip_local_port_range = 9000 65500

kernel.panic_on_oops = 30

?

8 安装Clusterware

安装之前要确认/etc/hosts 配置:

[root@12cAsm dave]# cat /etc/hosts

127.0.0.1 localhost 12cAsm

?

不然会报错。

?

已grid 用户运行安装程序: runInstaller

?

\

?

其他都是下一步的操作。 这里不截图了。

?

\

?

?

执行最后会让我们运行一个root.sh 脚本。

\

?

?

?

?

[root@12cAsm /]#/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@12cAsm /]#

?

?

[root@12cAsm /]#/u01/app/grid/12.0.1/root.sh

Performing root user operation.

?

The following environment variables are setas:

ORACLE_OWNER= grid

ORACLE_HOME= /u01/app/grid/12.0.1

?

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.

?

To configure GridInfrastructure for a Stand-Alone Server run the following command as the rootuser:

/u01/app/grid/12.0.1/perl/bin/perl-I/u01/app/grid/12.0.1/perl/lib -I/u01/app/grid/12.0.1/crs/install/u01/app/grid/12.0.1/crs/install/roothas.pl

?

?

To configure GridInfrastructure for a Cluster execute the following command as grid user:

/u01/app/grid/12.0.1/crs/config/config.sh

This command launches the GridInfrastructure Configuration Wizard. The wizard also supports silent operation,and the parameters can be passed through the response file that is available inthe installation media.

?

[root@12cAsm /]#

?

我们这里是单节点的ASM,所以执行如下SQL:

/u01/app/grid/12.0.1/perl/bin/perl-I/u01/app/grid/12.0.1/perl/lib -I/u01/app/grid/12.0.1/crs/install/u01/app/grid/12.0.1/crs/install/roothas.pl

?

?

[root@12cAsm /]#/u01/app/grid/12.0.1/perl/bin/perl -I/u01/app/grid/12.0.1/perl/lib-I/u01/app/grid/12.0.1/crs/install /u01/app/grid/12.0.1/crs/install/roothas.pl

Using configuration parameter file:/u01/app/grid/12.0.1/crs/install/crsconfig_params

LOCAL ADD MODE

Creating OCR keys for user 'grid', privgrp'oinstall'..

Operation successful.

LOCAL ONLY MODE

Successfully accumulated necessary OCRkeys.

Creating OCR keys for user 'root', privgrp'root'..

Operation successful.

CRS-4664: Node 12casm successfully pinned.

2014/11/29 02:16:15 CLSRSC-330: AddingClusterware entries to file 'oracle-ohasd.conf'

?

?

12casm 2014/11/29 02:17:09 /u01/app/grid/12.0.1/cdata/12casm/backup_20141129_021709.olr 0

?

CRS-2791: Starting shutdown of Oracle HighAvailability Services-managed resources on '12casm'

CRS-2673: Attempting to stop 'ora.evmd' on'12casm'

CRS-2677: Stop of 'ora.evmd' on '12casm'succeeded

CRS-2793: Shutdown of Oracle HighAvailability Services-managed resources on '12casm' has completed

CRS-4133: Oracle High Availability Serviceshas been stopped.

CRS-4123: Oracle High Availability Serviceshas been started.

2014/11/29 02:19:52CLSRSC-327