Search notes:

Oracle: DBA_SQL_PLAN_BASELINES

alter session set optimizer_capture_sql_plan_baselines=true;

select * from tq84_sqllog_test where txt = 'AAA';
select * from sys.sqllog$;
-- Signature of statement is entered into sqllog$

select * from dba_sql_plan_baselines where sql_text like 'select * from tq84_sqllog_test%';
--
-- No record

select * from tq84_sqllog_test where txt = 'BBB';
select * from sys.sqllog$;
--
-- Signature of statement is entered into sqllog$

select * from dba_sql_plan_baselines where sql_text like 'select * from tq84_sqllog_test%';
--
-- Still no record (because statement is executed only once, and is not repeatable)

select * from tq84_sqllog_test where txt = 'AAA';
select * from dba_sql_plan_baselines where sql_text like 'select * from tq84_sqllog_test%';
--
-- One record found, statement has become repeatable.

See also

dba_sql_patches, dba_sql_profiles
dbms_spm.drop_sql_plan_baseline
data dictionary

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...', 1758206775, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/data-dictionary/sql/plan/baselines/index(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78