Saturday, July 27, 2024
Home Tutorial Cara instalasi oracle client oci8 di CentOS

Cara instalasi oracle client oci8 di CentOS

by Andry Yudianto
0 comment
oci8 connector oracle database
oci8 connector oracle database

Cara instalasi oracle client oci8 di CentOS

Bermain dengan database memang mengasyikan, apalagi bermain database tingkat tinggi seperti oracle database. Seorang server administrator harus mengerti untuk dapat menghubungkan antara webserver dengan database, kali ini yang akan dibahas adalah webserver berbasis centos yang akan digunakan untuk berkomunikasi dengan oracle database dengan menggunakan oci8. Berikut ini adalah cara instalasi oracle client oci8 di CentOS.

Sebelumnya persiapkan sebuah server sudah terinstall dengan sistem operasi linux CentOS dan bisa berkomunikasi dengan internet.

Persyaratan awal sebelum melakukan instalasi adalah :

  • Matikan SELINUX (bisa ditemukan file konfigurasi di /etc/selinux/config) dengan merubah SELINUX dari enforcing menjadi permissive atau disable. Kemudian simpan dan reboot.
  • Install repository epel-release (#yum install epel-release)
  • Install epel-release-latest (#rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm)
  • Install webstatic release (#rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm)
  • Update (#yum update)

Tahapan install php7

  • #yum install php71w php71w-devel php71w-pear gcc httpd httpd-devel
  • coba dahulu apakah perintah pecl sudah bisa #pecl install oci8

Syarat sebelum menginstall oci8

  • Install oracle client & oracle client devel (bisa download di http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html)
  • #rpm -ivh oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
  • #rpm -ivh oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm
  • #pecl install oci8
  • enter
  • tambahkan extension=oci8.so pada file configurasi php (di /etc/php.ini)
  • restart webserver (#service httpd restart)
  • kemudian check apakah oci8 sudah terinstall dengan perintah #php -m
  • atau cek dengan fungsi phpinfo();
deteksi ektensi oci8

deteksi ektensi oci8

Nah sekarang oci8 sudah terinstall pada webserver anda dan siap digunakan untuk menyambung pada database oracle anda.

cek ekstensi oci8 dengan phpinfo

cek ekstensi oci8 dengan phpinfo

Save

Save

About Author

You may also like

Leave a Comment

Soledad is the Best Newspaper and Magazine WordPress Theme with tons of options and demos ready to import. This theme is perfect for blogs and excellent for online stores, news, magazine or review sites.

Buy Soledad now!

Edtior's Picks

Latest Articles

u00a92022u00a0Soledad.u00a0All Right Reserved. Designed and Developed byu00a0Penci Design.

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
-
00:00
00:00
Update Required Flash plugin
-
00:00
00:00