1、静默安装Oracle 19c软件

1.1、适用场景

如果无windows环境用于图形安装oracle软件,需要使用静默方式安装数据库,脚本如下:

1.2、静默安装Oracle

$ su - oracle
$ cd $ORACLE_HOME
$ ./runInstaller -ignorePrereq -waitforcompletion -silent \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/u01/app/oraInventory \
ORACLE_HOME=${ORACLE_HOME} \
ORACLE_BASE=${ORACLE_BASE} \
oracle.install.db.InstallEdition=EE \
oracle.install.db.OSDBA_GROUP=dba \
oracle.install.db.OSOPER_GROUP=oper \
oracle.install.db.OSBACKUPDBA_GROUP=backupdba \
oracle.install.db.OSDGDBA_GROUP=dgdba \
oracle.install.db.OSKMDBA_GROUP=kmdba \
oracle.install.db.OSRACDBA_GROUP=racdba \
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \
DECLINE_SECURITY_UPDATES=true \
oracle.install.db.rootconfig.executeRootScript=false# ----------------------------------------------
# 安装日志
Launching Oracle Database Setup Wizard...[WARNING] [INS-32047] The location (/u01/app/oraInventory) specified for the central inventory is not empty.ACTION: It is recommended to provide an empty location for the inventory.
[WARNING] [INS-13014] Target environment does not meet some optional requirements.CAUSE: Some of the optional prerequisites are not met. See logs for details. installActions2022-04-20_03-49-57PM.logACTION: Identify the list of failed prerequisite checks from the log: installActions2022-04-20_03-49-57PM.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/oracle/product/19.3.0/db_1/install/response/db_2022-04-20_03-49-57PM.rspYou can find the log of this install session at:/tmp/InstallActions2022-04-20_03-49-57PM/installActions2022-04-20_03-49-57PM.logAs a root user, execute the following script(s):1. /u01/app/oraInventory/orainstRoot.sh2. /u01/app/oracle/product/19.3.0/db_1/root.shExecute /u01/app/oraInventory/orainstRoot.sh on the following nodes:
[server100]
Execute /u01/app/oracle/product/19.3.0/db_1/root.sh on the following nodes:
[server100]Successfully Setup Software with warning(s).
Moved the install session logs to:/u01/app/oraInventory/logs/InstallActions2022-04-20_03-49-57PM[oracle@server100 db_1]$ exit
logout# 使用root用户执行脚本
[root@server100 db_1]# sh /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@server100 db_1]# sh /u01/app/oracle/product/19.3.0/db_1/root.sh
Check /u01/app/oracle/product/19.3.0/db_1/install/root_server100_2022-04-20_15-52-56-229585574.log for the output of root script

2、静默创建数据库

2.1、适用场景

如果无windows环境用于图形创建oracle数据库,需要使用静默方式创建数据库,脚本如下:

2.2、创建容器数据库

$ dbca -silent -createDatabase \
-templateName General_Purpose.dbc \
-responseFile NO_VALUE \
-createAsContainerDatabase true \
-numberOfPDBs 1 \
-pdbName ${PDB_NAME} \
-pdbAdminPassword BSOFT \
-gdbname ${ORACLE_SID} -sid  ${ORACLE_SID} \
-characterSet ZHS16GBK \
-sysPassword BSOFT \
-systemPassword BSOFT \
-databaseType OLTP \
-totalMemory 8192 \
-storageType FS \
-datafileDestination '/data' \
-recoveryAreaDestination '/data/flash_recovery_area' \
-redoLogFileSize 50 \
-emConfiguration NONE \
-ignorePreReqs

2.3、创建非容器数据库

$ dbca -silent -createDatabase \
-templateName General_Purpose.dbc \
-responseFile NO_VALUE \
-gdbname ${ORACLE_SID} -sid  ${ORACLE_SID} \
-characterSet ZHS16GBK \
-sysPassword BSOFT \
-systemPassword BSOFT \
-databaseType OLTP \
-totalMemory 8192 \
-storageType FS \
-datafileDestination '/data' \
-recoveryAreaDestination '/data/flash_recovery_area' \
-redoLogFileSize 50 \
-emConfiguration NONE \
-ignorePreReqs# ----------------------------------------------
# 执行日志
[WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.CAUSE:
a. 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].
b.The password entered is a keyword that Oracle does not recommend to be used as passwordACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
[WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.CAUSE:
a. 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].
b.The password entered is a keyword that Oracle does not recommend to be used as passwordACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
Prepare for db operation
10% complete
Copying database files
40% complete
Creating and starting Oracle instance
42% complete
46% complete
50% complete
54% complete
60% complete
Completing Database Creation
66% complete
69% complete
70% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:/u01/app/oracle/cfgtoollogs/dbca/demo.
Database Information:
Global Database Name:demo
System Identifier(SID):demo
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/demo/demo.log" for further details.

