Install Oracle-Xe 10g di Ubuntu
Sumber:http://dev.xbata.com/database/oracle/install-oracle-xe-10g-di-ubuntu
Bagi pemula untuk belajar menggunakan Oracle bisa memilih Oracle XE (Express Edition ), software oracle ini dapat didownload di www.oracle.com, untuk install di Ubuntu anda dapat mendownload file paket debian, pada artikel ini penulis menggunakan versi oracle-xe_10.2.0.1-1.0_i386.deb .
Berikut langkah-langkah instalasinya :
1. Install paket
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| $ sudo su -#dpkg -i oracle-xe_10.2.0.1-1.0_i386.debAkan muncul baris berikut :(Reading database ... 188124 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) ...update-rc.d: warning: /etc/init.d/oracle-xe missing LSB informationupdate-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 desktop-file-utils ...Processing triggers for python-gmenu ...Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...Processing triggers for man-db ...Processing triggers for ureadahead ...Processing triggers for python-support ... |
Pada proses ini bisa saja anda gagal dikarenakan beberapa library yang dibutuhkan belum tersedia di komputer anda. Karenanya pastikan library yang dibutuhkan untuk install oracle-xe sudah tersedia di komputer anda. Misal terjadi kegagalan karena belum ada library libaio maka output perintah diatas akan keluar seperti ini :
1
2
3
| oracle-xe depends on libaio (>= 0.3.96) | libaio1 (>= 0.3.96); however:Package libaio is not installed.Package libaio1 is not installed. |
Maka saatnya anda install libaio dengan perintah berikut ini :
1
| # apt-get install libaio |
Oracle-XE pada linux ubuntu akan diinstall pada direktori /usr/lib/oracle
2. Konfigurasi
Setelah berhasil di install langkah berikutnya adalah konfigurasi oracle-xe, beberapa konfigurasi diantaranya adalah konfigurasi :
- Port aplikasi administrasi via HTTP Oracle Application Express ( pastikan tidak bentrok dengan port apache, misal diseting di port 8888)
- Port database listener oracle : defaultnya di port 1521
- Seting password user admin oracle ( SYS dan SYSTEM )
- Apakah Boot startup oracle-xe akan diaktifkan pada saat komputer pertama kali dinyalakan
Berikut perintahnya :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| # /etc/init.d/oracle-xe configureAkan muncul baris berikut :Oracle Database 10g Express Edition Configuration-------------------------------------------------This will configure on-boot properties of Oracle Database 10g ExpressEdition. The following questions will determine whether the database shouldbe starting upon system boot, the ports it will use, and the passwords thatwill 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]:8888Specify a port that will be used for the database listener [1521]:Specify a password to be used for database accounts. Note that the samepassword will be used for SYS and SYSTEM. Oracle recommends the use ofdifferent passwords for each database account. This can be done afterinitial configuration:Confirm the password:Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:nStarting Oracle Net Listener...DoneConfiguring Database...DoneStarting Oracle Database 10g Express Edition Instance...DoneInstallation Completed Successfully.To access the Database Home Page go to "http://127.0.0.1:8888/apex |
3. Akses Database Home Page di URL http://127.0.0.1:8888/apex , login dengan user SYS
4. Seting variable environment Oracle XE
Buka file /etc/bash.bashrc dan tambahkan baris berikut diakhir file :
1
2
3
| export PATH=$PATH:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/binexport ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/serverexport ORACLE_SID=XE |
Tidak ada komentar:
Posting Komentar