So, ich habe mal ein wenig herumgespielt ....
Installation (als root):
rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm
Konfiguration (ebenfalls als root):
/etc/init.d/oracle-xe configure
==>
Oracle Database 11g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 11g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press <Enter> to accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]:
Specify a port that will be used for the database listener [1521]:
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:n
Starting Oracle Net Listener...Done
Configuring database...Done
Starting Oracle Database 11g Express Edition instance...Done
Installation completed successfully.
Ok, jetzt den entsprechenden Service aktivieren:
systemctl start oracle-xe.service
systemctl enable oracle-xe.service
Datenbank herunterfahren via:
/etc/init.d/oracle-xe stop
Datenbank starten via:
/etc/init.d/oracle-xe start
(Etwas warten. Die DB braucht einen Moment bevor man loslegen kann).
Dann habe ich noch im Script ...
/u01/app/oracle/product/11.2.0/xe/config/scripts/runsqlplus.sh
... den xterm auf das xfce4-terminal umgebogen, weil mir das xterm zu spartanisch ist.
Hmmm ... sieht doch eigentlich ganz gut aus ...
SQL*Plus: Release 11.2.0.2.0 Production on Fr Nov 24 14:19:36 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Use "connect username/password@XE" to connect to the database.
SQL> connect system
Enter password:
Connected.
SQL> select database_status from v$instance;
DATABASE_STATUS
-----------------
ACTIVE
Mehr mag ich im Moment aber nicht mehr tun
... außer dem Hinweis, dass - wenn Oracle nicht gestartet ist, folgende Meldung kommt, wenn man sich konnektieren will:
SQL*Plus: Release 11.2.0.2.0 Production on Fr Nov 24 14:33:03 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Use "connect username/password@XE" to connect to the database.
SQL> connect system
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Aha, das kommt uns bekannt vor.
Viel Spaß noch
VLG
Stephan