How can I Data Modeler does not generate constraints on NNC_ tables?

Hi all

Unfortunately I have not found the answer using Google ;-)

When I generate my DDL scripts on my model on some tables Data Modeler (version 4.0.0) automatically generates constraints on the columns of the table "NNC_" for example:

CREATE TABLE STG_DURCHGANGSKNOTEN

(

ID NUMBER CONSTRAINT NNC_STG_DURCHGANGSKNOTENv1_ID NOT NULL,

Kilometrierung VARCHAR2 (20) CONSTRAINT NNC_STG_DURCHGANGSKNOTENv1_Kilometrierung NOT NULL,

Letzte_Aenderung DATE CONSTRAINT NNC_STG_DURCHGANGSKNOTENv1_Letzte_Aenderung NOT NULL,

Knotentyp VARCHAR2 (100) CONSTRAINT NNC_STG_DURCHGANGSKNOTENv1_Knotentyp NOT NULL,

Name VARCHAR2 (100),

BZ_Bezeichner VARCHAR2 (100),

GUI_Bezeichner VARCHAR2 (100),

Spurplanabschnitt_ID NUMBER NNC_STG_DURCHGANGSKNOTENv1_Spurplanabschnitt_ID CONSTRAINT NOT NULL,.

XML_Document XMLTYPE

);

How can I avoid this? I like to just get something like this:

CREATE TABLE STG_DURCHGANGSKNOTEN

(

IDENTIFICATION NUMBER NOT NULL,

Kilometrierung VARCHAR2 (20) NOT NULL,

Letzte_Aenderung DATE NOT NULL,

Knotentyp VARCHAR2 (100) NOT NULL,

Name VARCHAR2 (100),

BZ_Bezeichner VARCHAR2 (100),

GUI_Bezeichner VARCHAR2 (100),

Spurplanabschnitt_ID NUMBER NOT NULL,

XML_Document XMLTYPE

);

Thank you

Matthias

Hi Matthias,

