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.
Hi Team,
If we have a not null constraint on any column in Oracle, the constraint shows up twice. Once in the table definition and once as an alter table statement.
Source schema:
CREATE TABLE not_null_check (
id int ,
first_name VARCHAR(50) not null,
last_name VARCHAR(50) not null
);
Table.sql
CREATE TABLE not_null_check (
id numeric(38),
first_name varchar(50) NOT NULL,
last_name varchar(50) NOT NULL
) ;
CONSTRAINTS_table.sql
ALTER TABLE not_null_check ALTER COLUMN FIRST_NAME SET NOT NULL;
ALTER TABLE not_null_check ALTER COLUMN LAST_NAME SET NOT NULL;
I understand that this does not affect the migration in any way. Adding the ticket just in case.
Hi Team, If we have a
not null
constraint on any column in Oracle, the constraint shows up twice. Once in the table definition and once as analter table
statement.Source schema:
Table.sql
CONSTRAINTS_table.sql
I understand that this does not affect the migration in any way. Adding the ticket just in case.