Create Synonym

In this page you could find information about Synonyms.

circle-info

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentationarrow-up-right

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected]envelope.

Thank you for your understanding.

circle-info

Some parts in the output code are omitted for clarity reasons.

Create Synonym

Synonyms are not supported in Snowflake. The references to the Synonyms will be changed for the original Object.

Input Code:

IN -> Oracle_01.sql
CREATE OR REPLACE SYNONYM B.TABLITA_SYNONYM FOR TABLITA;

Output Code:

OUT -> Oracle_01.sql
----** SSC-FDM-OR0005 - SYNONYMS NOT SUPPORTED IN SNOWFLAKE BUT REFERENCES TO THIS SYNONYM WERE CHANGED BY THE ORIGINAL OBJECT NAME. **
--CREATE OR REPLACE SYNONYM B.TABLITA_SYNONYM FOR TABLITA
                                                       ;

Example 1: Synonym that refers to a table.

Oracle source code:

Snowflake migrated code: you'll notice that the SELECT originally refers to a synonym, but now it refers to the table that points the synonym.

Example 2: Synonym that refers to another synonym.

Oracle source code:

Snowflake migrated code: you'll notice that originally the SELECT , UPDATE, INSERT refers to a synonym, and now it refers to the atomic object, which is a table.

Example 3: Synonym that refers to a view

Oracle Source Code

Snowflake migrated code: you'll notice that the SELECT originally refers to a synonym, and now it refers to the atomic objects, which is a view.

Synonyms transformation can be enabled or disabled from the UI settingsarrow-up-right or through a flag in the CLI.arrow-up-right

  1. SSC-FDM-0001: Views selecting all columns from a single table are not required in Snowflake.

  2. SSC-FDM-0006: Number type column may not behave similarly in Snowflake.

  3. SSC-FDM-OR0005: Synonyms are not supported in Snowflake but references to this synonym were changed by the original object name.

Last updated