I'm trying to install Oracle XE 21c on RHEL 8.4. When I run the configure I get the following message:
[root@Lenovo-P52 louis]# /etc/init.d/oracle-xe-21c configure
/etc/init.d/oracle-xe-21c: line 508: /opt/oracle/product/21c/dbhomeXE/bin/orabase: No such file or directory
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:
Confirm the password:
Configuring Oracle Listener.
/etc/init.d/oracle-xe-21c: line 275: /opt/oracle/product/21c/dbhomeXE/bin/orabase: No such file or directory
/bin/mkdir: cannot create directory ‘/cfgtoollogs’: Permission denied
bash: /cfgtoollogs/netca/netca_configure_out.log: No such file or directory
chmod: cannot access '/cfgtoollogs/netca/netca_configure_out.log': No such file or directory
bash: /cfgtoollogs/netca/netca_configure_out.log: No such file or directory
Listener configuration failed. Check log '/cfgtoollogs/netca/netca_configure_out.log' for more details.
I tried running it as "sudo /etc/init.d/oracle-xe-21c configure"
and
[root@Lenovo-P52 louis]# /etc/init.d/oracle-xe-21c configure
/etc/init.d/oracle-xe-21c: line 508: /opt/oracle/product/21c/dbhomeXE/bin/orabase: No such file or directory
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:
Confirm the password:
Configuring Oracle Listener.
/etc/init.d/oracle-xe-21c: line 275: /opt/oracle/product/21c/dbhomeXE/bin/orabase: No such file or directory
/bin/mkdir: cannot create directory ‘/cfgtoollogs’: Permission denied
bash: /cfgtoollogs/netca/netca_configure_out.log: No such file or directory
chmod: cannot access '/cfgtoollogs/netca/netca_configure_out.log': No such file or directory
bash: /cfgtoollogs/netca/netca_configure_out.log: No such file or directory
Listener configuration failed. Check log '/cfgtoollogs/netca/netca_configure_out.log' for more details.
Why is this happening?
thanks