1. 事前准备
- 使用虚拟机安装一个 Oracle Linux 8.9 操作系统
- 下载 oracle-database-free-23ai-1.0-1.el8.x86_64.rpm
- 下载 oracle-database-preinstall-23ai-1.0-2.el8.x86_64.rpm
2.开始安装
2.1 安装 database-preinstall
dnf -y install oracle-database-preinstall-23ai-1.0-2.el8.x86_64.rpm
2.2 安装 oracle-database-free
dnf install -y oracle-database-free-23ai-1.0-1.el8.x86_64.rpm
3. 创建和配置Oracle Database
/etc/init.d/oracle-free-23ai configure
4 设置oracle用户环境变量
切换到oracle用户
$ vi .bash_profile
# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi# User specific environment and startup programs
export ORACLE_SID=FREE
export ORAENV_ASK=NO
. /opt/oracle/product/23ai/dbhomeFree/bin/oraenv
export ORACLE_BASE=/opt/oracle/
export ORACLE_HOME=/opt/oracle/product/23ai/dbhomeFree
export PATH=$ORACLE_HOME/bin:$PATH