2008-06-02

Install Oracle XE di ubuntu

hmmm .. setelah banyak di admin dan tetek bengek lainnya, mari kita mulai berkutak-kutik di programming. setelah bunny nulis tentang java, netbeans dan teman2nya, aku coba bahas ttg orekel, database yang mgkin dah ga aku pegang selama hampir 5 tahun :D.

1. Download orekel XE (gratisan) di www.oracle.com, pilih yang paket untuk ubuntu atau debian, dengan extension deb. Kira2 gedenya 200MB-an

2. Setelah selesei, ketik :
sudo dpkg -i oracle-xe_10.2.0.1-1.0_i386.deb
[sudo] password for detanto:
Selecting previously deselected package oracle-xe.
(Reading database ... 132138 files and directories currently installed.)
Unpacking oracle-xe (from oracle-xe_10.2.0.1-1.0_i386.deb) ...
This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 10g
Express Edition requires 1024 MB of swap space. This system has 949 MB
of swap space. Configure more swap space on the system and retry the installation.

Dari error diatas didapat bahwa ternyata untuk instalasi orekel, kita membutuhkan minimal 1024MB swap memory. Emang di komputerku aku cuman kasi ga sampe 1G meski memoriku 2G, ini gara2 aku baca di internet ttg rumus yang baik untuk swap memory :D di sini. Pas install orekel ini jadi bingung sendiri, gmana caranya increase swap. Ada banyak resource di internet untuk ini tinggal tanya paman gugel. Ada yang jawabannya harus liwat LiveCD untuk membesarkan swap dsb dsb. Wah kalo musti pake LiveCD sih asik2 aja, cuman CD-ku ada di kantor, dipinjem sama si bunny, brarti opsi ini dah gagal krn aku ga sabar utk nyobain orekel. JAdi aku pake opsi yang lain yaitu melebarkan swap dengan membuat file extra-swap.

Pertama kita cek swap kita dengan printah

detanto@detantonux:~/Documents/downloads$ swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 971892 0 -1

Kmudian kita buat file-nya dengan printah :

sudo dd if=/dev/zero of=/extra-swap bs=1M count=512

Perintah diatas memberitahu linux untuk membuat file sebesar 512MB, kmudian tinggal kita bilangin untuk membuat direktori itu menjadi swap

detanto@detantonux:~/Documents/downloads$ sudo mkswap /extra-swap
Setting up swapspace version 1, size = 536866 kB
no label, UUID=0207958d-a828-46e3-a207-3a535d2fcde0

Trus jalanin lagi

sudo dpkg -i oracle-xe_10.2.0.1-1.0_i386.deb
(Reading database ...
dpkg: serious warning: files list file for package `oracle-xe' missing, assuming package has no files currently installed.
132138 files and directories currently installed.)
Preparing to replace oracle-xe 10.2.0.1-1.0 (using oracle-xe_10.2.0.1-1.0_i386.deb) ...
Unpacking replacement oracle-xe ...
dpkg: dependency problems prevent configuration of oracle-xe:
oracle-xe depends on libaio (>= 0.3.96) | libaio1 (>= 0.3.96); however:
Package libaio is not installed.
Package libaio1 is not installed.
dpkg: error processing oracle-xe (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
oracle-xe

weh error lagi, skarang paketnya ada yang blun keinstall, ya enaknya ubuntu tinggal apt-get install libaio1, selesei dah

tinggal ketik lagi

sudo dpkg -i oracle-xe_10.2.0.1-1.0_i386.deb
(Reading database ... 134527 files and directories currently installed.)
Preparing to replace oracle-xe 10.2.0.1-1.0 (using oracle-xe_10.2.0.1-1.0_i386.deb) ...
Unpacking replacement oracle-xe ...
Setting up oracle-xe (10.2.0.1-1.0) ...
Executing Post-install steps...
-e You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.

Hasilnya ngga ada error, cuman musti ngejalanin command yang diatas

sudo /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 to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:2702 --> default port aku rubah karena port 8080 dipake sama tomcat

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:

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:2702/apex"

Udah deh selese instalasinya, gampang yak? hasilnya bisa kita lihat






Ingat, user default dari orekel setelah instalasi awal adalah SYS dan SYSTEM, jadi login dengan user itu dan password yang sudah diset didepan, setelah login kita bs ngutak-atik databasenya.



Gile, instalasinya gampang banget. seinget aku dulu itu install orekel itu audzubillah bin zalik susahnya; setting TNS lah, SID, dsb2, sekarang tinggal pake wizard, dulu meski dah pake wizard, aku msh puyeng haheuaheuhae.. hidup kemajuan!!

Tidak ada komentar: