How to Install Oracle Database XE on Debian Sarge

Posted by Alexey Kovyrin under Admin-tips, Databases · русский

Few days ago Oracle Database Express Edition has been released.

Oracle Database 10g Express Edition (Oracle Database XE) is an entry-level, small-footprint database based on the Oracle Database 10g Release 2 code base that’s free to develop, deploy, and distribute; fast to download; and simple to administer. Oracle Database XE is a great starter database for:

  • Developers working on PHP, Java, .NET, and Open Source applications
  • DBAs who need a free, starter database for training and deployment
  • Independent Software Vendors (ISVs) and hardware vendors who want a starter database to distribute free of charge
  • Educational institutions and students who need a free database for their curriculum

I have spent some time for installing it on Debian Sarge because it has only Debian Unstable support and many people does not know, that required lib (libaio) can be installed to Sarge. Now, I will describe step-by-step howto about installing Oracle XE on Debian Sarge.

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):

# apt-get update
...
Reading Package Lists... Done
#

Now, you able to install your new Oracle XE! Just run following commands as a root user and answer for some questions about admin passwords and Oracle starting at boot:

# apt-get install oracle-xe-universal
...
(Reading database ... 62016 files and directories currently installed.)
Unpacking oracle-xe (from oracle-xe_10.2.0.1-0.060128_i386.deb) ...
Setting up oracle-xe (10.2.0.1-0.060128) ...
Oracle Database 10g Express Edition is not configured.  You must run
'/etc/init.d/oracle-xe configure' as the root user to configure the database.
Executing Post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database

# /etc/init.d/oracle-xe configure
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:   (* make sure you remember this password *)

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]: y

Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"

# 

That’s all! Now you have installed Oracle Express Edition on your Debian Sarge server. Be happy using it!


Related posts:

  1. Oracle Database 10g Express Edition: Not Just for Learners
  2. Unofficial Debian GNU/Linux Repositories Overview
  3. A Concise apt-get / dpkg primer for new Debian users
  4. Tuning and Optimizing Red Hat Enterprise Linux for Oracle 9i and 10g Databases
  5. Oracle SQL Developer (formerly Project Raptor) Release 6 is Out

10 Responses to this entry

Kpumuk says:

Описание на английском языке Oracle Database 10g Express Edition в русской заметке смотрится как-то нелогично. Мне кажется, если ты уж взялся доносить информацию для русскоязычной части населения планеты – то будь добр выполни это добросовестно. Это лично мое мнение, не воспринимай как попытку обидеть.

Scoundrel says:

Спасибо за комментарий. Замечание принимается – цитату перевел :-)

Kpumuk says:

Вот! Совсем другое дело :-) Может быть напишешь еще заметку для таких ленивых, как я, об этой СУБД? В частности какие ограничения по сравнению с “большой” СУБД Oracle, какие достоинства. Вообще было бы прикольно, если бы ты еще померял производительность по сравнению с MSSQL 2000/2005. Эх, мечты…

Heinrich says:

Hey Kpumuk,

I think you should stay by real RDBMS and not so freaking stuff like MS SQL. And why do you compare the “small” Oracle RDBMS with MSSQL?

There was a competition (from http://www.tpc.org) between Oracle 10GR2, DB2, MSSQL 2005(?) and MySQL5. By 9000 transaction per minute sucked MS SQL and DB2 immense whereat performance of Oracle and MySQL was continuously increasing.

Regards,
Heinrich

thomas says:

HI
the installation went smooth

but when i tried to login to db adminstration via
http://localhost:8080/apex
with sys or system and the password (which i have given during the /etc/init.d/oracle-xe configure)
It says invalid login credentials

Please Help me out
Thanks

Саша says:

и ещё такой момент, скорее всего pgp ключ для свежедобавленного репозитория в системе не найдется (ещё бы – откуда ему там взяться), поэтому добро пожаловать сюда: http://dinomite.net/archives/oracle-repository-gpg-key

Kolchin says:

Автору блога… Чатаю Ваш блог сравнительно недавно. Что хотелось бы отметить… (не подумайте что в чём то упрекаю или пытаюсь давать советы) Достаточно лаконичный дизайн, ничего лишнего я бы сказал))) Ваша тематика мне близка, и это радует. Но почему не пишите своё мнение о событиях, происходящих в мире, в плане событий международных например?? Понимаю, что “новостей хватает”, но иногда хочется узнать мнение обычног человека, так сказать – независимый взгляд, сравнить его со своим мнением. А так… Пишите ещё чаще, ещё больше, и ещё интереснее.. Спасибо!

Eugene says:

Я раньше Oracle 9 ставил на debian порядка 2 месяцев. Щас гораздо проще все стало.