Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reconfigure Oracle 10g xe on Linux

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,

like image 336
Mohammad Kotb Avatar asked Mar 25 '11 13:03

Mohammad Kotb


3 Answers

Remove /etc/sysconfig/oracle-xe
and then /etc/init.d/oracle-xe configure

like image 131
myset Avatar answered Oct 15 '22 09:10

myset


Oracle creates a system account named oracle. To change password to that account just use

passwd oracle

if you forgot another password from DB then log in as oracle user and use

sqlplus / as sysdba

to change the password for various DB accounts.

To reconfigure change in /etc/default/oracle-xe

CONFIGURE_RUN=true 

to

CONFIGURE_RUN=false

and rerun

sudo /etc/init.d/oracle-xe configure 
like image 22
Sacx Avatar answered Oct 15 '22 11:10

Sacx


For Oracle XE 18c on Oracle Linux (7.7 in this case), the installation can be restarted by executing the following command as root:

/etc/init.d/oracle-xe-18c delete

Restart the installation with the same command that was issued initially:

/etc/init.d/oracle-xe-18c configure
like image 34
Ben Johnson Avatar answered Oct 15 '22 10:10

Ben Johnson