Closed priyanshi-yb closed 4 months ago
Hi @priyanshi-yb , there is a special action for that. Using action SEQUENCE_VALUES it will generate the ALTER comment to set the sequence start value, for example:
ora2pg -c config/ora2pg.conf -t SEQUENCE_VALUES -o alter_sequences.sql
Hi Team,
While exporting the Sequences from Oracle the
ALTER SEQUENCE ...
DDLs do not appear in the output file after the data export and hence sequence values can't be resumed on PG after loading data. Example if we use this command to export dataso,
data.sql
will have these SQLs for all the sequences with this commit https://github.com/darold/ora2pg/commit/f08d47a4e5c20ff7d348e535ed05ab571b4bb350But the latest commit doesn't seem to be putting these in the
data.sql
. Example of schema -Can someone please let me know if I am missing anything or is this any regression?
Thanks! cc: @darold