SQL Data Modeler adds blank line to UK Constraints

Oracle SQL Developer Data Modeler Version: 2.0.0 Build: 584
I'm migrating my schema designs from Oracle Designer to SQL Developer Data Modeler. When I get to the point of generating SQL files I consistently get an extra blank line added to every unique constraint. My primary key constraints are defined the same way, but they do not have the blank line. See below for an example of the SQL output:
ALTER TABLE ALIAS
ADD CONSTRAINT ALIAS_PK PRIMARY KEY ( ALIAS_NO )
USING INDEX TABLESPACE INDEX1
NOLOGGING
NOSORT
ALTER TABLE ALIAS
ADD CONSTRAINT ALIAS_UK UNIQUE ( ALIAS_NAME )
USING INDEX TABLESPACE INDEX1
NOLOGGING
NOSORT
This blank line causes errors when I execute the SQL script so I have to edit it before using. Did I forget to something or is this a bug?
Thanks,
Gail Binkley
Stanford University

Hi Gail,
thanks for feedback. I logged bug for that.
Philip

Similar Messages

  • Data Model Layout (crossing lines)

    Hi Everybody,
    I downloaded the SQL Data Model and doing some modeling. It is doing a good job.
    How can I adjust the crossing lines in the diagram. I am not able to bend the relationship lines.
    Are there any hidden (undocumented) shortcut KEYS to do that?
    Where can I find those defined shortcut KEYS?
    Do we have an auto layout option to adjust the Entities and relationships in a page?
    Thanks in sharing your experience.

    Hi,
    you need to switch "Auto route" off and you'll be able to position manually the lines.
    Do we have an auto layout option to adjust the Entities and relationships in a page?There is limited "auto layout" functionality in relational model but it's not page oriented.
    Philip

  • How to add blank lines (in column) in SQLplus

    I get error when doing below insert, how do I add blank lines in column (via SQLplus)?
    insert into a values(1, '78 ABC house,
    Some Road
    London E34');
    Thanks

    Just set "SQLBLANKLINES" to ON:
    SQL> set sqlblanklines on
    SQL>
    SQL> insert into dept values (50, 'This department
      2
      3  has several
      4
      5  blank lines','This
      6
      7  Loc') ;
    1 row created.
    SQL> select * from dept where deptno = 50 ;
        DEPTNO DNAME                          LOC
            50 This department                This
               has several                    Loc
               blank lines
    1 row selected.
    SQL>

  • SQL Data Modeler Methodology

    What methodology is guiding the overall systems analysis approach behind SQL Data Modeler? The Help documentation seems to be based on some methodology, but it is unfamiliar to me. Zachman is not a methodology, Bachman is an ERD notation, and OMG MOF and Common Data Warehouse specs deal with data interchange. By methodology I mean a systematic set of steps and deliverables that a CASE tool, such as SQL Data Modeler, is supposed to support. An example methodologies would be Oracle*Case Method developed by Oracle in the 90's (no longer current), or support of the UML approach.
    Thanks,
    Mark

    Thank you Philip,
    We are doing reports in TOAD and Cognos 8.
    So far so good. One of the pieces of information I need out of the Oracle Data Modeler reporting schema is the columns in foreign keys. Foreign keys are not usually enforced in datamarts but data analysts must know what the foreign keys are to join tables.
    There is a notation in Relational Model Elements.pdf "Foreign keys of DMR_CONSTR_INDEX_COLUMNS table are not valid since one column is used to refer to objects in two different tables"
    This begs the question: Is there a valid foreign key in DMRS_CONSTR_INDEX_COLUMNS to join it to DMRS_FOREIGNKEYS or is the model documented incorrectly?
    The repository adds tremendous value to Data Modeler.
    Gerhardt

  • SQL Data Modeler reporting repository data model

    SQL Data Modeler (SDM) reporting repository data model
    I exported several models to reporting schema and reviewed the reports. So far so good. The reports I need are not included so I'm creating my own. I imported the reporting schema to SDM to explore the model and see how to join the tables. Has anyone already done this exercise and produced a data model for the reporting schema with primary keys, foreign keys and relationships? It would save me a pile of work if I could download the model and import it to SDM?
    Gerhardt

    Thank you Philip,
    We are doing reports in TOAD and Cognos 8.
    So far so good. One of the pieces of information I need out of the Oracle Data Modeler reporting schema is the columns in foreign keys. Foreign keys are not usually enforced in datamarts but data analysts must know what the foreign keys are to join tables.
    There is a notation in Relational Model Elements.pdf "Foreign keys of DMR_CONSTR_INDEX_COLUMNS table are not valid since one column is used to refer to objects in two different tables"
    This begs the question: Is there a valid foreign key in DMRS_CONSTR_INDEX_COLUMNS to join it to DMRS_FOREIGNKEYS or is the model documented incorrectly?
    The repository adds tremendous value to Data Modeler.
    Gerhardt

  • Export/Report on dynamic properties in SQL Data Modeler

    I'm thinking of using dynamic properties to hold meta-data in SQl Data Modeler, but I can't find a way of exporting or reporting on this info once I have created it.
    Am I missing something?
    Regards,
    John

    John,
    you can download DM 4.0.1 - dynamic properties can be included in custom report templates and into generated reports.
    Philip

  • Open Toad Data Modeler diagram with SQL Data Modeler

    hi, I've made a diagram with TOAD Data Modeler in Windows. Now I'm working with Linux, so I need a portable application to work with. Oracle SQL Data Modeler seems to be the solution to my problems, but I can't open/import my TOAD's diagrams into SQL Data Modeler.
    Anyone knows how to do it?
    Thanks in advance,
    Neuquino
    Edited by: Neuquino2 on Nov 1, 2010 1:30 PM

    Hi Neuquino,
    there is no import from TOAD Data Modeler. You can generate DDL script with TOAD DM and import that script.
    Philip

  • SQL Data Modeler Terms and Definitions

    Hello All,
    I am new to using the SQL Data Modeler and I was wondering if someone could point me to a list of definitions of terms that are used throughout the SQL Data Modeler interface. The help documentation does not seem to define most of the terms that are used in the product.
    Thanks in advance,
    Craig

    The Oracle SQL Developer Data Modeler help and the Data Modeler User's Guide, which shares content with the help, don't contain a glossary or list of terms. If the terms you're looking for are Oracle Database terms (such as definitions of tables and other database objects), the SQL Developer help and its user's guide do include brief definitions (in the Database Objects topic).
    For other kinds of terms, the Data Modeler help does point to the Object Management Group (OMG) site, and perhaps the OMG Terms and Acronyms page ( http://www.omg.org/gettingstarted/terms_and_acronyms.htm) might help you. However, there's no guarantee that those definitions will completely apply to the Oracle SQL Developer Data Modeler tool.
    For definitions or explanations of specific terms of interest, I recommend searching for (or using the Table of Contents to find) the relevant topics. You can also ask about specific terms or about terms in general in the Data Modeler discussion forum: SQL Developer Data Modeler forum: SQL Developer Data Modeler

  • Oracle 11gR2 support in SQL Data Modeler

    Hi ,
    I am using SQL DM 3.0.0.665. I need your thoughs on following.
    We find some interesting features in Oracle 11gR2, but I am trying to figureout, which of those are feasible on SQL data Modeler.
    Eg. Virtual Column on table definition. Are we able to model this in SQL data Modeler?
    What is the best way to do that?
    Any idea?
    Thanks in helping us out.

    Hi,
    If you don't set the datatype (i.e. leave it as "unknown", or set it back to "unknown"), it will generate
    TEST_V AS ( CASE WHEN EVENT_NAME = 'XXXX' THEN 'MMMM' ELSE 'KKKK' END )
    The Oracle 11gR2 documentation for the virtual_column_definition clause notes that "The keyword VIRTUAL is optional and for syntactic clarity."
    So the fact that Data Modeler does not output the keyword VIRTUAL does not make any difference to the effect of the SQL statement.
    David

  • Oracle Designer to SQL Data Modeller Migration

    Hi
    We would like to migrate our artifacts from Oracle Designer to SQL Data Modeller
    Does anybody here have experience with that and things that i should be aware of that is possible with Designer but need to be handled differently in Modeller.

    You might want to try this forum as well: SQL Developer

  • How to make use of a different data model for a line chart?

    I have a datamodel which is a sql query. I have a line chart on my template which is using some "Start Time" field as X-Axis. There is a chance that "Start Time" is null. In such cases the plotted point doesn't appear with x-coordinate. But I can't change the X_Axis field to some other not-null attribute due to business requirement.
    I am thinking to create another datamodel which filters all "Start Time"s which are nulls and use that datamodel for the line chart that has "Start Time" as X-axis. But I don't know how to do this as whenever I try to insert a line chart from BIPublisher menu in MS_Word, I am not prompted to select the datamodel.
    Can anybody tell me what I am trying is possible? If so how? If not, how do I have "Start Time" as X-axis without hassles?
    Thanks,
    -Vijay-

    Are you able to extract the data based on the new data model in an XML file? If so, in BI publisher desktop, are you able to load the XML data via Add-Ins ->Data -> Load XML Data?
    If you have been able to load the data successfully, then you need to Select Chart from the Insert Menu. When you do that, you should be able to see the Data layout on the left side of the chart dialog box. Then you should be able to drag and drop fields as necessary to create the chart. Are you having issues doing this part?
    You will not be prompted to select the data model. Hope I haven't misunderstood your question.
    Thanks!

  • SQL Data Modeler bugs (or only misused?)

    Hi,
    I think I ran into some modeler bugs and missing features ...
    BTW: is there a place where all the known bugs are listed?
    * although "no action" was selected in "General Options - Model - Relational" for foreign keys all the foreign keys are created with
    "not deferrable" (well, why not, if it makes the modeler happy) and
    "on delete set null" (thats not what I'd call "no action")
    * DDL statements for indexes lack the schema name
    * newly generated foreign relations are not always displayed in the relational model
    * DDL preview for syncing physical model with relational does not (always) work (well - so far it worked once)
    steps taken: File - Import - Data dictionary, selected objects for import, correct target model chosen, "swap target model" checked
    * foreign keys in unique constraints are always set to "not null" (in logical and physical model)
    * no trigger/constraint created for ARCs (I am not sure about this, but IIRC I did not see anything making an ARC really work)
    Or do ARCs simply not work yet?
    * modeler hangs sometimes (e.g. when opening "Save as" dialog etc.)
    * dialogs are opened outside visible pane when the position of monitors is changed (the dialogs seem to remember their last position)
    * sequences (physical model withing relational model) are loosing their user
    * missing multi schema capabilities :-(
    * the layout capabilities - pardon my french - suck
    Especially that the boxes and lines seem to wander around from one usage to the next (entities aligned with grid - next start the entities are no longer aligned).
    And if you ever need to save/export the model somewhere else all the references stick to a single connection point.
    Not to mention a simple move of a box ...
    Thank you for your effort
    Peter
    Edited by: stueckl on Sep 3, 2009 9:41 PM

    Hi Philip,
    sorry for not answering quite a time ...
    Just some prerequisites ;-) ...
    - Target database: Oracle 10g R2 (10.2.0.4)
    - Modeler version 2.0.0 build 570
    - model creation method: logical model, relational model, (physical model), Database objects
    - OS WindowsXP German, SP3
    - JDK Sun Java 1.6, build 1.6.0_16-b01
    * nullable FK column in unique keys
    meanwhile I found out, how to achieve that - but IMHO the steps to take are quite cumbersome
    1) make a FK relation with "target optional" checked on the Cardinality page of the FK properties
    2) open entity properties, check attributes of FK column (it says: nulls allowed - the checkbox cannot be changed)
    3) got to unique identifiers page and add a unique identifier
    4) open the unique identifier property dialog and add the foreign key
    5) close both property dialogs
    6) reopen the entity property dialog, check attributes of FK column (it says: no nulls allowed - the checkbox cannot be changed)
    7) check the FK properties: it still says: target optional (it is checked)
    8) check the graphical representation of the FK key: dashed line at target entity (meaning: optional)
    9) create the relational model: the FK column is created with "not null"
    10) go back to logical model
    11) change FK property to: target mandatory (uncheck "target optional")
    12) create relational model
    13) change FK property to: target optional (check "target optional")
    14) create relational model
    15) SUCCESS! the foreign key column is now nullable
    BUT: you never ever must change ANY of the entities properties or you must redo steps 11 to 15
    * "no action" of FKs
    I will look into that. Thanks for the suggestions.
    * DDL statements for indexes
    Sorry for being imprecise ... I was talking about automatically generated indexes (for unique and foreign keys).
    Those don't show up in the index listing of the tables in the physical model (probably, because they are automated).
    But why do I have to set the default schema for indexes again? The tables get the schema information for the default schema (General Options - Model - Physical) but not the indexes :-(.
    Generated DDL snippet:
    CREATE TABLE ZCBC1ST1.ZCBRAGIT_AGENDAITEM ( ...
    CREATE UNIQUE INDEX ZCBSAgIt_U1X ON ZCBC1ST1.ZCBRAGIT_AGENDAITEM ( ...
    Same for FK indexes. And the unique index property page in the physical table section does not let me specify a schema owner (OK for me, because the unique key is created by an "alter table" statement).
    * ARC trigger
    My bad - I only checked "DDL preview" of the table, which doesn't show the ARC trigger. The complete generation does. Sorry.
    * "missing multi schema capabilities" and "sequences loose owner"
    Please excuse a newbie blush.
    I just found out I can change the table owner using the physical model capabilities (I guessed I used way too long PowerDesigner V6 ;-) ).
    BUT ...
    The newly created user does not "survive" a "save all - close all - open" sequence on "Physical Models" ... only closing the app or saving the Oracle10g physical model makes the user persistent.
    And also ... if the new table or sequence owner is the first in the drop down list on the property dialog, the user is replaced by an automatically created new user (e.g. User4, User5, and so on).
    Example:
    * I have three defined users and the standard "MDSys" and "Public".
    * My three users are named ZCBC1ST1, ZCBCCore and ZCBCDial (those names are because i need to follow naming rules).
    * ZCBC1ST1 is my default physical model user, which was set in "General Options"
    * ZCBC1ST1 is the first in each drop down list.
    * I have some sequences named Seq1, Seq2, Seq3 and Seq4
    * Seq1 was given to ZCBC1ST1, Seq2 to MDSys, Seq3 to ZCBCCore and Seq4 to ZCBCDial
    * saved and closed the Oracle10g physical model and reopened it
    * Seq1 now has User4, but the other have still the users they were attached to
    The same applies to tables - I am unable to give a table to the first entry of the user list.
    Solution I found to this problem ...
    1) remove the default physical user in "General Options" (and never ever set it again)
    2) create a explicit user (with the name of the prior default user)
    3) manually reattach all objects to this user sigh
    4) so far not a problem with automatically generated indexes, because they don't use the default user anyway
    * newly generated FKs not shown in relational model
    I had this odd behaviour several times.
    1) Logical model: adding a new FK relation
    2) giving the reference-column a pretty relational name
    3) generating the relational model
    4) rather often the new column shows up in the relational model but the arrow for the new foreign key does not.
    5) only after i open the properties dialog of the missing foreign key the arrow is shown in the model
    6) happens often to sub-models - less often to the top-model
    * model syncing (Oracle10g with modeler)
    As Ms. Harper stated in one of her posts (and she even made a video tutorial IIRC) it should be possible to sync a Modeler model with the Oracle10g contents.
    AFAIR the tutorial showed only how to sync the model with the contents but not vice versa.
    I tried to achieve this checking the "swap target model" check box (that's the important thingy) of the import dialog. Everything worked fine besides there is only a preview of DDL statements available but no "Merge" or "Create DDL Statement". And exactly that preview doesn't seem to work anymore. No matter what objects I select, I am unable to see any DDL statements to upgrade the Database.
    I don't know why, but it worked again just before. I will keep an eye on this. ;-)
    So much for now ...
    Thank you for your effort
    Peter
    Edited by: stueckl on Sep 9, 2009 1:03 PM

  • SQL Data Modeler 3.0 EA1 trying to create primary key on OT

    Hi,
    I'm trying to modify a primary key of an object table that was reversed (imported) from an Oracle 11.2.x RDBMS and am getting the error message "Incomplete Index definition". It is showing in the window "Index Columns Assignment". I get to the 'Primary Key Properties' window by pressing the 'Properties' button on the 'Table Properties' -> 'Primary Key'. If I try to edit the expression and then press the Ok or Apply buttons I get the error. With this be fixed in the production version? Will we be able to create a model in SQL Developer Data Modeler that generates a SQL statement similar to the following:
    ALTER TABLE x_flags
    ADD (CONSTRAINT x_flags_pk PRIMARY KEY (flags.id))
    Thanks,
    Scott K

    Hi Scott,
    I'm trying to modify a primary key of an object table that was reversed (imported) from an Oracle 11.2.x RDBMS and am getting the error message "Incomplete Index definition"... With this be fixed in the production version?yes
    Will we be able to create a model in SQL Developer Data Modeler that generates a SQL statement similar to the following:
    ALTER TABLE x_flags
    ADD (CONSTRAINT x_flags_pk PRIMARY KEY (flags.id))I assume "flags" is column of object type and "id" is attribute of that type. I logged bug for that, so there will be support however not for 3.0.
    Philip

  • 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.

  • Export Excel Data only causes blank line between 2 lines of records

    Hi,
    I wrote a complete winform application using CR2008.
    For information :
    C# Framework 3.5
    Windows XP SP2 or Windows Server 2003 SP1
    CR2008 SP1
    Application allow to preview report. In the preview window (CR activx) there is a "letter icon" to export report in several format.
    -RPT
    -PDF
    -DOC
    -XSL
    -XSL Data only
    When I export with "Excel Data only" format, I always have a blank line between 2 lines of records in Excel.
    Is there a way to supress them from VS2008 ?
    Thanks a lot for your reply,

    Hello, Jonik;
    Do you see the same blank lines when you export to Excel Data only in the Crystal Reports designer?
    Elaine

Maybe you are looking for

  • Problem with Front-End Editor (New)

    Dear SAP gurus I tried from transaction se38, selecting options Utilities -> Settings and then selecting Front-End Editor (New) from Abap Editor tab. When I had old editor setting, I had buttons to do tasks like 'load local file' ,  'save as local fi

  • When printing to Adobe PDF from Microsoft Publisher, the text on page 2 is not 100% black

    Hi there I'm using Microsoft Publisher 2013 to print to an Adobe PDF file (I have a trial version of Adobe Acrobat Pro DC.) I sent the PDF to my printing house but they can't print it because the text on page 2 is not 100% black. In Publisher, the te

  • How to use save data in Background by using standard task?

    Hi, I have worked with PD Process for PD. I try to find background process to run after manager approve. I use the standard task 17900108 but it seem does not work.  What should I did before I use this standard task? Please help me out how to use thi

  • Editing Vendor Master in MASS

    Dear Gurus, Good Day. In Vendor Master in field ADDRESS, i need to change the TITLE as completely blank. Is there any Option or Procedure to change it MASS. With Regards, Siddharth

  • Garage Band Gone

    I recently erased my hard drive and reinstalled with original disk to fix some issues. Everything is back in working order, except I don't have any of the iLife features that I've always had. This is probably the third time I've reinstalled from the