# checheswap/oracletosqlserver_migrator architecture

> Architecture diagram of the GitHub repository checheswap/oracletosqlserver_migrator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/checheswap/oracletosqlserver_migrator
- Repository: https://github.com/checheswap/oracletosqlserver_migrator

## Overview

This is a Windows Forms Oracle-to-SQL Server migration tool. A user selects an Oracle schema, chooses a destination database name and migration options, then starts an export. The central model creates the destination and coordinates Oracle-side preparation and transfer of DDL, DML, referential constraints, and views. The README confirms the product purpose; the sampled code shows the UI and orchestration, Oracle stored-procedure access, and SQL Server database operations. Some Oracle implementation details are unsampled, so the graph groups those responsibilities without guessing their internal calls.

Main entry points: [`CSHARP/central_model.cs`](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/central_model.cs) (Migration controller), [`CSHARP/baseGUI.cs`](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/baseGUI.cs) (Application window), [`CSHARP/central.cs`](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/central.cs) (Migration form), [`CSHARP/oracleDB.cs`](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs) (Oracle access)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop UI"]
  node_shell["Application window<br/>[baseGUI.cs]"]
  node_mainform["Migration form<br/>[central.cs]"]
  node_progress["Export dialog<br/>[onExport.cs]"]
end

subgraph group_control["Migration control"]
  node_model["Migration controller<br/>[central_model.cs]"]
end

subgraph group_source["Oracle source"]
  node_oracle["Oracle access<br/>[oracleDB.cs]"]
  node_oracle_server[("Oracle database")]
  node_source_discovery["Schema discovery<br/>[oracleDB.cs]"]
  node_ddl["DDL extraction<br/>[oracleDB.cs]"]
  node_dml["DML extraction<br/>[oracleDB.cs]"]
  node_constraints["Constraint extraction<br/>[oracleDB.cs]"]
  node_views["View extraction<br/>[oracleDB.cs]"]
end

subgraph group_destination["SQL Server destination"]
  node_sqlserver_access["SQL Server access<br/>[msSqlDB.cs]"]
  node_sqlserver[("SQL Server")]
end

node_user(("Operator"))

node_user -->|"opens"| node_shell
node_shell -->|"shows"| node_mainform
node_mainform -->|"creates"| node_model
node_model -->|"loads schemas"| node_source_discovery
node_model -->|"loads tables and views"| node_source_discovery
node_model -->|"creates database"| node_sqlserver_access
node_model -->|"prepares source"| node_oracle
node_model -->|"transfers DDL"| node_ddl
node_model -->|"transfers DML"| node_dml
node_model -->|"transfers constraints"| node_constraints
node_model -->|"transfers views"| node_views
node_model -->|"opens dialog"| node_progress
node_oracle -->|"executes procedures"| node_oracle_server
node_sqlserver_access -->|"creates and writes"| node_sqlserver

click node_shell "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/baseGUI.cs"
click node_mainform "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/central.cs"
click node_progress "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/onExport.cs"
click node_model "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/central_model.cs"
click node_oracle "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs"
click node_source_discovery "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs"
click node_ddl "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs"
click node_dml "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs"
click node_constraints "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs"
click node_views "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs"
click node_sqlserver_access "https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/msSqlDB.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_shell,node_mainform,node_progress toneBlue
class node_model toneAmber
class node_oracle,node_oracle_server,node_source_discovery,node_ddl,node_dml,node_constraints,node_views toneMint
class node_sqlserver_access,node_sqlserver toneRose
class node_user toneIndigo
```

## Components

### Desktop UI

- [Application window](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/baseGUI.cs): `CSHARP/baseGUI.cs`
- [Migration form](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/central.cs): `CSHARP/central.cs`
- [Export dialog](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/onExport.cs): `CSHARP/onExport.cs`

### Migration control

- [Migration controller](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/central_model.cs): `CSHARP/central_model.cs`

### Oracle source

- [Oracle access](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs): `CSHARP/oracleDB.cs`
- **Oracle database**
- [Schema discovery](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs): `CSHARP/oracleDB.cs`
- [DDL extraction](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs): `CSHARP/oracleDB.cs`
- [DML extraction](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs): `CSHARP/oracleDB.cs`
- [Constraint extraction](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs): `CSHARP/oracleDB.cs`
- [View extraction](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/oracleDB.cs): `CSHARP/oracleDB.cs`

### SQL Server destination

- [SQL Server access](https://github.com/checheswap/oracletosqlserver_migrator/blob/master/CSHARP/msSqlDB.cs): `CSHARP/msSqlDB.cs`
- **SQL Server**

### Other components

- **Operator**

## Connections

- Operator → Application window: opens (evidence: `CSHARP/baseGUI.cs`)
- Application window → Migration form: shows (evidence: `CSHARP/baseGUI.cs`)
- Migration form → Migration controller: creates (evidence: `CSHARP/central.cs`)
- Migration controller → Schema discovery: loads schemas (evidence: `CSHARP/central_model.cs`)
- Migration controller → Schema discovery: loads tables and views (evidence: `CSHARP/central_model.cs`)
- Migration controller → SQL Server access: creates database (evidence: `CSHARP/central_model.cs`)
- Migration controller → Oracle access: prepares source (evidence: `CSHARP/central_model.cs`)
- Migration controller → DDL extraction: transfers DDL (evidence: `CSHARP/central_model.cs`)
- Migration controller → DML extraction: transfers DML (evidence: `CSHARP/central_model.cs`)
- Migration controller → Constraint extraction: transfers constraints (evidence: `CSHARP/central_model.cs`)
- Migration controller → View extraction: transfers views (evidence: `CSHARP/central_model.cs`)
- Migration controller → Export dialog: opens dialog (evidence: `CSHARP/central_model.cs`)
- Oracle access → Oracle database: executes procedures (evidence: `CSHARP/oracleDB.cs`)
- SQL Server access → SQL Server: creates and writes (evidence: `CSHARP/msSqlDB.cs`)
