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

Oracle Database 21c RPM Installation

原创 liketoochao 2024-04-28
322

1.环境描述

step 1.Download the relevant RPM from download page here.

  • OL7 : oracle-database-ee-21c-1.0-1.ol7.x86_64.rpm
  • OL8 : oracle-database-ee-21c-1.0-1.ol8.x86_64.rpm

step 2.Set the correct hostname in the “/etc/hostname” file.

2.Oracle Installation

Download the relevant RPM from download page here.

  • OL7 : oracle-database-ee-21c-1.0-1.ol7.x86_64.rpm
  • OL8 : oracle-database-ee-21c-1.0-1.ol8.x86_64.rpm

step 1.安装数据库 RPM 之前手动运行它

# RHEL7
curl -o oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm
yum -y localinstall oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm
rm oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm

# RHEL8
curl -o oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
yum -y localinstall oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
rm oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm

step 2.安装数据库软件

# OL7
# yum install -y oracle-database-preinstall-21c
yum -y localinstall oracle-database-ee-21c-1.0-1.ol7.x86_64.rpm

# OL8
# dnf install -y oracle-database-preinstall-21c
dnf -y localinstall oracle-database-ee-21c-1.0-1.ol8.x86_64.rpm

The ORACLE_HOME for the software installation is “/opt/oracle/product/21c/dbhome_1”.

3.创建数据库

除了软件安装之外,RPM 还创建了一个脚本,允许您创建一个名为“ORCLCDB”的演示数据库,以及一个名为“ORCLPDB1”的可插拔数据库 (PDB)。

# /etc/init.d/oracledb_ORCLCDB-21c configure
Configuring Oracle Database ORCLCDB.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
 /opt/oracle/cfgtoollogs/dbca/ORCLCDB.
Database Information:
Global Database Name:ORCLCDB
System Identifier(SID):ORCLCDB
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.

Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user.
#

您当然可以使用数据库配置助手 (DBCA) 以正常方式创建数据库。 您不必使用此脚本。

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

文章被以下合辑收录

评论