Oracle Database Express Edition (XE)配置与部署

获取下载安装包
https://www.oracle.com/cn/database/technologies/xe-downloads.html

https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html

在这里插入图片描述在这里插入图片描述


安装.rpm安装包
cd /usr/local/src
wget https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm
wget https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm
yum -y install bind-utils glibc-devel ksh nfs-utils policycoreutils-python psmisc smartmontools sysstat unzip xorg-x11-utils xorg-x11-xauth

rpm -ivh oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm 

rpm -ivh oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm

配置初始化数据库
/etc/init.d/oracle-xe-21c configure

设置Oracle用户环境变量
su - oracle
 
vim .bashrc
export ORACLE_HOME=/opt/oracle/product/21c/dbhomeXE
export ORACLE_SID=XE
export CHARSET=AL32UTF8
export PATH=$PATH:$ORACLE_HOME/bin
 
source .bashrc

连接数据库
[oracle@localhost ~]$ sqlplus / as sysdba

SQL*Plus: Release 21.0.0.0.0 - Production on Thu Oct 5 21:19:33 2023
Version 21.3.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.


Connected to:
Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0

查询数据库信息
SQL> col name for a30
SQL> select con_id,name,open_mode from v$pdbs;

    CON_ID NAME                           OPEN_MODE
---------- ------------------------------ ----------
         2 PDB$SEED                       READ ONLY
         3 XEPDB1                         READ WRITE

DBeaver连接OracleXE
# 关闭防火墙
service firewalld stop

在这里插入图片描述

在这里插入图片描述

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值