Chinaunix首页 | 论坛 | 博客
  • 博客访问: 233519
  • 博文数量: 57
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 674
  • 用 户 组: 普通用户
  • 注册时间: 2013-11-30 22:48
个人简介

2014,换个角度,希望接下来的事情值得期待。

文章分类

全部博文(57)

文章存档

2015年(1)

2014年(55)

2013年(1)

我的朋友

分类: Oracle

2014-01-12 10:26:19

三十一、检查

 

第一个节点:

[grid@rac1 g]$ crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

 

下面这个命令过时了但是根据文档表示正常。

[grid@rac1 g]$ crs_stat -t -v

Name           Type           R/RA   F/FT   Target    State     Host       

----------------------------------------------------------------------

ora.DATA.dg    ora....up.type 0/5    0/     ONLINE    ONLINE    rac1       

ora....ER.lsnr ora....er.type 0/5    0/     ONLINE    ONLINE    rac1       

ora....N1.lsnr ora....er.type 0/5    0/0    ONLINE    ONLINE    rac1       

ora.asm        ora.asm.type   0/5    0/     ONLINE    ONLINE    rac1       

ora.eons       ora.eons.type  0/3    0/     ONLINE    ONLINE    rac1       

ora.gsd        ora.gsd.type   0/5    0/     OFFLINE   OFFLINE              

ora....network ora....rk.type 0/5    0/     ONLINE    ONLINE    rac1        

ora.oc4j       ora.oc4j.type  0/5    0/0    OFFLINE   OFFLINE              

ora.ons        ora.ons.type   0/3    0/     ONLINE    ONLINE    rac1       

ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    rac1       

ora....C1.lsnr application    0/5    0/0    ONLINE    ONLINE    rac1       

ora.rac1.gsd   application    0/5    0/0    OFFLINE   OFFLINE              

ora.rac1.ons   application    0/3    0/0    ONLINE    ONLINE    rac1       

ora.rac1.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac1       

ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    rac2       

ora....C2.lsnr application    0/5    0/0    ONLINE    ONLINE    rac2       

ora.rac2.gsd   application    0/5    0/0    OFFLINE   OFFLINE              

ora.rac2.ons   application    0/3    0/0    ONLINE    ONLINE    rac2       

ora.rac2.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac2       

ora.scan1.vip  ora....ip.type 0/0    0/0    ONLINE    ONLINE    rac1 


三十二、安装数据库软件 

 

[grid@rac1 ~]$ su - root

 

[root@rac1 download]# cd /opt/download/setup

 

[root@rac1 setup]# unzip linux_11gR2_database_1of2.zip

[root@rac1 setup]# unzip linux_11gR2_database_2of2.zip

 

[root@rac1 setup]# cd /u01

[root@rac1 u01]# mv /opt/download/setup/database .

[root@rac1 u01]# ll

total 24

drwxr-xr-x   8 root   root     4096 Aug 18  2009 database

drwxr-xr-x   8 grid   oinstall 4096 Aug 18  2009 g

drwxr-xr-x. 64 root   oinstall 4096 Jul 12 10:38 grid

drwxr-xr-x.  5 grid   oinstall 4096 Jul 12 10:53 gridbase

drwxr-xr-x.  3 oracle oinstall 4096 Jul 12 08:40 oracle

drwxrwx---   6 grid   oinstall 4096 Jul 12 10:57 oraInventory

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

 

[root@rac1 u01]# su - oracle

[oracle@rac1 ~]$ cd /u01

[oracle@rac1 u01]$ id

uid=501(oracle) gid=500(oinstall) groups=500(oinstall),501(dba),502(oper),504(asmdba)

[oracle@rac1 u01]$ env | grep ORA

ORACLE_SID=racdb1

ORACLE_BASE=/u01/oracle

ORACLE_HOME=/u01/oracle/db

[oracle@rac1 u01]$ env | grep DIS

DISPLAY=192.168.1.101:0.0

[oracle@rac1 u01]$ cd database

[oracle@rac1 database]$

[oracle@rac1 database]$ ./runInstaller 




注意看内容,先在两个节点以root用户执行,注意执行时直接回车,表示不进行覆盖,然后回来再选择OK






[root@rac1 ~]# /u01/oracle/db/root.sh

Running Oracle 11g root.sh script...

 

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /u01/oracle/db

 

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

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]:

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]:

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]:

 

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.sh script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

[root@rac1 ~]#

 

 

第二个节点:

[root@rac2 ~]# /u01/oracle/db/root.sh

Running Oracle 11g root.sh script...

 

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /u01/oracle/db

 

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

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]:

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]:

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]:

 

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.sh script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

 

执行完成,回到上面的界面点OK



在第一个节点RAC1:

[oracle@rac1 database]$ dbca

阅读(1117) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~