Skip to main content
CYBERTEC Migrator Documentation
Support
latest Latest stable release View changelog ->
CYBERTEC Migrator › How-tos › Migration Assessment

Migration Assessment

8 min read

The Assessment tab analyzes how complex it is to migrate the database from Oracle to PostgreSQL. It answers the questions that matter when planning a migration:

  • How complex is the migration as a whole, and which schemas drive the complexity?
  • Which Oracle features are used that PostgreSQL does not provide, and how are they resolved?
  • Which database objects are the hotspots that deserve attention first?
  • What should the migration team do, and in which order?

The assessment deliberately does not estimate durations or costs. The effort of a migration depends on the team, the test strategy and the applications, which the Migrator can not know. Complexity is expressed by a score instead.

Complexity score

The migration complexity score ranges from 0 (trivial) to 100 (extremely complex). It is derived from effort points, an abstract unit that sums up the effort of all assessed objects:

  • a base effort per object (e.g. reviewing a table, testing a function), plus an effort per line of code
  • the effort of every finding (an Oracle specific construct), counted at most five times per object, because repeated usages of the same construct are cheap to fix once the solution is known

The score grows quickly for the first effort points and saturates for large databases, so that it remains comparable between small and very large migrations. A single finding of high severity raises the score to at least 25, a critical finding to at least 45, as such findings require a redesign no matter how small the database is.

ScoreRating
0 – 14Very low
15 – 34Low
35 – 59Moderate
60 – 79High
80 – 100Very high

The migration overview shows the score of every migration, so migrations can be compared and prioritized.

Levels of detail

The assessment is available in four levels of detail (depth). Each level contains the previous ones.

DepthContents
summaryComplexity score, key figures (schemas, objects, lines of code, findings, share of effort supported by the Migrator) and the inventory of database objects
standardEffort by category and schema, the 15 most relevant findings with up to 5 affected objects each, the 10 biggest hotspots and prioritized recommendations
detailedAll findings with all affected objects, up to 50 hotspots and a breakdown of every assessed object
expertAI insights generated from the detailed assessment (requires the AI-Assistant)

Choose the depth at the top of the Assessment tab. Levels above the maximum depth are disabled.

Maximum depth

The maximum depth depends on the edition:

EditionMaximum depth
Trialsummary (only tables and views are assessed)
Professionaldetailed
Enterpriseexpert

Operators can lower the maximum depth of an installation with the startup parameter --assessment-max-depth or the environment variable CORE_ASSESSMENT_MAX_DEPTH of the core container, e.g. to provide only a summary to a group of users. The startup parameter takes precedence over the environment variable. Neither can raise the maximum depth above the limit of the edition; the core logs a warning in that case and uses the limit of the edition.

services:
  core:
    command: ['--assessment-max-depth', 'standard']

An invalid value stops the core with an error message. On startup the core logs the effective maximum depth:

INFO   assessment/init  the maximum assessment depth is 'standard'

Findings

A finding is an Oracle specific construct detected by a rule, for example autonomous transactions, hierarchical queries, database links or columns of unsupported data types. Code of functions, procedures, packages, triggers and views is analyzed without comments and string literals. Each finding describes the problem and recommends how to solve it in PostgreSQL, and lists the affected objects.

  • Severity: Info, Low, Medium, High or Critical, describing the risk for the migration
  • Automation: how the finding is resolved
    • Automatic: handled by the Migrator
    • Assisted: the Migrator supports the change (code transpilation, AI-Assistant, editors), but it has to be reviewed
    • Manual: requires a redesign or rewrite
  • Category: data types, schema, procedural code, SQL dialect, built-in packages, transactions, dynamic SQL, integration or operations

The key figure share of effort supported by the Migrator is the share of effort points of automatic and assisted findings.

Rule catalog

The assessment version 2.0 applies the following rules.

