安装Oracle11.2.0.2 RAC for Linux X86-64(三)

Solaris上安装过11.2RACLinux上还是第一次。描述一下安装配置过程。

这一篇描述数据库的安装。

安装Oracle11.2.0.2 RAC for Linux X86-64(一):http://yangtingkun.itpub.net/post/468/517812

安装Oracle11.2.0.2 RAC for Linux X86-64(二):http://yangtingkun.itpub.net/post/468/517851

 

 

启动图形工具,开始DB软件的安装:

[root@rac3 ~]# xhost +
access control disabled, clients can connect from any host
[root@rac3 ~]# su - oracle
[oracle@rac3 ~]$ cd /data/software/database
[oracle@rac3 database]$ ./runInstaller

第一个界面是安全更新,可以忽略掉;

第二个是metalink帐号信息;

安装选项:选择只安装软件;

网格选择:默认情况下,安装类型配置为Oracle Real Application Clusters database installation,这时节点2应该出现,且被选中,如果没有不是CLUSTER没有启动,就是CLUSTER的安装存在问题。

配置SSH Connectivity:输入oracle密码,点击setup

确认两个节点都选中后,点击NEXT

语言选择:英文和简体中文;

数据库版本:企业版;

安装位置:Oracle Base输入/data/oracle,软件位置输入/data/oracle/product/11.2.0

操作系统组:输入dba

系统安装检查:执行和安装CLUSTER类似的步骤,在两个节点上运行脚本,使得Oracle可以修改可更新项:

[root@rac3 ~]# /tmp/CVU_11.2.0.2.0_oracle/runfixup.sh
/usr/bin/id
Response file being used is :/tmp/CVU_11.2.0.2.0_oracle/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.2.0_oracle/fixup.enable
Log file location: /tmp/CVU_11.2.0.2.0_oracle/orarun.log
uid=1100(oracle) gid=1000(oinstall) groups=1000(oinstall),1200(dba)

忽略掉SWAP空间问题,开始安装。

安装结束之前,在两个节点上运行脚本:

[root@rac3 data]# /data/oracle/product/11.2.0/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/oracle/product/11.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

oracle用户下添加环境变量:

umask 022
ORACLE_BASE=/data/oracle
export ORACLE_BASE
ORACLE_HOME=/data/oracle/product/11.2.0
export ORACLE_HOME
ORACLE_SID=rac1
export ORACLE_SID
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
export PATH

利用dbca创建数据库:

CLUSTER选择:选择Oracle Real Application Cluster database

操作类型:选择创建数据库;

模板选择:选择定制方式;

策略类型:选择Admin-ManagedGlobal Database Name输入rac.us.oracle.com,选择两个节点;

OEM选择:是否配置OEM

密码:输入SYS/SYSTEM用户密码;

存储位置:选择ASM,使用OMF,输入磁盘组DATA

闪回和归档:设置是否配置恢复区和归档;

组件选择:选择安装数据库的组件;

初始化参数调整:设置内存、BLOCK_SIZE和字符集;

空间设置:设置合适的数据文件和日志文件的大小;

开始数据库安装。

数据库安装完毕后,登录sqlplus,检查数据库:

[root@rac3 data]# su - oracle
[oracle@rac3 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Sat Mar 26 02:26:00 2011

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> set pages 100 lines 120
SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production

SQL> select name from v$database;

NAME
---------
RAC

SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
rac1

SQL> select instance_number, instance_name from gv$instance;

INSTANCE_NUMBER INSTANCE_NAME
--------------- ----------------
              1 rac1
              2 rac2

至此数据库安装完成。

 

 

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

转载于:http://blog.itpub.net/4227/viewspace-695443/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值