Search notes:

Oracle hint: OPT_ESTIMATE

opt_estimate influences costing and cardinality estimates. This hint supersedes cardinality.

Influence assumed number of rows

create table tq84_opt_est (
    num    number,
    txt    varchar2(10)
);

explain plan for
select
/*+
    opt_estimate(table tq84_opt_est rows=12345)
*/
    num,
    txt
from
    tq84_opt_est;

select * from table(dbms_xplan.display(format=>'basic +rows'));
--
-- --------------------------------------------------
-- | Id  | Operation         | Name         | Rows  |
-- --------------------------------------------------
-- |   0 | SELECT STATEMENT  |              | 12345 |
-- |   1 |  TABLE ACCESS FULL| TQ84_OPT_EST | 12345 |
-- --------------------------------------------------

drop   table tq84_opt_est;

See also

v$sql_reoptimization_hints
The plan_table column cardinality.
Other hints such as opt_param

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758198716, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/hints/list/opt/estimate/index(70): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78