Generate DDL Performance

Version: 1.1.2.25 Main Build: 25.79
When selecting Generate DDL for a particular table the response is very slow and if one cancels the request SQL Developer freezes. Any thoughts/suggestions?
Thank you.

generate ddl is only for the data definitons language
if you want to have complete data too
use the exp export utility built-in with the database....\\\\\\
Try It.
Edited by: vansul on 22 May, 2010 1:02 PM

Similar Messages

  • 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

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

  • 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

  • Invalid grants in omwb generated ddl

    The sybase database I am migrating from appears to have granted 'update statistics', 'delete statistics', and 'truncate table' privileges on specific tables. The omwb generated grant statements for these privileges in the ddl which is invalid. I likely will be generating scripts for this database as well as others quite a bit over the next few months I was wondering if there is a way to configure either before/after capturing the source to prevent it from making its way into the generated ddl.
    thanks

    Hello,
    After your capture /convert, you can generate the migration scripts to a file instead of creating the database directly from the OMWB.
    Action > Generate Migration Scripts
    You can then modify the script to your needs . Then run it in SQL*Plus to create your database.
    I hope this helps
    Dermot

  • Project not connected error message,  when trying to Generate DDL on NWDS

    Hello,
    I created EJB project with Java Persistence Facets.
    2 Entities created in the EJB to Generate as Data base table on the Java dictionary project.
    The connection works OK (I can ping to the JD project).
    But when I tried to Generate DDL and build the table structure on the JD project I received the error message: EJB project not connected.
    Has someone came across this issue?
    Thanks for the help.
    Nir

    Thanks for the reply.
    SAP NetWeaver Developer Studio version:
    SAP NetWeaver 7.2 SP03 PAT0017
    Thanks
    Nir

  • Apostrophes (single quote) are lost when generating DDL code.

    Hi,
    ODI Version : 11.1.1.5.0
    Java version : 1.6.0_24
    Database version : Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Context: Generating DDL code for a an ODI Model
    PROBLEMATIC: When generating DDL code, all apostrophes (single quote: ') are removed from Datastore Descriptions and Datastore Colunms Descriptions in the process of generating Comments on Tables and Comments on Tables Columns. I tried to double, even triple apostrophes (in descriptions), without success. I also tried double quotes (") without success either.
    Ex: Datastore Column Description: *+ID de l'utilisateur+* becomes *+comment on table ... is 'ID de l utilisateur'+* in generated procedure.
    Do you know a way to keep the apostrophes when creating Comments on Columns and Oracle Tables by generating DDL code ?
    Regards,
    Gaston
    Edited by: uleblga on 23-May-2012 3:42 PM
    Edited by: uleblga on 23-May-2012 3:42 PM

    Nobody has a clue as how to handle this problem ?
    Regards,
    Gaston

Maybe you are looking for