Validate Rules on Generating DDL

Hello,
What to do to create custom rules to be validated at the moment of generating DDLs ?
Regards
Nelson Antonio Alberti da Rosa

Hi Nelson,
Maybe I misunderstand, but I think you're missing something. Purpose of the design rules is to check your model (logical, relational, and process models) before generating DDL script. So there are only two places that you can apply some (all) rule:
1. From the menu tools->Design Rules->Design Rules
2. From DDL Generation Options screen, there is 'Design Rules' button at the bottom
DDL generation will not stop if some of the design rule is not met. If there is design rule error it will not go in DDL script.
So, everything you did is fine. If the rule works from above two places - it's Okay.
Please elaborate if I misunderstood.

Similar Messages

  • Generating DDL from Server Model

    I would like to generate DDL that matches ERDs from the server model in Designer. However, when selecting an application folder, and expanding Relational Tables, I see a lot of tables I don't recognize - they aren't entities in the ERD. I don't know where they came from, and some of the ERD entities aren't showing up in the server model. I just want to generate DDL that creates only the tables shown in the ERD. Any way to do this?

    About your question for more complex constraints. That is not possible in Designer.
    If you are using Headstart, you can achieve this by using CDM RuleFrame. This is a way to record all types of (complex) constraints (business rules).
    see http://www.oracle.com/technology/products/headstart/index.html for more information.

  • Error while generating DDL commands using startSQLRepository for a new Repository

    Hi,
    I am trying to generate DDL Commands using startSQLRepository for my new repository SubashRepository so that I can use them to create new table structure.
    All the repository related changes looks good. i can see my repository in ACC
    When I run the command:
    startSQLRepository -m SupremeATG –repository /com/supreme/SubashRepository /com/supreme/subashRepository.xml -outputSQLFile C:/ATG/ATG9.3/SupremeATG/config/com/supreme/subashRepositoryDDL.txt
    I get following error:
    Table 'SUBASH_MEMBER' in item-descriptor: 'member' does not exist in a table space accessible by the data source.  DatabaseMetaData.getColumns returns no columns
    Note:
    * errors related to definition file were cleared as the same command threw relevant exception while trying to store a array property with out creating a multi table.
    * Now this is the only exception i see
    * Some DDL are getting generated in the output file, but those are related to inventory repository (I am not sure why this is happening as I have specifically gave the path to my definition file).
    Any help in resolving this is highly appreciated.

    Pl post in the ATG forum

  • Generate DDL formatting data incorrectly

    Greetings all,
    So I appear to have found the issue with my Generated DDL File. It is formatting the lines incorrectly and I have to manually go in and clean it up.
    For example:
    ALTER TRIGGER  "BI_MIMPBM_CA_GROUP_LKP" ENABLE;CREATE OR REPLACE TRIGGER  "BI_MIMPBM_CAT_LKP"
      before insert on "MIMPBM_CAT_LKP"              
      for each row 
    begin  
      if :NEW."CATID" is null then
        select "CAT_LKP_SEQ".nextval into :NEW."CATID" from dual;
      end if;
    end;Notice how the ENABLE;CREATE are on the same line. That throws an error. I am not sure why as I thought the ; ended a piece of code, but when I do a carriage return on it and then put it in, it works. I am using Application Express 4.0.2.00.07 and not sure if it is the application or something I am doing in the formatting of my code when I create anything.
    Is anyone else having this issue when generating DDL files? If so, is there a work around besides going through the whole script and adding carriage returns as necessary?
    Thanks
    Wally

    Is Page 5 of Data Modeling (How to generate DDL(sql) scripts to create a database) of any help?

  • Not able to generate DDL on new install of OEM Grid Control 10.2.0.5

    I upgraded grid control to 10.2.0.5 and can not get it to generate DDL.
    I click generate ddl and get the basic message 'Generate DDL has been submitted successfully. It could take a while to complete if the baseline version contains a large number of objects.'
    And it says that it is being generated in the DDL column but if you either let it sit there or click the refresh button, it will say Not Generated.
    Has anyone come across this and found a solution?
    This is on windows.

    Try this on your versionof 10.2.0.5:
    On the Dictionary Baseline Objects page,
    1. Select all the objects in Non-Schema Object Types
    2. Select objects types and the schemas to include     
    3. Select all the objects in Object Types
    4. Add your schemas
    This will succesfullly run.
    Now click on the Generated DDL and it will initially say 'Being Generated' in the DDL column.
    Either let it sit there or click the Refresh button and the status in the DDL column is now 'Not Generated'.

  • SQL*Developer 2.1 - Not Generating DDL for Different Users

    Using SQL*Developer Version 2.1.0.63 I get an error trying to generate DDL from another user, that has access to many other schemas. It looks to me like Sql Developer is calling the DBMS_METADATA package from within other PL/SQL.
    I am receiving the following error:
    ORA-31603: object "ACCOUNT_TYPE_LKP" of type TABLE not found in schema "POR_OWN"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA", line 3241
    ORA-06512: at "SYS.DBMS_METADATA", line 4812
    ORA-06512: at line 1
    I would receive these same errors in SQL Developer 1.5, but the DDL would still generated. It was picking something up, even though it had an error.
    Our DBA has not been able to provided a work around. He says you have to login directly as the owner of the objects to use dbms_metdata in this fashion.
    Is there any work around for this? I really need to be able to get DDL and I do not want to go back to 1.5 (I like the other new features of 2.1).
    Thanks,
    Tom

    We have several users currently using SQL Navigator and/or TOAD. We would like them to switch to SQL developer, but part of their job is to view the source of views in another schema. They have select privileges on the underlying tables and are able to see the source using other tools. Using SQL Developer, they receive on ORA-31603 because it's calling dbms_meta. Note ID 1185443.1 describes the issue and suggests granting the users the SELECT_CATALOG_ROLE.
    We are hesitant about granting this role to these users which allows access to ever 1,700 objects, plus execute privileges to 4 objects.
    Support indicated that Enhancement Request 8498115 addresses this issue.
    Is this something that may be addressed in the next release?
    Thanks,
    Paul

  • Generating DDL to accept user input parameters

    I need generate DDL which will accept input parameters from user, for example, tablespace name for indexes. What is the best way to do it?
    At present, I’ve created tablespace with name ‘&INDEX_TS’ in physical model and using it to create indexes. Is this a correct way to do it?
    Also, &INDEX_TS appears within double quotes in generated DDL. Is there a way to get rid of double quotes?
    I'm using v3.1

    Hi,
    I have just found out that there is a "substitution variable" facility within SQL*Plus and SQL Developer which allows runtime substitution when applying DDL.
    Here are some extracts from the SQL Developer Help:
    Script Runner
    The SQL*Plus features available in the script runner include @, @@, CONNECT, EXIT, QUIT, UNDEFINE, WHENEVER, and substitution variables. For example, to run a script named c:\myscripts\mytest.sql, type @c:\myscripts\mytest in the Enter SQL Statement box, and click the drop-down next to the Execute Statement icon and select Run Script.
    The following considerations apply to using the SQL Developer script runner:
    For substitution variables, the syntax &&variable assigns a permanent variable value, and the syntax &variable assigns a temporary (not stored) variable value.
    So if the name starts with &&, it will only prompt for the actual name the first time it appears.
    Note that this still works if the name is presented as a quoted identifier, e.g.
    TABLESPACE "&&INDEX_TS"
    David

  • In ODI 11g what is the use of Generate DDL.

    Hi,
    We are using ODI 11g. I have created source Model, model contain 18 Tables.
    By using Generate DDL (Right Click on the model and you can see the Generate DDL option)
    I want to get the tables structure. Can you please guide me?
    Thanks in advance

    It generates a report which is what is required for SR or Bug logging.
    OA Framework Diagnostics how to 'Generate Bug Report' (Doc ID 1077173.1)
    Thanks,
    Hussein

  • Generate DDL works in old version of SQL Developer, but not in new versions

    Hello all,
    How to generate DDL in new versions of Oracle SQL Developer for production Oracle database?
    For production database, the generate DDL feature works fine in old versions (version 1.5.5) of Oracle SQL Developer, SQuirrel, Toad and many other similar tools, but not the new versions of Oracle SQL Developer (such as 2.1.1.64.45).
    The SQL tab for a table is blank for me in production databases. Of course, it works fine in development Oracle database.
    I did some research that many articles describe SELECT_CATALOG_ROLE as the required read-only role in production database. Our DBA did a test to grant me this role temporarily, and it worked for me to generate DDL using new Oracle SQL Developer. It is pain for me to ask for this role.
    Is there a plug-in or work-around, so the new versions of Oracle SQL Developer can have this generate DDL feature in production without the mentioned SELECT_CATALOG_ROLE?
    I could not find the answer in older forum threads.
    For now, I will have to install older versions of Oracle SQL Developer.
    Thanks

    I've seen a couple posts about people not being able to generate DDL for other users. To date, I've never seen a anybody post a workaround, nor have I seen one of the developers post a response, nor have I seen anybody say they've submitted a SR.
    I think I remember reading somewhere that the new version of SQL Developer uses dbms_metadata.get_ddl to generate DDLS, rather than some custom query built on top of catalog views...which could explain why it use to work, but no longer does. But whether or not this is true, I don't know.
    You could try submitting a SR and see if Oracle responds saying that it's a known bug and will be fixed in the next release. Until then, unless you get the role, you're stuck using something else for DDL generation.

  • DM 3.0.0.665 instead of triggers not generating DDL correctly

    There seems to be a bug in the DDL generation for manually created INSTEAD OF triggers on views. The INSTEAD OF trigger does not have the INSTEAD OF clause upon DDL generation. Instead, it has the BEFORE clause. It seems to be treating INSTEAD OF triggers as normal triggers. Note: When I reversed engineered a database that already had an INSTEAD OF trigger, it imported and generated DDL was fine. This bug shows itself when manually creating INSTEAD OF triggers.
    Steps to replicate:
    1. In any design that has a view.
    2. In the physical model, find the view, expand it, right click to create Trigger for view
    3. By definition, a trigger on a view can only be an instead of trigger.
    4. The dialog box will have the 'Triggering time' showing as INSTEAD OF. You can't change it. (Which there is no reason to do anyway)
    5. Generate DDL. When generating the DDL, the trigger will not be generated as INSTEAD OF, it will be generated as a BEFORE (INSERT/UPDATE/DELETE).
    Included DDL generation from a simple database (I did not modify the DDL generated):
    -- Generated by Oracle SQL Developer Data Modeler 3.0.0.665
    -- at: 2011-03-30 13:16:32 EDT
    -- site: Oracle Database 10g
    -- type: Oracle Database 10g
    -- CREATE DATABASE DB2
    -- CONTROLFILE REUSE
    -- MAXLOGFILES 1
    -- MAXLOGMEMBERS 1
    -- MAXLOGHISTORY 0
    -- MAXDATAFILES 10
    -- MAXINSTANCES 1
    -- ARCHIVELOG
    -- FORCE LOGGING
    -- DATAFILE
    -- '' SIZE 0 K REUSE
    CREATE TABLE TABLE_1
    Column_1 VARCHAR2 (1)
    ) LOGGING
    CREATE OR REPLACE VIEW VIEW_1 ( Column_1 )
    AS SELECT
    TABLE_1.Column_1
    FROM
    TABLE_1 TABLE_1 ;
    CREATE OR REPLACE TRIGGER Trg1
    BEFORE INSERT ON VIEW_1
    FOR EACH ROW
    BEGIN
         NULL;
    END;
    -- Oracle SQL Developer Data Modeler Summary Report:
    -- CREATE TABLE 1
    -- CREATE INDEX 0
    -- ALTER TABLE 0
    -- CREATE VIEW 1
    -- CREATE PACKAGE 0
    -- CREATE PACKAGE BODY 0
    -- CREATE PROCEDURE 0
    -- CREATE FUNCTION 0
    -- CREATE TRIGGER 1
    -- CREATE STRUCTURED TYPE 0
    -- CREATE COLLECTION TYPE 0
    -- CREATE CLUSTER 0
    -- CREATE CONTEXT 0
    -- CREATE DATABASE 1
    -- CREATE DIMENSION 0
    -- CREATE DIRECTORY 0
    -- CREATE DISK GROUP 0
    -- CREATE ROLE 0
    -- CREATE ROLLBACK SEGMENT 0
    -- CREATE SEQUENCE 0
    -- CREATE MATERIALIZED VIEW 0
    -- CREATE SYNONYM 0
    -- CREATE TABLESPACE 0
    -- CREATE USER 0
    -- DROP TABLESPACE 0
    -- DROP DATABASE 0
    -- ERRORS 0
    -- WARNINGS 0

    Hi,
    Thanks for reporting this problem. I logged a bug on it.
    David

  • Generate DDL - change is a new column and I want to generate a alter table

    Morning all,
    I have searched and looked all over the data modeler and I cannot find this option ... yet I did find it easily in Designer.
    I hope you can help me.
    SQL Developer Data Modeler v3.0.0.665.
    I have added a new column to a table and when I generate the DDL I would like it to be an alter table add column rather than a create table.
    This feature is in Designer so I would think it would be in data modeler.
    Just incase my description is not clear here are the high level steps so it is clear.
    1. create the logical model
    2. create the relational from the logical.
    3. create the physical from the relational.
    4. generate DDL and run in database. At this point I go to production with my system and all is well.
    5. At this point we have an enhancement request. For the model it will be a new column in a table.
    6. update logical model.
    7. update relational from logical
    8. update physical from relational
    9. generate DDL. Here I would like to have the generate be aware the it needs only to generate an alter table add column and not create the table.
    This is something I do alot as all my models are in production. I cannot find how to do this step of getting data modeler to generate the alter.
    Designer does this exceptionally well.
    Quite often it is more than a single column. The changes can be many and made over time and at the time of generating the DDL you may not recall every single change you made. To have the tool discover those changes for you and generate the appropriate DDL is a feature I regard as very high.
    I hope this is clear and you can help me.
    Cheers
    Chris ....

    Hi Chris,
    you need to compare your model against database - import from database into same relational model and use "swap target" option - in this case "alter statements" against database will be generated.
    You can look at demonstrations here http://www.oracle.com/technetwork/developer-tools/datamodeler/demonstrations-224554.html
    Probably this particular one will be most helpful http://download.oracle.com/otn_hosted_doc/sqldev/importddl/importddl.html
    Soon or later your changes will require table to be recreated and you'll need to backup your data - you can consider usage of "Advanced DDL" option - script will be generated that will unload the content of your table (including LOBs) to file system accessible from database and restore it after changes. Well don't try it directly on production system :).
    Philip

  • Sorting rule for generating voucher number ina payment batch.

    Hi All,
    How does system generate the voucher number in a payment batch?
    In my system, some voucher number in a payment batch seem sorted by supplier name, some are not.
    I want to know is there any sorting rule for generating voucher number in a payment batch?
    Thanks in advance,
    Best Regards.
    Edited by: user631092 on Jul 16, 2009 3:07 PM

    Hi John,
    Thanks for your information. Maybe I did not explain clearly.My problem is...
    If my setup for payment doucument sequence is starting with 200900000001.
    The user create a payment batch for 10 payments, 200900000001~200900000010.
    I am wondering how does the system decide which payment is 200900000001, which one is 200900000002?
    My users used to file the physical document sorting by supplier name for one batch.
    Most of time, the payment document numbers are also sorted.For expamples,
    200900000001 Supplier A
    200900000002 Supplier B
    200900000003 Supplier C
    Sometimes the sequence become like this,
    200900000001 Supplier B
    200900000002 Supplier A
    200900000003 Supplier C
    Thank you.
    Best Regards,
    Edited by: user631092 on Jul 16, 2009 3:23 PM

  • How does the generate ddl of the ODI works ?

    how does the generate ddl of the ODI works and is it used to generate ddl of any technology ?
    what is the use of interface in and interface out ?

    The best way to solve this is to look at the module functions that clears the buffers and use it.
    Closed.

  • How to include .js file into validater-rules.xml

    iam doing project using struts.
    i have .js file for client side validation.how to include .js file into struts validate-rules.xml so that i can use those validation in my project.
    without writing any class.
    is there any way

    copy + paste from my book...............
    Enabling Client-Side Validations
    In addition to providing a framework for simplifying server-side form data validations, Validator provides an easy-to-use mechanism for performing client-side validations. Each validation routine defined in the validator-rules.xml file optionally specifies JavaScript code that can be run in the browser (client side) to perform the same validations that take place on the server side. When run on the client side, the validations will not allow the form to be submitted until they have all passed.
    To enable client-side validation, you have to place the HTML Tag Library's javascript tag in each JSP for which you want validation performed, as shown here:
    <html:javascript formName="logonForm"/>
    The javascript tag requires that you use the formName attribute to specify the name of a <form> definition from the validation.xml file, as shown here, for which you want validations performed:
    <form name="logonForm">
    <field property="username" depends="required">
    <arg0 key="prompt.username"/>
    </field>
    <field property="password" depends="required">
    <arg0 key="prompt.password"/>
    </field>
    </form>
    All the validations that you have specified for the <form> definition to run on the server side will be run on the client side.

  • Problems Generating DDL

    Has anyone else encountered problems when generating DDL Files for export?
    I am using a hosted version of Application Express: Application Express 4.0.2.00.07 at this time and when I go to Generate a DDL file for export, it creates the file, but I am finding that it does not format the file correctly.
    Is anyone else experiencing this?
    Below is an example of what happens: (It seems that it does not do a carriage return between the ; at the end of a create statement and the CREATE that begins the next statement) <b> ;CREATE TABLE </b>
    CREATE TABLE  "ANALYST"
       (    "ANALYSTID" NUMBER,
        "LASTNAME" VARCHAR2(30),
        "FIRSTNAME" VARCHAR2(30),
        "EMAIL" VARCHAR2(100),
        "WORKPHONE" VARCHAR2(25),
        "CELLPHONE" VARCHAR2(25),
        "ONCALLSTATUS" VARCHAR2(25),
        "ALTEMAIL" VARCHAR2(100),
        "ALTMESSAGING" VARCHAR2(100),
        "MESSAGING_TYPE" VARCHAR2(15),
        "TEXT_CONTACT" VARCHAR2(50),
         CONSTRAINT "ANALYST_PK" PRIMARY KEY ("ANALYSTID") ENABLE
       ) ;CREATE TABLE  "APPLICATION_LOV"
       (    "APP_DISPLAY_VAL" VARCHAR2(255),
        "APP_RETURN_VAL" VARCHAR2(255),
        "PARENT_LOV" VARCHAR2(30),
        "APP_LOV_GROUP" VARCHAR2(30),
        "MSGID" NUMBER
       ) ;CREATE TABLE  "RCCA_MAIN" It also seems to break on altering tables as well.
    ;ALTER TABLE  "CORRECTIVE_ACTION" ADD CONSTRAINT "CORRECTIVE_ACTION_CON" FOREIGN KEY ("RCCAID")
          REFERENCES  "RCCA_MAIN" ("RCCAID") ON DELETE CASCADE ENABLE;ALTER TABLE  "INC_NOTES" ADD CONSTRAINT "INC_NOTES_CON" FOREIGN KEY ("INCIDENT_ID")
          REFERENCES  "INCIDENT_DETAILS" ("INCIDENTID") ON DELETE CASCADE ENABLE;ALTER TABLE  "PBM_LOB_SUBCATEGORY" ADD CONSTRAINT "PBM_LOB_SUBCATEGORY_CON" FOREIGN KEY ("LOB_NAME")
          REFERENCES  "PBM_LOB" ("LOB_NAME") ON DELETE CASCADE ENABLE;CREATE UNIQUE INDEX  "ANALYST_PK" ON  "ANALYST" ("ANALYSTID") So I am just seeing if this is a bug in this version of the application or if there is something I might be doing wrong when I generate the DDL for output to a script file.
    To fix it, I open the file and add the add a carriage return between each CREATE statement and ALTER TABLE statement. This can be quite cumbersome if you have a large amount of tables involved in the application. It does work, but I just don't believe that to be the required action to port an application for export.
    Thanks for any feedback
    Wally

    Wally
    You don't need to access to your instance with SQL Developer. You can copy/paste the generated DDL code into the SQL Developer (downloand and install http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html), and use it for formatting the code.
    Btw, yes generated DDL code has no carriage returns between create table codes (I tested)
    Regards
    Gokhan

Maybe you are looking for

  • HT2731 two iphones in the same account, how do i change it?

    My dad just got his iphone 5 and i was helping him make an itunes account but it ended up as his phone syncing into my iphone account. i don't know how to change it into separate account.

  • Using Linq Query in our program error is thrown :Exception has been thrown by the target of an invocation.

    Hi All,   I am writing the below linq query to fetch the record from the database , var individualres = (from c in orgContext.CreateQuery("contact")                                              join a in orgContext.CreateQuery("annotation")          

  • HTTP Servlet call

    Hi all, I have a BPM scenario where i have several conditional branches, and in one of the branch i have to make a HTTP Servlet call via HTTP adapter and pass some values from the incoming message in the HTTP post. Is this just like a normal HTTP ada

  • Regarding Delivery address In PO(Urgent)

    Hi All, Here, I have a purchase order,In this i want to make changes in  delivery address.How can i do this?please let me know as soon as possible Thanks & Regards Suresh

  • Garageband will not update.

    Yes i have read the previous discussions about this and my Garageband app is in it's folder. It pops a message up saying "GarageBand 6.0 or later is required to install this update." I would appreciate it if you could help me.