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

本文详细介绍了Oracle 11g Release 2的Real Application Cluster (RAC)和Data Guard的安装过程,包括创建ASM磁盘组、根目录配置和数据库实例的初始化。重点在于指导如何在grid用户权限下使用asmcmd进行磁盘组管理,并展示了关键操作步骤。
摘要由CSDN通过智能技术生成

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

发布时间:2020-08-13 15:31:21

来源:ITPUB博客

阅读:103

作者:pennymeng

三、创建asm

磁盘组

这一步也可以放到安装完oracle

软件后再做。

任一节点,grid

用户下执行:

[grid@rac1 ~]$ asmcmd

ASMCMD> mkdg ''

ASMCMD> mkdg ''

ASMCMD> mkdg ''

ASMCMD> mkdg ''

ASMCMD> mkdg ''

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

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

eb95ab47b8037c87173ed0fa275ab4c5.png

a271585f6ea2e8866462bf678a8890bf.png

b1397f8c5b5846916f979603b2e1fdc4.png

3da84e1983a882c4f6d87c1d6ef1e484.png

6aa2354b3b8a50b496710f8440c4b678.png

1d69b402b23bebc9c5db157b2873f238.png

5f842903a6794ba51db4b9413f57084f.png

3a264d3ab0be1b41e5c52c6d9b7e0793.png

节点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.

517416391924cb8b5cf9aacabe71ecc2.png

五、建库

[oracle@rac1 database]$ cd

[oracle@rac1 ~]$ dbca

a9164525fa315a135e82136b7bd1bd8d.png

b7e0388fb69db68d988be621a5b52e9c.png

c1e588a1d4583e6ce1744b8e2c315be3.png

1182ae89dcb785851b3a5558bf17b7d5.png

e3a35ec8eb8cc2cfe8728f86e8a591b9.png

faae290f954b219b3269737475dfedec.png

0aae6568e488f9bf4f5b23c79a6aae4c.png

e1c700584d5387047f7795debd8423a4.png

0a4732ec27945e50c9c711d3d47100a4.png

317401f32702d3d97ec4c50e03465c27.png

f9c25fa8466e6a976b3d5f8ec904e0f0.png

dab6a7347a354ca9b814074d3c2cd646.png

cf434b0ecf79ca268cc60aea48735341.png

c1a86f5c369215df3452371f691d36b4.png

99929e29595e753d89f8e4d5455ae18f.png

All initilization parameters

里面修改db_files

参数

5ceeea69f383e1b0184f1f0dc6725576.png

c400fceb480cd0e10e804c9e4eb70295.png

eb41a218dc87db1abe8f005f15e30ea6.png

fb329c17a8bd42fd1d08da6e1d93fb1c.png

6a9bd30d1abd6c35d6d87a7e24a53869.png

064d8685e92f92515b7adf0826828d37.png

1a3f6dd741ddfb15621c415f401af981.png

9e3d541ce37527699cbeac386fa91bb1.png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值