Error index System views index
Latest
- · MySQL · How-to
AWR for MySQL: snapshots of performance_schema statement digests
Keep 5-minute snapshots of events_statements_summary_by_digest, with the host's CPU, so you can ask what ran during last night's spike and compare it with a normal hour.
- · Vitess · Fix
EmergencyReparentShard: "could not reach sufficient tablets to guarantee safety"
Why EmergencyReparentShard refuses to promote when the old primary and a replica both stop answering, and how to get the shard a writable primary again.
- · MySQL · Fix
MySQL CPU at 90% but the slow query log is empty
When MySQL's CPU is pinned and the slow query log shows nothing, the cost is usually a fast statement run very often. How to find it in performance_schema and what to do about it.
- · MySQL · Script
MySQL statements that examine far more rows than they return
Find the statements that read thousands of rows to return a handful, usually a missing or unusable index, from performance_schema's digest summary.
- · Vitess · Fix
PlannedReparentShard takes 15+ seconds: "Locking shard ... for action repairReplication"
Why PlannedReparentShard on Vitess v14 stalls for 5 to 18 seconds while the old primary waits for a shard lock PRS is holding, and how to fix it.
- · MySQL · Script
pt-query-digest on RDS when the slow log is a table (log_output=TABLE)
pt-query-digest only reads slow-log files. This rebuilds the last N minutes of mysql.slow_log as one, with microsecond timings, and runs the report, from cron or by hand.
- · Oracle Database · Fix
"ORA-01000: maximum open cursors exceeded": find the sessions holding them
Find which sessions, machines and SQL hold the most open cursors when ORA-01000 hits, from gv$sesstat 'opened cursors current'.
- · Oracle Database · Script
"ORA-01438: value larger than specified precision": the largest value NUMBER(p) accepts
Print the largest value a NUMBER(p) column can store, to check whether a value that hit ORA-01438 really doesn't fit, or to size a new column.
- · Oracle Database · Fix
"ORA-01652: unable to extend temp segment": who is using TEMP right now
Find the sessions and SQL using TEMP space when ORA-01652 hits, plus TEMP tablespace size and free space, from v$tempseg_usage and dba_temp_free_space.
- · Oracle Database · Script
"ORA-03297: file contains used data beyond requested RESIZE value": shrink datafiles to the high-water mark
Generate ALTER DATABASE DATAFILE RESIZE statements that shrink each file of a tablespace to its last used extent, so you never ask for a size below the high-water mark.
New fixes and field notes by email
New KB entries and HASHJOIN Field Notes on running production database fleets. About once a month, no spam.