jony413

多媒体信息发布、排队叫号、医院分诊、电子班牌

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

六、安装oracle database
(一)安装数据库软件
只需在一个节点上安装database,图形化界面,以oracle用户登陆,注意先检查一下环境变量。
[oracle@zhh1 ~]$ source .bash_profile
[oracle@zhh1 ~]# cd /usr/oracle/soft/database
[oracle@zhh1 database]#./ runInstaller
1、欢迎页面:单击 Next
2、选择安装类型:
选择 Enterprise Edition
3、指定 Home 详细内容:
名称:OraDb10g_home1 
路径:/usr/oracle/product/10.2.0/db_1
4、指定硬件集群安装模式:
选择 Cluster Installation 
单击 Select All
5、特定于产品的必要条件检查:
忽略有关物理内存要求的警告。
6、选择配置选项:
只安装数据库软件。 
7、摘要
单击 install
8、执行配置脚本:
在两个节点上以root执行root.sh脚本
[root@zhh1 soft]# sh /usr/oracle/product/10.2.0/db_1/root.sh
[root@zhh2 soft]# sh /usr/oracle/product/10.2.0/db_1/root.sh
9OKexit
 
(二)安装补丁,升级到10.2.0.5
因为我们只安装了clusterwaredatabase软件,没有创建数据库,因此打补丁升级就简单了很多。
必须先升级clusterware才能升级database
1)升级clusterware
只需在一个节点上执行
[oracle@zhh1 ~]$ source .bash_profile
[oracle@zhh1 ~]$ cd /usr/oracle/soft/Disk1/
[oracle@zhh1 Disk1]#./ runInstaller
1、欢迎页面:单击 Next
2、指定 Home 详细内容:
注意name选项的下拉框有两个选项:OraCrs10g_homeOraDb10g_home,选择OraCrs10g_home
名称:OraCrs10g_home 
路径:/usr/oracle/product/10.2.0/crs_1
3、指定硬件集群安装模式:
OUI 自动选中的cluster的安装方式,并选中了所有可用的节点,next
4、特定于产品的必要条件检查:
忽略有关物理内存要求的警告。
5、摘要
无异常,单击install
6、执行结束安装脚本
在每个节点上以root用户按照下面顺序执行:
[root@zhh1 ~]# /usr/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
Stopping resources.
Successfully stopped CRS resources 
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@zhh1 ~]# /usr/oracle/product/10.2.0/crs_1/install/root102.sh
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /usr/oracle/product/10.2.0/crs_1
Relinking some shared libraries.
Relinking of patched files is complete.
WARNING: directory '/usr/oracle/product/10.2.0' is not owned by root
WARNING: directory '/usr/oracle/product' is not owned by root
WARNING: directory '/usr/oracle' is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
Startup will be queued to init within 30 seconds.
Starting up the CRS daemons.
Waiting for the patched CRS daemons to start.
  This may take a while on some systems.
.
10205 patch successfully applied.
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 1 values from OCR.
Successfully deleted 1 keys from OCR.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: zhh1 zhh1-priv zhh1
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
clscfg -upgrade completed successfully
Creating '/usr/oracle/product/10.2.0/crs_1/install/paramfile.crs' with data used for CRS configuration
Setting CRS configuration values in /usr/oracle/product/10.2.0/crs_1/install/paramfile.crs
[root@zhh2 ~]# /usr/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
[root@zhh2 ~]# /usr/oracle/product/10.2.0/crs_1/install/root102.sh
 
2)升级database
只需在一个节点上执行
 [oracle@zhh1 Disk1]#./ runInstaller
1、欢迎页面:单击 Next
2、指定 Home 详细内容:
名称:OraDb10g_home1 
路径:/usr/oracle/product/10.2.0/db_1
3、填写oracle support 邮件和密码
直接忽略
4、指定硬件集群安装模式:
OUI 自动选中的cluster的安装方式,并选中了所有可用的节点,next
5、特定于产品的必要条件检查:
忽略有关物理内存要求的警告。
6、摘要
无异常,单击install
7、直接结束脚本
在两个节点 ,以root用户执行:
[root@zhh1 ~]#/usr/oracle/product/10.2.0/db_1/root.sh
[root@zhh2 ~]#/usr/oracle/product/10.2.0/db_1/root.sh
8OKexit

posted on 2013-01-20 10:47  jony413  阅读(109)  评论(0)    收藏  举报