阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

Oracle Linux 4.8安装Oracle 10g RAC环境之DataBase安装

112次阅读
没有评论

共计 5608 个字符,预计需要花费 15 分钟才能阅读完成。

Oracle 10g Cluster 安装地址:

1. 安装 Oracle database 软件

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

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

rac10g01 节点:
[root@rac10g01 ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh
Running Oracle10 root.sh script…
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/oracle/product/10.2.0.1/db_1
Enter the full pathname of the local bin directory: [/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/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.
[root@rac10g01 ~]#

rac10g02 节点:
[root@rac10g02 ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh
Running Oracle10 root.sh script…
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/oracle/product/10.2.0.1/db_1
Enter the full pathname of the local bin directory: [/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/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.
[root@rac10g02 ~]#

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

更多详情见请继续阅读下一页的精彩内容 :http://www.linuxidc.com/Linux/2017-04/142940p2.htm

2. 创建数据库
[Oracle@rac10g01 database]$ dbca

[img]http://s1.51cto.com/wyfs02/M01/8A/1D/wKioL1gn9beQ3nynAADmyEakUOs934.png” alt=”” />

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

3. 检查 cluster 和 database 是否成功
rac10g01 节点:
[oracle@rac10g01 ~]$ crs_stat -t
Name          Type          Target    State    Host
————————————————————
ora.rac10g.db  application    ONLINE    ONLINE    rac10g02
ora….c10g.cs application    ONLINE    ONLINE    rac10g02
ora….0g1.srv application    ONLINE    ONLINE    rac10g01
ora….0g2.srv application    ONLINE    ONLINE    rac10g02
ora….g1.inst application    ONLINE    ONLINE    rac10g01
ora….g2.inst application    ONLINE    ONLINE    rac10g02
ora….SM1.asm application    ONLINE    ONLINE    rac10g01
ora….01.lsnr application    ONLINE    ONLINE    rac10g01
ora….g01.gsd application    ONLINE    ONLINE    rac10g01
ora….g01.ons application    ONLINE    ONLINE    rac10g01
ora….g01.vip application    ONLINE    ONLINE    rac10g01
ora….SM2.asm application    ONLINE    ONLINE    rac10g02
ora….02.lsnr application    ONLINE    ONLINE    rac10g02
ora….g02.gsd application    ONLINE    ONLINE    rac10g02
ora….g02.ons application    ONLINE    ONLINE    rac10g02
ora….g02.vip application    ONLINE    ONLINE    rac10g02
[oracle@rac10g01 ~]$

rac10g02 节点:
[oracle@rac10g02 ~]$ crs_stat -t
Name          Type          Target    State    Host
————————————————————
ora.rac10g.db  application    ONLINE    ONLINE    rac10g02
ora….c10g.cs application    ONLINE    ONLINE    rac10g02
ora….0g1.srv application    ONLINE    ONLINE    rac10g01
ora….0g2.srv application    ONLINE    ONLINE    rac10g02
ora….g1.inst application    ONLINE    ONLINE    rac10g01
ora….g2.inst application    ONLINE    ONLINE    rac10g02
ora….SM1.asm application    ONLINE    ONLINE    rac10g01
ora….01.lsnr application    ONLINE    ONLINE    rac10g01
ora….g01.gsd application    ONLINE    ONLINE    rac10g01
ora….g01.ons application    ONLINE    ONLINE    rac10g01
ora….g01.vip application    ONLINE    ONLINE    rac10g01
ora….SM2.asm application    ONLINE    ONLINE    rac10g02
ora….02.lsnr application    ONLINE    ONLINE    rac10g02
ora….g02.gsd application    ONLINE    ONLINE    rac10g02
ora….g02.ons application    ONLINE    ONLINE    rac10g02
ora….g02.vip application    ONLINE    ONLINE    rac10g02
[oracle@rac10g02 ~]$

4. 登陆数据库
rac10g01 节点:
[oracle@rac10g01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 – Production on Sun Nov 13 21:29:15 2016
Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> select * from dual;
D

X
SQL> select inst_id,name from gv$database;
  INST_ID NAME
———- ———
  2  RAC10G
  1  RAC10G
SQL>

更多 Oracle 相关信息见 Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址 :http://www.linuxidc.com/Linux/2017-04/142940.htm

Oracle 10g Cluster 安装地址:

1. 安装 Oracle database 软件

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

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

rac10g01 节点:
[root@rac10g01 ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh
Running Oracle10 root.sh script…
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/oracle/product/10.2.0.1/db_1
Enter the full pathname of the local bin directory: [/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/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.
[root@rac10g01 ~]#

rac10g02 节点:
[root@rac10g02 ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh
Running Oracle10 root.sh script…
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/oracle/product/10.2.0.1/db_1
Enter the full pathname of the local bin directory: [/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/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.
[root@rac10g02 ~]#

Oracle Linux 4.8 安装 Oracle 10g RAC 环境之 DataBase 安装

更多详情见请继续阅读下一页的精彩内容 :http://www.linuxidc.com/Linux/2017-04/142940p2.htm

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-22发表,共计5608字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中