# Oracle Data Assistant

Connected to a real Oracle 10g database for budget, payment and other business queries, using structured plans and controlled SQL templates. Deterministic checks constrain execution, and offline regressions exercise the rule path.

- Author: Dianhai Wang
- Source: https://cv.dancelight.cn/en/projects/oracle-data-agent/
- Updated: 2026-11-17

2026.03 - 2026.05 · Personal project · Real Oracle 10g connection

## My contribution

I combined rule and model candidates with deterministic validation so only approved SQL templates can run. Before a read-only query runs, user confirmation is checked against the plan hash. I used offline regression to exercise the rule path.

## Context

A personal project combining a React data workspace, a TypeScript agent gateway and a Spring Boot data service. It turns natural-language questions into queries that can be confirmed, executed and audited, and connects to a real Oracle 10g database.

## Technologies

TypeScript, Pi SDK, Fastify, Oracle, React

## Workflow

Natural language → QueryPlan → User confirmation → Read-only SQL

## Implementation

### Plan before querying

Parsed natural language into structured QueryPlans and executed queries through a business semantic layer and approved SQL templates. Requested clarification when needed and user confirmation before execution.

### Validate model suggestions deterministically

A business dictionary and a rule baseline produce candidates, and the model can propose alternatives. Deterministic validation and arbitration choose a plan or fall back to rules or clarification.

### Bind confirmation to the actual plan

Used a plan hash to bind user confirmation to the execution plan. Added read-only queries and protection for sensitive fields.

### Break down complex questions

Decomposed questions into multiple template queries and calculation steps, consolidated evidence and exposed parsing, execution and analysis progress through SSE.

### Keep results traceable

Provided query audit logs and CSV export, and distinguished real data from mock results for review.

### Evaluate the rule path offline

Used separate sets of standard questions and paraphrases to exercise period comparisons, ambiguity and sensitive fields. Standard cases passed more consistently than paraphrases. This was a rule-mode regression, not a live model-to-Oracle evaluation.

## Delivery and scope

This personal engineering project connects a real Oracle 10g database to natural-language queries and a frontend analysis workspace. Read-only execution, confirmation and audit logs constrain data access.

## Other projects

- [Sales Knowledge Agent](https://cv.dancelight.cn/en/projects/sales-agent/)
- [B2B Sales Lead Workflow Toolkit](https://cv.dancelight.cn/en/projects/sales-lead-workflows/)
