Skip to content

compareSchema

Command: compareSchema
Category: System Tools
Status: Production Ready

⚠️ Redirect Notice

This page is a legacy compatibility alias.

👉 Go to Compare Schema Documentation

Description

Compare the structure of two schemas (tables, columns, and optionally indexes, triggers, and constraints).

Syntax

bash
hana-cli compareSchema [options]

Command Diagram

Aliases

  • cmpschema
  • schemaCompare
  • compareschema

Parameters

Options

OptionAliasTypeDefaultDescription
--sourceSchema-sstring**CURRENT_SCHEMA**Source schema to compare
--targetSchema-tstring**CURRENT_SCHEMA**Target schema to compare
--tables-tbstring-Optional table filter or pattern
--compareIndexes-cibooleantrueInclude index comparison
--compareTriggers-ctbooleantrueInclude trigger comparison
--compareConstraints-ccbooleantrueInclude constraint comparison
--output-ostring-Output path for results
--timeout-tonumber3600Operation timeout in seconds
--profile-pstring-Connection profile

For a complete list of parameters and options, use:

bash
hana-cli compareSchema --help

Examples

Basic Usage

bash
hana-cli compareSchema --sourceSchema SCHEMA1 --targetSchema SCHEMA2

Compare two schemas and print structural differences.

See the Commands Reference for other commands in this category.

See Also