Install Oracle XE di Linux Ubuntu

Posted: May 3, 2010 in Linux, Oracle

Untuk mendapatkan software Oracle XE bisa di download langsung di
Download Disini
dalam artikel ini penulis melakukan instalasi di operating system Linux Ubuntu 9.04 jadi software yang
di download harus yg berextension .deb (Debian Package), contohnya oracle-xe_10.2.0.1-1.0_i386.deb
Setelah melakukan download software mulai lakukan proses instalasi seperti contoh di bawah ini dengan user root

Sebelumnya install paket libaio1 terlebih dahulu, caranya seperti di bawah ini:

$sudo apt-get install libao1

root@bandy:/usr/local/src# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
Selecting previously deselected package oracle-xe-universal.
(Reading database … 121346 files and directories currently installed.)
Unpacking oracle-xe-universal (from oracle-xe-universal_10.2.0.1-1.0_i386.deb) …
Setting up oracle-xe-universal (10.2.0.1-1.0) …
update-rc.d: warning: /etc/init.d/oracle-xe missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Executing Post-install steps…
-e You must run ‘/etc/init.d/oracle-xe configure’ as the root user to configure the database.

Processing triggers for man-db …

Setelah melakukan proses di atas dilanjutkan dengan melakukan configurasi seperti yang di intruksikan pada tahap
instalasi diatas yaitu melakukan configurasi file oracle xe di /etc/init.d seperti pada contoh di bawah ini.

root@bandy:/usr/local/src# /etc/init.d/oracle-xe configure

Oracle Database 10g Express Edition Configuration
————————————————-
This will configure on-boot properties of Oracle Database 10g Express
Edition.  The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts.  Press <Enter> to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]: [Enter]

Specify a port that will be used for the database listener [1521]: [Enter]

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: [Masukan Password]
Confirm the password: [Ulangi Password]

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

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”

Setelah melakukan proses di atas database Oracle XE telah bisa di gunakan,
untuk mencoba buka browser ketikan http://127.0.0.1:8080/apex lalu login
sebagai user system dan masukan password yang anda ketikan pada saat instalasi.

NB: password yang di gunakan dalam instalasi oracle xe di linux tidak boleh terlalu pendek
seperti contohnya (admin) hal ini menyebabkan kita tidak bisa login lewat web base.
letak folder Oracle XE yg telah di install ada di /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin
untuk melakukan settingan supaya oracle bisa di remote dari luar seperti
menggunakan SSH lakukan patch seperti berikut menggunakan user root.

export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server (di akhir folder /server tidak boleh ada /)

perintah yang digunakan untuk melakukan query sql dari console
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus [Enter] (Setelah itu masukan User dan Password)

untuk melakukan settingan SID pada oracle yg telah di install lakukan perintah seperti di bawah ini dengan menggunakan user root
export ORACLE_SID=XE
Setelah itu check dengan mengetikan perintah echo $ORACLE_SID masih dengan user root

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s