Compare Model to Netezza DB?

I've been trying to figure out how to make sure out model is in sync with our Netezza db.  Does anyone have instructions or a VBA script which would enable me to do this?  I've tried reverse engineering then comparing the models, but I'm only interested in tables and views, columns which don't match. Not everything else and not ones that do match.
Any help would be greatly appreciated.
Mark Carlock
AutoTrader.com

Hi,
try to do this steps:
MENU Database\Apply ModelChangesToDatabase
* generate to file( Script generation)
* Using datasource
select only tables and views as the objects of interest.
what is generated differs 
HTH

Similar Messages

  • Oracle Data Modeler Versión 4.1.0.866 -- issue compare model Vs BBDD ( index PK, UK)

    Hello,
    I have a Data Modeler Relational and physical, the data model has three. The three tables are in a BBDD. The primary key generate is usssing index , and when I generated the DDL only show alter table add constraint .... . until here everything OK.
    if I compare the bbdd with Data Modeler , I get differences in indices that generated oracle when I create the primary key.
    ¿Is a bug or is there some way to fix it by configuration options? 
    Thanks

    Hello,
    So you have a Relational Model containing 3 Tables.  I assume the Physical Model is for an Oracle database.
    The primary key generate is usssing index , and when I generated the DDL only show alter table add constraint .... . until here everything OK.
    I assume you are doing a DDL generation of your model (using the Generate DDL button above the diagram or using Export > DDL File from the File menu).
    In the DDL Generation Options phase of the DDL generation, can you go to the Tables tab and check that the "Selected" check box for the relevant Tables is selected.
    (This should normally be selected, but if you deselected it in a previous DDL generation, it will remember that setting.)
    The "PK and UK Constraints" and "Indexes" tabs also allow you to control whether the constraints and Indexes are included in the generated DDL.
    if I compare the bbdd with Data Modeler , I get differences in indices that generated oracle when I create the primary key.
    ¿Is a bug or is there some way to fix it by configuration options?
    I assume here that you have input your generated DDL to your database and you are then doing a File > Import > Data Dictionary to compare your database definitions with your initial model.
    It is likely that there will be some differences shown, due to defaults used by the database when the DDL is input (e.g storage properties for your indexes and tables).
    I suggest you examine the differences (which will be highlighted in red on the Details, Storage Details or Physical Details tabs) for each object in the Compare Models dialog, and provided they are acceptable, select the Merge button to merge them into your model.
    If you do not want some of the property differences to be merged, you should unset the "Selected" check box for that property before merging.
    Note that it is possible to exclude specific properties from the comparison by selecting the Options tab in the Compare Models dialog, and then selecting the Properties Filter, Physical Properties Filter or Storage Properties Filter tab as appropriate.
    I hope this helps.
    David

  • Data Modeller: compare models

    Hello,
    when i go through the compare models dialog. The table columns are highlighted as been different. Inspection revels that the difference is in the data type:
    On the source model it is set to the domain presentation and on the target - to it's a logical type representation.
    I'm not sure how to change this?
    Another question:
    same dialog - the length of varchar is shown in chars on target and in bytes on the target.
    Where do i need to change this ?
    thank you
    Andrew
    Edited by: AndrewZ on Jan 11, 2010 12:19 PM

    Hello Philip,
    "how did you create these models - with domains and without and that char - byte difference?"i created a logical model using domains. Each domain has been defined in the "domain administration" dialog and mapped to logical type with ( in case of char/varchar types ) "char" length.
    For example :
    loan_id is specified as "domain (short text)". Which is defined ( in "domains administration" ) as char(50).
    After logical model was complete, i generated the relational , did "DDL generation" ran the script in the DB.
    After that i made some changes to the logical ( added and changed some entities ).
    To generate the diff i followed Sue's tutorial.
    These were the steps I used to get to this situation.
    So now i have ( in "Compare Models" dialog) the situation that all tables are different, and the difference is in a type presentation.
    Here is the link to the screenshot i made.
    "also, you can create domains in model without domains"hmmm, what would be an advantage of using this approach?
    Thank you
    Andrew
    Edited by: AndrewZ on Jan 10, 2010 7:04 PM

  • Data Modeler - Compare Models and DDL file

    I have been generating DDL files by data dictionary import. In the Compare Models window, the orange triangles with exclamation marks show the tables that are somehow different in database and in my data model.
    That would be very helpful feature, if it didn't notice the kind of information that never goes to database. For example I have used the Notes-field and Table Types and the compare functionality shows that those information are missing in database. In other words, it shows the exclamation marks in every table even if I had changed one table in my model.
    Is there some reason for it to work like this? Or is this going to be fixed in the future?

    Ok, that's good to hear!
    Now I have another thing about DDL that I noticed. I have a sequence in my database that has cache size of 20. I removed the cache size from Data Modeler and made the DDL file with import from data dictionary. The DDL file was empty, so Data Modeler didn't notice that the sequence had changed.

  • Data Modeler : Comparing models

    Hi,
    A ct of mine is trying to compare data models, they have some questions:
    1) Is there am easy way to change the "from" and "to" models, I mean depending on the first file you open you set the "from" model. It could be good to change: compare model A agisnt B, and B against A.
    2) Another thing when you compare models if you have the "Tables" option selected and then expand the menu, all the tables are unmarked, is it the expected behaviour?
    3) Also is it possible to syn with a svn repository?
    Rgds
    L

    Hi Luis,
    what version of Data Modeler do you use?
    1) Is there am easy way to change the "from" and "to" models, I mean depending on the first file you open you set the "from" model. It could be good to change: compare model A agisnt B, and B against A.no, not for 3.0
    2) Another thing when you compare models if you have the "Tables" option selected and then expand the menu, all the tables are unmarked, is it the expected behaviour?they are unmarked if there are no differences - you can use check box in front of "Tables" to mark them all
    3) Also is it possible to syn with a svn repository?yes in 3.0 (including early adopters versions), you can look at demonstrations here http://www.oracle.com/technetwork/developer-tools/datamodeler/overview/index.html
    Philip

  • Trigger/Sequence not in ddl preview when comparing models

    Hi,
    I've a problem with incremental DDL generation and trigger/sequence (auto-increment).
    First case :
    I've created a table and generated it in my Oracle database.
    Then, I've defined on my primary key column the "Auto-increment" and "Identity column" to Yes (and of course sequence and trigger names filled).
    If I generate DDL (File/Export or Generate DDL button), no problem. The DDL script contains the sequence and trigger defined in auto-increment properties.
    But if I compare my model and the database (Import data dictionnary, swap target...), the sequence and the trigger are not in the DDL preview.
    Second case :
    If I create a new table in my relational model, with filled auto-increment properties, and then I compare model and db, the new table is created, with associated sequence and trigger. This is completely normal.
    Last case :
    A trigger manually defined in physical model is not in DDL preview if the table already exists in database. If the table doesn't already exist in db, all statements (table, sequence, trigger) are generated.
    my conclusion : auto-increment properties are not taken into account in the incremental DDL generation if the table already exists.
    Can you confirm this ?
    thanks
    regards
    Fabrice
    (Data modeler 3.1.4)

    Hi Fabrice,
    A trigger manually defined in physical model is not in DDL preview if the table already exists in database.Yes. This is true.
    my conclusion : auto-increment properties are not taken into account in the incremental DDL generation if the table already exists.The actual situation is that auto-increment properties are not taken into account in the incremental DDL generation if the column already exists.
    David

  • Compare Model - Comment vs Comment in RDBMS

    Hi:
    Version 3.1.0.691 on Windows 7 Enterprise 64-bit SP1
    In Designer (Version 10.1.2.0.2, Configuration 4.0.12.97.6, Build 10.1.2.6.18), the Edit Table dialog box (Columns tab, Advanced button) has a section called Documentation, and under that it has a field called Comment, and also one called Description.
    I imported a non-versioned Designer application folder into Data Modeler (DM) and did a compare against a model that was schema-captured via DM. In DM's compare tool, the Designer "Comment" is mapping to DM "Comment in RDBMS" and the Designer "Description" is mapping to DM "Comment", as shown in the target section (Designer, right hand side) of the Compare Models - Detail tab.
    The DM "Comment" field has its Selected check box checked, and the "Comment in RDBMS" is not checked. The Options - DDL Options tab has its Include Comments box unchecked.
    I'd like to bring across Designer's Description and put it into DM's Comment field but if I do that my master model will always show a delta when a future target schema is captured for comparison, since the Oracle database doesn't have a place to store a generic Designer "description", or DM Comment.
    Question #1:
    Is there a way to globally disable the check box for DM's Comment field in the Compare tool? The Include Comments check box doesn't seem to affect it or the "Comment in RDBMS" field. This would also be a nice thing to know how to do in general for any DM field one might not want to consider in a comparison.
    Thanks,
    Doc

    Hi:
    Version 3.1.0.691 on Windows 7 Enterprise 64-bit SP1
    In Designer (Version 10.1.2.0.2, Configuration 4.0.12.97.6, Build 10.1.2.6.18), the Edit Table dialog box (Columns tab, Advanced button) has a section called Documentation, and under that it has a field called Comment, and also one called Description.
    I imported a non-versioned Designer application folder into Data Modeler (DM) and did a compare against a model that was schema-captured via DM. In DM's compare tool, the Designer "Comment" is mapping to DM "Comment in RDBMS" and the Designer "Description" is mapping to DM "Comment", as shown in the target section (Designer, right hand side) of the Compare Models - Detail tab.
    The DM "Comment" field has its Selected check box checked, and the "Comment in RDBMS" is not checked. The Options - DDL Options tab has its Include Comments box unchecked.
    I'd like to bring across Designer's Description and put it into DM's Comment field but if I do that my master model will always show a delta when a future target schema is captured for comparison, since the Oracle database doesn't have a place to store a generic Designer "description", or DM Comment.
    Question #1:
    Is there a way to globally disable the check box for DM's Comment field in the Compare tool? The Include Comments check box doesn't seem to affect it or the "Comment in RDBMS" field. This would also be a nice thing to know how to do in general for any DM field one might not want to consider in a comparison.
    Thanks,
    Doc

  • 4.0 EA3 import from designer and database leads to differences in compare models

    Hello,
    I followed two ways to import a model in Data Modeler:
    1 - an import from Oracle Designer
    2 - an import from the database generated on basis from Oracle Designer
    Then I compare the two models in Data Modeler, and found differences ...
    One of the differences is in Table check constraints. The text is the same when viewing it in the compare model.
    So I opened the corresponding XML files for the tables and compared the XML for the constraint text. And there are differences:
    example:
    <rule>(file_locatie is not null and file_naam_org is not null) or&lt;br/&gt;(file_locatie is null and file_naam_org is null)</rule>
    <rule>(file_locatie is not null and file_naam_org is not null) or&lt;br&gt;(file_locatie is null and file_naam_org is null)</rule>    <<-- designer
    the design imported from designer contains br, the databse imported version contains br/
    This should not be considered during comparision, or better: boths imports should use the same way of formatting.
    Joop

    The Rule specification is not re-formatted in Data Modeler code; it is stored as extracted from the database.
    For Oracle Database, the Rule is extracted using SQL of the form SELECT search_condition FROM dba_constraints/all_constraints WHERE constraint_type = 'C';
    For Oracle Designer, the Rule is extracted using SQL like SELECT txt_text FROM rm_text_lines WHERE txt_type = 'CDWHCL';
    Are you able to tell how your Table Check Constraint is represented (with respect to the 'br') in your Database and Designer?
    Regards,
    Tony

  • Compare model with diferent schemas to database with diferent schemas

    Hi All,
    I have some tables in diferent schemas that are equal(i.e: country table, i need this table in all the schemas) name and structure are the same but with diferences in some properties like mandatory columns,
    the problem is when I try to compare with the database,
    Import from datadictionary swap target model,
    i select the model and select the diferent schemas in the database,
    in the result, the table with the same name is compared for all the schemas in my model with the table in only one schema of the database
    and at the end appears a table to be droped for the tables in the other schemas of my model,
    the table comparison is giving me differences in the schema but is not comparing with the correct schema table,
    I'm not sure if I'm doing something incorrectly or is just a limitation of the tool,
    Thanks in advance

    Hi Philip,
    You are righ, if a select this option in the compare tab options
    I could filter which elements of the model I will compare with the datadictionary,
    But is not too much friendly to change this property every time I want to compare the model,
    I mean, I have generated with DDL editor a file for some objects but the flag 'generated in DDL' is not changing so I need to do it manually,
    I don't know if I'm not doing correctly the generation or if I have some problem with the configuration,
    Could you confirm me that if I execute the generation of DDL with only one object this object will be the only one will have the flag checked??
    In my opinion if could be posible to include a step in the compare way to select the objects will be more friendly for the user but is still a solution to my problem, Thanks a lot

  • Compare model with Data Dictionary shows PK as index

    I know there was already a question about this, but there is no solution to that one.
    When I compare my model to the DB, those indexes created to enforce the PK (which were generated by my model, btw), keep appearing as differences, even if I mark the option to auto generate the PK indexes. How can I solve this?

    Hi,
    this problem is solved in next release. You won't get those support indexes when compare from model to database. You still will have them in opposite direction.
    Philip

  • Compare Model DDL Preview is greyed out for ALTER statement

    Hi,
    I imported data dictionary from SQL Server  and made change to the table. I would like to generate ALTER statement but it's greyd out like below.
    The modeler detects the changes made to the table and compares right but preview is just disabled. Anything I missed ?

    I'm afraid Data Modeler doesn't support generation of ALTER statements for SQL Server databases.
    David

  • Oracle SQL Data Modeler -COMPARE/MERGE

    Hi all,
    I am trying to compare/merge or just trying to merge a relation model with another in Oracle SQL Developer DATA MODELER.
    Scenario:
    I have tried to import from data dictionary the hr schema into 3 parts.
    Table employee is alone imported in one design model's relational model(say DataModelerDesign1- DMD1).
    Table Departments,Locations and Countries in another design model's relational model(say DMD2).
    Table Job_history,Jobs and Regions in another design model's relational model(say DMD3).
    Now, I tried to merge all this into one design model's relational model, here into DMD3.
    Requirement:
    I want all of this relational model's tables to get merged with exact mappings as if it is in HR schema all connected to each other. But they are all getting merged as separate entities not conencted to each other when taken from Compare/merge option. How should i do this task?
    Issues:
    1) I can never see anything in the compare model when i try to click on view compare mapping. Can anytime we see any data here?
    2) In realtime scenario, when will we try to merge a table into another or split it. Because some foriegn key violations are happening here. Is it ever possible to succeed our requirement while merging itself instead of creating relationships between entities manually in main relationship model DMD3 in example here.

    I have found on occasions the diagram pdf would be missing a few relationship lines. Usually it happens after I have been doing a lot of work in the tool or printing a bunch of diagrams. Seems to be a memory leak of some sort. If I close Data Modeler, re-open it, then print to PDF, the diagram is fine.

  • Compare Merge Model problems with models from different connections

    Hi all,
    I've experienced a problem while using the compare/merge model funcion under tools.
    Just to put in place:
    I've 4 model, one for each enviroment that I have: DEV, INT, TEST, PROD(*each model imported from different connections*). Because I haven't found any reliable way to keep them sincronyzed, using DLL deltas. Is there a way to do that?
    Anyway, regarding the main subject problem. Whem I try to sync for example, from PROD, to TEST, using compare/merge model function under tools, the process find the differences. When I selecte those that I want, and click on merge, the destination model TEST, get the selected objects merged into.
    But now, the model Schema, when I select sincronyze model with data dictionary to get de DLL delta, things get crazy, and the merged objects doesn't get detected to be created.
    If it's help, I think that the is with the associated import connection than the merged objects have. They have the PROD connection name, instead of the TEST connection name. Also when I try to syncronize the relational model againts de data dictionary(database), datamodeler ask me wich connection to use, PROD or TEST. When, before, merging, model, data modeler did not ask me anything.
    Why is data modeler doing this?
    What I have seen is when you import in a model things from different connections/models, when you try to sincronyze agains a connection, all objects that are not from the selected connection doesn't get compared.
    Is there a bug or a problem?
    How can I can keep a schema in different enviroments, sync? What are the step that I shoulf follow?
    Thanks in advance.
    Edited by: morfeo8marc on 14-mar-2012 11:17

    I shall try to explain what is happening here.
    When you import objects from TEST data dictionary, their source information (see Summary info in Properties dialog) will refer to TEST.
    The relational model for TEST will contain source information (see Summary info in Properties dialog) for the connection to TEST.
    Similarly, imported objects from PROD will refer to the PROD data dictionary, and the PROD relational model will hold connection details for PROD.
    If you merge PROD objects into the TEST model, they will retain their source information (i.e. referring to PROD).
    The TEST model will be updated to include connection details to PROD.
    When you synchronize a model, if it only has one source connection, it uses that.
    If it has more than one, it will prompt you to decide to which data dictionary it should synchronize.
    In your case, for the TEST data dictionary, it will synchronize all objects that have source information for TEST (i.e. those imported from TEST).
    It will also compare any new objects (i.e. those not imported from a data dictionary).
    It will not compare objects that were imported from a different data dictionary (e.g. PROD).
    This supports the scenario where a model consists of objects imported from more than one data dictionary, and where the data dictionaries are maintained separately.
    We may need to review the above strategy in light of your experience and development process.
    In the meantime, may I suggest that from your updated TEST model, you Import from Data Dictionary using the TEST connection.
    The resulting Compare Models dialog should show all objects (i.e. those from TEST and PROD).
    You may need to set the Swap Models option to generate DDL with which to update your TEST data dictionary.
    Thank you for raising this matter.
    Regards,
    Tony Rose

  • Data Modeler: is it possible to compare physical models?

    Hello,
    We're looking for a new Data Modeling tool, as we will abandon Designer (for many different reasons...). The SQL Developer Data Modeling-tool looks very promising. Especially the "compare models" -tool looks interesting to create change-scripts for new implementations. What I don't find, however, is the possibility to generate typical physical attritutes, like permissions (resulting in grant-statements), tablespaces. Is this available? Is it possible at all? For your information: I've just downloaded the EAR 2 (version 1.5.1 build 525)
    Thanks in advance for your reply,
    Peter

    Peter,
    I would like to echo your feature request. I too spent many years with Designer and until SDDM came along, I was still using it for server model diagrams mostly. We always wanted to make sure that we have a record (model) of what was in a schema. We deploy to MANY environments - several for development, various phases of testing etc. and of course production and clones of production. It's really nice to run a utility of some sort that compares my model to an implementation. I might compare the same model to half a dozen environments. It helps me quickly pinpoint differences that aren't expected.
    I also like to ability to compare models with each other. We're all looking forward to the future of data modeling with SDDM!
    In some ways, SDDM is already ahead in the features department. I can version models in Subversion with the XML files. That’s HUGE!
    Maggie Tompkins, USMC

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

