原 【DB宝7】Oracle 19c asm+db的安装配置
Tags: Oracle原创LinuxDocker安装部署ASMOCPSELinux
七、静默安装grid和db
7.1、静默安装grid
7.1.1、开始安装grid软件
使用grid用户执行:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | [grid@lhr2019ocpasm ~]$ /u01/app/19.3.0/grid/gridSetup.sh -silent -force -noconfig -ignorePrereq \ > oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v19.0.0 \ > INVENTORY_LOCATION=/u01/app/oraInventory \ > oracle.install.option=HA_CONFIG \ > ORACLE_BASE=/u01/app/grid \ > oracle.install.asm.OSDBA=asmdba \ > oracle.install.asm.OSOPER=asmoper \ > oracle.install.asm.OSASM=asmadmin \ > oracle.install.asm.SYSASMPassword=lhr \ > oracle.install.asm.monitorPassword=lhr \ > oracle.install.crs.config.scanType=LOCAL_SCAN \ > oracle.install.crs.config.ClusterConfiguration=STANDALONE \ > oracle.install.crs.config.configureAsExtendedCluster=false \ > oracle.install.crs.config.useIPMI=false \ > oracle.install.asm.storageOption=ASM \ > oracle.install.asm.diskGroup.name=DATA \ > oracle.install.asm.diskGroup.redundancy=EXTERNAL \ > oracle.install.asm.diskGroup.AUSize=4 \ > oracle.install.asm.diskGroup.disksWithFailureGroupNames=ORCL:ASM1,,ORCL:ASM2,,ORCL:ASM3, \ > oracle.install.asm.diskGroup.disks=ORCL:ASM1,ORCL:ASM2,ORCL:ASM3 \ > oracle.install.asm.diskGroup.diskDiscoveryString=ORCL:* \ > oracle.install.crs.rootconfig.executeRootScript=false Launching Oracle Grid Infrastructure Setup Wizard... [WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards. CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. ACTION: Provide a password that conforms to the Oracle recommended standards. [WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards. CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. ACTION: Provide a password that conforms to the Oracle recommended standards. [WARNING] [INS-13014] Target environment does not meet some optional requirements. CAUSE: Some of the optional prerequisites are not met. See logs for details. gridSetupActions2020-06-24_10-35-38AM.log ACTION: Identify the list of failed prerequisite checks from the log: gridSetupActions2020-06-24_10-35-38AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually. The response file for this session can be found at: /u01/app/19.3.0/grid/install/response/grid_2020-06-24_10-35-38AM.rsp You can find the log of this install session at: /tmp/GridSetupActions2020-06-24_10-35-38AM/gridSetupActions2020-06-24_10-35-38AM.log As a root user, execute the following script(s): 1. /u01/app/oraInventory/orainstRoot.sh 2. /u01/app/19.3.0/grid/root.sh Execute /u01/app/19.3.0/grid/root.sh on the following nodes: [lhr2019ocpasm] Successfully Setup Software with warning(s). As install user, execute the following command to complete the configuration. /u01/app/19.3.0/grid/gridSetup.sh -executeConfigTools -responseFile /u01/app/19.3.0/grid/install/response/grid_2020-06-24_10-35-38AM.rsp [-silent] Note: The required passwords need to be included in the response file. Moved the install session logs to: /u01/app/oraInventory/logs/GridSetupActions2020-06-24_10-35-38AM |
根据提示,使用root跑脚本:
1 2 | 1. /u01/app/oraInventory/orainstRoot.sh 2. /u01/app/19.3.0/grid/root.sh |
再使用grid跑脚本:
1 | /u01/app/19.3.0/grid/gridSetup.sh -silent -executeConfigTools -responseFile /u01/app/19.3.0/grid/install/response/grid_2020-06-24_10-35-38AM.rsp |
已测试,若容器重启,oracleasm init还是初始化失败,可以在宿主机安装ASM包,容器就可以oracleasm init初始化成功。
步骤清晰,内容翔实,感谢麦老师分享。