暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

在OL 7.5上部署Oracle RAC 18c for Linux x86_64

askTom 2018-09-04
371

问题描述

你好,团队

这两天我通过VirtualBox 5.2.18在OL 7.5 (我的Linux服务器) 上部署了Oracle RAC 18c。在这段时间里,我遇到了以下一些问题,

(1) 安装RPM “oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm” 后,我观察了文件 “orakernel.log” 上的一些内容,

[root@adccrac1 ~]# cat /var/log/oracle-database-preinstall-18c/results/orakernel.log
Adding group oinstall with gid 54321
Adding group dba with gid 54322
Adding group oper with gid 54323
Adding group backupdba with gid 54324
Adding group dgdba with gid 54325
Adding group kmdba with gid 54326
Adding group racdba with gid 54330
Adding user oracle with user id 54321, initial login group oinstall, supplementary groups oinstall,dba,oper,backupdba,dgdba,kmdba,racdba and  home directory /home/oracle
Changing ownership of /home/oracle to oracle:oinstall
Please set password for user - oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)
User creation passed
......
复制


它不会为 “网格” 创建相关的组和用户,例如,
groupadd -g 54327 asmdba
groupadd -g 54328 asmoper
groupadd -g 54329 asmadmin
useradd -m -u 54322 -g oinstall -G asmadmin,asmdba,asmoper,dba,oper,racdba  grid
复制


(2) 当我通过ASMFD配置ASM磁盘时,以及在重新启动服务器旁边,之后直到配置GI (./gridSetup.sh) 并跳至 “创建ASM磁盘组”

[root@adccrac1 ~]# export ORACLE_HOME=/u01/app/18.0.0/grid
[root@adccrac1 ~]# export PATH=$PATH:$ORACLE_HOME/bin
[root@adccrac1 ~]# export ORACLE_BASE=/tmp

[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label CRSDG1 /dev/sdb --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label CRSDG2 /dev/sdc --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label CRSDG3 /dev/sdd --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label MGMT /dev/sde --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label DATA1 /dev/sdf --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label DATA2 /dev/sdg --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label ARCH /dev/sdh --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label FTRA /dev/sdi --init

[root@adccrac1 ~]# init 6

[root@adccrac1 ~]# ls -ld /dev/oracleafd/disks/
drwxrwxr-x 2 grid oinstall 40 Aug 30 09:59 /dev/oracleafd/disks/

[root@adccrac1 ~]# cd /dev/oracleafd/disks/
[root@adccrac1 disks]# ls -lrht
total 0
复制


最好的问候
赵全文

专家解答

从文档中:

https://docs.oracle.com/en/database/oracle/oracle-database/18/cwlin/overview-of-oracle-linux-configuration-with-oracle-rpms.html#GUID-693599D4-BD32-4E6A-9689-FA7D1CD75653

Configuring a server using Oracle Linux and the Oracle Preinstallation RPM consists of the following steps:

Install Oracle Linux.

Register your Linux distribution with Oracle Unbreakable Linux Network (ULN) or download and configure the yum repository for your system using the Oracle Linux yum server for your Oracle Linux release.

Install the Oracle Preinstallation RPM with the RPM for your Oracle Grid Infrastructure and Oracle Database releases, and update your Linux release.

Create role-allocated groups and users with identical names and ID numbers.

Complete network interface configuration for each cluster node candidate.

Complete system configuration for shared storage access as required for each standard or core node cluster candidate.

After these steps are complete, you can proceed to install Oracle Grid Infrastructure and Oracle Database.


因此,用户设置不是由rpm完成的-这对我来说是有意义的,因为 * 我们 * 不知道您希望您的用户名和ID是什么。

我不确定您到底要什么 (2)。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论