Welcome Guest, Not a member yet? Register   Sign In
Class "CodeIgniter\Database\oci8\Connection" not found
#3

(This post was last modified: 10-20-2023, 11:14 AM by gvalderlan.)

public array $homologacao = [
    'DSN'          => '',
    'hostname'      => '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = 1521)))(CONNECT_DATA = (SERVICE_NAME = service)(SERVER=DEDICATED)))',
    'username'      => 'user',
    'password'      => 'pass',
    'database'      => '',
    'DBDriver'      => 'oci8',
    'DBPrefix'      => '',
    'pConnect'      => true,
    'DBDebug'      => true,
    'charset'      => 'utf8',
    'DBCollat'      => 'utf8_general_ci',
    'swapPre'      => '',
    'encrypt'      => false,
    'compress'      => false,
    'strictOn'      => false,
    'failover'      => [],
    'port'          => 1521,
    'numberNative'  => false,
];


In my local server(WAMP) it´s ok, the application work, only on new server ubuntu appear this error;
[Image: ci4.jpg]

The simple code that work´s

$instancia = "(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = service)))";

$conn = oci_connect('user', 'pass', $instancia);

if (!$conn) {
    $e = oci_error();
    trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}

$stid = oci_parse($conn, 'SELECT TIPO FROM tabela WHERE COD = 8002');
oci_execute($stid);

$row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS);
var_dump($row);exit();
Reply


Messages In This Thread
RE: Class "CodeIgniter\Database\oci8\Connection" not found - by gvalderlan - 10-20-2023, 11:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB