I have installed Oracle 10g xe from a deb file on linux, and then started to configure it using this terminal command
sudo /etc/init.d/oracle-xe configure
but after finishing configuration I forgot the password, so how can I reconfigure it again after reinstallation as now when I use the previous command I receive
Oracle Database 10g Express Edition is already configured
Thanks,
In my case (Oracle XE 18c on Ubuntu), I had to remove the last line from
/etc/oratab
Oracle creates a system account named oracle. To change password to that account just use
if you forgot another password from DB then log in as oracle user and use
to change the password for various DB accounts.
To reconfigure change in /etc/default/oracle-xe
to
and rerun
The problem is solved... While removing the oracle I used
and then remove the configurations using
but these commands don't remove the configurations completely, the solution is to remove the oracle-xe-universal from Synaptic Manager and mark for Complete Removal.
Then install oracle-xe-universal again from the deb file then configure it.
Thanks,
Remove
/etc/sysconfig/oracle-xe
and then
/etc/init.d/oracle-xe configure