Difference between revisions of "Instalasi Oracle"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 4: | Line 4: | ||
Instalasi Oracle Experss Edition tidak sukar, bahkan sangat mudah sekali. | Instalasi Oracle Experss Edition tidak sukar, bahkan sangat mudah sekali. | ||
+ | |||
+ | ==Download & Siapkan Aplikasi Pendukung== | ||
* Download Oracle Express Edition dari situs Oracle pada URL | * Download Oracle Express Edition dari situs Oracle pada URL | ||
Line 12: | Line 14: | ||
sudo apt-get install alien libaio1 unixodbc | sudo apt-get install alien libaio1 unixodbc | ||
+ | |||
+ | ==Buat Script== | ||
* edit chkconfig | * edit chkconfig | ||
Line 33: | Line 37: | ||
update-rc.d oracle-xe defaults 80 01 | update-rc.d oracle-xe defaults 80 01 | ||
#EOF | #EOF | ||
+ | |||
+ | |||
+ | chmod 755 /sbin/chkconfig | ||
+ | |||
+ | * Edit sysctl | ||
+ | |||
+ | sudo vi /etc/sysctl.d/60-oracle.conf | ||
+ | |||
+ | |||
+ | # Oracle 11g XE kernel parameters | ||
+ | fs.file-max=6815744 | ||
+ | net.ipv4.ip_local_port_range=9000 65000 | ||
+ | kernel.sem=250 32000 100 128 | ||
+ | kernel.shmmax=536870912 | ||
+ | |||
+ | ==Restart Kernel Parameter== | ||
+ | |||
+ | sudo service procps start | ||
+ | |||
+ | cek | ||
+ | |||
+ | sudo sysctl -q fs.file-max | ||
+ | |||
+ | fs.file-max pastikan di > 2Gb, jika kurang maka kita perlu memperbesar. | ||
Revision as of 08:20, 20 January 2018
Sumber: http://sysadminnotebook.blogspot.co.id/2012/10/installing-oracle-11g-r2-express.html
Beberapa software accounting yang besar, seperti Compiere dan Adempiere masih bergantung pada database besar seperti Oracle. Walaupun Adempiere dapat juga digunakan tanpa Oracle. Kita pada hari ini agak beruntung karena Oracle mengeluarkan versi yang gratis untuk digunakan, yang di kenal sebagai “Oracle Express Edition”.
Instalasi Oracle Experss Edition tidak sukar, bahkan sangat mudah sekali.
Download & Siapkan Aplikasi Pendukung
- Download Oracle Express Edition dari situs Oracle pada URL
http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
- Install beberapa library pendukung. Pada Ubuntu dapat dilakukan menggunakan perintah,
sudo apt-get install alien libaio1 unixodbc
Buat Script
- edit chkconfig
sudo vi /sbin/chkconfig
#!/bin/bash # Oracle 11gR2 XE installer chkconfig hack for Ubuntu file=/etc/init.d/oracle-xe if grep INIT` ; then echo >> $file echo '### BEGIN INIT INFO' >> $file echo '# Provides: OracleXE' >> $file echo '# Required-Start: $remote_fs $syslog' >> $file echo '# Required-Stop: $remote_fs $syslog' >> $file echo '# Default-Start: 2 3 4 5' >> $file echo '# Default-Stop: 0 1 6' >> $file echo '# Short-Description: Oracle 11g Express Edition' >> $file echo '### END INIT INFO' >> $file fi update-rc.d oracle-xe defaults 80 01 #EOF
chmod 755 /sbin/chkconfig
- Edit sysctl
sudo vi /etc/sysctl.d/60-oracle.conf
# Oracle 11g XE kernel parameters fs.file-max=6815744 net.ipv4.ip_local_port_range=9000 65000 kernel.sem=250 32000 100 128 kernel.shmmax=536870912
Restart Kernel Parameter
sudo service procps start
cek
sudo sysctl -q fs.file-max
fs.file-max pastikan di > 2Gb, jika kurang maka kita perlu memperbesar.
- Copy dan install Oracle Express Edition menggunakan perintah,
# cp dpkg -i oracle-xe_10.2.0.1-1.0_i386.deb /usr/local/src # cd /usr/local/src # dpkg -i oracle-xe_10.2.0.1-1.0_i386.deb
- Konfigurasi Oracle Express Edition menggunakan perintah,
# /etc/init.d/oracle-xe configure
Sebagian besar nilai default yang di tawarkan pada saat konfigurasi sebetulnya tidak perlu di ubah, kita cukup menekan tombol <Enter> sampai selesai konfigurasi. Mohon di ingat baik—baik password SYS atau SYSTEM yang kita set, jangan sampai lupa. Pada saat proses konfigurasi maka pada layar akan tampak tampilan berikut,
root@ubuntu:/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]:
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:8080/apex"
root@ubuntu:/usr/local/src#
- Setelah selesai di konfigurasi, kita dapat me-restart Oracle menggunakan perintah,
# /etc/init.d/oracle-xe restart Shutting down Oracle Database 10g Express Edition Instance. Stopping Oracle Net Listener.
Starting Oracle Net Listener. Starting Oracle Database 10g Express Edition Instance.
Selanjutnya, konfigurasi Oracle Database dapat dilakukan dengan mengakses alamat / URL http://127.0.0.1:8080/apex
Referensi
- http://sysadminnotebook.blogspot.co.id/2012/10/installing-oracle-11g-r2-express.html
- https://community.oracle.com/message/9720583#9720583
- http://www.techienote.com/2011/09/oracle-database-11g-r2-on-ubuntu-11-04.html