I’m having trouble connecting the codeigniter on oracle

Asked

Viewed 221 times

0

I’m having two problems configuring the connection with oracle.

A PHP Error was encountered
Severity: Notice

Message: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS'

Filename: database/DB.php

Line Number: 201

Backtrace:

File: C:\Users\willian.nascimento\Desktop\projeto\Teste\Source\Release\application\third_party\MX\Loader.php
Line: 109
Function: DB

File: C:\Users\willian.nascimento\Desktop\projeto\Teste\Source\Release\application\third_party\MX\Loader.php
Line: 65
Function: initialize

File: C:\Users\willian.nascimento\Desktop\projeto\Teste\Source\Release\application\third_party\MX\Base.php
Line: 55
Function: __construct

File: C:\Users\willian.nascimento\Desktop\projeto\Teste\Source\Release\application\third_party\MX\Base.php
Line: 60
Function: __construct

File: C:\Users\willian.nascimento\Desktop\projeto\Teste\Source\Release\application\third_party\MX\Controller.php
Line: 4
Function: require

File: C:\Users\willian.nascimento\Desktop\projeto\Teste\Source\Release\application\third_party\MX\Modules.php
Line: 123
Function: include_once

File: C:\Users\willian.nascimento\Desktop\projeto\Teste\Source\Release\application\modules\contrato\controllers\Contrato.php
Line: 4
Function: spl_autoload_call

File: C:\Users\willian.nascimento\Desktop\projeto\Teste\Source\Release\index.php
Line: 315
Function: require_once


Fatal error: Call to undefined function oci_connect() in C:\Users\willian.nascimento\Desktop\projeto\Teste\Source\Release\system\database\drivers\oci8\oci8_driver.php on line 238
A PHP Error was encountered
Severity: Error

Message: Call to undefined function oci_connect()

Filename: oci8/oci8_driver.php

Line Number: 238

Backtrace:

I’m using codeigniter 3.

Note: I have checked my php.ini and disabled only the extensions related to oci8 and have also checked if these dlls are in ext folder.

My phpinfo()

inserir a descrição da imagem aqui

  • You have the oracle client on the machine you’re using ?

  • @Otto that oracle client you’re talking about is this instantclient_12_2? If it’s yes, it’s in my machine.

  • paths configured ? in phpinfo appears the extension ?

  • So @Otto I think so but just in case I updated the question with the phpinfo() of my php.ini.

  • OCI 8 is not being loaded, you would have to see in php logs what is occurring

  • @Otto where can I see these logs?

  • take a look at google to see right in your system

  • @Otto saw in the logs and now the error is this here: Unable to load dynamic library 'pdo_oci' (tried: C:\php\ext\pdo_oci (NÒo foi possÝvel encontrar o m¾dulo especificado.
), C:\php\ext\php_pdo_oci.dll (NÒo foi possÝvel encontrar o m¾dulo especificado.
)) in Unknown on line 0

  • 1

    then take a look at this link http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-12c-2088811.html

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.