oci8

PHP oci8 won't install through pecl: “fatal error: oci8_dtrace_gen.h”

拜拜、爱过 提交于 2019-12-23 21:38:47
问题 I am trying to connect my fedora 25 webserver - php to Oracle db. To do this I need to pecl install oci8. However I get this error: /bin/sh /var/tmp/pear-build-roottqYEC6/oci8-2.1.4/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roottqYEC6/oci8-2.1.4/include -I/var/tmp/pear-build-roottqYEC6/oci8-2.1.4/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext

How do I install OCI8 to an existing PHP?

Deadly 提交于 2019-12-23 10:24:02
问题 According to this (Installing OCI8 from PECL, automated), all I have to do is type in pecl oci8 install . But that only gets me the following error, repeatedly. No releases available for package pecl.php.net/oci8 . Another website suggested that I try pear install pecl/oci8 . Same error happens. What do I do to fix this? 回答1: I have the same error on Ubuntu LTS 14.04: ~$ sudo pecl install oci8 No releases available for package "pecl.php.net/oci8" install failed Finally the reason is the Proxy

ActiveRecord oracle_enhanced adapter can't load ruby-oci8 library

天涯浪子 提交于 2019-12-23 04:03:44
问题 After successfully installing the ruby-0ci8 gem and the oracle_enhanced adapter gem I get the following error when I try to fire up my rails project server: => Booting WEBrick => Rails 3.0.3 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /Library/Ruby/Gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.3.2/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb:7: ERROR: ActiveRecord oracle_enhanced

Trying to build static CGO executable with oracle libraries on Linux/Ubuntu

一世执手 提交于 2019-12-18 17:29:58
问题 I have already searched for some days, tried several suggestions but none helped. At the moment I just want to create a small Go snippet which connects to an Oracle Database. While everything works by using normal go build and invoking the resulting dynamic linked application, I am stuck when I try to run the static compiler. I already have build other projects statically (even with CGO) without problems, but here gcc is not finding the oracle library. Maybe someone has a hint? Error during

can not load oci8 -> Fatal error: Call to undefined function oci_connect()

夙愿已清 提交于 2019-12-17 20:27:14
问题 I want to connect to my oracle database, but i have a problem with function oci_connect. i have tried to uncomment this: extension=php_oci8.dll but, still have an error : Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\testing\db.php on line 71 But, when i check in phpinfo(), oci8 still not loaded and i can not connect to my oracle database. i already restart my apache. How i fix this problem ? Canyou help me? Thank you.. 回答1: In php.ini ensure that you enable the

Connection OCI8 for PHP on IIS7 windows 2008

独自空忆成欢 提交于 2019-12-14 02:29:05
问题 I have PHP application running on IIS7, windows 2008 R2 server i try to connect to remote Oracle DB, i installed PHP on the IIS7 useing web platform installer, then enabled the following extension : php_oci8.dll, php_oci8_11g.dll, php_pdo_oci.dll when i run phpinfo i can't find oci8 enabled in the extensions. this is my function to connect <?php function oci_query_assoc($oconn,$query){ $result = oci_parse($query); oci_execute($oconn,$result); while($row = oci_fetch_assoc($result)){ $return[]

oci8, php7 and Oracle 10.1 compatibility

风格不统一 提交于 2019-12-12 19:15:26
问题 I have to upgrade a system from php5.6 to php7.2 . The system uses an oracle 10.1 database. Now I tried to collect all infos but am still confused about the compatibility between php , oci8 , instant client and the database. I read, that with php7 I have to at least install oci8 2.1 , but this doesn't work with oracle 10.1 . Is that correct? Or is it possible to run php7 with oracle 10.1 ? Please enlighten me :) 回答1: I read, that with php7 I have to at least install oci8 2.1, but this doesn't

Can I return values to PHP from an anonymous PL/SQL block?

安稳与你 提交于 2019-12-12 15:19:10
问题 I'm using PHP and OCI8 to execute anonymous Oracle PL/SQL blocks of code. Is there any way for me to bind a variable and get its output upon completion of the block, just as I can when I call stored procedures in a similar way? $SQL = "declare something varchar2 := 'I want this returned'; begin --How can I return the value of 'something' into a bound PHP variable? end;"; 回答1: You define an out parameter by using the keyword OUT between the name and data type declaration. IE: CREATE OR REPLACE

Setting OS User with Oracle Call Interface (OCI)

北战南征 提交于 2019-12-12 04:42:52
问题 I'm trying to change the OS User that is passed to Oracle during database connection set up in golang oracle oci-8 driver. This is in a similar way to setting the v$session.osuser in the Java JDBC drivers. I'm trying to modify mattn's go-oci8 oracle driver so I can change the os user value on the fly. I've tried adding conn.attrs.Set("os_user", "test_os_user") in the open method. I've trawled through the oci docs and I think I might need to set OCI_ATTR_CLIENT_IDENTIFIER but I can work out if

How to use prepared statements and bound parameters in PHP oci8

≡放荡痞女 提交于 2019-12-11 17:45:10
问题 So using prepared statements and bound parameters is the suggested way for writing sql statements. Oci8 manual does not describe how to do it with prepared statements. Below is how to return the next row from a query as an object, but it's not the best practice as the query string can contain a where col = $PHPvariable <?php $conn = oci_connect('hr', 'welcome', 'localhost/XE'); if (!$conn) { $e = oci_error(); trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR); } $select_sql=