温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Oracle 11g RAC + DG安装详解--03

发布时间:2020-08-13 15:31:21 来源:ITPUB博客 阅读:222 作者:pennymeng 栏目:关系型数据库

三、创建asm 磁盘组

这一步也可以放到安装完oracle 软件后再做。

任一节点,grid 用户下执行:

[grid@rac1 ~]$ asmcmd

ASMCMD> mkdg '<dg name="FRA" redundancy="external"> <dsk string="/dev/asmdisk_fra" /> </dg>'

ASMCMD> mkdg '<dg name="SASDATA" redundancy="external"> <dsk string="/dev/asmdisk_sasdata1" /> <dsk string="/dev/asmdisk_sasdata2" /> <dsk string="/dev/asmdisk_sasdata3" /> </dg>'

ASMCMD> mkdg '<dg name="SSDDATA" redundancy="external"> <dsk string="/dev/asmdisk_ssddata1" /> <dsk string="/dev/asmdisk_ssddata2" /> <dsk string="/dev/asmdisk_ssddata3" /> </dg>'

ASMCMD> mkdg '<dg name="ARCH" redundancy="external"> <dsk string="/dev/asmdisk_arch" /> </dg>'

ASMCMD> mkdg '<dg name="SSDDATA" redundancy="external"> <dsk string="/dev/asmdisk_ssddata1" /> <dsk string="/dev/asmdisk_ssddata2" /> <dsk string="/dev/asmdisk_ssddata3" /> </dg>'

ASMCMD> lsdg

State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name

MOUNTED  EXTERN  N         512   4096  1048576    512000   511946                0          511946              0             N  ARCH/

MOUNTED  EXTERN  N         512   4096  1048576    512000   511946                0          511946              0             N  FRA/

MOUNTED  EXTERN  N         512   4096  1048576   6291456  6291348                0         6291348              0             N  SASDATA/

MOUNTED  EXTERN  N         512   4096  1048576   6291456  6291348                0         6291348              0             N  SSDDATA/

MOUNTED  NORMAL  N         512   4096  1048576     30720    29794            10240            9777              0             Y  VOT/

ASMCMD>

四、安装oracle 软件

 [oracle@rac1 ~]$ cd /home/software/database

[oracle@rac1 database]$ ls

doc  install  response  rpm  runInstaller  sshsetup  stage  welcome.html

[oracle@rac1 database]$ ./runInstaller

接下来又是漫长的等待,但这一步是安装过程中唯一不会出问题的。

  Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03 Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

节点1

[root@TRAC1 lib]# /home/app/oracle/product/11.2.0/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /home/app/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.

节点2

[root@TRAC2 lib]# /home/app/oracle/product/11.2.0/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /home/app/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 11g RAC + DG安装详解--03

五、建库

[oracle@rac1 database]$ cd

[oracle@rac1 ~]$ dbca

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

All initilization parameters 里面修改db_files 参数

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

Oracle 11g RAC + DG安装详解--03

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI