1、 解压 zip
unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
2、 安装 rpm 包、 进入 Disk1 目录
rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm
错误: This system does not meet the minimum requirements for swap space
使用 free -m 查看空间 进入 / 目录创建 swapfile
sudo dd if=/dev/zero of=swapfile bs=2024 count=2048576
转换文件
sudo /sbin/mkswap swapfile
激活
sudo /sbin/swapon swapfile
添加 swap 文件前效果
添加 swap 文件后效果
重新安装 oracleXE
3、 安装 oracle XE 后配置
/etc/init.d/oracle-xe 文件中是有包含 Oracle 环境变量的一些参数的,我们只需要从中复制中
其中的 ORALCE_HOME,ORALCE_BASE,PATH,ORALCE_SID 到 /etc/profile 中
使环境变量生效
4、 执行 oracle XE 配置
/etc/init.d/oracle-xe configure
记住设置 system 账户密码 123456 ! 错误:
查看日志
解决: 配置 itheima 主机域名解析 127.0.0.1 修改 hosts 文件 添加 127.0.0.1 itheima
安装成功
连接 oracle