Fungsi-fungsi database Oracle dalam PHP


Pendahuluan

Artikel ini adalah kumpulan fungsi-fungsi oracle-php yang biasa dipakai untuk membuat sebuah web menggunakan database ORACLE dan bahasa pemrograman PHP. dalam fungsinya selalu ada kata oci. apa itu oci? yang jelas oci itu bukan nama orang. Menurut Wikipedia, OCI (Oracle Call Interface) adalah :

In computing, the Oracle Call Interface (OCI) consists of a set of C-language software APIs which provide an interface to the Oracle database.
OCI offers a procedural API for not only performing certain database administration tasks (such as system startup and shutdown), but also for using PL/SQL or SQL to query, access, and manipulate data. The OCI library, based on Oracle’s undocumented User Programmatic Interface (UPI), acts as an “interpreter” between applications and the low-level database network protocol.

Setelah berkenalan dengan oci, saatnya kita berkenalan dengan fungsi-fungsi oci yaitu sebagai berikut :

Fungsi

  • oci_pconnect => resource oci_pconnect ( string $username , string $password [, string $connection_string [, string $character_set [, int $session_mode ]]] )
  • oci_num_rows => int oci_num_rows ( resource $statement )
  • oci_parse => resource oci_parse ( resource $connection , string $sql_text )
  • oci_fetch_array => array oci_fetch_array ( resource $statement [, int $mode ] )
  • oci_close => bool oci_close ( resource $connection )
  • oci_execute => bool oci_execute ( resource $statement [, int $mode = OCI_COMMIT_ON_SUCCESS ] )
  • oci_error => array oci_error ([ resource $resource ] )

Referensi Buku :

Sekian tutorial dari saya semoga bermanfaat untuk teman-teman dan anda semua :)

Depok, 28-11-2010

noname

About these ads

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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 537 other followers

%d bloggers like this: