Most migration surprises are type surprises: a VARCHAR(65535) that became a CLOB and broke a
GROUP BY, a TIMESTAMP that lost its time zone, a NUMERIC that lost two decimal places. They are
cheap to fix before cut-over and expensive after. InsightAutoHub's datatype mapping report finds them early by asking both databases
what they actually hold.
Give InsightAutoHub the tables in scope. It reads every column's definition from Redshift and from Oracle ADW, joins them by table and column, and writes an Excel report with one row per distinct type conversion (say, VARCHAR(256) to VARCHAR2(256)) listing the tables and columns where it occurs. A catalogue query on each side lists any columns that exist on only one side.
Why distinct conversions, not every column
A warehouse with four hundred tables can have twenty thousand columns, but usually only a few dozen distinct type conversions.
Reviewing those few dozen is a morning's work; reviewing twenty thousand columns never happens. Each row of the report is one
conversion, with the tables and columns that use it, so a reviewer can decide once whether, for example,
NUMERIC(18,4) to NUMBER(18,4) is safe, and know exactly where it applies.
| Source type (Redshift) | Typical ADW type | What to check |
|---|---|---|
VARCHAR(n) | VARCHAR2(n) | Byte versus character length for multi-byte text |
VARCHAR(65535) | CLOB or VARCHAR2(32767) | Sorting, grouping and joins on large text |
NUMERIC(p,s) | NUMBER(p,s) | Precision and scale preserved exactly |
BOOLEAN | NUMBER(1) or CHAR(1) | Which values mean true |
TIMESTAMPTZ | TIMESTAMP WITH TIME ZONE | Time zone kept, not silently converted |
DOUBLE PRECISION | BINARY_DOUBLE or NUMBER | Floating-point versus exact decimal |
Typical mappings for illustration; your report shows the conversions your own schemas actually contain. Verify behaviour against your database versions.
What the report needs before it can run
The report compares what exists, so it has three prerequisites that are easy to miss:
- The target tables must already exist. It reads the Oracle catalogue (
all_tab_columns), so run it after the target DDL has been created, even as empty tables. - Names must line up. Tables are listed as
schema.table, and the same schema name is used on both sides (as the Redshift schema and as the Oracle owner). Columns are matched by schema, table and column name, ignoring case. A renamed table or schema will not pair up. - Views count too. Views are included on both sides, which is useful: a view whose column types changed is a report that will behave differently.
Each row of the Excel output names the Redshift type and the ADW type in full detail (lengths, precision and scale included), the tables and views and the columns where that pair occurs, and how many of each. Sorting by those counts is the fastest way to find the one-off conversions.
Running it
On Datatype Mapping, choose the Redshift source location, schema and table and the Oracle target location, schema and table, with an optional table filter. Reports are generated as jobs: each run is recorded with its status (running, completed or failed) and the finished Excel file is stored with the job, so it can be downloaded later and attached to the migration's records.

Reading the report
- Start with the rarest conversions. A conversion used by one column is often a mistake in the target DDL.
- Check every length change. Any conversion where the target is shorter than the source can truncate data.
- Look for unmatched columns. Columns that exist on one side only do not appear in the conversions at all (the report's optional unmatched-columns sheet lists them; until the app exposes it, compare the two column lists with a catalogue query). A column on one side only is either renamed, dropped by design, or missing; the report cannot tell which, but a person can.
- Feed decisions back into the mapping rules. Once a conversion is agreed, it belongs in the column mapping profile, so the next table is converted the same way.
Who should review it
The report is short enough to review in a meeting, and it should be reviewed by three people. A DBA checks that each target type is the right one for the engine. An analytics engineer checks the conversions behind the columns reports depend on: amounts, dates, keys. A business owner confirms that columns found on one side only are meant to disappear. Record the decisions on the report itself, so the sign-off pack shows who agreed what and when.
Keep the table list under version control as well. It defines the scope of the migration, and a table added late without a report is the table most likely to surprise you.
A worked reading
An illustration with made-up figures. A report over sixty tables has thirty-one rows. Twenty-five are routine
(integer to NUMBER(10)-style pairs used across many tables) and are agreed in one pass. Of the other six:
one character varying(256) column became VARCHAR2(128) in a single table, a hand edit to the target DDL that
would have truncated data; two numeric(18,4) columns became NUMBER without scale, which is safe for storage
but changes how reports round; and three timestamp columns lost their time zone. Each of the six gets a decision and an owner, and the
report is run again after the fixes until it shows only agreed pairs.
Questions DBAs ask
Does it change anything in either database?
No. It reads column definitions from the two catalogues and writes an Excel file. Nothing is created or altered.
Does it look at the data?
No, only declared types. Whether values survive a conversion is what row-level validation checks.
Can it run for other engines?
The report is built for a Redshift source and an Oracle ADW target; other pairs are described as rule sets in the column mapping profiles.
Then prove the data: row-level validation.