RuleFindingCategorySeverityAutomation
PKG-CRYPTOGRAPHYCryptography (DBMS_CRYPTO)built-in packagesHighManual
PKG-DBMS-LOBDBMS_LOBbuilt-in packagesMediumManual
PKG-OTHER-BUILT-INOther Oracle built-in packagesbuilt-in packagesMediumManual
PKG-SESSION-UTILITIESSession and utility packagesbuilt-in packagesMediumManual
PKG-DBMS-OUTPUTDBMS_OUTPUTbuilt-in packagesLowAssisted
TYPE-BFILEBFILE columnsdata typesHighManual
TYPE-NESTEDNested object typesdata typesHighManual
TYPE-ORACLE-SPECIFICOracle specific data typesdata typesHighManual
TYPE-ROWIDROWID / UROWID columnsdata typesHighManual
TYPE-UNRESOLVEDUnresolved data typesdata typesHighManual
TYPE-USER-DEFINED-COLUMNColumns of user defined typesdata typesHighManual
SQL-XMLXML functionsdata typesMediumManual
TYPE-LONGLONG / LONG RAW columnsdata typesMediumAutomatic
TYPE-OBJECTObject and collection typesdata typesMediumAssisted
TYPE-TIMESTAMP-LOCAL-TIME-ZONETIMESTAMP WITH LOCAL TIME ZONEdata typesMediumAssisted
TYPE-LARGE-OBJECTLOB columns (CLOB, NCLOB, BLOB)data typesLowAutomatic
PLSQL-DYNAMIC-SQLDynamic SQLdynamic SQLHighManual
ADVANCED-QUEUEAdvanced Queuing queuesintegrationCriticalManual
DATABASE-LINKDatabase linksintegrationCriticalManual
PKG-ADVANCED-QUEUINGAdvanced Queuing (DBMS_AQ)integrationCriticalManual
PKG-NETWORK-ACCESSNetwork access (UTL_HTTP, UTL_SMTP, UTL_MAIL, UTL_TCP)integrationCriticalManual
PKG-FILE-ACCESSFile access (UTL_FILE)integrationHighManual
PKG-PIPES-ALERTSDBMS_PIPE / DBMS_ALERTintegrationHighManual
SQL-DATABASE-LINK-REFERENCEDatabase link referenceintegrationHighManual
SYNONYM-REMOTESynonyms for remote objectsintegrationHighManual
SYNONYMSynonymsintegrationMediumManual
PKG-SCHEDULERDBMS_SCHEDULER / DBMS_JOBoperationsHighManual
SCHEDULER-JOBScheduler jobsoperationsHighManual
TRIGGER-SYSTEM-EVENTTriggers on system or DDL eventsoperationsHighManual
PLSQL-COMPOUND-TRIGGERCompound triggersprocedural codeCriticalManual
PLSQL-COLLECTIONSPL/SQL collectionsprocedural codeHighManual
PLSQL-GOTOGOTO statementsprocedural codeHighManual
PLSQL-PIPELINED-FUNCTIONSPipelined table functionsprocedural codeHighManual
USER-DEFINED-OPERATORUser defined operatorsprocedural codeHighManual
PACKAGEPackagesprocedural codeMediumAssisted
PLSQL-BULK-PROCESSINGBulk processing (BULK COLLECT / FORALL)procedural codeMediumAssisted
PLSQL-CURSOR-VARIABLESCursor variables (REF CURSOR)procedural codeMediumAssisted
PLSQL-EXCEPTION-HANDLINGUser defined exceptions (EXCEPTION_INIT)procedural codeMediumManual
TRIGGER-INSTEAD-OFINSTEAD OF triggersprocedural codeMediumAssisted
PLSQL-CURSOR-ATTRIBUTESCursor attributesprocedural codeLowAssisted
PLSQL-ERROR-FUNCTIONSOracle error handling functionsprocedural codeLowAssisted
PLSQL-TRIGGER-PREDICATESTrigger predicatesprocedural codeLowAssisted
TRIGGER-WHEN-CLAUSETrigger WHEN conditionsprocedural codeLowAssisted
INDEX-DOMAINDomain indexes (e.g. Oracle Text)schemaHighManual
TABLE-PARTITION-KEY-NOT-IN-UNIQUE-KEYUnique keys without all partitioning columnsschemaHighManual
TABLE-UNSUPPORTED-PARTITIONINGReference or system partitioningschemaHighManual
COLUMN-IDENTITY-DEFAULT-ON-NULLIdentity columns with DEFAULT ON NULLschemaMediumManual
COLUMN-VIRTUALVirtual columnsschemaLowAssisted
TABLE-WITHOUT-PRIMARY-KEYTables without primary keyschemaMediumManual
VIEW-MATERIALIZEDMaterialized viewsschemaMediumAssisted
COLUMN-DEFAULT-EXPRESSIONOracle specific column defaultsschemaLowAssisted
INDEX-BITMAPBitmap indexesschemaLowAutomatic
INDEX-FUNCTION-BASEDFunction based indexesschemaLowAssisted
TABLE-PARTITIONEDPartitioned tablesschemaLowAutomatic
SQL-HIERARCHICAL-QUERYHierarchical query (CONNECT BY)SQL dialectHighManual
SQL-PIVOTPIVOT / UNPIVOTSQL dialectHighManual
SQL-ROWIDROWID usageSQL dialectHighManual
SQL-KEEP-AGGREGATEKEEP (DENSE_RANK FIRST/LAST) aggregatesSQL dialectMediumManual
SQL-MERGEMERGE statementSQL dialectMediumAssisted
SQL-OUTER-JOIN-OPERATOROracle outer join operator (+)SQL dialectMediumAssisted
SQL-ROWNUMROWNUM pseudo columnSQL dialectMediumAssisted
SQL-DATE-FUNCTIONSOracle date functionsSQL dialectLowAutomatic
SQL-DECODEDECODE functionSQL dialectLowAssisted
SQL-REGULAR-EXPRESSIONSRegular expression functionsSQL dialectLowAssisted
SQL-SEQUENCE-PSEUDO-COLUMNSSequence pseudo columnsSQL dialectLowAutomatic
SQL-CONVERSION-FUNCTIONSType conversion with format modelsSQL dialectInfoAssisted
SQL-DUALSELECT FROM DUALSQL dialectInfoAutomatic
SQL-NULL-FUNCTIONSNVL / NVL2SQL dialectInfoAutomatic
PLSQL-AUTONOMOUS-TRANSACTIONAutonomous transactionstransactionsCriticalManual
PLSQL-TRANSACTION-CONTROLTransaction control in stored codetransactionsHighManual

Hotspots and recommendations

Hotspots are the objects with the highest effort points, each listing its findings. Links lead to the editor of the object.

Recommendations are derived from the findings and ordered by priority, e.g. to clarify the redesign of integrations before converting code, or to adapt the keys of partitioned tables before running the structure stage.

AI insights

At the depth expert, Generate insights lets the AI-Assistant write an expert analysis of the assessment: an executive summary, the key risks, a migration strategy, quick wins and open questions for the application owners. The generation runs in the background and may take a few minutes; the result is stored with the assessment and included in the printed report.

Only the aggregated assessment (score, key figures, findings and names of affected objects) is sent to the configured LLM, no source code. Insights are generated by a language model and may be inaccurate; verify them independently.

Printed report

Print report creates a report of the depth currently shown, which can be saved as PDF with the print dialog of the browser. The report is laid out for A4 paper with page numbers, repeating header and footer and chapters starting on a new page:

  • cover page and table of contents
  • executive summary with the complexity score and key figures (including the AI executive summary at depth expert)
  • inventory, complexity by category and schema, findings, hotspots and recommendations (depending on the depth)
  • AI insights (depth expert)
  • methodology of the score and contact information
Note
Enable Background graphics in the print dialog so that charts and colors are printed.

Automation

The assessment is available through the REST API, e.g. to include it in reports of other systems:

curl "https://migrator.example.com/api/meta-data/<meta-data-id>/assessment?depth=standard"

The depth parameter is limited by the maximum depth. The meta-data id of a migration is part of its configuration (GET /api/migrations/<migration-id> → _links.configuration → _links.meta_data).

Changes compared to previous versions

The assessment version 2.0 replaces the migration level (A to C combined with 1 to 5) and the migration effort by the complexity score. Stored assessments of previous versions are re-evaluated automatically.