操作系统:oracle linux 8.5
数据库版本:oracle 19c;
内存: 16G,swap分区 16G;
分区大小: / 分区 120G , /opt 分区 240G;
oracle linux安装oracle 非常简单,基本就是一键安装;
1、安装预安装环境:
dnf install oracle-database-preinstall-19c
2、下载 oracle 19c 的rpm包,当前安装包是 oracle-database-ee-19c-1.0-1.x86_64.rpm
下载链接:
https://www.oracle.com/database/technologies/oracle19c-linux-downloads.html
3、安装:
dnf install oracle-database-ee-19c-1.0-1.x86_64.rpm
4、配置:
/etc/init.d/oracledb_ORCLCDB-19c configure
需要一段时间……5、
5、设置oracle用户环境变量:
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
export ORACLE_SID=ORCLCDB
export PATH=$ORACLE_HOME/bin:$PATH
6、修改用户密码:
sqlplus / as sysdba
alter user system identified by 123456;
alter user scott identified by 123456;
7、systemd启动脚本:
服务脚本:
/etc/systemd/system/ora19c.service
[Unit]
Description=Oracle19c
After=network.target
[Service]
LimitMEMLOCK=infinity
LimitNOFILE=65535
Type=oneshot
RemainAfterExit=yes
User=oracle
Environment="ORACLE_HOME=/opt/oracle/product/19c/dbhome_1"
ExecStart=/opt/oracle/product/19c/dbhome_1/bin/dbstart $ORACLE_HOME
ExecStop=/opt/oracle/product/19c/dbhome_1/bin/dbshut $ORACLE_HOME
[Install]
WantedBy=multi-user.target
设置开机启动
systemctl enable ora19c.service