Topic
1 reply Latest Post - ‏2013-11-19T05:51:41Z by YuanFeng
Aprilb
Aprilb
1 Post
ACCEPTED ANSWER

Pinned topic Migrating database object changes without losing data

‏2013-10-17T15:45:57Z |

We have a test environment and a production environment.  We are trying to migrate our changes from our test to our production environment without losing any data. 

Previously IBM Optim Development Studio was used.  (version 2.2.1.0).  In the Data Source Explorer window, we would open the source Database connection, open the Schemas, click on the schema we were working with.  Then we would go to the destination Database connection, open the schema, and ctrl-click on the Schema so both schemas were selected.  Then right click to do a Compare with -> Each Other.  From the Property compare, we would click on the "Compare from Left to Right" (or "Compare from Right to Left" - whichever was appropriate in that circumstance).   Then the "Generate Right Delta DDL" button would become active.  This would create a DDL script to be reviewed and then run to do the migration.

As Data Studio is replacing Optim, we have started using that tool instead (version 4.1).  We follow all the same steps to generate the DDL.

The problem is we get different DDL from Optim and Data Studio.  In Optim, if there is a change to a table, it will rename the table, create the table, then insert the data from the renamed table to the newly created table and thus we don't lose any data which is what we want.  In Data Studio, it just drops the table and creates the new one - it does not save the data which is not good in a production environment.

Data Studio is supposed to replace Optim.  We've looked through all the options we can find but we cannot find any settings so that the generated DDL will try to save the date (rename/create/insert rather than drop/create and lose data). 

Does anyone know how to get Data Studio to behave like Optim and save the data as it does the migration?

  • YuanFeng
    YuanFeng
    78 Posts
    ACCEPTED ANSWER

    Re: Migrating database object changes without losing data

    ‏2013-11-19T05:51:41Z  in response to Aprilb

    Thanks for report the issue,we will look at this.