agentsclimarketplace

Oracle tuning ptbr

Skill Maxwbh/oracle-skills-ptbr/skills/oracle-tuning-ptbr

Skill PT-BR para Claude com padrões Trivadis 4.4 — desenvolvimento Oracle (PL/SQL, APEX, ORDS, DBA, Tuning, Trivadis, DevOps)

Install
npx -y skills add Maxwbh/oracle-skills-ptbr --skill oracle-tuning-ptbr

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Performance tuning Oracle 19c — explain plan, AWR em tempo real, ASH, indexes, hints, bind variables, cursor sharing, DBMS_STATS, V$SQL, V$SQLAREA, V$SESSION_WAIT. ATIVE em query lenta, full scan indesejado, hard parse alto, index strategy, plano de execução ruim, estatísticas desatualizadas, cardinality errada, AWR snapshot, ASH amostragem. Frases — "query está lenta", "qual index criar", "melhorar explain plan", "muitos hard parse", "cursor sharing", "optimizer hint", "runstats". NAO ATIVE em DBA operacional (sessões/locks/tablespace), código PL/SQL novo, APEX, ORDS. Templates em assets/.

SKILL.md

4.1 KB, as published. Nobody here has run it

oracle-tuning-ptbr — v2.0.0

Performance tuning Oracle 19c — análise de planos de execução, índices, AWR e ASH em tempo real.

Desenvolvido por: Maxwell da Silva Oliveira — M&S do Brasil LTDA

Áreas cobertas

ÁreaReferenceAssets
Performancereferences/performance-tuning.mdexplain_plan_workflow.sql, index_strategy_examples.sql

Quando ativar

  • Query lenta — análise de explain plan, AUTOTRACE, DBMS_XPLAN.DISPLAY_CURSOR
  • Índices: B-Tree, Bitmap, Function-Based, Composite, Invisible
  • V$SQL, V$SQLAREA — top SQL por ELAPSED_TIME, CPU_TIME, BUFFER_GETS
  • V$SESSION_WAIT, V$SYSTEM_EVENT — wait event analysis
  • Hard parse alto: bind variables ausentes, cursor sharing
  • Cardinality errada: DBMS_STATS, METHOD_OPT, HISTOGRAM
  • AWR em tempo real: DBA_HIST_SQLSTAT, DBA_HIST_SYSTEM_EVENT (requer Diagnostics Pack)
  • ASH: V$ACTIVE_SESSION_HISTORY, DBA_HIST_ACTIVE_SESS_HISTORY
  • Hints: /*+ APPEND */, /*+ INDEX */, /*+ PARALLEL */, /*+ FIRST_ROWS */
  • MERGE vs loop, BULK COLLECT para I/O pesado
  • Estatísticas: GATHER_SCHEMA_STATS, GATHER_TABLE_STATS, lock stats

Não usar para: DBA ops (sessão/lock/kill), código PL/SQL novo, APEX, ORDS.

Princípios canônicos

  • Medir antes de otimizar. Baseline com SET TIMING ON + AUTOTRACE. Sem medição, otimização é placebo.
  • Bind variables primeiro. Hard parse elevado em V$SQLAREA resolve antes de qualquer tuning de index.
  • Index ≠ sempre melhor. Full scan em tabela pequena ou query retornando > 10% das linhas geralmente vence B-Tree.
  • AWR requer licença. DBA_HIST_* → Diagnostics Pack obrigatório. Checar control_management_pack_access.
  • Histogram nas colunas com skew. Sem histogram, optimizer usa densidade plana → plano errado em distribuição assimétrica.
  • CREATE INDEX ONLINE em produção — sem ONLINE, bloqueia DML.

Referências cruzadas

Precisa deSkill
PL/SQL com BULK COLLECT, loop otimizadooracle-plsql-ptbr
AWR histórico, sessões, DBA operacionaloracle-dba-ptbr
Query lenta em report APEXoracle-apex-ptbr
Naming Trivadis em scripts de tuningoracle-trivadis-ptbr

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.