First of all, you do not need to download Oracle XE installation package for Debian from Oracle Express Download Page. You do not need to do it because Oracle has its own debian repository for automated installations.
To use this reposotory you need to add following lines to /etc/apt/sources.list file:
deb http://oss.oracle.com/debian/ unstable main non-free
deb-src http://oss.oracle.com/debian/ unstable main
Next, you need to update your package files (as root)
# aptitude update
#wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle
#apt-key add RPM-GPG-KEY-oracle
#aptitude update
#aptitude install oracle-xe-universal
# /etc/init.d/oracle-xe configure
参考:http://www.debianhelp.co.uk/oracle.htm
Disabling/enabling the Oracle XE Service
Your Debian based system should meet the minimum requirements for swap space, otherwise installation would fail.
Based on the amount of physical memory available on the system, Oracle Database 10g Express Edition requires 1006 MB of swap space (YMMV). In order to overcome this issue you can always extend your partitions with Knoppix or Gparted.
The alternative solution, avoiding a reboot, would be:
# dd if=/dev/zero of=/myswapfile bs=1M count=1000
# mkswap /myswapfile
# swapon /myswapfile
You can always disable Oracle XE startup in boot time with (no update-rc.d method here):
# chmod -x /etc/init.d/oracle-xe
The alernative way to the same is to edit /etc/default/oracle-xe and change:
#ORACLE_DBENABLED=true
ORACLE_DBENABLED=false
Web console management
If you have installed OracleXE database on remote *nix server, you can easily setup a SSH tunnel in order to gain access to a web administration console (since web console is bound to loopback device and therefore unavailable outside to the network):
# ssh oracle-xe-server -L 8081:localhost:8080
While keeping this proces running (or keep it on background via screen or nohup), you may now login to Oracle XE web administrations console on your local computer: http://localhost:8081/apex/
Please notice that your ssh daemon on your local computer should allow TCP forwarding. (ie. "AllowTcpForwarding yes" should be present in "/etc/sshd/sshd_config".)
SQL Remote connection management
By default OracleXe installation does not allow SQL network connections to your XE database.
To enable remote connections, logon to web management console and enable "Remote connections": "Administration->enable Available from local server and remote clients"-> press "Apply Changes". The same procedure can also be done from the commandline:
# sqlplus -S system/password@//localhost/XE < @this_script.sql
SQL> exit;
Alternatively use the web managment console to add new Oracle XE users accordingly.
Deleting users
For deleting an SQL user from OracleXE use the web management console, or execute following commands from the commandline:
# su - oracle
oracle@server:~$ sqlplus / as sys
SQL> drop user myuser cascade;
SQL>exit;