oracle-patterns

Diagnose Oracle ORA errors and apply bulk DML and query tuning patterns.

11|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/mindcockpit-ai/cognitive-core --skill oracle-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oracle-patterns
Source: https://github.com/mindcockpit-ai/cognitive-core/tree/main/database-packs/oracle/skills/oracle-patterns
Command: npx skills add https://github.com/mindcockpit-ai/cognitive-core --skill oracle-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides concise, actionable guidance for common Oracle database pitfalls so engineers can quickly diagnose ORA errors, handle dates correctly, perform bulk operations reliably, and improve query performance.

Core Features & Use Cases

  • ORA Error Reference: Clear meanings and remediation steps for common ORA error codes to speed troubleshooting.
  • Date and Encoding Guidance: Best practices for explicit date formatting and NLS character set checks to avoid data corruption.
  • Bulk and Performance Patterns: Strategies for IN-clause chunking, staging large sets, MERGE/PLSQL FORALL usage, bind variable adoption, and explain-plan inspection for optimization.
  • Use Case: A developer processing large ID sets can apply the IN-clause chunking and staging recommendations to avoid ORA-01795 and maintain performant queries.

Quick Start

Ask oracle-patterns for remediation steps and recommended SQL patterns for a specific ORA error or for guidance on date handling, bulk DML, and performance tuning.

Frequently Asked Questions about oracle-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix ORA-01795 when passing a large IN list in an Oracle query?

To fix ORA-01795, chunk IN lists under 1000 items or stage large ID sets in a temporary table. This prevents expression limit errors and maintains performant queries against the Oracle database.

What is the best way to handle dates in Oracle to avoid NLS character set corruption?

The best way to handle dates in Oracle is to use explicit date formatting and perform NLS character set checks. This ensures proper data encoding and prevents corruption during date operations.

How do I perform bulk DML operations in Oracle using MERGE and FORALL?

Perform Oracle bulk DML by designing INSERT ALL, MERGE, and PLSQL FORALL statements. These patterns allow reliable bulk data modifications while adopting bind variable practices to reduce parsing overhead.

Why should I use bind variables and optimizer hints in Oracle query tuning?

Bind variables and optimizer hints improve Oracle query performance by enabling execution plan reuse and guiding the optimizer. Inspecting explain plans helps verify the effectiveness of these tuning strategies.

What are the limitations of IN clause chunking for Oracle bulk operations?

IN clause chunking is limited by the Oracle 1000 item restriction per expression, requiring staging tables for larger sets. It prevents ORA-01795 but may introduce overhead when processing massive ID arrays.

Does oracle-patterns provide troubleshooting guidance for common ORA errors?

Yes, oracle-patterns provides clear meanings and remediation steps for common ORA error codes. It helps DBAs and developers quickly diagnose Oracle database errors and apply recommended SQL patterns.