I made a dbexport from Informix database and I have the .sql
and .unl
files.
Can I recreate the exported database into Oracle from the files?
If not is possible, is there any RDBMS that can do it?
I made a dbexport from Informix database and I have the .sql
and .unl
files.
Can I recreate the exported database into Oracle from the files?
If not is possible, is there any RDBMS that can do it?
As Jonathan wrote in comment it will not be easy. Files created by Informix dbexport are not directly usable by other databases. But while this is easy to read text information you can write program that converts both .sql
and .uml
files into files usable to your preferred database. If you use stored procedures then it is really hard.
For table definitions in CREATE TABLE ...
you will have to convert Informix types like DATETIME YEAR TO DAY
to DATE
, or SERIAL
into INTEGER
. Oracle have no SERIAL
type so you will have to create sequence and trigger for such columns.
When you convert db schema you can import data from .unl
files. I suggest to write your own program that reads it as CSV data, make PrepareStatement with INSERT
and converts some data. Also remember that Oracle do not use empty strings: null vs empty string in Oracle