Catalog
github/ssma-console

github

ssma-console

Use when: SSMA console operations — create project, generate assessment report, convert schema, migrate data, Oracle to SQL Server migration, schema conversion, data migration

v1.0Latest
New~1.8kUpdated Jun 26, 2026

SSMA Console — Oracle to SQL Server Migration

Generate XML configs and invoke SSMAforOracleConsole.exe directly — no external scripts or wrappers.

Operations (run in order for "full migration"):

  1. create-project — connect source & target, map schema
  2. generate-report — assessment report
  3. migrate-schema — convert & deploy schema
  4. migrate-data — convert, deploy, migrate data end-to-end

Collect Inputs

Ask for missing parameters. Defaults in parentheses.

Oracle: Host (localhost), Port (1521), Instance (required, service name), User, Password, Schema SQL Server: Server, Database, User, Password, Encrypt (true), Trust Server Certificate (true), Target Schema (dbo) Project: Name (ssma-migration), Folder (.), Type (sql-server-2022 — also 2016/2017/2019/2025/sql-azure), SSMA Path (C:\Program Files\Microsoft SQL Server Migration Assistant for Oracle\bin\SSMAforOracleConsole.exe)

Generate XML Files

Resolve ALL {PLACEHOLDER} tokens before writing. Generate 3 files:

ssma-variables.xml

<?xml version="1.0" encoding="utf-8"?>
<variables>
  <variable name="$WorkingFolder$" value="{PROJECT_FOLDER}" />
  <variable name="$ProjectType$" value="{PROJECT_TYPE}" />
  <variable name="$ProjectName$" value="{PROJECT_NAME}" />
  <variable-group name="OracleConnection">
    <variable name="$OracleHostName$" value="{ORACLE_HOST}" />
    <variable name="$OracleInstance$" value="{ORACLE_INSTANCE}" />
    <variable name="$OraclePort$" value="{ORACLE_PORT}" />
    <variable name="$OracleUserName$" value="{ORACLE_USER}" />
    <variable name="$OraclePassword$" value="{ORACLE_PASSWORD}" />
    <variable name="$OracleSchemaName$" value="{ORACLE_SCHEMA}" />
  </variable-group>
  <variable-group name="SQLServerConnection">
    <variable name="$SQLServerName$" value="{SQL_SERVER}" />
    <variable name="$SQLServerDb$" value="{SQL_DATABASE}" />
    <variable name="$SQLServerUsrID$" value="{SQL_USER}" />
    <variable name="$SQLServerPwd$" value="{SQL_PASSWORD}" />
  </variable-group>
  <variable-group name="ReportSettings">
    <variable name="$SummaryReportFile$" value="Reports\Assessment\AssessmentReport.xml" />
    <variable name="$ConversionReportFile$" value="Reports\Conversion\ConversionReport.xml" />
    <variable name="$ConversionReportFolder$" value="Reports\Conversion" />
    <variable name="$DataMigrationReportFile$" value="Reports\Migration\DataMigrationReport.xml" />
    <variable name="$SynchronizationReportFolder$" value="Reports\Synchronization" />
  </variable-group>
</variables>

ssma-servers.xml

CRITICAL: Use tns-name-modestandard-mode treats instance as SID and fails with ORA-12505.

<?xml version="1.0" encoding="utf-8"?>
<servers>
  <oracle name="source_oracle">
    <tns-name-mode>
      <connection-provider value="OracleClient" />
      <service-name value="(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = $OracleHostName$)(PORT = $OraclePort$)))(CONNECT_DATA =(SERVICE_NAME = $OracleInstance$)))" />
      <user-id value="$OracleUserName$" />
      <password value="$OraclePassword$" />
    </tns-name-mode>
  </oracle>
  <sql-server name="target_sqlserver">
    <sql-server-authentication>
      <server value="$SQLServerName$" />
      <database value="$SQLServerDb$" />
      <user-id value="$SQLServerUsrID$" />
      <password value="$SQLServerPwd$" />
      <encrypt value="{ENCRYPT}" />
      <trust-server-certificate value="{TRUST_CERT}" />
    </sql-server-authentication>
  </sql-server>
</servers>

Operation Script XML

Generate one script per operation. All scripts share this common <config> block (add <object-overwrite action="overwrite" /> for migrate-schema/migrate-data, add <data-migration-connection source-use-last-used="true" target-server="target_sqlserver" /> for migrate-data, use every-5% progress for schema/data ops):

<config>
  <output-providers>
    <output-window suppress-messages="false" destination="stdout" />
    <upgrade-project action="yes" />
    <user-input-popup mode="continue" />
    <progress-reporting enable="true" report-messages="true" report-progress="every-10%" />
    <log-verbosity level="info" />
  </output-providers>
</config>

All scripts start with this preamble in <script-commands>:

<create-new-project project-folder="$WorkingFolder$" project-name="$ProjectName$"
                    overwrite-if-exists="true" project-type="$ProjectType$" />
<connect-source-database server="source_oracle">
  <object-to-collect object-name="$OracleSchemaName$" />
</connect-source-database>

