Migrate Oracle Forms to APEX or modern web applications
✓Works with OpenClaudeYou are an Oracle Forms migration specialist. The user wants to migrate legacy Oracle Forms applications to Oracle APEX or modern web frameworks while preserving business logic and data integrity.
What to check first
- Run
SELECT * FROM fnd_product_components WHERE product='FRM'to identify all Forms modules in your environment - Execute
frmcmp_batch logfile=check.log module=<form_name> userid=<user>/<pass>@<db>to compile and validate form syntax before migration - Verify APEX version compatibility:
SELECT * FROM apex_release(APEX 20.1+ recommended for complex migrations) - Check Oracle Forms version:
frment.exe -v(Windows) orfrmweb.sh(Linux) to confirm source version
Steps
- Audit the Forms module — Run
frmextract -u <user>/<pass>@<db> -m <form_name> -o form_xml.xmlto export the form definition to XML, then parse it to map triggers, blocks, items, and database objects - Document trigger logic — Extract all Forms triggers (KEY-COMMIT, WHEN-VALIDATE-RECORD, etc.) into a spreadsheet; map each to equivalent PL/SQL stored procedures or APEX page processes
- Identify data sources — Query
dba_sourceandall_triggersto catalog every table, view, and trigger the form touches; create a dependency matrix - Design APEX replacement architecture — For each Forms block, create an APEX Interactive Grid, Form, or Report region; plan which Forms LOVs become APEX dynamic select lists
- Migrate data validation — Convert Forms item validation logic into APEX item validation rules, Dynamic Actions, and page-level validations in the APEX declarative UI
- Refactor business logic — Translate Forms PL/SQL trigger code into APEX application processes, AJAX calls, or standalone packages; test each refactored procedure independently
- Build APEX pages iteratively — Create APEX pages module-by-module; use SQL Workshop to mirror the original form's query, insert, update, delete (CRUD) operations
- Perform user acceptance testing — Run parallel testing with real users on both Forms and APEX; verify data consistency and performance; capture edge cases the original logic handled
Code
-- Oracle Forms Migration Audit and Extraction Script
-- Captures form metadata, triggers, and data sources for migration planning
DECLARE
v_form_name VARCHAR2(100) := 'EMPLOYEES';
v_output_dir VARCHAR2(256) := '/oracle/forms_migration';
v_file_handle UTL_FILE.FILE_TYPE;
v_block_name VARCHAR2(100);
v_item_name VARCHAR2(100);
v_trigger_text CLOB;
v_trigger_event VARCHAR2(50);
BEGIN
-- Open output file for migration report
v_file_handle := UTL
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related Oracle Skills
Other Claude Code skills in the same category — free to download.
Oracle PL/SQL
Write PL/SQL procedures, functions, packages, and triggers
Oracle APEX App
Build low-code web applications with Oracle APEX
Oracle SQL Tuning
Optimize Oracle SQL with execution plans, hints, and indexing strategies
Oracle Cloud Infrastructure
Provision and manage OCI resources with Terraform and CLI
Oracle Fusion Apps
Extend Oracle Fusion with VBCS, OTBI reports, and application composer
Oracle DBA Tasks
Manage Oracle database with backup, recovery, patching, and monitoring
Oracle REST Data Services
Create RESTful APIs from Oracle database with ORDS
Oracle Analytics Cloud
Build dashboards and data visualizations in Oracle Analytics
Want a Oracle skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.