laravel-oci8 icon indicating copy to clipboard operation
laravel-oci8 copied to clipboard

Materialized view

Open luiz-andrade opened this issue 2 years ago • 2 comments

Materialized view with the package

How do I run this materialized view with the package?

  • It works
$conn = oci_pconnect("user", "pass", "127.0.0.1/XE");
$sql = oci_parse($conn, "BEGIN DBMS_MVIEW.REFRESH('MV_DW_TESTE'); END;");
$result = oci_execute($sql);

With this command above it works

  • with PDO does not work
$pdo = DB::connection('oracle')->getPdo();
$result = DB::connection('oracle')->getPdo()->exec("BEGIN DBMS_MVIEW.REFRESH('MV_DW_TESTE'); END;");

System details

  • Linux Mint Version 21.2
  • PHP Version 8.1
  • Laravel Version 10
  • Laravel-OCI8 Version v10.3.1

luiz-andrade avatar Sep 05 '23 01:09 luiz-andrade