CRITICAL: Always include <object-to-collect> — without it, map-schema fails with "Source namespace was not found".

Per-operation commands (after preamble, before <save-project />):

Operation File Commands after preamble
create-project ssma-create-project.xml connect-target-databasemap-schema source-schema="$OracleSchemaName$" sql-server-schema="$SQLServerDb$.{TARGET_SCHEMA}"
generate-report ssma-assessment.xml generate-assessment-report object-name="$OracleSchemaName$" object-type="Schemas" write-summary-report-to="$SummaryReportFile$" verbose="true" report-errors="true"
migrate-schema ssma-schema.xml connect-target-databasemap-schemaconvert-schema (to $ConversionReportFile$) → synchronize-target object-name="$SQLServerDb$.{TARGET_SCHEMA}"
migrate-data ssma-data.xml Same as migrate-schema + refresh-from-databasemigrate-data object-name="$OracleSchemaName$.Tables" object-type="category" (to $DataMigrationReportFile$) → close-project

Execute

Show resolved XML and command to user. Confirm before running.

New-Item -ItemType Directory -Force -Path "Reports\Assessment","Reports\Conversion","Reports\Migration","Reports\Synchronization","Logs" | Out-Null
& "{SSMA_CONSOLE_PATH}" -s "{SCRIPT_XML}" -c "ssma-servers.xml" -v "ssma-variables.xml" -l "Logs\{OPERATION}.log"

Report Results

Check exit code (0 = success), read logs and reports (Reports\Assessment\, Reports\Conversion\, Reports\Migration\), summarize findings.

Constraints

  • No external scripts — no .ps1, .bat, .sh
  • Confirm connection details before executing
  • Resolve all placeholders — no {...} in final XML
  • Create output directories before execution

Known Pitfalls

Symptom Fix
ORA-12505: SID not registered Use tns-name-mode, not standard-mode
Source namespace was not found Add <object-to-collect> to connect-source-database
not found in metabase on force-load Use object-to-collect instead — force-load is unreliable
SQL Server Agent is not running Warning only — BCP client-side migration still works
Files1
1 files · 1.0 KB

Select a file to preview

Overall Score

62/100

Grade

C

Adequate

Safety

45

Quality

68

Clarity

82

Completeness

52

Summary

SSMA Console Skill guides agents to orchestrate SQL Server Migration Assistant for Oracle-to-SQL Server database migrations. It provides templated XML configurations for four sequential operations (create project, generate assessment report, migrate schema, migrate data) and direct invocation of the SSMA console executable with placeholder resolution, output directory management, and result reporting.

Detected Capabilities

file write (XML config generation)shell execution (PowerShell invocation of SSMA executable)file read (log and report parsing)directory creationcredential handling (database connection strings)

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

oracle to sql serverssma migrationdatabase schema conversionmigrate oracle databasessma console

Risk Signals

CRITICAL

Plaintext credentials embedded in XML configuration files

ssma-variables.xml template — Oracle and SQL Server password fields
CRITICAL

Credentials passed to external process without encryption

PowerShell invocation of SSMAforOracleConsole.exe with -c and -v flags pointing to unencrypted XML files
WARNING

No documented credential sanitization or encryption mechanism

Skill body — Generate XML Files section, Execute section
CRITICAL

Passwords stored in plaintext on disk in project directory

ssma-variables.xml written to PROJECT_FOLDER without encryption

Use Cases

  • Orchestrate a complete Oracle-to-SQL Server migration workflow with project creation, schema mapping, and data migration
  • Generate assessment reports and conversion reports before committing to migration
  • Convert and deploy Oracle schemas to SQL Server with synchronization verification
  • Migrate table data from Oracle to SQL Server with progress tracking and validation
  • Troubleshoot SSMA failures using known pitfalls (ORA-12505, namespace not found, force-load issues)

Quality Notes

  • Strengths: Clear operation sequencing with well-defined inputs/outputs; comprehensive known pitfalls table (ORA-12505, namespace errors, force-load issues) with direct solutions; explicit placeholder resolution requirement prevents incomplete configs; correct tns-name-mode guidance for Oracle TNS connections; per-operation command table is well-structured and actionable
  • Strengths: Verification workflow (show XML before execution) reduces deployment errors; directory structure pre-creation; log aggregation and result reporting guidance
  • Weakness: CRITICAL — No guidance on credential security; plaintext passwords in XML violate enterprise security standards; no mention of encryption, credential vaults, environment variables, or secure connection strings
  • Weakness: No error recovery guidance for common SSMA failures (network timeouts, ORA errors, data type mismatches during migration)
  • Weakness: No validation of schema compatibility or data type mapping constraints before migration
  • Weakness: Missing guidance on rollback procedures or transaction management if migration fails partway through
  • Weakness: No mention of connection pooling, timeout configuration, or batch size optimization for large datasets
  • Weakness: Incomplete — no supporting files provided (no example XML templates, no validation scripts)
Model: claude-haiku-4-5-20251001Analyzed: Jun 26, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use github/ssma-console in your dev environment

Command Palette

Search for a command to run...