![]() |
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; ![]() 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(); |
Messages In This Thread |
Class "CodeIgniter\Database\oci8\Connection" not found - by gvalderlan - 10-20-2023, 09:20 AM
RE: Class "CodeIgniter\Database\oci8\Connection" not found - by JustJohnQ - 10-20-2023, 10:44 AM
RE: Class "CodeIgniter\Database\oci8\Connection" not found - by gvalderlan - 10-20-2023, 11:11 AM
RE: Class "CodeIgniter\Database\oci8\Connection" not found - by kenjis - 10-20-2023, 02:08 PM
RE: Class "CodeIgniter\Database\oci8\Connection" not found - by gvalderlan - 10-23-2023, 02:36 PM
RE: Class "CodeIgniter\Database\oci8\Connection" not found - by kenjis - 10-20-2023, 02:12 PM
|