New SQL Developer Data Modeler : name of attributes of foreign key

Hi,
with designer the name of column of foreign key was the " short name of entity/table master" + "_" + "the name of column attribute of the master table" .
Instead in the sql developer D.M. the system uses directly the name of the column/attribute of the master table and if the name exists in the slave table it uses a number to distinguish them .
So, if i have a table with short name gp and a primmary key id and a slave table with even a column id ,
with the D.M i'll have in the slave table a column named id2; in the designer instead the new column is gp_id .
Is possible to have the same behavior of designer even in the SQL Developer Data Modeler ?
Regards
Gianpaolo Giliberto

Hi Gianpaolo,
the columns of foreign keys are generated without the short name of master tablehow do you define that short name? Table and column have property "Abbreviation" - short name should be set there. You need also to set naming templates in "General Options>Naming Standard>Templates". Templates will be used when foreign key is created or you can apply them in Table dialog or for whole relational model using pop-up menu in the browser.
no foreign key index is generated on foreign key columns I assume, you want it for DDL generation only - this is controlled in "General Options>DDL"
Regards,
Philip

Similar Messages

  • New To SQL Developer Data Modeler - Data Dictionary Report

    I am new to Data Modeler and I am currently learning what I can do and can't with it. Is there a way to generate a "Data Dictionary" report? We would like a report we can distribute that describes all tables and columns with descriptions and comments. We used to use an old version of Power Designer and we could do this from the data model we created. Is it possible to do something like this from SQL Developer Datas Modeler?

    Hi,
    Saxon is just an option, you don't need it by default.
    Could be permissions problem. What are you working on i.e. OS? What java version do you use?
    Even though you have specified directory for the reports do you have permissions to write there?
    Report generation directories priority is:
    1. Custom directory if specified in Settings->Data Modeler->Default Reports Directory
    2. /datamodeler/reports/
    3. User home directory
    You must have permissions somewhere on these directories. On the other hand you are saying that report_data.xml is generated so you have permissions.
    Okay. Now I saw a bug in 710. When you click "Generate report" there are progress dialogs and result dialog, but if you meanwhile click somewhere or change focus, these dialogs are hiding below main "Reports" dialog i.e. you are not seeing them. If you use Alt+Tab the result dialog will popup. This bug is fixed in the next release.
    So you must see either result dialog or error dialog at the end of report generation. If not check with Alt+Tab if it is not hidden somewhere below and if there is no such dialog close the DataModeler and check the log file for some error.
    There is SQL Developer Data Modeler 3.3 Early Adopter Available.
    http://www.oracle.com/technetwork/developer-tools/datamodeler/downloads/datamodeler-33-ea-1869055.html
    Above issue is fixed there and report is opening automatically.
    Edited by: Dimitar Slavov on Nov 29, 2012 11:53 PM

  • Does SQL Developer Data Modeler fit-in??

    Hi Everyone,
    Wish you happy new year 2011.
    Does SQL Developer Data Modeler support conceptual, logical and physical in our modeling or only logical and physical?
    We all use Erwin for modeling. Erwin works without database repository storing models in desktop folders and provide additional reporting. I find some place SQL Developer Data Modeler talked about repository need.
    Does SQL Developer Data Modeler store the models in local/network folders instead of Database server?
    What are the functions need database based repository to work with SQL Developer Data Modeler?
    We are thinking of using SQL Developer Data Modeler for our conceptual, Logical, and data dictionary need. Will it help in our need?
    Do we need to face any surprises on using SQL Developer Data Modeler for our need?
    Thanks in sharing your experience and helping me out.
    RI

    1) Do we need to have Oracle database at back end to work with SQL Developer Data Modeler?No, Data Modeler use Oracle database only if you create reporting repository.
    Data Modeler is free, you need database license only if you want to log service request
    2) Will SQL Developer Data Modeler create any tables (as backend repository ) in Oracle database to store Model details? no
    3) Do we need to create reporting schema in backend oracle database to generate reports of SQL Developer Data Modeler's items such as Entity/attributes etc?no, reports can be created out of current loaded design. However having reporting repository will give you additional benefits - history (reports can be generated for every snapshot of your designs there) and multi-user usage, you can create your own reports
    4) Do we to use SQL Developer Data Modeler reverse engineer from DB2, SqlServer, Terra data etc?Data Modeler has full support for Oracle, DB2/390, DB2/UDB(LUW) and MS SQL Server. Reverse engineering from other databases (including Terra Data) is at generic JDBC level - you'll get some and some will be missing (no check constraints for example).
    You can read release notes http://www.oracle.com/technetwork/developer-tools/datamodeler/ea2-releasenotes-185793.html
    Philip

  • SQL Developer Data Modeler Information Flow descriptions

    Hello
    I am new to SQL Developer Data Modeler. Is there a way to display on the Data Flow Diagram the descriptions on the Information Flow lines.
    Regards
    Ade

    1) Is there a cross reference report so that I can check my information structures on the DFD diagram with the attributes defined at Logical Model diagram?you can use "File>Export>To Reporting Schema" functionality to export your design into Oracle database. Two tables there give usage of attributes/entities in processes - DMRS_PROCESS_ATTRIBUTES and DMRS_PROCESS_ENTITIES. look for "reports\Reporting Schema diagrams" directory under installation of Data Modeler - there are PDF files with diagrams of reporting schema tables.
    2) How can I create a copy (synonym) for any of my information stores or external agents on the same DFD diagramgraphical synonyms are supported only for objects in Logical and Relational models.
    Philip

  • Foreign key Mapping based on Data - in SQL Developer Data modeler

    Team
    Do SQL Developer Data modeler supports Foreign Key mapping based on the Data in the Schema rather defined at the DDL ? For e.g if we implement a Objects Relation ship mapping in Data base, we don't define Foreign keys at table creation.
    Toad does this feature through "AUTOMATIC FOREIGN KEYS MAPPING IN TOAD DATA MODELER" more info at (http://toadworld.com/Blogs/tabid/67/EntryId/905/Automatic-Foreign-Keys-Mapping-in-Toad-Data-Modeler.aspx)
    any one know how to implement through some scripts also helps me
    Regards
    Raj

    If you have table PKs defined and the candidate columns match those PK columns, then you can use the Discover Foreign Keys utility. Right mouse over the relational model name (node) in the left browser. It is about half way down the menu. I did a blog post about it last week on kentgraziano.com.

  • Customising the Legend  (Legend Box) - SQL DEVELOPER DATA MODELER

    Hi,
    Is there a way to customize the legend Box (obtained when you right click Show->Legend in the Relational or Logical model window) in the latest latest version of SQL Developer Data Modeler.
    For example i would like to remove a particular attribute from the legend say Changed by or Author.
    Thanks in advance.

    Hi,
    It is not possible.
    There will be such option in the future.
    Regards,
    Ivan Zahariev

  • SQL Developer Data Modeler scripting

    Hi,
    I'm looking for a new modeling software for my company. SQL Developer Data Modeler (SDDM) has many features that fit my requirements. But there are some things that I'm not sure can be done. I work mostly with Oracle databases but still need to support some legacy and non-sql databases. Please look at problems below and tell me if and how those things can be achieved. Any suggestions for alternative solutions are welcome too.
    1) I need to be able process Database Model from command line without human intervention and starting any GUI applications, for example generate DDL script form the model. Does SDDM have any interface for that?
    2) I want to be able to export Database Model into a file in a custom (legacy) format.
    3) SDDM stores database description in xml files. Is xml format defined anywhere? Are xsd schema files availabe?
    4) Is there a SDK available that would allow reading SDDM Database Model into a custom application for further processing?
    5) Is there any Java library available that parses Oracle-11-compatible SQL and PL/SQL?
    Thank you in advance
    Tomasz Grygo

    Hi Kevin,
    thanks for sharing your thoughts. There will be much more advanced find/search facilities in next version of Data Modeler and scripts also will be covered.
    Philip

  • SQL Developer Data Modeler - Relation to Foreign Key Generation

    SQL Developer Data Modeler 2.0.0 Build 584.
    I am having trouble with Relations to Foreign Keys when Forward Engineering a Relational Model from a Logical Model.
    First of all, the Naming Standard is not applied to the Foreign Keys when I perform the Engineer to Relational Model.
    So I right click on the Relational Model from the Browser and Apply Naming Standards to Keys and Constraints.
    I uncheck everything but Foreign Keys.
    Now, Foreign Keys are named according to my Naming Standards.
    However, this process also performs renames on the Column Foreign Keys even though I specifically unchecked that option.
    This appears to be a BUG in the software and I haven't found a way around it.
    I tried using {column} instead of {ref column} in the Naming Standard Template for Column Foreign Key, but that simply resulted in renaming my columns to "{column}".
    Please confirm and/or let me know of any work-around for this.
    Thanks,
    Dan

    Hi Philip,
    Thanks for the reply.
    Is this recorded as a bug to be addressed in the future?
    Should I submit this problem via Oracle Support?
    The other work-around I came up with is to override every Relation name in the Logical Model with the name I want to use in the Relational Model.
    When the Relational Model is Engineered, this becomes my Foreign Key name.
    Of course, this is not how I want to do things, so I am hoping for a bug fix someday.
    Regards,
    Dan

  • SQL Developer Data Modeler: Logical model, unable to create arc

    I have a logical model in SQL Developer Data Modeler. Entity A has two 'incoming' foreign key relations to entities B and C. Both releations have the same optionality and cardinality. I want to place both relations in an arc. I see the buttons in my toolbar menu, but they are not enabled. Even when I select both relations it is not.
    Bringing the logical model to the relational model creates foreign keys. These foreign keys can be selected and when I do that the 'Create new arc' button in the relational model toolbar is enabled.
    What am I missing in the logical model ...? The documentation doesn't give a clue.
    Erik

    Thanks Sue, that worked. It is different from the way the ERD in Designer worked. Is there any reasoning behind it. As far as I know you should only put into an arc two or more relationships pointing to the same entity with the same optionality and the same cardinality. Selecting the entity with the relationships can only help in identifying at which relationship end the arc should be created but that is obvious.
    And asking the question is answering it: it will help in adding an arc to two or more entities originating and ending at the same entity (and same cardinality and optionality).
    Is that the reasoning behind it?
    Regards
    Erik

  • How can I find out what is causing this error in SQL Developer Data Modeler

    Friends,
    I am trying to import entities into into SQL Developer Data Modeler from Oracle Designer 10.1.2.3.
    In case of need I perform these steps to perform the import:
    File --> Import --> Oracle Designer Model --> Select database connection --> Select work area --> select application system --> select one entity --> Click finish --> Import starts
    During the import process I see an alert dialog box with the message:
    There are errors in import - check Log file Clicking Ok dismisses the alert box and I see the following summary screen:
    Oracle SQL Developer Data Modeler Version: 2.0.0 Build: 584
    Oracle SQL Developer Data Modeler Import Log
    Date and Time: 2010-08-09 14:27:26
    Design Name: erdtest
    RDBMS: Oracle Database 10g
              All Statements:           32
              Imported Statements:      32
              Failed Statements:           0
              Not Recognized Statements:      0The Entity is then displayed in the Logical View within SQL Developer Data Modeler.
    Upon checking the log file I see the following entry:
    2010-08-09 13:50:34,025 [Thread-11] ERROR ODExtractionHandler - Error during import from Designer Repository
    java.lang.NullPointerException
         at oracle.dbtools.crest.imports.oracledesigner.logical.ODORelation.createArcs(Unknown Source)
         at oracle.dbtools.crest.imports.oracledesigner.logical.ODORelation.generate(Unknown Source)
         at oracle.dbtools.crest.imports.oracledesigner.ODExtractionHandler.generateDesign(Unknown Source)
         at oracle.dbtools.crest.imports.oracledesigner.ODExtractionController$Runner.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:619)Can anyone shed any light on this error?
    Thanks in advance for any help you may be able to provide.

    No this helps a lot. It's not strange. Firstly, in a versioned repository you should see Private Workareas and Shared workareas, so your workarea may be in either of these. It won't be in the Global Shared Workarea, as this only for non-versioned repositories. (I like to open the RON by selecting the full Repository, that way I can see the private and shared worlareas and the configuration and containers all in the same tree.
    Now your workarea is defined by a set of rules, so when you expand the workarea in the RON, and select the object, then that's the workarea and object you'll see in the import dialog in the Data Modeler. So if you check it out and check it back in, and can't see it in the RON, then the rule is not seeing this object. (Did you refresh the workarea in the RON?) If you can't see it in the RON, you can't see it in the Data Modeler. If you're working in a versioned repository, you need to work in the specific work area, i.e V27 and this is what you need to select in the Data Modeler.
    It looks like you are selecting the wrong workarea in the Data Modeler.
    Sue

  • Domains usage in SQL Developer data MODELER

    Hi,
    I'm trying to understand how to use Domains in Oracle SQL Developer Data Modeler. We use version 3.1.3 .  before I used Toad Modeler  where domains are just part of your main design.
    Oracle data modeler has some different concept.
    let's assume I'm working on 2 designs:  DesignA and DesignB that include relational models.
    DesignA and Design B should use domains but list of domains in design A is very different than in design B.
    Default domain file is located on c: drive where SqlModeler is installed. It is obviously unacceptable , so I need to change Default System Type directory in preferences.
    And of course I want to have different domain directories for DESIGN A and DESIGN B.
    So when I open design A then I changed   Default System Type directory  let's say to x:\AAA.   Then i close design A and open Design B and change Default System Type directory to x:\BBB
    I checked folders AAA and BBB and they  have necessary XML files there:  defaultdomains.xml, defaultRFDBSSites and so on....
    Now questions:
    can I rename defaultdomains.xls to something else like AAAdomains.xls?  Domain administration can edit any domain file with any name , but how  can I associate certain domain file with my design?  My wish , when I open my design , then corresponding domain file will be open automatically.  Is it possible?
    If I open 2 designs in Sql Modeler and switch between designs  then corresponding domain files should be changed automatically as well.  Currently   I shouldn't forget to change default System Type directory every time when I switch models.  Is it the only way to handle it?
    Thanks
    vitaliy

    Hi Vitaliy,
    We use version 3.1.3
    I recommend always to use the latest version. If you don't want to use beta (DM 4.0 EA is out) you can use DM 3.3.
    Otherwise Oracle SQL Developer Data Modeler supports two types of domains:
    1) DM installation domains - those in file defaultdomains.xml
    2) Design level domains - they are stored in design directories and are visible to particular design only. They can be created in following ways:
    2.1 Manually - there is a property "Domains file" and you id it's not set "defaultdomains" domain will become design level domain and will be stored in file with provided name (without .xml extension)
    You can change later the file for design level domains, however you cannot change file for domain already in defaultdomains.xml.
    2.2 Using types to domains wizard you can generate design level domains
    2.3 Design level domains are created during import of  DDL files (controlled in preferences)
    2.4 You can import domains from specific file with domains using "File>Import>Domains" - you need to rename the source file if it's named defaultdomains.xml otherwise you'll get domains as installation domains
    If the list with domains is too long you can define  a list with preferred domains (or/and logical types) in "Preferences>Data Modeler>Model" and you can use shorter list in Table/Entity dialog if check "Preferred" check box next to "Type:" combo box.
    If I open 2 designs in Sql Modeler and switch between designs  then corresponding domain files should be changed automatically as well
    If you open 2 designs in one instance of DM they will use the same file with default domains i.e. you'll lose domains in one of design depending of setting for "system data type directory". You need to go with design level domains.
    Philip

  • Import / Export MySQL database in SQL Developer Data Modeler

    Hello,
    I have version 3.1.2.704 of SQL Developer Data Modeler and version 3.2.09 of SQL Developer installed.
    When I´m adding a new connection in SQL Developer, I can choose the MySQL tab an create a connection to a MySQL database.
    The connection test was successful and I can see all tables.
    I use the same JDBC driver for SQL Developer and SQL Developer Data Modeler (mysql-connector-java-5.0.4-bin.jar).
    But there are two problems.
    1. First there is an problem when I want to import from a MySQL database (SQL Developer -> File -> DataModeler -> Import -> DataDictionary).
    After choosing the MySQL connection and pressing the next button an error occurs: CONNECTION_TYPE
    What is the reason?
    2. In SQL Developer Data Modeler I have not the CONNECTION_TYPE problem. But when I want to export DDL, there is no MySQL type selectable, although there is working connection to the MySQL Database. It´s the same in SQL Developer.
    What is the reason?

    Hi,
    Data Modeler does not explicitly support import from MySQL databases, although you can use a JDBC connection to do this.
    Philip described how to set this up in forum message How to connect mySQL for reverve engineering
    There is no MySQL tab in Data Modeler - you should use "JDBC-ODBC Bridge" - "other third party Driver".
    Set URL like : jdbc:mysql://localhost:3306/database_name
    driver Class: com.mysql.jdbc.DriverAlso Data Modeler does not support generation of DDL for MySQL.
    David

  • Oracle SQL Developer Data Modeler start up error

    Hi All,
    I just downloaded Oracle SQL Developer Data Modeler (2.0.0.57.0) [Released 1 July 2009] by selecting the option "Oracle SQL Developer Data Modeler for Windows (This zip file includes the JRE)"
    After I installed the same and tried to run it by clicking datamodeler.exe, I get the following error message
    "unable to create an instance of the Java virtual machine located at path:..\jdk\jre\bin\client\jvm.dll"
    On the same machine I can successfuly run the Oracle SQL Develper with no errors. My machine is having Windows XP Professional SP3.
    Any ideas? If there was a problem with Java, than the Oracle SQL Developer should also not run. But as stated it runs with out any error but the Oracle SQL Developer Data Modeler gives the above error.
    Regards,
    JAA149

    1 - The above problem has nothing to do with the memmory. I tried on a 400 MB RAM, 900 MB RAM, 1.5 MB RAM & 2 MB RAM with the same arror.
    "unable to create an instance of the Java virtual machine located at path:..\jdk\jre\bin\client\jvm.dll"
    http://i30.tinypic.com/9vkwf6.jpg
    2 - There are two "datamodeler.exe: files
    One is at D:\datamodeler\datamodeler.exe
    2nd is at D:\datamodeler\bin\datamodeler.exe
    The same error occurs with both the files.
    3 - The Oracle SQL Developer Data Modeler version is "Oracle SQL Developer Data Modeler (2.0.0.57.0) [Released 1 July 2009]" and the file I downloaded is "Oracle SQL Developer Data Modeler for Windows (This zip file includes the JRE) - (57M)"
    If I look in "D:\datamodeler\jdk\jre\README.txt" I find
    "Java(TM) Platform, Standard Edition Runtime Environment Version 6"
    If I run "D:\datamodeler\jdk\jre\bin\javacpl.exe" I get
    http://i30.tinypic.com/mt8ocn.jpg
    If I run "D:\datamodeler\jdk\jre\bin\jureg.exe" I get
    http://i28.tinypic.com/30boiyo.jpg
    If i check at the control panle add/remove program
    http://i30.tinypic.com/1428tba.jpg
    If I go to "http://www.java.com/en/download/manual.jsp" and download "jre-6u16-windows-i586-s.exe" and run it.
    If I go to "C:\Program Files\Java\jre6" I find the same files as in "D:\datamodeler\jdk\jre"
    I am able to run Oracle SQL Developer with out any kind of error let alone the above one. But with Oracle SQL Developer Data Modeler I get the above mentioned error no matter what I try.
    As the error states "unable to create an instance of the Java virtual machine located at path:..\jdk\jre\bin\client\jvm.dll". The file "jvm.dll" is located at two places. One at "D:\datamodeler\jdk\jre\bin\client\jvm.dll" and the second at "D:\datamodeler\jdk\jre\bin\server\jvm.dll"
    A similiar problem occurs with JDeveloper with the fllowing solution
    http://forums.oracle.com/forums/thread.jspa?threadID=506339&start=0&tstart=0
    Which states the following
    "hello!
    in the problem with JDeveloper i have a solution. The jdk have a file jvm.dll in the path: jdk/jre/bin/client/jvm.dll this is the problem ... now in the path:jdk/jre/bin/client/ojvm has a file with the same name if you copy and paste this file to the another path, now its works fine your Jdeveloper.
    Jdeveloper use two files to jvm.dll to work one in the folder /client and other in /server copy the same file to the two locations for precaution
    for me work fine thanks..."
    I tried to do the same (Copy from client folder to server folder)
    D:\datamodeler\jdk\jre\bin\client\jvm.dll
    COPIED THIS FILE TO
    D:\datamodeler\jdk\jre\bin\server\jvm.dll
    Nada. So I reversed it (copied from server folder to client folder)
    D:\datamodeler\jdk\jre\bin\server\jvm.dll
    COPIED THIS FILE TO
    D:\datamodeler\jdk\jre\bin\client\jvm.dll
    Does not work. So I tried another solution stated at the same forum entry
    "Well,
    i solved the problem by this way :
    <SQLDEVELOPER>/jdev/bin/ide.conf
    In this file, change this line :
    AddVMOption -Xmx512M
    by
    AddVMOption -Xmx256M
    Now, the executable is lauching correctly. No more errors with Java Virtual Machine.
    But is it a good thing to solve it like that ?"
    But the ide.conf file is only at "D:\sqldeveloper\ide\bin\ide.conf" which is for the SQL Developer and not the SQl Developer Data Modeler
    Correct me if I am wrong but
    JRE = Java Run Time Envoirment
    JDK = Java Development Kit
    And Oracle SQL Developer Data Modeler needs JRE and not JDK. In any case I download JDK
    jdk-6u14-javafx-1_2-windows-i586.exe (121,306 KB) and installed it but no succcess.
    I tried every thing except completely re-install my whole PC.
    Any help will be much appreciated.
    Cordially,
    Jawad

  • Sql Developer Data Modeler 3.0 EA1: Custom transformation script

    What is the object model used by:
    Tools -> Design Rules -> Transformations
    From looking at the examples (and guessing) I have managed to create ID attributes on all my entities, but how do I set its sequence number or set it as the primary key?
    entities = model.getEntitySet().toArray();
    for (var e = 0; e<entities.length; e++)
    entity = entities[e];
    att = entity.createAttribute();
    att.setName('ID');
    - Marc de Oliveira

    content of XML files:
    1) class described, parent class if there is one
    2)<property .../>
    describes property - set and get method, data type of property, default value
    3) <collection ... />
    describes collection of objects belonging to class - 5 collections are defined in Table.xml - columns, indexes, table check constraints, column groups and spatial definitions
    - get method - to get collection
    - create item method - method of described class used to create item for that collection; so for columns collection table.createColumn() will create column in table
    - other methods - add, move, remove if are defined
    4)other meta data
    definitions in 1) .. 4) are used by Oracle SQL Developer Data Modeler, so it'll be wrong to modify those xml files
    5)<roproperty ../>
    Data Modeler doesn't parse/process these definitions, we decided to not filter them out however you should not rely that much on them
    6)some junk left
    For each object you can set your own properties and they will be persisted (also included in compare/merge in versioning) together with other information for object - look at "template table" example in transformation scripts. Here are methods you can use:
    void setProperty(String key, String value);
         String getProperty(String key);
         boolean hasProperty(String key);
         boolean hasProperty(String key, String value);
         void removeProperty(String key);
         void clearProperties();
         Iterator getPropertyNames();
    Philip

  • SQL Developer Data Modeler for SQL Server 2008

    I am not able to connect to my SQL Server 2008 from the SQL Developer Data Modeler. Although I do have jtds-1.2.jar on my machine and I can connect the SQL server through the SQL Developer, but still i'm not able to connect through the data modeler. I need to re-engineer and generate data model for some existing schemas.
    Here is what I'm following:-
    File->Data Modeler -> import -> Data Dictionary -> Add new connection -> JDBC ODBC Bridge -> Other Third Party Driver
    now when I'm giving the JDBC URL and the Driver, It throws an error message stating that the driver could not be found.
    Please let me know what I can do to solve this, any help would be appreciated.
    Regards,
    AVA

    I'd try 1st to connect to the db from sqldeveloper (through jtds - no ODBC involved) and see if you can browse your db and issue sql statements in a worksheet. Then export that connection in xml format and import that from the modeler.

Maybe you are looking for