 |
มีวิธีไหนที่ทำให้ Windows 64 bits สามารถเรียกใช้ oci8 ไว้ติดต่อ PHP กับ Oracle ได้มั่งครับ ?? |
|
 |
|
|
 |
 |
|
ผมใช้ Mapguide Opensource นะครับ ,,, มันจะใช้ได้มั้ยอ่ะครับ ??
|
 |
 |
 |
 |
Date :
2011-10-20 22:16:12 |
By :
nueng |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แล้วก็เป็น Oracle 11g ด้วยนะครับ
|
 |
 |
 |
 |
Date :
2011-10-20 22:20:29 |
By :
nueng |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองดูก่อนครับ ตาม Link ที่ได้ส่งให้ครับ 
|
 |
 |
 |
 |
Date :
2011-10-21 06:38:12 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองแล้วครับ แต่ก็ยังใช้ oci8 ไม่ได้อยู่ดี
ใน phpinfo ไม่มีฟังก์ชัน oci8 ครับผม !!!
|
 |
 |
 |
 |
Date :
2011-10-21 10:25:31 |
By :
nueng |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันมี error log ว่า error ครับ
|
 |
 |
 |
 |
Date :
2011-10-21 11:01:02 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันบอกว่า PHP Warning : PHP Startup: Unable to load dynamic library 'C:\Program Files\Osgeo\Mapguide\Web\Php\ext\php_oci8.dll' - %1 is not a valid Win32 application. in Unknown on line 0 ครับ
|
 |
 |
 |
 |
Date :
2011-10-21 11:32:30 |
By :
nueng |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขึ้นแบบนี้ครับ
[Fri Oct 21 09:08:06 2011] [notice] Apache/2.2.15 (Win32) configured -- resuming normal operations
[Fri Oct 21 09:08:06 2011] [notice] Server built: Mar 12 2010 19:22:22
[Fri Oct 21 09:08:06 2011] [notice] Parent: Created child process 3176
[Fri Oct 21 09:08:06 2011] [notice] Disabled use of AcceptEx() WinSock2 API
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\OSGeo\\MapGuide\\Web\\Php\\ext\\php_oci8.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0
[Fri Oct 21 09:08:07 2011] [notice] Child 3176: Child process is running
[Fri Oct 21 09:08:07 2011] [notice] Child 3176: Acquired the start mutex.
[Fri Oct 21 09:08:07 2011] [notice] Child 3176: Starting 50 worker threads.
[Fri Oct 21 09:08:07 2011] [notice] Child 3176: Listening on port 8008.
[Fri Oct 21 10:21:36 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Oct 21 10:21:36 2011] [notice] Child 3176: Exit event signaled. Child process is ending.
[Fri Oct 21 10:21:37 2011] [notice] Child 3176: Released the start mutex
[Fri Oct 21 10:21:38 2011] [notice] Child 3176: All worker threads have exited.
[Fri Oct 21 10:21:38 2011] [notice] Child 3176: Child process is exiting
[Fri Oct 21 10:21:38 2011] [notice] Parent: Child process exited successfully.
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\OSGeo\\MapGuide\\Web\\Php\\ext\\php_oci8.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0
[Fri Oct 21 10:21:40 2011] [notice] Apache/2.2.15 (Win32) configured -- resuming normal operations
[Fri Oct 21 10:21:40 2011] [notice] Server built: Mar 12 2010 19:22:22
[Fri Oct 21 10:21:40 2011] [notice] Parent: Created child process 6268
[Fri Oct 21 10:21:40 2011] [notice] Disabled use of AcceptEx() WinSock2 API
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\OSGeo\\MapGuide\\Web\\Php\\ext\\php_oci8.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0
[Fri Oct 21 10:21:41 2011] [notice] Child 6268: Child process is running
[Fri Oct 21 10:21:41 2011] [notice] Child 6268: Acquired the start mutex.
[Fri Oct 21 10:21:41 2011] [notice] Child 6268: Starting 50 worker threads.
[Fri Oct 21 10:21:41 2011] [notice] Child 6268: Listening on port 8008.
[Fri Oct 21 10:22:30 2011] [error] [client 127.0.0.1] PHP Warning: phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\\Program Files\\OSGeo\\MapGuide\\Web\\www\\phpinfo.php on line 2
[Fri Oct 21 10:23:48 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Oct 21 10:23:48 2011] [notice] Child 6268: Exit event signaled. Child process is ending.
[Fri Oct 21 10:23:49 2011] [notice] Child 6268: Released the start mutex
[Fri Oct 21 10:23:49 2011] [notice] Child 6268: All worker threads have exited.
[Fri Oct 21 10:23:49 2011] [notice] Child 6268: Child process is exiting
[Fri Oct 21 10:23:49 2011] [notice] Parent: Child process exited successfully.
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\OSGeo\\MapGuide\\Web\\Php\\ext\\php_oci8.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0
[Fri Oct 21 10:23:50 2011] [notice] Apache/2.2.15 (Win32) configured -- resuming normal operations
[Fri Oct 21 10:23:50 2011] [notice] Server built: Mar 12 2010 19:22:22
[Fri Oct 21 10:23:50 2011] [notice] Parent: Created child process 4216
[Fri Oct 21 10:23:50 2011] [notice] Disabled use of AcceptEx() WinSock2 API
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\OSGeo\\MapGuide\\Web\\Php\\ext\\php_oci8.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0
[Fri Oct 21 10:23:50 2011] [notice] Child 4216: Child process is running
[Fri Oct 21 10:23:50 2011] [notice] Child 4216: Acquired the start mutex.
[Fri Oct 21 10:23:50 2011] [notice] Child 4216: Starting 50 worker threads.
[Fri Oct 21 10:23:50 2011] [notice] Child 4216: Listening on port 8008.
[Fri Oct 21 10:23:55 2011] [error] [client 127.0.0.1] PHP Warning: phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\\Program Files\\OSGeo\\MapGuide\\Web\\www\\phpinfo.php on line 2
|
 |
 |
 |
 |
Date :
2011-10-21 11:43:51 |
By :
nueng |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อยากช่วยน่ะครับ แต่ผมไม่มีเครื่อง 64 bits นี่ซิ
|
 |
 |
 |
 |
Date :
2011-10-21 13:06:52 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่านจากของต่างประเทศก็ทำเช่นเดียวกันครับ
http://blogs.oracle.com/opal/entry/using_php_oci8_with_32-bit_php
|
 |
 |
 |
 |
Date :
2011-10-21 13:12:55 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เพิ่งเห็นว่ามันมี Instant Client Downloads for Microsoft Windows (x64) ด้วยครับ
http://www.oracle.com/technetwork/topics/winx64soft-089540.html
ให้ดาวน์โหลดตัว
Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications
instantclient-basic-windows.x64-11.2.0.2.0.zip (53,669,935 bytes)
|
 |
 |
 |
 |
Date :
2011-10-21 13:24:06 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากครับผม ,,, แต่ไซด์งานที่ผมจะต้องไปทำมันเป็น oracle 11g ตัวเต็มหมดเลย ,,, จะไปเปลี่ยนให้เค้าใช้เป็น Client ก็ไม่ได้
|
 |
 |
 |
 |
Date :
2011-10-21 13:34:47 |
By :
nueng |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันแค่ .dll ครับ เค้าก็บอกไว้ว่ามันคือ " Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications " ไม่ใช่ตัวโปรแกรมครับ
|
 |
 |
 |
 |
Date :
2011-10-21 13:58:32 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|