Maybe you are looking for

  • Has anyone successfully installed OSX, Windows 7 and Linux on macbook pro 8, 2

    I just want to know before I take a shot at this, if there are any success storys of this or similar model macbook pro also i want to do this while having a shared partition for music movies and pics to share between the 3 os's also i would prefer al

  • Idoc and change pointers question.

    Hi everybody, How can I create a change pointer automatically for a change document on table JCDS? Becuase I can create change pointers for the change documents on table CDHDR, but I need to catch a technical object status change and create an idoc f

  • Is this Possible using ODI / ODQ ?

    Hi ALL, Is the below requirement possible with ODI / ODQ? (right now I am doing it mannually, and its like a monthly/weekly process) If we can do the same using ODQ how I need to start and proceed? My requirement is some thing like this. I have two c

  • Exchange server 2013 roles error

    Hello, After successfully installed Microsoft Exchange 2013 coexistence with Exchange 2007, I run into many problems. I am getting event ID 1023:Microsoft-Windows-Perflib: Windows cannot load the extensible counter DLL MSExchangeIS. The first four by

  • Incompatibility CC vs CS6

    Our office has InDesign CS6 and CC users.  When saving CC files as .idml, layer positioning and type placement are lost.  When saving as .idml from CS6, layers may be flattened.  Is there a solution?