The NOT NULL Constraint clause appears likely because 'Not Null Constraint Name' property is set to the column.  (It is indicated on the Panel "forced by default and ' in the column properties dialog box.)

To stop these products, you can go to the Data Modeler/DOF of the preferences page (on the Tools menu) and set the option 'generate short form of NO forced NULL.

Note that there now is a forum specifically for the Data Modeler: SQL Developer Data Modeler

David

Tags: Database

Similar Questions

  • Group data model does not

    Hello

    I am developing a revision update for my app BB10 stunts and I use a data model to pull in the elements of the application do not forget; the only problem I encounter is that I can't get the data model of the group work so that I can arrange the items by the first character instead the data are currently presented as Z - A, even if I could get it to display in A - Z would be enough, but what I am looking to achieve is to get the model to display in A - Z and then sort by the first character, while a header for each letter is displayed.

    Here is the list (QML) and my data model (C++)

    ListView {
                                dataModel: _noteBook.model
    
                                listItemComponents: ListItemComponent {
                                    type: "item"
    
                                    StandardListItem {
                                        title: ListItemData.title
                                        description: ListItemData.status
                                    }
                                }
    
                                onTriggered: {
                                    clearSelection()
                                    select(indexPath)
    
                                    _noteBook.setCurrentNote(indexPath)
    
                                    _noteBook.viewNote();
                                    navigationPane.push(noteViewer.createObject())
                                }
                            }
    

    NoteBook.cpp

    #include "NoteBook.hpp"
    
    #include "NoteEditor.hpp"
    #include "NoteViewer.hpp"
    
    #include 
    
    using namespace bb::cascades;
    using namespace bb::pim::notebook;
    
    //! [0]
    NoteBook::NoteBook(QObject *parent)
        : QObject(parent)
        , m_notebookService(new NotebookService(this))
        , m_model(new GroupDataModel(this))
        , m_noteViewer(new NoteViewer(m_notebookService, this))
        , m_noteEditor(new NoteEditor(m_notebookService, this))
    {
        // First Character grouping in data model
        m_model->setGrouping(ItemGrouping::FirstChar);
    
        // Ensure to invoke the filterNotes() method whenever a note has been added, changed or removed
        bool ok = connect(m_notebookService, SIGNAL(notebookEntriesAdded(QList)), SLOT(filterNotes()));
        Q_ASSERT(ok);
        ok = connect(m_notebookService, SIGNAL(notebookEntriesUpdated(QList)), SLOT(filterNotes()));
        Q_ASSERT(ok);
        ok = connect(m_notebookService, SIGNAL(notebookEntriesDeleted(QList)), SLOT(filterNotes()));
        Q_ASSERT(ok);
    
        // Fill the data model with notes initially
        filterNotes();
    }
    //! [0]
    
    //! [1]
    void NoteBook::setCurrentNote(const QVariantList &indexPath)
    {
        // Extract the ID of the selected note from the model
        if (indexPath.isEmpty()) {
            m_currentNoteId = NotebookEntryId();
        } else {
            const QVariantMap entry = m_model->data(indexPath).toMap();
            m_currentNoteId = entry.value("noteId").value();
        }
    }
    //! [1]
    
    //! [2]
    void NoteBook::createNote()
    {
        // Prepare the note editor for creating a new note
        m_noteEditor->reset();
        m_noteEditor->setMode(NoteEditor::CreateMode);
    }
    //! [2]
    
    //! [3]
    void NoteBook::editNote()
    {
        // Prepare the note editor for editing the current note
        m_noteEditor->loadNote(m_currentNoteId);
        m_noteEditor->setMode(NoteEditor::EditMode);
    }
    //! [3]
    
    //! [4]
    void NoteBook::viewNote()
    {
        // Prepare the note viewer for displaying the current note
        m_noteViewer->setNoteId(m_currentNoteId);
    }
    //! [4]
    
    //! [5]
    void NoteBook::deleteNote()
    {
        m_notebookService->deleteNotebookEntry(m_currentNoteId);
    }
    //! [5]
    
    bb::cascades::GroupDataModel* NoteBook::model() const
    {
        return m_model;
    }
    
    QString NoteBook::filter() const
    {
        return m_filter;
    }
    
    //! [6]
    void NoteBook::setFilter(const QString &filter)
    {
        if (m_filter == filter)
            return;
    
        m_filter = filter;
        emit filterChanged();
    
        // Update the model now that the filter criterion has changed
        filterNotes();
    }
    //! [6]
    
    NoteViewer* NoteBook::noteViewer() const
    {
        return m_noteViewer;
    }
    
    NoteEditor* NoteBook::noteEditor() const
    {
        return m_noteEditor;
    }
    
    //! [7]
    void NoteBook::filterNotes()
    {
        NotebookEntryFilter filter;
    
        // Use the entered filter string as search string
        filter.setSearchString(m_filter);
    
        const QList notes = m_notebookService->notebookEntries(filter);
    
        // Clear the old note information from the model
        m_model->clear();
    
        // Iterate over the list of notes
        foreach (const NotebookEntry ¬e, notes) {
            // Copy the data into a model entry
            QVariantMap entry;
            entry["noteId"] = QVariant::fromValue(note.id());
            entry["title"] = note.title();
            entry["status"] = NoteViewer::statusToString(note.status());
    
            // Add the entry to the model
            m_model->insert(entry);
        }
    }
    //! [7]
    

    NoteBook.hpp

    /* Copyright (c) 2012, 2013  BlackBerry Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    #ifndef NOTEBOOK_HPP
    #define NOTEBOOK_HPP
    
    #include 
    #include 
    #include 
    
    #include 
    
    class NoteEditor;
    class NoteViewer;
    
    /**
     * @short The controller class that makes access to notes available to the UI.
     */
    //! [0]
    class NoteBook : public QObject
    {
        Q_OBJECT
    
        // The model that provides the filtered list of notes
        Q_PROPERTY(bb::cascades::GroupDataModel *model READ model CONSTANT);
    
        // The pattern to filter the list of notes
        Q_PROPERTY(QString filter READ filter WRITE setFilter NOTIFY filterChanged);
    
        // The viewer object for the current note
        Q_PROPERTY(NoteViewer* noteViewer READ noteViewer CONSTANT);
    
        // The editor object for the current note
        Q_PROPERTY(NoteEditor* noteEditor READ noteEditor CONSTANT);
    
    public:
        NoteBook(QObject *parent = 0);
    
    public Q_SLOTS:
        /**
         * Marks the note with the given @p indexPath as current.
         */
        void setCurrentNote(const QVariantList &indexPath);
    
        /**
         * Prepares the note editor to create a new note.
         */
        void createNote();
    
        /**
         * Prepares the note editor to edit the current note.
         */
        void editNote();
    
        /**
         * Prepares the note viewer to display the current note.
         */
        void viewNote();
    
        /**
         * Deletes the current note.
         */
        void deleteNote();
    
    Q_SIGNALS:
        // The change notification signal for the property
        void filterChanged();
    
    private Q_SLOTS:
        // Filters the notes in the model according to the filter property
        void filterNotes();
    
    private:
        // The accessor methods of the properties
        bb::cascades::GroupDataModel* model() const;
        QString filter() const;
        void setFilter(const QString &filter);
        NoteViewer* noteViewer() const;
        NoteEditor* noteEditor() const;
    
        // The central object to access the notebook service
        bb::pim::notebook::NotebookService* m_notebookService;
    
        // The property values
        bb::cascades::GroupDataModel* m_model;
        QString m_filter;
    
        // The controller object for viewing a note
        NoteViewer* m_noteViewer;
    
        // The controller object for editing a note
        NoteEditor* m_noteEditor;
    
        // The ID of the current note
        bb::pim::notebook::NotebookEntryId m_currentNoteId;
    };
    //! [0]
    
    #endif
    

    If something you can help me with then this would be very useful - if you need to see more of code then let me know too!

    Thanks in advance

    Try to add in constructor (after a call to setGrouping):

    QStringList keys;
    key<>
    m_model-> setSortingKeys (keys);

    May require alterations, I have not tried this compilation.

  • synchronize data dictionary with the model does not generate the DDL

    Hello

    I followed the instruction from the link below

    Re-engineering of your database by using the Data Modeler 3.1

    Here's what I did.

    1. the tables imported using import-> MS SQL 2012 data dictionary (used jDTS 1.3.1)

    2. Add new column to one of the imported tables of the Data Modeler

    3. click on synchronize data dictionary button

    4. compare the contextual model poster! indicating there is gap, but the DOF Preview button is disabled.

    Would you advise me what I got wrong?

    Best,

    Yong

    MODIFY the script is only supported for Oracle databases.

  • How can I make F3 does not bring up the search function

    I don't want windows to bring up the search function whenever I hit F3. How can I change the windows keyboard shortcuts so I can get him to stop?

    I; m do not know how in Vista, but the following program http://www.autohotkey.com/ claims to be able to remap existing keyboard keys and can help you remove the F3 function or at least let you change to another function.

    Here is another free software that claims to be able to do the same: http://www.frkeys.com/doc/edit_keyboard_shortcuts.html.

    I'm not sure that these programs actually work with the F3 hotkey and since they are 3 third party programs, use you them at your own risk.  I suggest the creation of a restore systemm point and back up the registry before you try both methods to be on the safe side.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Data Modeler does not connect to SQL Server database

    I click connect on New / select connection to the base and nothing happens.  No connection is added to the list of connection in the Import Wizard dialog box (file-> import-> Oracle Designer model) so I can't go forward with the wizard and I can't connect to my SQL Server DB.

    The connection works very well according to the test and to connect buttons on the New / select connection to the base dialogue.  Initially, there was errors, reported originally by Test and Connect, but those that have been resolved with minor changes to the URL JDBC and CLASSPATH for jtds.

    Is there a Data Modeler error log which could give an overview of what's going on?  Everyone knows this?

    SQL Server 2008

    JTDS 1.3.1 and 1.2.8

    Data Modeler 4.0.0.825

    Thank you.

    Hello

    No connection is added to the list of connection in the dialog box Import Wizard (file-> import-> Oracle Designer model)

    This path is for the import of the Oracle Designer repository that resides on the Oracle database as well as the Oracle connections are listed here.

    You must use "file > import > data dictionary.

    Philippe

  • How can I keep STROKE does not spread on the next page?

    My InDesign document has a few features that are on a 45 degree angle and I'm trying to keep them does not spread on the next page. I can't send them to the back which will not work in this case. Is it possible to prevent them from showing on pages all about? Thank you!

    Why not just remove the offending part of the path? Move the curvilinear straight ends or use the scissors tool to cut what you don't need.

  • Internet Explorer also displays the part where I can enter data, FF does not work.

    When I enter the URL below IE shows a header and then a part where I can enter my data of payer of tax and a trailer. FF shows only the header and the trailer.

    Hi cor - el,.
    -OK, I checked it...
    that looks like bad luck, and I'm afraid I have to use IE for this task.
    -You can find the...
    I have installed that already have a couple of weeks without result.
    -You can try the...
    I think that's too much effort to not use IE, and my time is somewhat limited.
    In any case, thanks much for investing your time to help me with this problem. I understand now what it is, and this is the first time that I had a problem with FF during all these years that I used it.
    Thanks again and good luck!

  • How can find data in a colum prj_no in all the table of the same schema

    Hi all

    I find the list of tables with data that has prj_no = "Axis_11" for all tables in the same schema.



    Thank you
    Nr

    PNR wrote:
    I find the list of tables with data that has prj_no = "Axis_11" for all tables in the same schema.

    1. find the tables with a column of PRJ_NO name. You can find it in USER_TAB_COLUMNS
    2 write a query to read the data in each table, using the UNION/UNION ALL operators to merge the results for each table

  • How to make the password does not expire at all times.

    Hi all


    I have to set passwords for users do not expire, I have to change the password every six months.

    How can I make password does not expire at all times.

    Default tablespace, SPODIL
    Temporary tablespace, TEMP
    DEFAULT profile
    User created, XXXXXX
    (Locked) status, OPEN
    Password expires Date, 6/27 / 20105:59: 39 PM (I do this expiration date forever)
    Date of the lock,
    External name


    You can help.


    Thank you

    So what profile do you want to not apply the limitation of password change?
    Choose 1 & change it, and then make sure that this profile is applied to all users

  • Found "Save as model" grayed out and cannot save. Recorded with .dwt but saved them "model" does not present as a "site template. Can anyone help? Thank you.

    Found "Save as model" grayed out and cannot save. Recorded with .dwt but saved them "model" does not present as a "site template. Can anyone help? Thank you

    I found the problem. I opened 'File' then saw 'save as template' grayed. Having not worked with models, I didn't know this isn't how it's done.

    What I should have done was file > save as > then clicked the drop-down 'Save as template' menu option. It was a simple mistake. Thanks to you all.

  • Why do write can not be performed because the number of data channels does not match number of channels in the task.

    Possible reasons:

    Scripture cannot be performed because the number of data channels does not match number of channels in the task.

    When writing, provide data for all channels in the task. You can also change the task so that it contains the same number of channels as the written data.

    Number of job channels: 8
    Number of data channels: 1

    Lama says:

    The DAQmx vi writing gives me the error. If I run a single channel, isn't a problem. Multichannel gives me error.

    You are funny! Why tie yourself to work VI (single channel) instead of one that gives you errors (multichannel)?

    (If your car does not work, you bring car your wives to the mechanic, right!)

    What is the exact text in the multichannel 'physical channels' when you do the AO control?

    Lama says:

    I did a sequence to ensure that each function has been run in the correct order. Wouldn't a race condition.

    All you have to do is wire the 'start of task' error at the entrance of error of the DAQ assistant and then back to 'stop task' and things will run in order. Guaranteed! Think the stream! Everything else can run in parallel or the order is irrelevant.

    First convert the sequence stacked to a sequence of plate, remove the flat sequence and add the mentioned son. Now, do a "cleaning pattern.

    A when stacked with the inhabitants of the sequence is one of the worst construction you can possibly do. It makes the code difficult to follow, impossible to maintain, difficult to debug.

  • the windows boot configuration data file does not contain a valid entry os

    Hello

    I got this message when recovery... I can't get the windows... I have the CD recovery, but when I boot it... It gives me this message

    the windows boot configuration data file does not contain a valid entry os

     


    How do I solve this problem

    Hello

    Assuming that it's just a problem with the recovery media, here's another solution, you can try.

    Before you try the following, make sure that you can always read the character product activation key 25 on your label Windows COA (5 blocks of 5 alphanumeric games).

    An example of a COA label can be seen here.

    You can create a Windows 7 installation disc yourself using another PC - just download the good Disk Image ( it must be the same version that originally shipped with your laptop - IE if your laptop comes with Windows 7 Home Premium, that is the file you need to download ) from the link below and use an app like ImgBurn to burn the ISO correctly file on a blank DVD - a guide on the use of ImgBurn to write an ISO on a disc is here.  The source of the Image is - Digital River.

    Images of Windows 7.

    Use the disk to perform the installation, enter the activation key of Windows on the label of the COA at the request and once the installation is complete, use ' 'phone Method' described in detail in the link below to activate the operating system -this made method supported by Microsoft and is popular with people who want to just have a new installation of Windows 7 without additional software load normally comes with OEM installations.

    http://www.kodyaz.com/articles/how-to-activate-Windows-7-by-phone.aspx

    All pilots additional and the software you may need are located by entering your full model number or Nr here.

    Kind regards

    DP - K

  • Try to activate Windows XP, but it does not generate an installation ID to activate it?

    Hello
    I'm trying to legitimately re - install XP pro on a build machine that is free because of various programs such as IE and AVG works don't not after a period not being don't not under tension.
    I deleted the partition via the disc to install and re-installed, but then the activation it would not go online so I'll have to do the option "Activate Windows by phone".
    Unfortunately, it does not generate an installation ID and so I can't enter a confirmation ID.
    Of course the help line have been extremely useful and intuitive, and so I wore the recommended feeding cycle, but nothing helped.
    I also tried to change the product key but it's the same. Just a space where the installation ID should be.
    Any ideas would be most appreciated.
    Thank you
    John

    original title: no installation id

    Here are the appropriate measures on how to solve this problem:

    (1) download windows xp service pack 3 from a work computer and save it on a USB flash drive

    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24

    (2) start the computer xp in "SafeMode only.

    (3) install the SP3 that you saved on the usb to the computer flash drive

    (4) restart the computer in "normal mode" and now you have an installation ID

  • Oracle Data Integrator does not start

    Hello
    I just installed ODI 11 g (11.1.1.7.0) and managed to create repositories with the remote control.
    But I have problems startgin the application itself. The environment is perhaps the question:
    OS - Debian 64 bit Wheezy
    Java - version "1.6.0_27".
    The (IcedTea6 1.12.4) OpenJDK runtime environment (6b 27 - 1.12.4 - 1).
    OpenJDK 64-bit Server VM (build 20, 0 - b12, mixed mode)
    JAVA_HOME = / usr/lib/jvm/java-6-openjdk-amd64-> points to jdk folder adding "/ bin" that contains the path, the java executable
    ORACLE_HOME=/U01/app/Oracle/product/11.2.0/dbhome_1-> database oracle home
    ODI installed in/opt/ODI and changed with CHMOD-r 775/opt/ODI (user 'oracle', used for installation is the owner)
    (Can not be sure, but is for evaluation only).

    I try to run ODI:
    fre@demo$CD/opt/ODI/oracledi/customer
    fre@demo$./ODI.sh

    Result:

    Oracle 11 g data integrator
    Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.

    . / odi: 281:... /... /IDE/bin/IDE.conf: = APP_VM_OPTS [0] - Xmx640M: not found
    . / odi: 281:... /... /IDE/bin/IDE.conf: APP_VM_OPTS [0] =-Xms128M: not found
    . / odi: 281:... /... /IDE/bin/IDE.conf: = APP_VM_OPTS [0] - Xverify: no: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] = - XX:MaxPermSize = 256 M: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] = - Doracle.core.ojdl.logging.config.file = ODI - logging - config.xml: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] = - Dorg.apache.commons.logging.Log = org.apache.commons.logging.impl.Jdk14Logger: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] = - Djava.util.logging.config.class = oracle.core.ojdl.logging.LoggingConfiguration: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Dnative.canonicalization = false: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS[0]=-Doracle.security.jps.config=./jps-config.xml: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Doracle.odi.studio.ess = false: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Dide.AssertCheckingDisabled = true: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Dide.AssertTracingDisabled = true: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-DLOG_FILE = studio.log: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Dsun.java2d.noddraw = true: not found
    . / odi: 281:. "/ odi: APP_VM_OPTS[0]=-Dide.conf="/opt/ODI/oracledi/client/odi/bin/odi.conf ": not found
    . / odi: 281:. "/ odi: APP_VM_OPTS[0]=-Dide.startingcwd="/opt/ODI/oracledi/client/odi/bin ": not found
    . / odi: 810:. / odi: bad substitution

    I would appreciate any idea to help me solve this issue!

    Thank you very much

    Fred

    Published by: Fred1018 on May 26, 2013 09:17

    I found the solution in 2 steps:

    A change in ownership of the user oracle (used for installation) to yourself: sudo chown-r me: mygroup /opt/ODI (/ opt/ODI is my installation path)

    In one of these forums OTN, the question already answered: got to .../oracledi/client/odi/binand then run odi bash (sh does not generate the required path)

    Now it works!

    Thanks for your help!

    Best regards

    Fred

  • How can I tell weather or not each checkbox is selected in a &lt; mx:AdvancedDataGridColumn

    Hello

    I have a column that contains a checkbox

    < mx:AdvancedDataGridColumn width = "30" headerText = "" showDataTips = "true" editable = "false" dataField = "Remove" > "

    < mx:itemRenderer >
    < mx:Component >
    < mx:HBox width = "100%" verticalAlign = "middle" paddingBottom, paddingTop = "0" = "0" horizontalAlign = "center" height = "100%" >
    < mx:CheckBox >
    < mx:click >
    <! [CDATA]
    []] >
    < / mx:click >
    < / mx:CheckBox >

    < / mx:HBox >
    < / mx:Component >
    < / mx:itemRenderer >

    < / mx:AdvancedDataGridColumn >

    How can I tell weather or not each checkbox is enabled?

    Thank you very much

    I mean that the value of certain States must be stored somewhere in the datagrid?

    Actually no, datagrid have no idea what the State of the model, since you can assign * any * class point of converter, you must maintain your model manually. You can't relay on datagrid internal guts because he follows model itemRenderer - some Visual converters to display all rows. The only source that you can trust is dataProvider or your collection of data in the grid from the outside.

    A general scenario for your usecase would store check boxes of the States within the dataProvider items as some say "checked/selected" property
    and elements enum to discover the current status of checkboxes.

Maybe you are looking for