I was using the URL below to create the command, but I didn't know how to get Oracle statistics using Doctrine.
http://docs.symfony.gr.jp/symfony2/cookbook/console.html
If you run it with the following code, it will be ORA-00900.
$em=$this->getContainer()->get('doctrine')->getManager();
$connection=$em->getConnection();
$execute="execute dbms_stats.gather_table_stats(OWNNAME=>'test',".
"TABNAME=>'TEST_TABLE',".
"CASCADE=>true,".
"NO_INVALIDATE=>false)";
$connection->executeQuery($execute);
I think EXECUTE
was a SQL*Plus command, not PL/SQL.
BEGIN dbms_stats.gather_table_stats(...);END;
Why don't you do it like this?
717 GDB gets version error when attempting to debug with the Presense SDK (IDE)
770 Uncaught (inpromise) Error on Electron: An object could not be cloned
673 M2 Mac fails to install rbenv install 3.1.3 due to errors
687 Error in x, y, and format string must not be None
1130 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2025 OneMinuteCode. All rights reserved.