Ddl script related

Hi,
I am taking backup of my hospital application .i generated ddl of my tables.i am getting problem in creating ddl.
sql workshop-.utilities->generate ddl.i am trying from last 2 days.
i am unable to find problem.
i am sending userid password of my application.
workspace--hospital
[email protected]
password-kecime
i am getting error
You have requested to run a script containing unknown statement(s). Please remove the following statement(s).
Script Name      backhospital
Created      on 12/01/2010 02:40:58 AM by [email protected]
Updated      -
Number of Statements      76
Script Size in Bytes      69,529
Line Number      Unknown Statement
1088      procedure clob_upper( p_content in clob, p_content_upper in out nocopy clob)
1089      is
1169      end if;
1170      if inserting then
1171      :new.created_on := sysdate;
1172      :new.created_by := nvl(v('APP_USER'),user);
1173      :new.updated_on := sysdate;
1174      :new.updated_by := nvl(v('APP_USER'),user);
1175      elsif updating then
1176      :new.updated_on := sysdate;
1177      :new.updated_by := nvl(v('APP_USER'),user);
1178      end if;
1179      end;
1186      type col_arr is table of varchar2(32767) index by varchar2(255);
1187      la_col_label col_arr;
1188      procedure datagrid_logging(
1189      p_row_id in number,
1190      p_ws_app_id in number,
1191      p_data_grid_id in number,
1192      p_col_name in varchar2,
1193      p_type in varchar2,
1194      p_old_c in varchar2 default null,
1195      p_new_c in varchar2 default null,
1196      p_old_d in date default null,
1197      p_new_d in date default null,
1198      p_old_n in number default null,
1199      p_new_n in number default null)
1200      is
1510      end if;
1511      if inserting then
1512      :new.created_on := sysdate;
1513      :new.created_by := nvl(v('APP_USER'),user);
1514      :new.updated_on := sysdate;
1515      :new.updated_by := nvl(v('APP_USER'),user);
1516      elsif updating then
1517      :new.updated_on := sysdate;
1518      :new.updated_by := nvl(v('APP_USER'),user);
1519      end if;
1520      end;
1531      end if;
1532      if inserting then
1533      :new.created_on := sysdate;
1534      :new.created_by := nvl(v('APP_USER'),user);
1535      :new.updated_on := sysdate;
1536      :new.updated_by := nvl(v('APP_USER'),user);
1537      elsif updating then
1538      :new.updated_on := sysdate;
1539      :new.updated_by := nvl(v('APP_USER'),user);
1540      end if;
1541      end;
1552      end if;
1553      if inserting and :new.image_alias is null then
1554      :new.image_alias := :new.name;
1555      end if;
1556      if inserting then
1557      :new.created_on := sysdate;
1558      :new.created_by := nvl(v('APP_USER'),user);
1559      :new.updated_on := sysdate;
1560      :new.updated_by := nvl(v('APP_USER'),user);
1561      :new.content_last_update := sysdate;
1562      elsif updating then
1563      :new.updated_on := sysdate;
1564      :new.updated_by := nvl(v('APP_USER'),user);
1565      if nvl(length(:new.content),0) <> nvl(length(:old.content),0) then
1566      :new.content_last_update := sysdate;
1567      end if;
1568      end if;
1569      end;
1579      if inserting and :new.id is null then
1581      end if;
1582      if inserting then
1583      :new.created_on := sysdate;
1584      :new.created_by := nvl(v('APP_USER'),user);
1585      :new.updated_on := sysdate;
1586      :new.updated_by := nvl(v('APP_USER'),user);
1587      elsif updating then
1588      :new.updated_on := sysdate;
1589      :new.updated_by := nvl(v('APP_USER'),user);
1590      end if;
1591      end; please help me to rectify my problem.
Thanks in Advance
nisha

Hi Nisha ,
Hey i just now created the DDL for the Hospital schema and it got created with no errors
Have a look at the sql scripts in sql workshop which i craeted and export it thats it .
Edit     [email protected]     script_hospiatl     -     1 seconds ago     29,610     0     Run
Regards,
Nandini Thakukr.

