oci

Enabling PDO OCI

人盡茶涼 提交于 2019-12-24 04:22:10
问题 I've tried to install OCI, so I can use new PDO("oci:dbname... After 1,5h of fight I've installed oracle instantclient (basic and sdk) and then oci for php (as described here http://ubuntuforums.org/showthread.php?t=92528). Now I'm a bit confused because my PHPinfo tells that OCI8 Support is enabled, but in PDO section there's only odbc in "PDO drivers" section. When did I go wrong? P.S. I've got XUBUNTU 12.10 and following packets installed: php-pear, php5, php5-cli, php5-common, php5-dbg,

Enabling PDO OCI

╄→尐↘猪︶ㄣ 提交于 2019-12-24 04:22:07
问题 I've tried to install OCI, so I can use new PDO("oci:dbname... After 1,5h of fight I've installed oracle instantclient (basic and sdk) and then oci for php (as described here http://ubuntuforums.org/showthread.php?t=92528). Now I'm a bit confused because my PHPinfo tells that OCI8 Support is enabled, but in PDO section there's only odbc in "PDO drivers" section. When did I go wrong? P.S. I've got XUBUNTU 12.10 and following packets installed: php-pear, php5, php5-cli, php5-common, php5-dbg,

How do I call an ORACLE function from OCI?

北战南征 提交于 2019-12-23 01:20:06
问题 I can call an ORACLE stored procedure through OCI in a C program by constructing the SQL command for the command, here's a brief snippet from my code: /* build sql statement calling stored procedure */ strcpy ( sql_stmt, "call get_tab_info(:x)" ); rc = OCIStmtPrepare(p_sql, p_err, sql_stmt, (ub4) strlen (sql_stmt), (ub4) OCI_NTV_SYNTAX, (ub4) OCI_DEFAULT); But how do I construct a call (in my C program) to an ORACLE function with the following signature: CREATE OR REPLACE FUNCTION get_seq

PHP & Oracle - oci_connect() ORA-12705: Cannot access NLS data files

余生长醉 提交于 2019-12-22 17:29:13
问题 We've been using Oracle on our server for years, but someone from IT removed it yesterday without clear warning and it's really thrown our systems! I've acted on the advice from cwallenpoole (thank you!) and have made good progress, and PHP is now at least including the oracle functions (ie oci_connect) but I am now experiencing another error message: " Warning: oci_connect() [function.oci-connect]: ORA-12705: Cannot access NLS data files or invalid environment " We have ensured the tnsnames

PHP7.0 - unable to load dynamic library oci8.so (Ubuntu)

梦想与她 提交于 2019-12-20 06:51:09
问题 After following the install instructions for oracle instant client, php is not able to load the oci8 extension. http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html#ic_x64_inst I am getting an error. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/oci8.so' - libmql1.so: cannot open shared object file: No such file or directory in Unknown on line 0 I have verified both oci8.so and libmql1.so locations. Am I missing something? 回答1: I'm using

PHP, IIS, Oracle (OCI) not working

可紊 提交于 2019-12-19 11:54:48
问题 We are migrating from a Windows SBS 2011 to Windows Server 2012 R2. We have an internal website that connects to our Oracle database using PHP. I am trying to migrate this to the new server and so far I have: Installed IIS Server Role Installed PHP Downloaded Oracle Instant Client to C:\instantclient Added C:\instantclient to PATH System Variable Added php_oci8.dll to php.ini and checked that PHP is actually using this php.ini Restarted server I am still getting error messages like oci_

PHP, IIS, Oracle (OCI) not working

ぐ巨炮叔叔 提交于 2019-12-19 11:54:10
问题 We are migrating from a Windows SBS 2011 to Windows Server 2012 R2. We have an internal website that connects to our Oracle database using PHP. I am trying to migrate this to the new server and so far I have: Installed IIS Server Role Installed PHP Downloaded Oracle Instant Client to C:\instantclient Added C:\instantclient to PATH System Variable Added php_oci8.dll to php.ini and checked that PHP is actually using this php.ini Restarted server I am still getting error messages like oci_

PHP interpreter gets undefined constant OCI_COMMIT_ON_SUCCESS with ADODB

懵懂的女人 提交于 2019-12-19 09:03:36
问题 I wrote a php script that must be run on the php interpreter (Without Apache), which uses the adodb library with an Oracle database, but when I try to run it, I'm getting the following error: PHP Notice: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS' in c:\proyect\backend\libraries\adodb\adodb.inc.php on line 4248 I've checked, and have both the php_oci8 and php_oci8_11g enabled, so the constant SHOULD be defined. Also, when I run this script WITH Apache, it

oci_bind_by_name and to_date PHP/OCI/Oracle

不打扰是莪最后的温柔 提交于 2019-12-18 07:50:30
问题 I have the following: $ARTIFACT_NAME = $_POST['ArtifactName']; $ARTIFACT_TYPE = $_POST['ArtifactType']; $ARTIFACT_LOCATION = $_POST['ArtifactLocation']; $ARTIFACT_DOMAIN = $_POST['ArtifactDomain']; $ARTIFACT_AUTHOR = $_POST['ArtifactAuthor']; $ARTIFACT_LABEL = 'DB_'.$ARTIFACT_LOCATION.'_'.$ARTIFACT_DOMAIN.'_'.$ARTIFACT_NAME; $AUDIT_CONSTRAINTS = $_POST['AuditConstraints']; $SECURITY_CONSTRAINTS = $_POST['SecurityConstraints']; $REGISTERED_EMAIL = $_SERVER['HTTP_REMOTE_USER']; $REGISTERED

Error loading oci8.so with Ubuntu server 17.04 php 7 and apache2

陌路散爱 提交于 2019-12-18 07:12:52
问题 I have gone through the whole process of downloading Oracle instant client, SDK, etc. in a Ubuntu Server 17.04. Then converted rpm packages to deb with alien, installed, set the paths, downloaded pecl oci8, compiled and installed (w/o errors), etc. and then added the line: extension=/usr/lib/php/20151012/oci8.so And restarted. When I check the /var/log/apache2/error.log I see: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/oci8.so' - libmql1.so: cannot open