oracle-jruby

Provide JRuby Oracle ActiveRecord and JDBC patterns for Oracle EBS models and queries.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Grupo-AFAL/claude-plugins --skill oracle-jruby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oracle-jruby
Source: https://github.com/Grupo-AFAL/claude-plugins/tree/main/oracle-tools/skills/oracle-jruby
Command: npx skills add https://github.com/Grupo-AFAL/claude-plugins --skill oracle-jruby

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Oracle on JRuby with the oracle_enhanced adapter introduces many integration pitfalls compared with other databases: mismatched SQL dialect, DATE and CLOB handling differences, uppercase metadata, sequence-driven primary keys, and JRuby thread-based connection pool requirements. These issues lead to subtle bugs, performance regressions, and broken migrations if not handled with platform-specific patterns.

Core Features & Use Cases

  • Oracle::Base conventions: guidance for creating an abstract base model with table_name_prefix, explicit primary_key, and sequence handling for EBS tables.
  • Safe raw SQL & PL/SQL: patterns for bind-variable usage, anonymous PL/SQL blocks, and pagination using ROWNUM or FETCH/FIRST idioms.
  • Type and connection handling: best practices for Oracle DATE vs time semantics, CLOB usage, NLS settings, JDBC properties, and pool sizing for JRuby + Puma.
  • Use Case: implement a new model backed by an EBS table, write efficient cursor-based pagination, and debug oracle_enhanced adapter behavior in production.

Quick Start

Use the oracle-jruby skill to create an Oracle::Base model for table MTL_SYSTEM_ITEMS_B with an explicit primary key, example raw SQL using bind variables, and guidance on date and CLOB handling.

Frequently Asked Questions about oracle-jruby

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

FAQPage Schema
How do I configure Oracle ActiveRecord models for EBS tables on JRuby?

JRuby Oracle ActiveRecord patterns require an abstract Oracle::Base model defining table_name_prefix, explicit primary_key, and sequence handling to properly map uppercase EBS tables via the oracle_enhanced adapter.

What is the best way to handle Oracle DATE and CLOB types in JRuby ActiveRecord?

Handling Oracle DATE and CLOB types in JRuby ActiveRecord requires applying specific TRUNC date handling semantics and CLOB usage best practices alongside correct NLS settings to prevent type mismatch bugs.

How do I execute raw SQL and PL/SQL with bind variables in JRuby on Oracle?

Executing raw SQL and PL/SQL in JRuby on Oracle requires using bind-variable patterns and anonymous PL/SQL blocks to ensure safe queries, alongside ROWNUM or FETCH FIRST idioms for efficient pagination.

Does the oracle_enhanced adapter work with JRuby Puma thread-based connection pools?

The oracle_enhanced adapter works with JRuby Puma thread-based connection pools, but requires specific JDBC connection pool tuning and property sizing to avoid performance regressions in production environments.

Why do my Oracle EBS migrations break when using JRuby ActiveRecord?

Oracle EBS migrations break in JRuby ActiveRecord due to integration pitfalls like sequence-driven primary keys, uppercase metadata mismatching, and DATE type differences requiring platform-specific oracle_enhanced adapter workarounds.