静默安装Oracle19c软件与数据库相关推荐

  1. Linux静默安装oracle19c(史上最详细的教学)

    Linux静默安装oracle19c(史上最详细的教学) 1.获取主机名和ip地址 输入命令hostname和ifconfig分别获取主机名和ip地址.ip地址较为敏感,大家自行获取. [root@w ...

  2. 利用批处理全自动(静默)安装常用软件

    利用批处理安装常用软件,我们需要对以下几个知识点进行掌握: 一.常用应用软件的封装类型:    1.installshield型:    installshield是一款商业级别的安装程序封装工具,许 ...

  3. LINUX静默安装ORACLE19C详细步骤

    一.编辑hosts文件添加ip与主机名对应关系 vi /etc/hosts 二.关闭防火墙及SELINUX systemctl stop firewalld.service systemctl dis ...

  4. 为什么oracle要静默安装程序,静默安装 Oracle数据库软件

    静默安装数据库软件之前,需要将oracle安装环境像正常安装一样配置好, 如果你没有静默安装的响应配置文档,可以使用OUI录制响应文件,记录安装过程:如果有响应配置文档,直接修改安装参数,进行安装or ...

  5. 静默安装Oracle12.2数据库

    实验环境: 操作系统:Redhat 6.4 64位 数据库:Oracle 12c R2   一.安装前准备 1.  创建用户和组 [root@wjq~]# groupadd -g1000 oinsta ...

  6. DBCA静默安装Oracle数据库

    DBCA静默安装Oracle数据库 DBCA静默安装Oracle软件 准备db_install.rsp文件 静默安装软件 DBCA静默安装数据库 准备工作 准备dbca.rsp文件 修改dbca模板文 ...

  7. 达梦数据库之静默安装

    一 前言 我们在学习任何一个应用时,了解它的最初步骤通常是学会如何进行安装配置,后序才去关心如何使用,学习达梦数据库也是如此,而达梦数据库的安装提供了多种方式,接下来会一一介绍每种安装方式,达梦数据库 ...

  8. 使用 VMware 16 RHEL7.7 虚拟机静默安装 Oracle 19c RAC

    作者 | JiekeXu 来源 | JiekeXu DBA之路(ID: JiekeXu_IT) 大家好,我是 JiekeXu,很高兴又和大家见面了,今天和大家一起来看看 使用 VMware 16  R ...

  9. 静默安装oracle

    2019独角兽企业重金招聘Python工程师标准>>> 数据库安装规范 第一步:安装依赖环境并检查依赖包,上传数据库安装文件 第二步:关闭selinux,修改主机名,创建安装数据库的 ...

  10. CentOS7静默安装oracle11g

    操作系统: [root@docker ~]# uname -m x86_64 [root@docker ~]# cat /etc/redhat-release CentOS Linux release ...

最新文章

  1. mysql种编译码写在哪_深入理解Java虚拟机(程序编译与代码优化)
  2. 云计算简史_云计算简史
  3. java---数字排序
  4. mysql中的复制(配置主从数据库)
  5. php采集分页数据,如何通过php+wordpress实现分页获取数据
  6. 文件循环读取_一个案例轻松认识Python文件处理提取文件中的数字
  7. erp沙盘采购总监的心得_沙盘部 | 会计协会新宠
  8. Qt4_发送和接收UDP数据报
  9. 【代码源 Div1#103】子串的最大差 Codeforces - 817D,力扣2104,1900分
  10. 直线段的矢栅转换算法(DDA算法、中心画线算法、Bresenham算法)
  11. ktv收银管理系统服务器,KTV包厢收银管理系统增强版
  12. 如何设置代理服务器?
  13. html实现图片裁剪,【前端】图片裁剪(二)Jcrop实现裁剪
  14. SCSI硬盘接口是什么
  15. 性能测试监控TP50、TP99、TP999含义
  16. linux屏幕伽马值设置,设置计算机显示屏的亮度和对比度伽玛值
  17. Java教程:Java使用POI将图片Base64编码写入到Excel表格当中
  18. 一维信号小波阈值去噪
  19. 云系列--- Openstack Placement组件 | 参数说明 | 详细讲解
  20. 【心情分享】联系博主

热门文章

  1. 3000字神经网络论文
  2. steam怎么设置邮箱令牌_【教程】电脑端steam动态令牌设置教程
  3. Excel内容自动翻译
  4. 软件测试实验二条件覆盖和条件组合覆盖
  5. 计算机如何连接网络扫描仪,windows系统下怎么共享扫描仪?
  6. H264/H265编码视频流媒体播放器EasyWasmPlayer.js控制台循环报错Unsupported排查
  7. 云南省计算机文字录入考试题,计算机文字录入处理员高级试题A
  8. Cry with DX11
  9. 基于 VisualStudio2019 的 ASP.NET 后台环境搭建
  10. java项目环境怎么写_开发环境怎么写