Guest User

Untitled

a guest
Jul 16th, 2019
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extension=oci8_12c ; Use with Oracle Database 12c Instant Client
  2. extension=php_oci8.dll
  3. extension=php_oci8_12c.dll
  4. extension=php_oracle.dll
  5. extension=pdo_odbc
  6. extension=pdo_pgsql
  7.  
  8. <?php
  9.  
  10. $conn="(DESCRIPTION =
  11. (ADDRESS_LIST =
  12. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.9)(PORT = 1521))
  13. )
  14. (CONNECT_DATA =
  15. (SERVICE_NAME = PRD)
  16. (SERVER = DEDICATED)
  17. )
  18. )";
  19. $conexao = oci_connect('DBA', '123', $conn);
  20.  
  21. if (isset ($conexao) || empty($conexao)){
  22. $erro = oci_error();
  23. trigger_error(htmlentities($erro['erro'], ENT_QUOTES), E_USER_ERROR);
  24. exit;
  25. }
  26.  
  27. echo"Hello";
  28.  
  29. ?>
  30.  
  31. Fatal error: Uncaught Error: Call to undefined function oci_connect() in C:wamp64wwwTestetestesconexaooracle.php on line 12
  32.  
  33. Error: Call to undefined function oci_connect() in C:wamp64wwwTestetestesconexaooracle.php on line 12
RAW Paste Data