oracle 23c 发布推荐的操作系统是oracle linux 8.7,手头有学习opengauss时的openeuler 20.03 sp3,尝试看安装是否顺利。
确认操作系统版本
[omm@eu1 ~]$ cat /etc/os-release
name="openeuler"
version="20.03 (lts-sp3)"
id="openeuler"
version_id="20.03"
pretty_name="openeuler 20.03 (lts-sp3)"
ansi_color="0;31"
下载安装文件,这次可以不用注册
wget https://download.oracle.com/otn-pub/otn_software/db-free/oracle-database-free-23c-1.0-1.el8.x86_64.rpm
wget https://yum.oracle.com/repo/oraclelinux/ol8/developer/x86_64/getpackage/oracle-database-preinstall-23c-1.0-0.5.el8.x86_64.rpm
安装相关软件,以下是opengauss不需要的
[root@eu1 ~]# dnf -y install bind-utils ksh libnsl nfs-utils policycoreutils-python-utils psmisc
repository os is listed more than once in the configuration
last metadata expiration check: 1:27:29 ago on mon 17 apr 2023 07:27:27 am cst.
dependencies resolved.
==============================================================================================================================================================
package architecture version repository size
==============================================================================================================================================================
installing:
bind-utils x86_64 32:9.11.21-9.oe1 update 325 k
ksh x86_64 1:2020.0.0-5.oe1 everything 784 k
libnsl x86_64 2.28-79.oe1 update 52 k
nfs-utils x86_64 1:2.5.1-4.oe1 update 318 k
policycoreutils-python-utils noarch 3.1-7.oe1 os 25 k
psmisc x86_64 23.3-5.oe1 os 148 k
installing dependencies:
bind x86_64 32:9.11.21-9.oe1 update 2.0 m
bind-libs x86_64 32:9.11.21-9.oe1 update 77 k
bind-libs-lite x86_64 32:9.11.21-9.oe1 update 1.0 m
checkpolicy x86_64 3.1-1.oe1 os 285 k
ding-libs x86_64 0.6.1-42.oe1 os 93 k
gssproxy x86_64 0.8.3-1.oe1 os 90 k
keyutils x86_64 1.6.3-1.oe1 os 55 k
krb5 x86_64 1.18.2-5.oe1 update 81 k
lmdb x86_64 0.9.24-1.oe1 os 67 k
nfs-utils-help x86_64 1:2.5.1-4.oe1 update 97 k
python3-ipy noarch 1.00-1.oe1 os 39 k
python3-audit x86_64 1:3.0-3.oe1 os 72 k
python3-bind noarch 32:9.11.21-9.oe1 update 61 k
python3-libsemanage x86_64 3.1-3.oe1 os 73 k
python3-ply noarch 3.11-1.oe1 os 90 k
python3-policycoreutils noarch 3.1-7.oe1 os 1.7 m
python3-setools x86_64 4.3.0-4.oe1 os 572 k
quota x86_64 1:4.05-1.oe1 os 225 k
rpcbind x86_64 1.2.5-5.oe1 os 47 k
downgrading:
audit x86_64 1:3.0-3.oe1 os 176 k
audit-libs x86_64 1:3.0-3.oe1 os 94 k
glibc x86_64 2.28-79.oe1 update 3.2 m
glibc-common x86_64 2.28-79.oe1 update 26 m
glibc-devel x86_64 2.28-79.oe1 update 2.8 m
policycoreutils x86_64 3.1-7.oe1 os 533 k
transaction summary
==============================================================================================================================================================
install 25 packages
downgrade 6 packages
total size: 41 m
total download size: 37 m
downloading packages:
(1/13): glibc-2.28-79.oe1.x86_64.rpm 135 kb/s | 3.2 mb 00:23
(2/13): ksh-2020.0.0-5.oe1.x86_64.rpm 128 kb/s | 784 kb 00:06
(3/13): glibc-devel-2.28-79.oe1.x86_64.rpm 75 kb/s | 2.8 mb 00:38
(4/13): bind-libs-9.11.21-9.oe1.x86_64.rpm 114 kb/s | 77 kb 00:00
(5/13): bind-9.11.21-9.oe1.x86_64.rpm 167 kb/s | 2.0 mb 00:12
(6/13): bind-utils-9.11.21-9.oe1.x86_64.rpm 120 kb/s | 325 kb 00:02
(7/13): krb5-1.18.2-5.oe1.x86_64.rpm 232 kb/s | 81 kb 00:00
(8/13): libnsl-2.28-79.oe1.x86_64.rpm 169 kb/s | 52 kb 00:00
(9/13): nfs-utils-2.5.1-4.oe1.x86_64.rpm 228 kb/s | 318 kb 00:01
(10/13): nfs-utils-help-2.5.1-4.oe1.x86_64.rpm 170 kb/s | 97 kb 00:00
(11/13): python3-bind-9.11.21-9.oe1.noarch.rpm 94 kb/s | 61 kb 00:00
(12/13): bind-libs-lite-9.11.21-9.oe1.x86_64.rpm 99 kb/s | 1.0 mb 00:10
(13/13): glibc-common-2.28-79.oe1.x86_64.rpm 58 kb/s | 26 mb 07:44
--------------------------------------------------------------------------------------------------------------------------------------------------------------
total 82 kb/s | 37 mb 07:44
running transaction check
transaction check succeeded.
running transaction test
transaction test succeeded.
running transaction
preparing : 1/1
running scriptlet: glibc-common-2.28-79.oe1.x86_64 1/1
downgrading : glibc-common-2.28-79.oe1.x86_64 1/37
running scriptlet: glibc-2.28-79.oe1.x86_64 2/37
downgrading : glibc-2.28-79.oe1.x86_64 2/37
running scriptlet: glibc-2.28-79.oe1.x86_64 2/37
installing : lmdb-0.9.24-1.oe1.x86_64 3/37
running scriptlet: lmdb-0.9.24-1.oe1.x86_64 3/37
downgrading : audit-libs-1:3.0-3.oe1.x86_64 4/37
installing : keyutils-1.6.3-1.oe1.x86_64 5/37
running scriptlet: rpcbind-1.2.5-5.oe1.x86_64 6/37
installing : rpcbind-1.2.5-5.oe1.x86_64 6/37
running scriptlet: rpcbind-1.2.5-5.oe1.x86_64 6/37
created symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service → /usr/lib/systemd/system/rpcbind.service.
created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket → /usr/lib/systemd/system/rpcbind.socket.
installing : quota-1:4.05-1.oe1.x86_64 7/37
running scriptlet: quota-1:4.05-1.oe1.x86_64 7/37
running scriptlet: audit-1:3.0-3.oe1.x86_64 8/37
downgrading : audit-1:3.0-3.oe1.x86_64 8/37
running scriptlet: audit-1:3.0-3.oe1.x86_64 8/37
installing : python3-audit-1:3.0-3.oe1.x86_64 9/37
downgrading : policycoreutils-3.1-7.oe1.x86_64 10/37
running scriptlet: policycoreutils-3.1-7.oe1.x86_64 10/37
running scriptlet: checkpolicy-3.1-1.oe1.x86_64 11/37
installing : checkpolicy-3.1-1.oe1.x86_64 11/37
running scriptlet: checkpolicy-3.1-1.oe1.x86_64 11/37
installing : ding-libs-0.6.1-42.oe1.x86_64 12/37
installing : python3-libsemanage-3.1-3.oe1.x86_64 13/37
installing : python3-setools-4.3.0-4.oe1.x86_64 14/37
installing : krb5-1.18.2-5.oe1.x86_64 15/37
running scriptlet: krb5-1.18.2-5.oe1.x86_64 15/37
installing : gssproxy-0.8.3-1.oe1.x86_64 16/37
running scriptlet: gssproxy-0.8.3-1.oe1.x86_64 16/37
installing : nfs-utils-help-1:2.5.1-4.oe1.x86_64 17/37
installing : python3-ply-3.11-1.oe1.noarch 18/37
installing : python3-ipy-1.00-1.oe1.noarch 19/37
installing : python3-policycoreutils-3.1-7.oe1.noarch 20/37
installing : policycoreutils-python-utils-3.1-7.oe1.noarch 21/37
installing : bind-libs-32:9.11.21-9.oe1.x86_64 22/37
running scriptlet: bind-libs-32:9.11.21-9.oe1.x86_64 22/37
installing : bind-libs-lite-32:9.11.21-9.oe1.x86_64 23/37
running scriptlet: bind-libs-lite-32:9.11.21-9.oe1.x86_64 23/37
installing : python3-bind-32:9.11.21-9.oe1.noarch 24/37
running scriptlet: bind-32:9.11.21-9.oe1.x86_64 25/37
installing : bind-32:9.11.21-9.oe1.x86_64 25/37
running scriptlet: bind-32:9.11.21-9.oe1.x86_64 25/37
installing : bind-utils-32:9.11.21-9.oe1.x86_64 26/37
running scriptlet: nfs-utils-1:2.5.1-4.oe1.x86_64 27/37
installing : nfs-utils-1:2.5.1-4.oe1.x86_64 27/37
running scriptlet: nfs-utils-1:2.5.1-4.oe1.x86_64 27/37
running scriptlet: glibc-devel-2.28-79.oe1.x86_64 28/37
downgrading : glibc-devel-2.28-79.oe1.x86_64 28/37
running scriptlet: glibc-devel-2.28-79.oe1.x86_64 28/37
installing : psmisc-23.3-5.oe1.x86_64 29/37
installing : ksh-1:2020.0.0-5.oe1.x86_64 30/37
running scriptlet: ksh-1:2020.0.0-5.oe1.x86_64 30/37
installing : libnsl-2.28-79.oe1.x86_64 31/37
running scriptlet: audit-1:3.0-4.oe1.x86_64 32/37
cleanup : audit-1:3.0-4.oe1.x86_64 32/37
running scriptlet: audit-1:3.0-4.oe1.x86_64 32/37
running scriptlet: policycoreutils-3.1-8.oe1.x86_64 33/37
cleanup : policycoreutils-3.1-8.oe1.x86_64 33/37
running scriptlet: policycoreutils-3.1-8.oe1.x86_64 33/37
running scriptlet: glibc-devel-2.28-84.oe1.x86_64 34/37
cleanup : glibc-devel-2.28-84.oe1.x86_64 34/37
cleanup : audit-libs-1:3.0-4.oe1.x86_64 35/37
cleanup : glibc-2.28-84.oe1.x86_64 36/37
cleanup : glibc-common-2.28-84.oe1.x86_64 37/37
running scriptlet: glibc-common-2.28-84.oe1.x86_64 37/37
running scriptlet: glibc-common-2.28-79.oe1.x86_64 37/37
running scriptlet: glibc-common-2.28-84.oe1.x86_64 37/37
running scriptlet: glibc-common-2.28-79.oe1.x86_64 37/37
verifying : audit-1:3.0-3.oe1.x86_64 1/37
verifying : audit-1:3.0-4.oe1.x86_64 2/37
verifying : audit-libs-1:3.0-3.oe1.x86_64 3/37
verifying : audit-libs-1:3.0-4.oe1.x86_64 4/37
verifying : policycoreutils-3.1-7.oe1.x86_64 5/37
verifying : policycoreutils-3.1-8.oe1.x86_64 6/37
verifying : glibc-2.28-79.oe1.x86_64 7/37
verifying : glibc-2.28-84.oe1.x86_64 8/37
verifying : glibc-common-2.28-79.oe1.x86_64 9/37
verifying : glibc-common-2.28-84.oe1.x86_64 10/37
verifying : glibc-devel-2.28-79.oe1.x86_64 11/37
verifying : glibc-devel-2.28-84.oe1.x86_64 12/37
verifying : checkpolicy-3.1-1.oe1.x86_64 13/37
verifying : ding-libs-0.6.1-42.oe1.x86_64 14/37
verifying : gssproxy-0.8.3-1.oe1.x86_64 15/37
verifying : keyutils-1.6.3-1.oe1.x86_64 16/37
verifying : lmdb-0.9.24-1.oe1.x86_64 17/37
verifying : policycoreutils-python-utils-3.1-7.oe1.noarch 18/37
verifying : psmisc-23.3-5.oe1.x86_64 19/37
verifying : python3-ipy-1.00-1.oe1.noarch 20/37
verifying : python3-audit-1:3.0-3.oe1.x86_64 21/37
verifying : python3-libsemanage-3.1-3.oe1.x86_64 22/37
verifying : python3-ply-3.11-1.oe1.noarch 23/37
verifying : python3-policycoreutils-3.1-7.oe1.noarch 24/37
verifying : python3-setools-4.3.0-4.oe1.x86_64 25/37
verifying : quota-1:4.05-1.oe1.x86_64 26/37
verifying : rpcbind-1.2.5-5.oe1.x86_64 27/37
verifying : ksh-1:2020.0.0-5.oe1.x86_64 28/37
verifying : bind-32:9.11.21-9.oe1.x86_64 29/37
verifying : bind-libs-32:9.11.21-9.oe1.x86_64 30/37
verifying : bind-libs-lite-32:9.11.21-9.oe1.x86_64 31/37
verifying : bind-utils-32:9.11.21-9.oe1.x86_64 32/37
verifying : krb5-1.18.2-5.oe1.x86_64 33/37
verifying : libnsl-2.28-79.oe1.x86_64 34/37
verifying : nfs-utils-1:2.5.1-4.oe1.x86_64 35/37
verifying : nfs-utils-help-1:2.5.1-4.oe1.x86_64 36/37
verifying : python3-bind-32:9.11.21-9.oe1.noarch 37/37
downgraded:
audit-1:3.0-3.oe1.x86_64 audit-libs-1:3.0-3.oe1.x86_64 glibc-2.28-79.oe1.x86_64 glibc-common-2.28-79.oe1.x86_64 glibc-devel-2.28-79.oe1.x86_64
policycoreutils-3.1-7.oe1.x86_64
installed:
bind-32:9.11.21-9.oe1.x86_64 bind-libs-32:9.11.21-9.oe1.x86_64 bind-libs-lite-32:9.11.21-9.oe1.x86_64 bind-utils-32:9.11.21-9.oe1.x86_64
checkpolicy-3.1-1.oe1.x86_64 ding-libs-0.6.1-42.oe1.x86_64 gssproxy-0.8.3-1.oe1.x86_64 keyutils-1.6.3-1.oe1.x86_64
krb5-1.18.2-5.oe1.x86_64 ksh-1:2020.0.0-5.oe1.x86_64 libnsl-2.28-79.oe1.x86_64 lmdb-0.9.24-1.oe1.x86_64
nfs-utils-1:2.5.1-4.oe1.x86_64 nfs-utils-help-1:2.5.1-4.oe1.x86_64 policycoreutils-python-utils-3.1-7.oe1.noarch psmisc-23.3-5.oe1.x86_64
python3-ipy-1.00-1.oe1.noarch python3-audit-1:3.0-3.oe1.x86_64 python3-bind-32:9.11.21-9.oe1.noarch python3-libsemanage-3.1-3.oe1.x86_64
python3-ply-3.11-1.oe1.noarch python3-policycoreutils-3.1-7.oe1.noarch python3-setools-4.3.0-4.oe1.x86_64 quota-1:4.05-1.oe1.x86_64
rpcbind-1.2.5-5.oe1.x86_64
complete!
[root@eu1 ~]#
再次尝试
[root@eu1 ~]# rpm -ivh oracle-database-preinstall-23c-1.0-0.5.el8.x86_64.rpm
warning: oracle-database-preinstall-23c-1.0-0.5.el8.x86_64.rpm: header v3 rsa/sha256 signature, key id ad986da3: nokey
error: failed dependencies:
/etc/redhat-release is needed by oracle-database-preinstall-23c-1.0-0.5.el8.x86_64
compat-openssl10 is needed by oracle-database-preinstall-23c-1.0-0.5.el8.x86_64
smartmontools is needed by oracle-database-preinstall-23c-1.0-0.5.el8.x86_64
sysstat is needed by oracle-database-preinstall-23c-1.0-0.5.el8.x86_64
xorg-x11-utils is needed by oracle-database-preinstall-23c-1.0-0.5.el8.x86_64
xorg-x11-xauth is needed by oracle-database-preinstall-23c-1.0-0.5.el8.x86_64
再次添加包
[root@eu1 ~]# dnf -y install sysstat xorg-x11-utils xorg-x11-xauth smartmontools
repository os is listed more than once in the configuration
last metadata expiration check: 1:47:34 ago on mon 17 apr 2023 07:27:27 am cst.
dependencies resolved.
==============================================================================================================================================================
package architecture version repository size
==============================================================================================================================================================
installing:
smartmontools x86_64 1:7.1-1.oe1 os 461 k
sysstat x86_64 12.2.1-1.oe1 os 402 k
xorg-x11-utils x86_64 7.5-32.oe1 os 100 k
xorg-x11-xauth x86_64 1:1.1-1.oe1 os 27 k
installing dependencies:
libxv x86_64 1.0.11-11.oe1 os 17 k
libxxf86dga x86_64 1.1.4-16.oe1 os 18 k
libdmx x86_64 1.1.4-6.oe1 os 15 k
lm_sensors x86_64 3.6.0-4.oe1 os 141 k
xorg-x11-utils-help noarch 7.5-32.oe1 os 25 k
installing weak dependencies:
lm_sensors-help x86_64 3.6.0-4.oe1 os 30 k
transaction summary
==============================================================================================================================================================
install 10 packages
total size: 1.2 m
installed size: 4.4 m
downloading packages:
running transaction check
transaction check succeeded.
running transaction test
transaction test succeeded.
running transaction
preparing : 1/1
installing : xorg-x11-utils-help-7.5-32.oe1.noarch 1/10
installing : lm_sensors-help-3.6.0-4.oe1.x86_64 2/10
installing : lm_sensors-3.6.0-4.oe1.x86_64 3/10
running scriptlet: lm_sensors-3.6.0-4.oe1.x86_64 3/10
created symlink /etc/systemd/system/multi-user.target.wants/lm_sensors.service → /usr/lib/systemd/system/lm_sensors.service.
installing : libdmx-1.1.4-6.oe1.x86_64 4/10
installing : libxxf86dga-1.1.4-16.oe1.x86_64 5/10
installing : libxv-1.0.11-11.oe1.x86_64 6/10
running scriptlet: xorg-x11-utils-7.5-32.oe1.x86_64 7/10
installing : xorg-x11-utils-7.5-32.oe1.x86_64 7/10
running scriptlet: xorg-x11-utils-7.5-32.oe1.x86_64 7/10
running scriptlet: sysstat-12.2.1-1.oe1.x86_64 8/10
installing : sysstat-12.2.1-1.oe1.x86_64 8/10
running scriptlet: sysstat-12.2.1-1.oe1.x86_64 8/10
created symlink /etc/systemd/system/multi-user.target.wants/sysstat.service → /usr/lib/systemd/system/sysstat.service.
created symlink /etc/systemd/system/sysstat.service.wants/sysstat-collect.timer → /usr/lib/systemd/system/sysstat-collect.timer.
created symlink /etc/systemd/system/sysstat.service.wants/sysstat-summary.timer → /usr/lib/systemd/system/sysstat-summary.timer.
installing : xorg-x11-xauth-1:1.1-1.oe1.x86_64 9/10
installing : smartmontools-1:7.1-1.oe1.x86_64 10/10
running scriptlet: smartmontools-1:7.1-1.oe1.x86_64 10/10
created symlink /etc/systemd/system/multi-user.target.wants/smartd.service → /usr/lib/systemd/system/smartd.service.
verifying : libxv-1.0.11-11.oe1.x86_64 1/10
verifying : libxxf86dga-1.1.4-16.oe1.x86_64 2/10
verifying : libdmx-1.1.4-6.oe1.x86_64 3/10
verifying : lm_sensors-3.6.0-4.oe1.x86_64 4/10
verifying : lm_sensors-help-3.6.0-4.oe1.x86_64 5/10
verifying : smartmontools-1:7.1-1.oe1.x86_64 6/10
verifying : sysstat-12.2.1-1.oe1.x86_64 7/10
verifying : xorg-x11-utils-7.5-32.oe1.x86_64 8/10
verifying : xorg-x11-utils-help-7.5-32.oe1.noarch 9/10
verifying : xorg-x11-xauth-1:1.1-1.oe1.x86_64 10/10
installed:
libxv-1.0.11-11.oe1.x86_64 libxxf86dga-1.1.4-16.oe1.x86_64 libdmx-1.1.4-6.oe1.x86_64 lm_sensors-3.6.0-4.oe1.x86_64
lm_sensors-help-3.6.0-4.oe1.x86_64 smartmontools-1:7.1-1.oe1.x86_64 sysstat-12.2.1-1.oe1.x86_64 xorg-x11-utils-7.5-32.oe1.x86_64
xorg-x11-utils-help-7.5-32.oe1.noarch xorg-x11-xauth-1:1.1-1.oe1.x86_64
complete!
再来
[root@eu1 ~]# rpm -ivh oracle-database-preinstall-23c-1.0-0.5.el8.x86_64.rpm
warning: oracle-database-preinstall-23c-1.0-0.5.el8.x86_64.rpm: header v3 rsa/sha256 signature, key id ad986da3: nokey
error: failed dependencies:
/etc/redhat-release is needed by oracle-database-preinstall-23c-1.0-0.5.el8.x86_64
compat-openssl10 is needed by oracle-database-preinstall-23c-1.0-0.5.el8.x86_64
openeuler 没有这两个包,忽略再试
[root@eu1 ~]# rpm -ivh oracle-database-preinstall-23c-1.0-0.5.el8.x86_64.rpm --nodeps
warning: oracle-database-preinstall-23c-1.0-0.5.el8.x86_64.rpm: header v3 rsa/sha256 signature, key id ad986da3: nokey
verifying... ################################# [100%]
preparing... ################################# [100%]
updating / installing...
1:oracle-database-preinstall-23c-1.################################# [100%]
安装oracle 23c
[root@eu1 ~]# rpm -ivh oracle-database-free-23c-1.0-1.el8.x86_64.rpm
warning: oracle-database-free-23c-1.0-1.el8.x86_64.rpm: header v3 rsa/sha256 signature, key id ad986da3: nokey
verifying... ################################# [100%]
preparing... ################################# [100%]
installing package oracle-database-free-23c-1.0-1.x86_64 needs 1806mb on the / filesystem
删除文件后存储空间
[root@eu1 ~]# df -h
filesystem size used avail use% mounted on
devtmpfs 2.7g 0 2.7g 0% /dev
tmpfs 2.7g 0 2.7g 0% /dev/shm
tmpfs 2.7g 8.6m 2.7g 1% /run
tmpfs 2.7g 0 2.7g 0% /sys/fs/cgroup
/dev/mapper/openeuler-root 54g 43g 8.8g 83% /
tmpfs 2.7g 0 2.7g 0% /tmp
/dev/sda1 974m 180m 727m 20% /boot
tmpfs 545m 0 545m 0% /run/user/0
开始安装
[root@eu1 ~]# rpm -ivh oracle-database-free-23c-1.0-1.el8.x86_64.rpm
warning: oracle-database-free-23c-1.0-1.el8.x86_64.rpm: header v3 rsa/sha256 signature, key id ad986da3: nokey
verifying... ################################# [100%]
preparing... ################################# [100%]
updating / installing...
1:oracle-database-free-23c-1.0-1 ################################# [100%]
[info] executing post installation scripts...
[info] oracle home installed successfully and ready to be configured.
to configure oracle database free, optionally modify the parameters in '/etc/sysconfig/oracle-free-23c.conf' and then run '/etc/init.d/oracle-free-23c configure' as root.
执行配置数据库,
[root@eu1 ~]# /etc/init.d/oracle-free-23c configure
the location '/opt/oracle' specified for database files has insufficient space.
database creation needs at least '4.5gb' disk space.
specify a different database file destination that has enough space in the configuration file '/etc/sysconfig/oracle-free-23c.conf'.
空间还不够,再删除文件
[root@eu1 opt]# df -h
filesystem size used avail use% mounted on
devtmpfs 2.7g 0 2.7g 0% /dev
tmpfs 2.7g 0 2.7g 0% /dev/shm
tmpfs 2.7g 8.6m 2.7g 1% /run
tmpfs 2.7g 0 2.7g 0% /sys/fs/cgroup
/dev/mapper/openeuler-root 54g 42g 9.2g 83% /
tmpfs 2.7g 0 2.7g 0% /tmp
/dev/sda1 974m 180m 727m 20% /boot
tmpfs 545m 0 545m 0% /run/user/0
初始化数据库
[root@eu1 opt]# /etc/init.d/oracle-free-23c configure
specify a password to be used for database accounts. oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. note that the same password will be used for sys, system and pdbadmin accounts:
the password you entered contains invalid characters. enter password:
confirm the password:
configuring oracle listener.
listener configuration succeeded.
configuring oracle database free.
enter sys user password:
*************
enter system user password:
*********
enter pdbadmin user password:
**********
prepare for db operation
7% complete
copying database files
29% complete
creating and starting oracle instance
30% complete
33% complete
36% complete
39% complete
43% complete
completing database creation
47% complete
49% complete
50% complete
creating pluggable databases
54% complete
71% complete
executing post configuration actions
93% complete
running custom scripts
100% complete
database creation complete. for details check the logfiles at:
/opt/oracle/cfgtoollogs/dbca/free.
database information:
global database name:free
system identifier(sid):free
look at the log file "/opt/oracle/cfgtoollogs/dbca/free/free.log" for further details.
connect to oracle database using one of the connect strings:
pluggable database: eu1/freepdb1
multitenant container database: eu1
为oracle 用户设定环境变量
vim ~/.bash_profile
export oracle_sid=free
export oracle_base=/opt/oracle
export oracle_home=$oracle_base/product/23c/dbhomefree
export path=$path:$oracle_home/bin
export ld_library_path=$ld_library_path:$oracle_home/lib
export classpath=$oracle_home/jre:oracle_home/jlib:$oracle_home/rdbms/jlib
export nls_lang="american_america.al32utf8"
source ~/.bash_profile
连接数据库
[oracle@eu1 ~]$ sqlplus /nolog
sql*plus: release 23.0.0.0.0 - developer-release on mon apr 17 10:24:37 2023
version 23.2.0.0.0
米乐app官网下载 copyright (c) 1982, 2023, oracle. all rights reserved.
sql> select status from v$instance;
sp2-0640: not connected
sql> conn / as sysdba
connected.
sql> show pdbs;
con_id con_name open mode restricted
---------- ------------------------------ ---------- ----------
2 pdb$seed read only no
3 freepdb1 read write no
sql> show parameter max_columns;
name type value
------------------------------------ ----------- ------------------------------
max_columns string standard
sql> alter system set max_columns=extended scope=spfile;
system altered.
sql> shutdown immediate
database closed.
database dismounted.
oracle instance shut down.
sql> startup
oracle instance started.
total system global area 1608409784 bytes
fixed size 10044088 bytes
variable size 419430400 bytes
database buffers 1174405120 bytes
redo buffers 4530176 bytes
database mounted.
database opened.
sql> show parameter max_columns;
name type value
------------------------------------ ----------- ------------------------------
max_columns string extended
除空间不足外,在openeuler上安装还是比较顺利的。
最后修改时间:2023-04-17 17:06:06
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【米乐app官网下载的版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。