Generate the DDL - change is a new column and I want to generate an alter table.

All, morning

I searched and searched all over the Data Modeler and I can't find this option... but I found it easily in the designer.
I hope you can help me.

V3.0.0.665 SQL Developer Data Modeler.

I added a new column to a table, and when I generate the DDL I wish it were an alter table add column rather than a table to create.
This feature is in the designer, so I think it would be in the Data Modeler.

Just in case my description isn't clear, here are the high level steps, then it is clear.

1 create logic model
2. create the relational logic.
3. create the physical relationship.
4 generate the DDL and run in the database. At this point, I'm going to production with my system, and all right.
5. at this point, we have an enhancement request. For the model, it will be a new column in a table.
6. update of the logic model.
7. relational update logic
8 physical update of relational
9 generate the DDL. Here, I would have generate it know that it needs to generate an alter table add column and does not create the table.
This is something I do a lot as all my models are in production. I can't find how to do this step to get data Modeler to generate the altar.
Designer done exceptionally well.

Quite often, it is more than a single column. Changes can be many and made over time and at the time of generating the DDL you remember not every single amendment. To have the tool discover these changes for you and generate the appropriate DDL is a feature that I consider as very high.

I hope that is clear and you can help me.

See you soon
Chris...

Hi Chris,

you need to compare your model on database - database relational model even import and use the option 'swap target' - in this case 'expressions of alter' against the database will be generated.
You can watch demonstrations here http://www.oracle.com/technetwork/developer-tools/datamodeler/demonstrations-224554.html
It would probably be more useful http://download.oracle.com/otn_hosted_doc/sqldev/importddl/importddl.html
Sooner or later your changes will require the table to be recreated, and you will need to backup your data - you can consider using the 'Advanced DDL' option - script is generated that will land your table content (including LOBs) to the system of files accessible from the database and restore after changes. Well not try directly on the production system :).

Philippe

Tags: Database

Similar Questions

Maybe you are looking for

  • Help me set the permission for the folder/Library/Preferenses

    I installed Adobe InDesign CC, but when the program starts. It says: "error. Cannot launch Adobe InDesign that you do not have sufficient permissions to access the preferences folders. Be sure that you have appropriate permissions and restart Adobe I

  • Satellite P300D - 11 H Bluetooth & Bluetooth FN key does not

    I recently tried to send something to my laptop with bluetooth, but it did not work. So I looked for an update of the last program I had installed the Bluetooth Manager v4. I got a new v5 version but it will not install, they informed that I need to

  • Size of SSD shows only 8 GB?

    Hello I recently bought a Lenovo laptop, U410 that comes with 32 GB SSD and 500 GB drive. But I tried to find the capacity of the SSD. At the command prompt, I typed diskpart and then I typed list disk. That's what I got. DISKPART > list disk Disc #

  • escape game

    Hello!I have a sql script to create a procedure that has a CSS string inside. create or replace procedure my_css is begin     htp.p('     <style type = "text/css">         @label    {font-size: 10pt;}         #id_name  {font-size: 10pt;}     </style>

  • Adobe Premiere elements 12 freeze during playback

    HelloI use Adobe Premiere elements 12.0 for about 2 years on a number of devices. I just bought myself a new machine of the host/music studio - Dell XPS 8900, i7 - 6700 k Skylake, 16 GB RAM, soundcard Realtek, double video (vga screens), a VGA port o