install Oracle XE 18x under WSL2
- install package is RPM, it's easier to use CentOS 7 or 8 (from CentOS-WSL or wsldl)
- if you want to use Debian/Ubuntu, you must convert RPM to DEB (but conversion with
alien
fails under Debian) - first, install oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
- second, install oracle-database-xe-18c-1.0-1.x86_64.rpm
- see https://mikesmithers.wordpress.com/2019/01/03/installing-and-configuring-oracle-18cxe-on-centos/
- run as root:
/etc/init.d/oracle-xe-18c configure
- it would fail if host IP is auto-generated to be 127.0.1.1
- you can update the IP in
/etc /hosts
and try it again