Search notes:

Oracle hint: DYNAMIC_SAMPLING

Variants

There are two variants of the hint.

Setting sampling level

The following form sets the dynamic sampling level for the duration of a cursor to n (an integer value between 0 and 10)
/*+ dynamic_sampling(n) */

If the hint has two arguments, the first is a table reference (t) and the second is a number (b).
When using this variant, Oracle will read («sample») 2^(b-1) * _optimizer_dyn_smp_blks data block to estimate a better selectivity of where clauses on the referenced table.
/*+ dynamic_sampling(t b) */

See also

Dynamic optimizer statistics
The init parameter optimizer_dynamic_sampling.
Other hints

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...', 1758191705, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/hints/list/dynamic_sampling/index(60): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78