พบกับบทความเกี่ยวกับคอมพิวเตอร์และ programming ได้ที่ http://articles.modoeye.com
PHP Articles / PHP กับ Oracle
Administrator
Tue 20 Sep 2005 11:48:10
ก่อนอื่นต้องทำการ download ไฟล์ Instant client
แล้วทำการคลายไฟล์ไปไว้ใน directory ที่ต้องการครับ เช่น C:\oracle_client
เพิ่ม Environment variables โดยคลิ๊กขวาที่ My Computer > เลือกที่ Properties ที่ Tab Advance เลือกที่ Environment variables จะมีหน้าต่างเพื่อแก้ไขค่า Environment variables ทำการเพิ่ม variable name = TNS_ADMIN และ variable value = {path ของ Oracle Instant client ในที่นี้คือ C:\oracle_client}
เพิ่ม variable_name = LD_LIBRARY_PATH และ variable value = {path ของ Oracle Instant client ในที่นี้คือ C:\oracle_client}

จากนั้นทำการ copy ไฟล์ tnsnames.ora, sqlnet.ora, listener.ora จาก directory ของ oracle server /network ไปไว้ใน directory เดียวกับ oracle instant client

ทำการuncomment ที่ module oci8 ใน php.ini

ทำการ restart Apache หรือ IIS ก็ใช้งานได้แล้วครับ
Reply
Name:
E-mail:
Home | Services | Forum | Classified | Directories | Support | Contact
ATOM feed RSS 0.9 feed RSS 1.0 feed RSS 2.0 feed
Copyright © 2005 - 2007 Modoeye.com, All Rights Reserved.
Disclaimer | Privacy policy | Term of Use | Term of Services
Valid XHTML Valid CSS! PHP: Hypertext Preprocessor MySQL database Apache Powered! FreeBSD Power to serve
Modoeye Sitemap Client login