darold / ora2pg

Ora2Pg is a free tool used to migrate an Oracle database to a PostgreSQL compatible schema. It connects your Oracle database, scan it automatically and extracts its structure or data, it then generates SQL scripts that you can load into PostgreSQL.
http://www.ora2pg.com/
GNU General Public License v3.0
1.01k stars 342 forks source link

Issue in DDL for SYNONYM from Oracle as it consist object names with full classified name #1578

Closed priyanshi-yb closed 1 year ago

priyanshi-yb commented 1 year ago

While exporting the SYNONYM from oracle the VIEW DDLs have the some other objects in select statement on which the view is created and those objects contain the full object name including schema-name same as Oracle. Example - DDL used on Oracle on Schema TEST:

CREATE OR REPLACE SYNONYM offices for locations;

Exported DDL:

CREATE OR REPLACE VIEW offices AS SELECT * FROM test.locations;

Thanks for the help in advance.

darold commented 1 year ago

Commit 047f73e fixes this issue.