Linux 静默安装安装单机 Oracle 19C 数据库

您所在的位置:网站首页 oracle19c打补丁 Linux 静默安装安装单机 Oracle 19C 数据库

Linux 静默安装安装单机 Oracle 19C 数据库

2024-03-30 08:58| 来源: 网络整理| 查看: 265

一、配置环境变量

1、主机名配置

hostnamectl set-hostname orcl19C

2、网络配置

nmcli connection show nmcli connection modify ens33 ipv4.addresses 192.168.30.81/24 ipv4.gateway 192.168.30.254 ipv4.method manual autoconnect yes nmcli connection up ens33

3、配置Hosts文件

[root@orcl19c ~]# cat /etc/hosts 192.168.30.81 orcl19C ##OracleEnd## EOF4、关闭防火墙

官方建议关闭数据库主机的防火墙,如果需要开启,请根据官方文档开启需要的端口。

systemctl stop firewalld systemctl disable firewalld systemctl status firewalld

5、关闭 Selinux[root@orcl19c ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config [root@orcl19c ~]# cat /etc/selinux/config

修改完 Selinux 配置文件后,需要重启主机进行生效!

6、配置 yum 源

确保虚拟机已经挂载 ISO 镜像之后,通过 mount 挂载镜像源到本地 /mnt 目录下:

[root@orcl19c ~]# mount /dev/cdrom /mnt [root@orcl19c ~]# df -Th

配置本地 yum 文件,直接执行即可:

mkdir /etc/yum.repos.d/bak -p mv /etc/yum.repos.d/* /etc/yum.repos.d/bak cat -templateName General_Purpose.dbc \ > -responseFile NO_VALUE \ > -gdbName ${ORACLE_SID} \ > -sid ${ORACLE_SID} \ > -sysPassword oracle \ > -systemPassword oracle \ > -redoLogFileSize 1024 \ > -storageType FS \ > -databaseConfigType SINGLE \ > -datafileDestination ${ORADATADIR} \ > -enableArchive true \ > -archiveLogDest ${ARCHIVEDIR} \ > -characterset ${CHARACTERSET} \ > -nationalCharacterSet ${NCHARACTERSET} \ > -emConfiguration NONE \ > -automaticMemoryManagement false \ > -totalMemory ${totalMemory} \ > -databaseType OLTP \ > -createAsContainerDatabase ${ISCDB} [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 password ACTION: 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 password ACTION: 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 52% complete 56% 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/orcl. Database Information: Global Database Name:orcl System Identifier(SID):orcl Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl/orcl.log" for further details.

[oracle@orcl19c:/u01/app/oracle/product/19.3.0/db]$ sas SQL*Plus: Release 19.0.0.0.0 - Production on Mon Jun 20 18:05:45 2022 Version 19.13.0.0.0 Copyright (c) 1982, 2021, Oracle. All rights reserved. Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.13.0.0.0 SQL> show pdbs; CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO SQL>


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3