NAME
--------------------------------------------------------------------------------
/opt/oracle/oradata/FREE/temp01.dbf
/opt/oracle/oradata/FREE/pdbseed/temp01.dbf
/opt/oracle/oradata/FREE/FREEPDB1/temp01.dbf
SQL> select member from v$logfile;
MEMBER
--------------------------------------------------------------------------------
/opt/oracle/oradata/FREE/redo03.log
/opt/oracle/oradata/FREE/redo02.log
/opt/oracle/oradata/FREE/redo01.log
SQL> select group#,sequence#,thread#,status from v$log;
GROUP# SEQUENCE# THREAD# STATUS
---------- ---------- ---------- ----------------
1 1 1 CURRENT
2 0 1 UNUSED
3 0 1 UNUSED
SQL> select group#,sequence#,thread#,status,bytes/1024/1024 from v$log;
6.2 看状态
[oracle@newserver ~]$ systemctl status oracle-free-23c.service
● oracle-free-23c.service - SYSV: This script is responsible for taking care of configuring the RPM Oracle FREE Database and its associated services.
Loaded: loaded (/etc/rc.d/init.d/oracle-free-23c; generated)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
[oracle@newserver ~]$
6.3 开启随操作系统启动而启动
[oracle@newserver ~]$ systemctl is-enabled oracle-free-23c.service
oracle-free-23c.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install is-enabled oracle-free-23c
disabled
[oracle@newserver ~]$ exit
logout
[root@newserver ~]# systemctl enable oracle-free-23c.service
oracle-free-23c.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable oracle-free-23c
[root@newserver ~]#
6.5 查看状态
[root@newserver ~]# systemctl status oracle-free-23c.service
● oracle-free-23c.service - SYSV: This script is responsible for taking care of configuring the RPM Oracle FREE Database and its associated services.
Loaded: loaded (/etc/rc.d/init.d/oracle-free-23c; generated)
Active: active (exited) since Sun 2023-04-09 19:23:20 CST; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 18131 ExecStart=/etc/rc.d/init.d/oracle-free-23c start (code=exited, status=0/SUCCESS)
Apr 09 19:23:20 newserver systemd[1]: Starting SYSV: This script is responsible for taking care of configuring the RPM Oracle FREE Database and its associated services....
Apr 09 19:23:20 newserver oracle-free-23c[18131]: The Oracle Database instance FREE is already started.
Apr 09 19:23:20 newserver systemd[1]: Started SYSV: This script is responsible for taking care of configuring the RPM Oracle FREE Database and its associated services..