Similar Messages

  • How to generate the DDL script of all the schema objects.

    Hi All,
    I just wanted to make centralized repository for Oracle database and to create a base version, I need to create the DDL scripts of all the database objects so that i can check in the same ddl scripts (sql) files in to my central repository.
    I need do this schedule job which will generate the ddl scripts once in a month(This should be automated process)
    Please help me out about this.
    Oracle version - 9i
    Thanks in advance.
    Thanks,
    Santosh
    Edited by: Santosh_Oracle on Feb 23, 2011 10:26 PM

    It is definitely possible to revise the script.
    Look at it, you already have 80 percent of it for free, and you didn't even need to Google.
    Just ask a FAQ in a forum loaded with FAQs!
    And Toad can save everything to one script per object.
    Sybrand Bakker
    Senior Oracle DBA

  • Changes in the value of the Arc property "Include in DDL Script" is not being saved.

    I have arcs in my design that I want that the automatic DDL code not being generated because the FK are compound and the code generated for the validation of the arc in these more complex cases is not correct, so I created an explicit constraint on the table for this validation.
    But the problem is that the Arc property "Include into DDL Script" is not being saved into the design.
    If I unchecked the option for the arc and generate or preview the DDL  the arc code is not generated.
    But when I save the project, close and reopen the arcs have this option enabled again.
    I've been checking the xml files for the arcs and this property is not being included, then by default generates always.
    Thanks!

    This problem is fixed in Data Modeler version 4.0 EA3 which is now available to download.
    David

  • Problem downloading the ddl script

    Hi all,
    I am trying to upload a DDL script to execute it on my new apex application.
    It doesn't work, I get an error, I realised that I have to copy and past the code of the creation of a table one by one.
    Do you have any idea how to fix that ? to execute the ddl script at once ?
    I cannot execute hundreds of queries one by one
    Thank you, it is urgent

    Moun wrote:
    Hi all,
    I am trying to upload a DDL script to execute it on my new apex application.
    It doesn't work, I get an error, I realised that I have to copy and past the code of the creation of a table one by one.
    Do you have any idea how to fix that ? to execute the ddl script at once ?
    I cannot execute hundreds of queries one by one
    Thank you, it is urgentYour problems are no more or less "urgent" than any others on this forum, and the volunteers here are free to use their time as they see fit. Making claims of "urgency" is the best way to get your question ignored.
    However in this case the problem is quite simple: you have not bothered to consult the documentation. Use the SQL Workshop SQL Scripts page.

  • How to get DDL Script in Oracle 11g

    How can i get DDL Script in Oracle 11g database.
    I am using windows as OS
    Can anyone help me to get solution.
    Thanks in Advance

    parapr wrote:
    How can i get DDL Script in Oracle 11g database.
    I am using windows as OS
    Can anyone help me to get solution.
    Thanks in AdvanceHUH?
    might DBMS_METADATA.GET_DDL() provide what you desire?

  • How to view the DDL script prior to object deployment in OWB 10g R2?

    How to view the DDL script prior to object deployment in OWB 10g R2?
    Here is what I' looking for: in 10gR2, let's say I've built dimension X, but it's not deployed yet. I've selected one of the deployment options, let's say: "Deploy to Catalog only". Now, I'd like to see a DDL script that will be executed at the deployment time. Where can I find this script? What screen? What menu?
    Thanks,
    vr

    Viewing the Scripts
    After you have generated scripts for your target objects, you can open the scripts and
    view the code. Warehouse Builder generates the following types of scripts:
    ■ DDL scripts: Creates or drops database objects.
    ■ SQL*Loader control files: Extracts and transports data from file sources.
    ■ ABAP scripts: Extracts and loads data from SAP systems.
    To view the generated scripts:
    1. From the Generation Results window, select an object in the navigation tree on the
    left of the Generation Results dialog.
    2. Select the Scripts tab on the right of this dialog.
    The Scripts tab contains a list of the generated scripts for the object you selected.
    3. Select a specific script and click the View Code button.
    Regards,
    Marcos

  • Error when Exporting DDL script for whole schema

    When I right click connection, Select "Export" then "DDL Script", the following error occur (Exception Stack Trace)
    java.lang.ClassNotFoundException: oracle.dbtools.raptor.dialogs.actions.UserDDLExport
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at oracle.ideimpl.IdeClassLoader.loadClass(IdeClassLoader.java:140)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at oracle.dbtools.raptor.dialogs.BasicObjectModifier.launch(BasicObjectModifier.java:142)
         at oracle.dbtools.raptor.dialogs.BasicObjectModifier.handleEvent(BasicObjectModifier.java:210)
         at oracle.dbtools.raptor.dialogs.actions.XMLBasedObjectAction$DefaultController.handleEvent(XMLBasedObjectAction.java:265)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:530)
         at oracle.ide.controller.IdeAction$1.run(IdeAction.java:785)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:804)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:499)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    This is actually in our release notes as not implemented yet.
    The following capabilities are currently planned to be added by the production release:
    Tools > Export - Will be a DDL generator.
    I will mention in the release notes when this function is operational. The menu item is just there now as a placeholder.
    -- Sharon

  • Including Schema owner when generating DDL scripts

    Designer 9.0.4.6
    How do i set the option to include the schema owner prefix in the DDL scripts being generate ("generate server model from database") in design editor?

    Generating from the DB Admin tab does not prefix the objects I am generating with the schema name. There isn't a generator preference (that I've found at least) to accomplish this. Has anyone been able to generate database objects prefixed with the schema name?
    Thanks,
    Wayne

  • Reverse engineering to produce .DDL script

    Hi,
    Does anybody know the best way to reverse engineer all the tables in a 9i account in order to replicate the .DDL script which would have been used to create the table definitions in the first place.
    Also, does anybody know of the best way to similarly produce and ER diagram by reverse engineering either the database account, or the .DDL script which I will gain by acheiving the above.
    Thanks in advance
    Mark

    This can help you a lot:
    DBMS_METADATA
    With DBMS_METADATA you can retrieve complete database object definitions (metadata) from the dictionary by specifying:
    The type of object, for example, tables, indexes, or procedures
    Optional selection criteria, such as owner or name
    Parse items (attributes of the returned objects that are to be parsed and returned separately).
    Optional transformations on the output. By default the output is represented in XML, but callers can specify transformations (into SQL DDL, for example), which are implemented by XSLT (Extensible Stylesheet Language Transformation) stylesheets stored in the database or externally.
    DBMS_METADATA provides the following retrieval interfaces:
    For programmatic use: OPEN, SET_FILTER, SET_COUNT, GET_QUERY, SET_PARSE_ITEM, ADD_TRANSFORM, SET_TRANSFORM_PARAM, FETCH_xxx and CLOSE retrieve multiple objects.
    For use in SQL queries and for browsing: GET_XML and GET_DDL return metadata for a single named object. The GET_DEPENDENT_XML, GET_DEPENDENT_DDL, GET_GRANTED_XML, and GET_GRANTED_DDL interfaces return metadata for one or more dependent or granted objects.
    This chapter discusses the following topics:
    Summary of DBMS_METADATA Subprograms
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_metada.htm#ARPLS026
    Joel Pèrez
    http://otn.oracle.com/experts

  • Import from DDL script - Why do I get domains for every column type?

    I've only been using Data Modeler for a day and my first task was to import a database definition from a DDL script.
    I noticed that every column definition resulted in the creation of a domain for the column type, with names like "VARCHAR_0_0_30" for a varchar2(30) type.
    Is there some way of avoiding the creation of domains in this way? I'd prefer to use domains only when they serve a more useful purpose such as validation by check constraints.

    Go to Preferences - > Data Modeler - > DDL and uncheck "Create Domains During Import" option.
    Ivan

  • DDL script in Oracle Scheduler

    Hello,
    Right now I have a DDL script and I would like to submit this script to the Oracle Scheduler under the Oracle Enterprise Manager (i'm using 10gR2). I tried using Program but it keeps saying some path error problem. I tried using PL/SQL but I don't know the code to execute the DDL script (so many lines that i can't copy and paste to the scheduler, but i have it in a seperate file). Can anyone help on this one?
    Thanks,
    GH

    Hi,
    two different way:
    a) write a small shell-script around the sql script an execute the shell-script from the scheduler.
    b) writh a pl/sql procedure which executes the ddl-statements using "execute immediate"
    Torsten

  • I'm picking up all of the data script related to the sending / receipt of an e-mail along with the e-mail itself and can't find a way of not showing the text. Obviusly only a command but can't find it!

    I'm picking up all of the data script related to the sending / receipt of an e-mail along with the e-mail itself and can't find a way of not showing the text. Obviusly only a command but can't find it! Help!

    Shift-Command-H is the key-combo to switch 'Long Header'/'Standard Header' .
    Long way: Top Menu -> View -> E-Mail
    Stefan

  • Where can I get SQL DDL script repository?

    Hello;
    Do you know where I can get the huge SQL DDL script repository?
    Thanks;
    Ornsiri

    Hi,
    Welcome , you can use dbms_metadata.get_ddl to get the Script.
    Example
    select dbms_metadata.get_ddl('TABLE','DEPT','SCOTT') from dual;
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1794096300346327738
    thanks

  • Ddl script

    Hi all,
    my publications has a dll script ( "CREATE TABLE ...." for creation of an off-line table); the first time client (WIN32 - WINXP-SP2) synchronizes the table is created, but every subsequent synchronization the client re-executes the script and generates warning.
    Is this a correct behavior of oracle Lite?
    Thanks

    I get this whenever I update the schema. Meaning I altered (add/drop/modify) a publication item. My DDL scripts execute again, but since there are no DROP statements issued, then there usually isn't an issue.

  • Howto create SQL DDL script using kodo 3?

    How do I create a SQL script (DDL script) for my database using kodo 3?
    I've looked everywhere and can't figure it out :-(
    The deprecated/replaced schematool had an outputfile option that did the
    trick.
    However, there seems to be no such option for the new mappingtool?
    Thanks
    Jesper

    Jesper Ladegaard wrote:
    How do I create a SQL script (DDL script) for my database using kodo 3?
    I've looked everywhere and can't figure it out :-(
    The deprecated/replaced schematool had an outputfile option that did the
    trick.
    However, there seems to be no such option for the new mappingtool?
    Thanks
    JesperI think it works:
    java kodo.jdbc.schema.SchemaTool -file ddl.sql -a createDB
    or
    java kodo.jdbc.schema.SchemaTool -file ddl.sql -a dropDB
    Regards,
    Vladimiras

Maybe you are looking for

  • Messenger Express: How do I add the Directory Server to the address book search tool?

    In Messenger Express (ME) how do I add the Directory Server (DS) to the address book search tool? <P> Edit the globals.pl file. Look for a line similar to: <BR> @dirservers = ('MyCompany::phonebook.foo.com::o=FooCorp.,c=US','Four11 Directory::ldap.fo

  • 5.1 Surround Requirement

    I might get a gig making a 30 sec spot to be shown in theaters for a local business. I've got experience working with the video format they are asking for but haven't done any audio to meet the 5.1 surround sound requirement. If I get some audio from

  • No Analog audio input?

    Been reading a lot about lack of an analog input option - lots of external devices not working. Is this in fact true? Does anyone know how to get line level recording into the iphone from a mic or guitar then? Thx

  • Auto-redirct page?

    Could anyone tell me how to automatically redirect a page? I have a JSP(or servlet) which calls an ejb and inserts a data into database..then I need to redirect the page to another page...how to do it? thanks for your help~~

  • Advice for Tiger, ipad, CS3

    If this is asked already just post me a link, thanks. I want to make sure I know my options. We got the 16GB 3G ipad without reading that you have to have Mac OS 10.5.8. I currently have 10.4.11 and have never upgraded my system because of software c