SQL Datamodeler: Importing Domains

Hello,
I see that you can easily import domain definitions.
How can you export them?
Wouldn't it be a good idea to seperate user defined domains and the predefined ones?
Regards Erik

Hi,
Got round this limitation as follows:
(Please keep a copy of the default system domains XML file before you proceed. The file is $SQLModeler_Install_Home\datamodeling\domains\defaultdomains.xml).
First delete all the default system domains and then create your new domains.
After saving the model, the new domains will be written into defaultdomains.xml.
You can now copy and rename this as your customized domains file while can be imported for other uses.
You can restore the original system domains file from the backup copy you made earlier.
Enjoy.
Chiedu

Similar Messages

  • SQL Datamodeling: importing sql

    Hello,
    I'm importing a ddl file to sql datamodeler. Columns, pks and uks are imported ok but the foreign keys are not imported allthough they are in the script.
    The script was created from sql developer.
    fragment:
    CREATE TABLE "DARWIN"."DUS_ALLOCATIES"
    (     "ID" NUMBER NOT NULL ENABLE,
         "PSN_ID" NUMBER,
         "ODT_ID" NUMBER NOT NULL ENABLE,
         "STARTDATUM" DATE NOT NULL ENABLE,
         "EINDDATUM" DATE,
         "UURTARIEF" NUMBER(6,2) NOT NULL ENABLE,
         "AFSPRAKEN" VARCHAR2(4000 BYTE),
         "OPMERKINGEN" VARCHAR2(100 BYTE),
         "INZET_PERCENTAGE" NUMBER(5,2) DEFAULT 100,
         CONSTRAINT "ALC_PK" PRIMARY KEY ("ID"))
         CONSTRAINT "ALC_PSN_FK1" FOREIGN KEY ("PSN_ID")
         REFERENCES "DARWIN"."DUS_PERSONEN" ("ID") ENABLE,
         CONSTRAINT "ALC_ODT_FK1" FOREIGN KEY ("ODT_ID")
         REFERENCES "DARWIN"."DUS_OPDRACHTEN" ("ID") ENABLE
    Regards Erik

    ArnoldH wrote:
    Hi Philip,
    Could you expand a bit on your reply? Do you mean the import will work in the current release if the quotes are stripped off? Do you mean that the next release will work with the quotes? (What about without the quotes too? As the normal output for DBMS_METADATA.GET_DDL is quoted ("owner"."object"), will the next release work with either? I hope so.)
    Thanks,Hi Arnold,
    on your questions - yes, yes (yes,yes).
    In current published release - it should work without quotes. With quotes, obviously it doesn't work when definition of foreign keys are embedded in "create table" statement. It's fixed and should work in next published release. I use should because parsing of scripts always can be surprising.
    Philip

  • SQL datamodeler: No repository?

    Hello
    I thought that the production version of SQL Datamodeler would contain a repository. In fact it was one of the question on the faq on the sql developer data modeler home page
    (http://www.oracle.com/technology/products/database/datamodeler/html/datamodelerfaq.html#repository)
    How are the models currently stored and will there be a repository?
    SQL Developer Data Modeler stores each model in a standard directory with the model name as directory name with an additional main header file using the model_name.xml. You can store models locally or on a central file server. Many early adopter customers have successfully used open source version tools such as Subversion, to keep their models under source code control.
    Currently the Repository is under development. Models will be stored in a standard relational Oracle database.
    Are there still plans to use a repository ? I think osdm is a great product but I personally think you need a repository to make it a multi-user datamodeling tool.
    Regards Erik

    Yes, we plan to support both.
    Erik,
    You make my point exactly: Like many users you say you want a database repository for a multi-user environment, but now you say "In that case we could create productivity boosters and quality checks using pl/sql." What do you want here? This is different. The tool provides a full Design Rules section for quality checks and you can use the reporting repository for additional reports.
    Today, the production release of the Data Modeler supports a reporting repository.
    1. Take any design and select the export option to export it to the reporting repository.
    2. The export dialog is a connection dialog.
    3. If you have never exported the design before, the tables required will be created for you in the schema you provide. -We recommend you create a new schema for this purpose - Subsequent exports will be added to the same repository, unless directed.
    You can now import the provided reports into SQL Developer and run these reports about your design. Because it's just a schema in the database, you can use SQL Developer to browse the tables and add your own reports.
    There is a full tutorial on this on the [ Data Modeler|http://www.oracle.com/technology/products/database/datamodeler/index.html] site.
    Sue

  • SQL Server Import and Export Wizard Issue

    i am trying to export SQL data into excel to send out weekly reports.  I have created a view and a SQL account has access to this view; however, I am unable to successfully export the data.  In preview I see all of the data yet it fails on the
    Pre-execute with the below.  It creates the excel file with just the header.  I am using SQL 2014 and loaded the 64 bit AccessDatabaseengine.  I am selecting excel 2007.  Any ideas welcome.
    Messages
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
     (SQL Server Import and Export Wizard)
    Error 0xc02020e8: Data Flow Task 1: Opening a rowset for "WeeklyList" failed. Check that the object exists in the database.
     (SQL Server Import and Export Wizard)
    Error 0xc004701a: Data Flow Task 1: Destination - WeeklyList failed the pre-execute phase and returned error code 0xC02020E8.
     (SQL Server Import and Export Wizard)

    Hi astro,
    Please ensure that you haven’t renamed or moved the destination excel file during the exporting process. Also make sure that “Create destination table” option is checked as below screenshot and the SQL statement is correct.
    For more details about using SQL Server Import/Export Wizard to export data from a SQL Server database to an Excel spreadsheet, please review the below blog.
    http://www.mssqltips.com/sqlservertutorial/202/simple-way-to-export-data-from-sql-server/
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • SQL*Loader Import Problem

    Hi,
    I am trying to import some data from .txt file to a table in Oracle DB using TOAD- Sql*Loader - Import wizard. I was able to load all the files successfully. All the files are pipe(|) delimited. But in one of the files, when the values for the field is NULL - it is populated as ' ' (space), I have trouble in loading these files.
    Suppose I have the fields f1, f2, f3, f4 in the .txt file. And say I have the data as following (and delimter as pipe(|)):
    f1 f2 f3 f4 f5
    r1|01|xyz|123|abc
    r2|02| |234|bcd * 3rd column being null(space)
    r3| |sam|345|def * 2nd field being null(space)
    |04|ram|456|efg * 1st field being null(space)
    |05|abc|567|gef * 1st column being null
    I have problems loading the records 4,5 using Sql*loader, as the first field being null, the data is not being loaded properly. Is there any alternative way of loading this file into my table. Please help me.

    Pl post OS and database versions, along with the contents of the loader control file and the loader log file with the errors.
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_field_list.htm#i1009544
    HTH
    Srini

  • Sql datamodeler: Design rules

    Hello,
    In sql datamodeler you can check your design against a number of design rules.
    Is there a way you can influence these design rules?
    - can you say wheter a design rule is applicable or not?
    - can you change the severity?
    - can you change the rule (for instance other naming convention rules)
    Regards Erik

    Not at this stage. We want to allow users to modify them in the future. There are ways you can influence some of these. So on the Model Properties dialog their are Naming Options. If you change these, you can influence the design rules. Also, in the General Options there is a naming Standards section. So you can set naming standards here and these are used in conjunction with the Designer Rules.
    I'm working on a document about all the naming standards and design rules and how they are used. It's not yet available, but I'll put it onto the Data Modeling page when it's ready.
    Sue

  • SQL Server Import Export Wizard fails while trying to retrieve the data from FastObjects Database

    When trying to import data from FastObjects database to SQL Server 2008 R2 using import/ export wizard we get the following error message :
    "Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider."
    Clicked on View button, the source data is retrieved correctly.
    Clicked on Edit Mapping button, the Import Export Wizard failed with the below error message:
    ===================================
    Column information for the source and destination data could not be retrieved.
    "Test" -> [dbo].[Test]:
    - Cannot find column -1.
    (SQL Server Import and Export Wizard)
    ===================================
    Cannot find column -1. (System.Data) 
    at System.Data.DataColumnCollection.get_Item(Int32 index) at System.Data.DataRow.get_Item(Int32 columnIndex) at Microsoft.DataTransformationServices.Controls.ProviderInfos.MetadataLoader.LoadColumnsFromTable(IDbConnection myConnection, String[] strRestrictions)
    at Microsoft.SqlServer.Dts.DtsWizard.OLEDBHelpers.LoadColumnsFromTable(MetadataLoader metadataLoader, IDbConnection myConnection, String[] strRestrictions, DataSourceInfo dsi)at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfoFromDB(IDbConnection
    mySourceConnection) at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfo(IDbConnection mySourceConnection, ColumnInfoCollection& sourceColInfos)

    Hi Chennie,
    Thank you for the post.
    Does the issue persists after you use the "Write a query to specify the data to transfer" option instead of “Copy data from one or more tables or views” option? If so, the issue may occur due to incorrect data type matching between the FastObjects database
    data types and SSIS data types. In this condition, I don’t think it is necessary to upgrade the SQL Server version. Since you can open the Column Mappings dialog box, please try to modify the data type mapping manually.
    In addition, the issue seems to be the same as the issue described in the following blog:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/09/09/sql-server-import-export-wizard-fails-while-trying-to-retrieve-the-data-from-pervasive-database.aspx 
    Regards,
    Mike Yin
    TechNet Community Support

  • Schedule a SQL Integration Import Script

    Hey Everyone! I need some help from the FDM community.
    I am currently using FDM 11.1.2.1 and using the Hyperion Essbase adapter to load data to a Planning/Essbase application. I have successfully created a SQL integration import script that connects directly to Oracle EBS, and have manually tested the process up-to-check of the workflow. However, I would like to schedule this process on a nightly basis. I am aware of the batch processing task scheduler and have used it previously, but I am obviously not dumping flat files into the OpenBatch directory nor am I using the Custom General script usually associated with Batch Processing. So, is there a Custom General script that I can use to call on the import integration script so I can schedule such a process?
    Please let me know, and thank you for your time!
    Sincerely,
    Craig

    You can do this with the batch. You just create a blank text file with the proper naming convention for the POV you are going to kick off the integration script for and place it in Open batch. The batch will then execute the integration script for the POV when executed.

  • Data Modeler 3.0 EA1: Importing domains and 2.0 model doesn't work

    If I import (or open) a relational model from Modeler 2.0 which refers to domains, Modeler 3.0EA will not recognize the domains. I end up with a model full of "UNKNOWN" column types. I tried importing the domains first then importing the model, opening (or importing) the model and then the domains, and even importing the domains into the default domains set before opening the model. Nothing works; the column types will always be marked as UNKNOWN.
    Is it me or a "known bug"?
    Bert Laverman

    Hi Bert,
    Version 3.0 doesn't know anything about your domains - just copy defaultdomains.xml file from 2.0 installation (it's in datamodeler\domains directory) into 3.0 directory datamodeler\datamodeler\types.
    Philip

  • Windows 7 64-bit Pro not connecting to SQL Server on domain Windows Server 2008 R2 Standard

    I am upgrading computers from Windows XP Professional to Windows 7 Professional but I have a problem getting one of the stock control software programs we use to connect to our SQL Windows Server 2008 R2 Standard from the new Windows 7 computers.
    Our computers are connected to a domain and so is the SQL Server. The Windows XP computers allows each standard domain user to log on and connect to the SQL Server via the stock control software program.
    But on the Windows 7 Pro computers standard domain users can't connect to the SQL Server but the domain administrator accounts on the same Windows 7 Pro computers can connect to the SQL Server via the stock control program.
    I have setup the server alias, server name and port number via the SQL Server Client Network Utility (cliconfg.exe) so I know this isn't the problem as it works when I am logged on as domain administrator.
    It seems to be something to do with domain user permissions and Windows 7 Pro. There seems to be a change from Windows XP Pro to Windows 7 Pro that doesn't allow standard domain users to connect to an SQL Server. But I can't find anything about this and
    can't workout how to fix it except to make all the users domain administrators which is obviously not a good thing to do. So basically I I think I need to create a group policy that allows the users to connect to the SQL Server but I have no experience doing
    this and don't know where to begin.
    Thanks for all you guys help and I hope someone can provide me with the solution to this problem.

    Hi,
    Was there any message?
    Please run the stock control software as Administrator to check if it was caused by UAC.
    If it could run as administrator, please add the standard domain user to local administrator.
    Karen Hu
    TechNet Community Support

  • Preferences in Sql Datamodeler are not saved

    Hello all,
    I seem to do something wrong: I would like to change certain preferences, but they SDM does not save their status.
    As soon as I open the preference menu option again, the preferences are in their previous state.
    Saving the complete design (before anything else) does not make a difference.
    This is what i did:
    Click Tools/Preferences menu
    In my case all the perferences are in the Checked state
    I can UNcheck the preferences under:
    data modeler / model logical / relation cadinality: Source optional and Target optional
    data modeler / model logical / primary key option for identifying relationships Use and set first Unique key as Primary Key
    data modeler / model logical / FK Attribute name synchronisation: Keep as the name of the Originating attribute..
    Then press the "OK" button
    and then save the Design by File/Save
    and subsequently closing SDM.
    When starting SDM again and opening the same model, the preferences are in their previous (checked) state.
    Can someone tell me if this is a real bug or point out what I am doing wrong?
    Thanks in advance for your time and effort
    regards
    Wouter
    win 7
    Java 1.6.0_31
    SDM 3.1.0.700 (32 Bits)

    Hi Dimitar,
    Well,.. I have found the file : product-preferenxce.xml on my disk in
    <snip>..AppData\Roaming\Oracle SQL Developer Data Modeler\system3.1.0.700\o.datamodeler
    I have tried the same recipe as before. Now this is what happens:
    After changing the preferences and as soon as I have pressed OK (without leaving DM) I open the product-preferences file
    The OS-timestamp of the file matches the moment of saving so permissions on OS level seem no problem.
    In the file at line 504 to 510 I find:
    <hash n="OSDDM_ModelLogicalPP">
    <value n="keep_fk_names_syncronized" v="false"/>
    <value n="pk_identifying_relation" v="false"/>
    <value n="source_optional" v="false"/>
    <value n="target_optional" v="false"/>
    </hash>
    To me, that looks like the preferences are Unchecked.
    Now I close DM (no saving). The file's timestamp is still unchanged. and the preferences are still all "false"
    Next I open DM and read the preferences file: timstamp unchanged and preferences unchanged.
    When I open the Tools/Preference menu and look at Datamodeler/model/logical
    The preferences are checked again...
    As soon as I push the "OK" button the preferences file gets updated and the preferences read as follws:
    <hash n="OSDDM_ModelLogicalPP">
    <value n="keep_fk_names_syncronized" v="true"/>
    <value n="pk_identifying_relation" v="true"/>
    <value n="source_optional" v="true"/>
    <value n="target_optional" v="true"/>
    </hash>
    It still baffles me, but it does look like "opening the tools/preferences menu" resets the preferences.
    Can you make any sense of this story?
    regards
    Wouter
    (and again thx for your time and effort)

  • SQL Datamodeler ddl generation looses foreign keys

    My problem is that when I open my relational model, I select generate of DDL selection Oracle 10g as the physical. I can see the list of referential contraints under the Foreign Key tab. I generate once and all is fine, save the model and exit. I then restart the model and go through the same procedure. This time I can still see the entries under foreign keys tab but when I generate there are no foreign key entries. If I select 11g on the generate then they re-appear. Save it and go back in, select 11g and generate and they have gone again. Select 10g and generate and they are back.
    This means I cannot use the physical model attributes (users, synonyms etc) because I keep jumping from 10g to 11g generation models.
    Any ideas?
    Sql Modeler 2.0.0. build 584.

    Hi,
    I've got exactly this behaviour - and the exact same workaround to fix it. i.e. Save, change Physical to 11g and save again.
    Re-open, won't generate some physical parts correctly i.e. fk constraints.
    Swap to 10g and regenerate fine.
    You may have to import some fks manually from a DDL file into the physical model to make this happen? Modelled ones seem to work?
    If there a switch variable in the DM code gone awry?
    Nigel

  • SQL Developer: import from Excel bug

    SQL Developer 1.1.2.25 Build MAIN 25.79
    This is a test for import from Excel.
    Test table:
    create table bla
    (x number null,
    y varchar2(1) null);
    Excel data:
    x y
    1 a
    2 b
    3
    SQL Deveoper generates:
    Error at line 3:insert into BLA (X,Y) VALUES(3,'NULL')
    IMPORT into table BLAcomplete
    Inserted 2rows.
    Failed to insert 1rows.
    SQL Error:ORA-12899: value too large for column "BCRCEK"."BLA"."Y" (actual: 4, maximum: 1)
    I think there is a bug, because there must be generated NULL without apostrophe.
    insert into BLA (X,Y) VALUES(3,NULL);

    Hi Barry,
       That's[b] GREAT NEWS !!!.
       So, i just update current release 1.1.2.25 to 1.1.2.25.79 ?
    Thanks for the great work.
    Zack
      Oops !!! Am already using 1.1.2.25.79, same as bcrcek above. So need to wait for Patch Release ?
    Regards
    Zack
    Message was edited by:
            Zack.L                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • SQL Developer import from Excel or CSV not creating new table

    I am sure I have done this with previous version of SQL Developer. I am now running 1.5.4 with patches update from 5/27/2009. I am running on Windows XP. When I start the import wizard I get to the point were the varify button appears. I click Verify. Everything is successful. The next button is grayed out. The send to worksheet is not checked. I press the finish button and the new table is not created.
    I don't get any error message. I refresh my table list and the new table is not created. I can create new tables using SQL Developer so I don't think it can be a privelege problem. I know I did this a few weeks ago. I am not sure what version of SQL Developer I was running. But I have updated to the latest and greatest since then.

    I wanted to import and use my table data from MS Excel 2010 in SQL developer Version 3.1.05.
    I was told that SQL does not import .xls data. For that reason, I was searching for a script which Import data from excel to SQL developer. I tried many different forums DBS blogs. Then eventually I found the solution inside the SQL developer itself.
    In your Editor window, There would be options like,
    1. Columns | Data | Constraints |Grants | Sta...... "so on"
    2. In second row, you can find a drop box with certain table options. Select the last option "Import Data"
    THERE YOU GO.
    do accordingly to your need and you will get the data as well its scripts.
    I hope this would help you all. Thanks. :-)

  • Notes on Sql Developer - Importing - XLS

    This isn't really a question, but I thought I should get the record of my tribulations posted so someone else won't have to work as hard as I did.
    Please note when using import in sql dev - first, the file MUST be a xls formated BINARY file. I received a file with the extension xls, but it was actually a tab delimited csv, and the only message import gave me was : 'an error has occurred' , and then a stack trace with :
    java.io.IOException: Invalid header signature; read 664572811392150337, expected -2226271756974174256
         at org.apache.poi.poifs.storage.HeaderBlockReader
    A ascii csv would cause this since it doesn't have the binary header. Incidentally, poi is a java (apache) library for reading microsoft file formats.

    You can try changing the column in the excel to general datatype before you attempt to load using sql developer.
    alternate way...
    You can save the excel file as .csv file. Once saved you should be able to use the sql*loader to load the data.
    the sqlldr command for online
    sqlldr userid control=test.ctl log=test.log bad=test.bad data=test.csv discard=test.txt
    the test.ctl should be as follows
    load data
    infile 'test.csv'
    into table constraint_chk
    fields terminated by ','
    (column1 char(10),
    column2 date,
    column3 number) ;
    please let me know, if you need more info...

Maybe you are looking for