ITPub博客

首页 > 数据库 > Oracle > Oracle 11g RAC + DG安装详解--03

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

原创 Oracle 作者:pennymeng 时间:2020-07-23 18:02:31 0 删除 编辑

三、创建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

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

 

 

节点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@rac1 database]$ cd

[oracle@rac1 ~]$ dbca

All initilization parameters 里面修改db_files 参数



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

请登录后发表评论 登录
全部评论
Oracle 11g OCP, Oracle 11g OCM, MySQL 5.7 OCP, A member of OCMU Oracle User Group, Certificate of Aptech Certified System Master

注册时间:2020-06-03

  • 博文量
    18
  • 访问量
    10754