Re: Can't do Export - DDL Script

Greetings!
I am currently using Build 1.1.0.23 Build Main-23.64 against a 9i database.
I too am unable to get the Export->DDL to work. It creates the "export.sql" file, but the contents are empty. I am getting the following error message:
DBMS_METADATA is unable to use TABLE_EXPORT to generate sql.
It tells me to test by entering the following sql statement:
select dbms_metedata.get_ddl('TABLE', 'DUAL', 'SYS') from dual;
This fails:
ORA-31603: object "DUAL" of type TABLE not found in schema "SYS"
I'm no expert, but this looks like a fairly severe bug. I've followed the thread, but I haven't seen anything mentioned about a patch/fix.
Anyone know if there is something out there on the horizon?
Thanks, John

What version of Oracle 9i are you running?
I am guessing here, but I think the Oracle 9i databases available for download have to be patched. However, I think these patches are only available via MetaLink which requires licenses and a current paid contract.
I think people running what is available for Oracle 9i download have the issues while the patched version of the 9i database works. Is my thinking correct here?
What is the minimum patch point release to get Oracle SQL Developer to run out-of-the-box?

Similar Messages

  • 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

  • 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

  • Where can I find Export/Import scripts?

    Hello,
    I have read in Oracle9iAS Portal Export/Import document about these scripts:
    secexp.csh
    contexp.csh
    pageexp.csh,
    but I can't find them.....can you help me?
    In which directory are they?
    Thanks in advance.

    The upgrade scripts are available at:
    http://technet.oracle.com/support/products/iportal/support_index.htm
    They say they are for Solaris, but they include the code for NT also. We have used these scripts to upgrade EA to prod on NT with no problems.
    Ken Atkins
    Computer Resource Team (www.crtinc.com)

  • Export DDL for current schema (feature request "Creation of Object script")

    Hello Raptor-Team,
    to generate a DDL script for my current schema, I tried your suggestion on SQL Developer Exchange to click on "other users" and then select my user. Wait a minute... where is my current user in this menu? Am I missing something? ;-)
    As this technique seems to make sense only with DBA users exporting other schemas, I'll log a new request for the often-desired one-button-current-schema-DDL-generator...
    Best regards,
    --==/ Uwe \==--

    Nope - you're not missing something. I've logged it. Sorry. I know suggesting connecting as SYSTEM and then selecting other users is not what you are after, but if you have access to SYSTEM, that's be a solution. Alternatively, you just have to expand each node type and select the top level category.
    Sue

  • SQL Developer 3.2 - Export DDL challenge

    Hi,
    I would like to Export DDL for approximately 300 of 1000 objects in a schema.  I have the names of all required tables for which I'd like to get the DDL in a table in my personal schema.  Is there a way that I can use this table as a driver for the built-in Export DDL utility or will I need to either go to the schema browser and hand-pick each of the 300 tables and/or from the Tools-Export DDL "Specify Objects" window?
    I would like to make this more automated so that I dont have to keep clicking, scrolling, clicking my way through the list of required objects.  Any thoughts are appreciated, thanks.

    1008686 wrote:
    Hi,
    I would like to Export DDL for approximately 300 of 1000 objects in a schema.  I have the names of all required tables for which I'd like to get the DDL in a table in my personal schema.  Is there a way that I can use this table as a driver for the built-in Export DDL utility or will I need to either go to the schema browser and hand-pick each of the 300 tables and/or from the Tools-Export DDL "Specify Objects" window?
    I would like to make this more automated so that I dont have to keep clicking, scrolling, clicking my way through the list of required objects.  Any thoughts are appreciated, thanks.
    There is no way to use sql developer to do that.
    You can:
    1. do it manually as you suggest
    2. do it manually by writing a script that makes the appropriate DBMS_METADATA calls
    3. use expdp to extract the metadata and create a DDL file.
    The full DDL for a table will include a lot of components that many people don't even want, for example storage clauses.
    The bigger issue you should address is why you don't already have the DDL to begin with. Best practices are to create the DDL and keep it in a version control system; not extract it after the fact.
    I suggest you use the EXPDP utility to extract the DDL into a file so that you have it for future use.
    If you plan to write a script there are plenty of examples on the web that show how to do that. Here is one:
    http://www.colestock.com/blogs/2008/02/extracting-ddl-from-oracle-2-approaches.html

  • BUG: Export DDL and Data fails for mixed case table/column names

    Hi there,
    I have found a bug in SQL Developer. See details below.
    Description:
    When "Export DDL and Data) function is used on a table/columns not named in UPPERCASE, sql generated by SQL Developer is invalid.
    Steps to reproduce:
    - open SQL Developer, connect to DB
    - make a table named "lowerCase" (in double quotes, so it won't be automatically changed to capital letters)
    - you may also add some columns, for example "lowerCol1", "UpCol2", ALLUPCOL3
    - add some data rows to the table
    - choose Tools -> Export DDL and Data
    - check exporting of tables and data, on "filter" tabs choose your "lowerCase" table
    - press "Apply"
    Error:
    Generated SQL contains invalid INSERTs: mixed-case table and columns are referenced without obligatory double quotes, which yields an error when generated script is executed (see below, relevant line is underlined)
    -- DDL for Table lowerCase
    CREATE TABLE "DBO_HT"."lowerCase"
    (     "lowerCol1" VARCHAR2(100),
         "UpCol2" VARCHAR2(100),
         "ALLUPCOL3" VARCHAR2(100)
    -- DATA FOR TABLE lowerCase
    -- FILTER = none used
    -- INSERTING into lowerCase
    Insert into lowerCase (lowerCol1,UpCol2,ALLUPCOL3) values ('lc','uc','auc');
    -- END DATA FOR TABLE lowerCase
    Remarks
    SQL Developer: version 1.2.1, build MAIN-32.13
    Oracle DBs: 9.2 & Express
    OS: Windows 2000 Professional
    If you need any more details/testing, let me know. I'd really appreciate a quick patch for this issue...
    Alternatively, do you know of any other simple way of copying a single database (it's called a schema in Oracle, right?) from one computer to another? Possibly something so simple like detaching->copying->reattaching mdf (data) files in SQL Server... I thought that this "Export DDL&Data" function will do, but as you can see I couldn't use it.
    I just need a simple solution that works - one operation on source to stuff, get the resulting files to other computer and one operation to have it running there... I think that such scenario is very basic, yet I just can't achieve it and I am simply not allowed to spend more time on it (read: our test project fails, my company rejects my "lobbying" and stays with MSSQL :/ )
    Thanks a lot & bye

    Thanks for your reply.
    ad. 1)
    You're right. I just wanted to give some very short feedback on my experiences with SQL Developer, so I didn't think starting new threads would be necessary, but as I was writing it became much bigger than I initially planned - sorry about that. I will make proper threads as soon as possible. Having "Edit post" button on this forum would also be useful.
    ad. 2)
    Generally, you're right - in most cases it's true that "switching DBMS is a major commitment" and "you will produce terrible code" if you don't learn the new one.
    However, I think that you miss one part of market here - the market that I think Express is also targeted on. I'd call it a "fire&forget databases" market; MySQL comes to mind as possibly most common solution here. It's the rather small systems, possibly web-accessed, whose data-throughput requirements are rather modest; the point is to store data at all, and not necesarily in fastest way, because given the amount of data that is used, even on low-end hardware it will work well enough. What's important here is its general ease of use - how easy is to set up such system, connect and access data, develop a software using it, how much maintenance is needed, how easy this maintenance is, how easy are the most common development tasks as creating a DB, moving a DB from test to production server etc. There, "how easy" directly translates to "how much time we need to set it up", which translates to "how much will the development will cost".
    Considering the current technology, switching the DBMS in such systems is not necesarily a major commitment and believe me that you will not produce terrible code. In many cases it's as simple as changing a switch in your ORM toolkit: hibernate.dialect = Hibernate.Dialect.OracleDialect vs MySQLDialect vs MsSql2005Dialect
    Therefore, in some part of market it's easy to switch DBMS, even on project-by-project basis. The reason to switch will appear when other DBMS makes life easier => development faster. From that point of view, I can understand my colleagues giving me an embarassing look and saying "come on, I won't read all these docs just to have db copied to test server". And it doesn't mean "they are not willing to learn anything new", it's just that they feel such basic task should have self-explaining solution that doesn't require mastering any special knowledge. And if they get such simple solutions somewhere else, it costs them nothing to change the hibernate dialect.
    I think Oracle did the great job with introducing the Express to this "fire&forget" market. The installation is a snap, it just works out of the box, nothing serious to configure, opposite to what I remember from installing and working on Oracle 9 a few years ago. In some places it's still "you need to start SQL*Plus and enter this script", but it's definitely less than before. I also find the SQL Developer a great tool, it can do most of what we need to do with the DB, it's also much better and pleasant to use over Oracle 9 tools. Still, a few basic things still require too much hassle, and I'd say taking your schema to another machine is one of them. So I think that, if you do it well, the "schema copy wizard" you mentioned might be very helpful. If I was to give any general advice for Express line of DB/tools, I'd say "make things simple" - make it "a DB you can't see".
    That's, IMHO, the way to attract more Express users.

  • Export.ddl

    Hi friends...
    please anybody can help to solve the following question..this question was ask me in my last interview.
    The attached DDL (“export.ddl”) has been written to work on Oracle 10g,11g
    But it doesn’t work on Oracle 9i, for example when we try to add user it gives the attached error “error.txt”
    The questions are:
    1- Where are the errors (which table, view , trigger …etc. )
    2- How to fix it one by one
    3- The new script after fixing the errors
    the error.txt file is:
    ORA-04068: existing state of packages has been discarded
    ORA-04063: has errors
    ORA-04063: package body "TBS_DPL.SQLSERVER_UTILITIES" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "TBS_DPL.TBST_USERS_US_UID_TRG", line 19
    ORA-04088: error during execution of trigger 'TBS_DPL.TBST_USERS_US_UID_TRG'
    ORA-06512: at "TBS_DPL.TBSP_INSERTUSERDATA", line 47
    ORA-06512: at line 1
    Edited by: JIC on Feb 7, 2012 12:46 PM
    Edited by: JIC on Feb 7, 2012 12:53 PM

    10g and 11g support Data Pump where 9i doesn't. Don't know if they used 9i or not, but ...
    The program unit being called not found is either a new feature in 10g or it's an add on that was not installed on 9i.
    Having the script would help a lot.
    Dean

  • How can I simply export comments to a single list

    Thanks in advance for your help.
    Does anybody know how to export the comments in acrobat as a single list (ideally to excel or word)?
    Typically my workflow is to convert documents (drawings, figures, sketches, charts, text) that make up a report to PDF and send to clients for review.
    A report can be very large in excess of 500 pages.
    Clients mark up the compiled PDF report with their comments.
    So far so good.
    In addressing their comments I need to compile a list/table  of the comments they have made so I can simply provide a status/commentry on how I may have addressed their comments.
    This simple task has proven extremely difficult with hours on the internet looking for a solution and about 1.5 hrs with Adobe staff (who clearly did not know what they were doing as it took this time to understnd point 1 below).
    Tagging to a word document does not help in that;
    I operate a mac and apparently exporting comments to word function under the comments options dialogue box does not work on a mac.
    The comments pertain to numerouse sources not just word.
    Does anybody know how to export the comments as a single list (ideally to excel or word)?
    I know how to create a comments summary then export this to word (but as the comments summary is broken up into pages I am still left with a document that is >300 pages long which is no use.
    I also tried exporting the summary pdf either a a rich text format or excell which almost worked but the export apears to drop the page numbers since the page number are page headers in the export.This leaves me with a bunch of comments without any relationship back to the source.
    Thanks

    This can be done with a script. I sent you a PM after your previous post on this subject. Did you see it?

  • 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

  • Not able to Export sap script with RSTXSCRP in different languages IT,ES

    Hi all,
      I am trying to export sap script to local file using this program RSTXSCRP, but it's working fine for English but not other languages like IT,ES and DA. Even if i specify parameter in selection screen Language vector as IT. It's not exporting code from sap script for IT language. By default it's exporting only EN.
    Can you please tell me what I have to do to export sap script  from different language.
    Thank you.

    Hi!
    For Translating you can do it by
    Going in transaction SE63 -> Translation -> Abap objects -> Other Long Texts -> FS Forms and Styles.
    There you have to enter client and form name source lang. and target lang.
    Then you export it with the program RSTXSCRP in the language u have translated....
    As you have form created in English and  you can download and upload it in only  English .
    Regards.

  • IMPORT / EXPORT IN SCRIPTS

    Hi all.
    i have an issue in the scripts.
    is ir possible to use Import / export in scripts.
    If it is possible ,then how.
    can any body help me to solve this issue.
    Thanks,
    Eswar

    Hi,
    Use Report RSTXSCRP allows SAPscript objects (standard texts, styles, forms
    or device types to be transported between R/3 and a local or central  
    file.                                                                               
    Note: Texts, styles, and forms are client-specific! For export they are
    always read from the current client and for import they are always read
    to the current client. Device types are not client-specific so the    
    current client is not significant in the export/import of printer     
    definitions.
    Parameters to be specified:                                            
    The radio buttons Device type/Form/Style/Standard text select the      
    transport object to be imported or exported.                           
    Object name:  Name of the standard text, style, form, or device type.  
    Mode: Export means download to file, IMPORT means upload from file.    
    File system: Allows you to choose whether the file is read/written     
    locally (GUI file system) or on the application server (default        
    setting).                                                              
    Reward Points if it is Useful.
    Thanks,
    Manjunath MS.

  • 3.0.0-665 - Export DDL is empty

    I have a relational model in DM and select menu Export / DDL File.
    I leave the selection Oracle Database 11g and click Generate.
    In the new dialog I leave everything as is (all tables and other items selected) and click OK.
    The result is just some comments:
    -- Generated by Oracle SQL Developer Data Modeler 3.0.0.665
    -- at: 2011-02-24 18:45:45 CET
    -- site: Oracle Database 11g
    -- type: Oracle Database 11g
    -- Oracle SQL Developer Data Modeler Summary Report:
    -- CREATE TABLE 0
    -- CREATE INDEX 0
    -- ALTER TABLE 0
    -- more here, I deleted for brevity
    -- DROP TABLESPACE 0
    -- DROP DATABASE 0
    -- ERRORS 0
    -- WARNINGS 0
    With some other model, it works.
    Any idea what to look for?
    I also tried Oracle SQL Developer 3.0 Early Adopter 4 (3.0.03.97), but it is the same there too (just comments are created).
    I also tried to export just one table, but the result is same, just the above comments.
    Regards,
    David

    Thanks for the picture. That all looks fine. Its contents tells me that you have not got the relevant Physical Model open. (If the Physical Model is open, the Tables do not appear on the "Tree View" tab that is shown in your picture; instead you need to go to the Tables tab to see the list of Tables.)
    Physical Models allow you to provide additional information relevant to a specific database type (e.g. Oracle 10g or 11g). Physical Models appears in the Data Modeler Browser as a node below a specific Relational Model.
    To create one you can select "New" on the right-click drop-down menu for Physical Models. Import from Data Dictionary will also create a Physical Model of the relevant type.
    Reopening a saved Design does not automatically reopen its Physical Models; nodes for those that are included in the saved design will appear as a component of the Physical Models node, but to open one you need to select "Open" from the right-click drop-down menu for the relevant physical model.
    David

  • Exported ant script -- NoClassDefFound?

    I've exported ant script from workshop (wls9.2 eclipse) and I was able to build the app.war (web services) ok.
    However I saw message like this:
    "assembly: Imput fileset contained no files, nothing to do."
    And when I deployed the war to server and tried to access the webservices, it gave me NoClassDefFound error.
    Also I noticed that the ".staging" directory has empty "lib" dir under it.
    Does anyone know how to fix it?
    Here is the generated build.xml and workspace.xml.
    ========================= workspace.xml==============
    <?xml version="1.0" encoding="UTF-8"?>
    <node name="metadata">
    <node name="projects">
    <node name="billingservice">
    <attribute name="location" value="C:/home/rlee/projects/telepacific/billingservice"/>
    </node>
    </node>
    <node name="library-modules">
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/wls-commonslogging-bridge.war"/>
    </node>
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/weblogic-controls-1.0.war"/>
    </node>
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/beehive-controls-1.0.war"/>
    </node>
    </node>
    <node name="server-runtimes">
    <node name="BEA WebLogic v9.2">
    <attribute name="location" value="%wl.home%"/>
    </node>
    </node>
    <node name="vm-locations">
    <attribute name="defaultVM" value="C:/bea/wls922/jdk150_10"/>
    <node name="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/BEA WebLogic v9.2 JRE">
    <attribute name="location" value="c:/bea/wls922/jrockit90_150_10"/>
    </node>
    </node>
    <node name="classpath-vars">
    <node name="SDKS_HOME">
    <attribute name="value" value="c:/home/rlee/projects/mpower/sdks"/>
    </node>
    <node name="WEBLOGIC_HOME">
    <attribute name="value" value="%wl.home%"/>
    </node>
    </node>
    </node>
    ======================= end of workspace.xml==============
    ==================== exported build.xml ====================
    <project default="build">
    <description>
    Project build script. All public targets require the "workspace" property to be
    set at invocation. It can either point at the Eclipse workspace directory that
    this project belongs to or an exported workspace.xml file. The wl.home property
    may also need to be specified unless WL_HOME environment variable is defined.
    </description>
    <target name="init.env" unless="init.env.executed">
    <property name="init.env.executed" value="true"/>
    <property environment="env"/>
    <condition property="wl.home" value="${env.WL_HOME}">
    <isset property="env.WL_HOME"/>
    </condition>
    <fail unless="wl.home" message="The wl.home property needs to be set!"/>
    </target>
    <target name="init.typedefs" depends="init.env" unless="init.typedefs.executed">
    <property name="init.typedefs.executed" value="true"/>
    <typedef resource="com/bea/wlw/antlib/antlib.xml">
    <classpath>
    <fileset dir="${wl.home}">
    <include name="workshop/lib/wlw-antlib.jar"/>
    <include name="workshop/lib/wlw-util.jar"/>
    <include name="workshop/lib/wlw-libmodules.jar"/>
    <include name="workshop/lib/wlw-splitsrc.jar"/>
    <include name="server/lib/ant/ant-contrib-1.0b1.jar"/>
    </fileset>
    </classpath>
    </typedef>
    </target>
    <target name="init" depends="init.env,init.typedefs" unless="init.executed">
    <property name="init.executed" value="true"/>
    <fail unless="workspace" message="The workspace property needs to be set!"/>
    <dirname property="project.dir" file="${ant.file}"/>
    <property name="echo.metadata" value="false"/>
    <mdimport workspace="${workspace}" pjdir="${project.dir}" echo="${echo.metadata}">
    <option name="skipAnnotationProcessors" value="com.bea.wlw.webservices.core"/>
    </mdimport>
    <property name="archive.name" value="${project.name}.war"/>
    <property name="uri" value="${archive.name}"/>
    <taskdef name="xmlbean"
    classname="org.apache.xmlbeans.impl.tool.XMLBean">
    <classpath>
    <pathelement path="${wl.home}/common/lib/apache_xbean.jar"/>
    <pathelement path="${wl.home}/common/eclipse/plugins/com.bea.eclipse.common.lib.apache_xbean2/jsr173_api.jar"/>
    </classpath>
    </taskdef>
    <property name="generated.module.root" value="${project.dir}/build/weboutput"/>
    <property name="assembly.src" value="${project.dir}/build/assembly/.src"/>
    </target>
    <target name="build" depends="init" description=" compiles the source files; does not package the results">
    <for list="0,1,2,3,4,5,6,7,8,9" param="i">
    <sequential>
    <if>
    <and>
    <isset property="xbean.src.@{i}.dir"/>
    <available file="${xbean.src.@{i}.dir}"/>
    </and>
    <then>
    <fileset id="xbean.src.paths.@{i}"
    dir="${xbean.src.@{i}.dir}"
    includes="${xbean.src.@{i}.include}"
    excludes="${xbean.src.@{i}.exclude}"/>
    </then>
    <else>
    <fileset id="xbean.src.paths.@{i}"
    file="null_file_set"/>
    </else>
    </if>
    </sequential>
    </for>
    <if>
    <isset property="xbean.include-classpath-contributions"/>
    <then>
    <path id="xbean.classpath">
    <path refid="java.classpath"/>
    </path>
    </then>
    <else>
    <path id="xbean.classpath">
    <pathelement location="${wl.home}/common/lib/apache_xbean.jar"/>
    </path>
    </else>
    </if>
    <mkdir dir="${xbean.src.output.dir}"/>
    <mkdir dir="${xbean.bin.output.dir}"/>
    <xmlbean
    javasource="${xbean.java-version}"
    download="${xbean.download-network-urls}"
    typesystemname="${xbean.schema-type-name}"
    noupa="${xbean.unique-particle-attribution}"
    nopvr="${xbean.particle-valid-restriction}"
    noannotations="${xbean.skip-annotations}"
    ignoreDuplicatesInNamespaces="${xbean.namespaces-to-ignore-dups}"
    srcgendir="${xbean.src.output.dir}"
    classgendir="${xbean.bin.output.dir}"
    classpathref="xbean.classpath"
    srconly="true">
    <fileset refid="xbean.src.paths.0"/>
    <fileset refid="xbean.src.paths.1"/>
    <fileset refid="xbean.src.paths.2"/>
    <fileset refid="xbean.src.paths.3"/>
    <fileset refid="xbean.src.paths.4"/>
    <fileset refid="xbean.src.paths.5"/>
    <fileset refid="xbean.src.paths.6"/>
    <fileset refid="xbean.src.paths.7"/>
    <fileset refid="xbean.src.paths.8"/>
    <fileset refid="xbean.src.paths.9"/>
    </xmlbean>
    <if>
    <isreference refid="apt.factory.path"/>
    <then>
    <mkdir dir="${apt.src.output.dir}"/>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <apt
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    preprocessdir="${apt.src.output.dir}"
    classpathref="java.classpath"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false"/>
    </then>
    </if>
    </for-each-java-src-path>
    </then>
    </if>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <javac
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    classpathref="java.classpath"
    debug="on"/>
    </then>
    </if>
    </for-each-java-src-path>
    <delete dir="${generated.module.root}"/>
    <mkdir dir="${generated.module.root}"/>
    <resolve-path property="user.web.xml" path="WEB-INF/web.xml"/>
    <resolve-path property="user.weblogic.xml" path="WEB-INF/weblogic.xml"/>
    <copy todir="${generated.module.root}/WEB-INF" file="${user.web.xml}" />
    <copy todir="${generated.module.root}/WEB-INF" file="${user.weblogic.xml}" failonerror="false" />
    </target>
    <target name="clean" depends="init" description=" removes the files and directories generated by the build target">
    <if>
    <available file="${xbean.src.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${xbean.src.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <if>
    <available file="${xbean.bin.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${xbean.bin.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <if>
    <available file="${apt.src.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${apt.src.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.output}"/>
    <then>
    <if>
    <equals arg1="${.java.src.dir}" arg2="${.java.src.output}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${.java.src.output}">
    <or>
    <filename name="**/*.class"/>
    <and>
    <type type="dir"/>
    <depth min="0"/>
    </and>
    </or>
    </fileset>
    </delete>
    </then>
    <else>
    <delete includeEmptyDirs="true">
    <fileset dir="${.java.src.output}" includes="**/*"/>
    </delete>
    </else>
    </if>
    </then>
    </if>
    </for-each-java-src-path>
    <delete dir="${assembly.src}"/>
    <delete dir="${generated.module.root}"/>
    <mkdir dir="${generated.module.root}"/>
    </target>
    <target name="assemble" depends="init" description=" assembles the project for iterative dev deployment; requires that the "ear.root" property is specified">
    <property name="prefix" value=""/>
    <for-each-resource-path>
    <link ear="${ear.root}" source="${.resource.path}" target="${prefix}${uri}/${.resource.prefix}"/>
    </for-each-resource-path>
    <!-- Link in referenced utility projects into the WEB-INF/lib directory. -->
    <for-each-referenced-component>
    <if>
    <and>
    <equals arg1="${.referenced.component.type}" arg2="project"/>
    <equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
    </and>
    <then>
    <antex
    antfile="${.referenced.component.handle}/build.xml"
    dir="${.referenced.component.handle}"
    target="assemble"
    inheritUserProps="false"
    inheritAll="false"
    inheritRefs="false">
    <property name="wl.home" value="${wl.home}"/>
    <property name="patch.home" value="${patch.home}"/>
    <property name="workspace" value="${workspace}"/>
    <property name="init.typedefs.executed" value="true"/>
    <property name="ear.root" value="${ear.root}"/>
    <property name="prefix" value="${uri}/WEB-INF/lib/"/>
    </antex>
    </then>
    </if>
    </for-each-referenced-component>
    <link ear="${ear.root}" source="${xbean.bin.output.dir}" target="${link.target}"/>
    <link ear="${ear.root}" source="${generated.module.root}" target="${uri}"/>
    <antcall target="assembly" inheritAll="true" inheritRefs="true" >
    <param name="ear.root" value="${ear.root}"/>
    </antcall>
    <antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
    </target>
    <target name="stage" depends="init" description=" copies all of project's resources and build artifacts into a form that's ready for archive creation; staging directory can be overridden via the "staging.dir" property">
    <antcall target="assembly" inheritAll="true" inheritRefs="true" >
    <param name="ear.root" value="${ear.staging.dir}"/>
    </antcall>
    <antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
    <property name="staging.dir" value="${project.dir}/.staging"/>
    <delete dir="${staging.dir}" quiet="true"/>
    <mkdir dir="${staging.dir}"/>
    <for-each-resource-path>
    <if>
    <available file="${.resource.path}"/>
    <then>
    <if>
    <isfile path="${.resource.path}"/>
    <then>
    <copy file="${.resource.path}" tofile="${staging.dir}/${.resource.prefix}"/>
    </then>
    <else>
    <copy todir="${staging.dir}/${.resource.prefix}">
    <fileset dir="${.resource.path}" includes="${.resource.include}" excludes="${.resource.exclude}"/>
    </copy>
    </else>
    </if>
    </then>
    </if>
    </for-each-resource-path>
    <!-- Packaged referenced utility projects into the WEB-INF/lib directory. -->
    <property name="webinflib" value="${staging.dir}/WEB-INF/lib"/>
    <mkdir dir="${webinflib}"/>
    <for-each-referenced-component>
    <if>
    <and>
    <equals arg1="${.referenced.component.type}" arg2="project"/>
    <equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
    </and>
    <then>
    <antex
    antfile="${.referenced.component.handle}/build.xml"
    dir="${.referenced.component.handle}"
    target="archive"
    inheritUserProps="false"
    inheritAll="false"
    inheritRefs="false">
    <property name="wl.home" value="${wl.home}"/>
    <property name="patch.home" value="${patch.home}"/>
    <property name="workspace" value="${workspace}"/>
    <property name="init.typedefs.executed" value="true"/>
    <property name="archive.dir" value="${webinflib}"/>
    </antex>
    </then>
    </if>
    </for-each-referenced-component>
    <copy todir="${staging.dir}/${xbean.deploy.prefix}">
    <fileset dir="${xbean.bin.output.dir}"/>
    </copy>
    <if>
    <available file="${generated.module.root}"/>
    <then>
    <copy todir="${staging.dir}" overwrite="true">
    <fileset dir="${generated.module.root}"/>
    </copy>
    </then>
    </if>
    <taskdef name="build-manifests"
    classname="weblogic.ant.taskdefs.build.AnnotationManifestTask"
    onerror="fail" />
    <path id="annotation.manifest.search.path">
    <fileset dir="${staging.dir}">
    <include name="WEB-INF/lib/*.jar"/>
    </fileset>
    <pathelement location="${staging.dir}/WEB-INF/classes"/>
    </path>
    <path id="annotation.manifest.class.path">
    <path refid="annotation.manifest.search.path"/>
    <path refid="java.classpath"/>
    </path>
    <build-manifests moduleDir="${staging.dir}"
    searchClasspathRef="annotation.manifest.search.path"
    classpathRef="annotation.manifest.class.path"
    verbose="true"
    version=""
    stagingDir="${java.io.tmpdir}/.manifest"/>
    </target>
    <target name="archive" depends="stage" description=" creates an archive containing all projects's resources and build artifacts; archive name and location can be overridden via the "archive.path" property">
    <property name="archive.dir" value="${project.dir}"/>
    <mkdir dir="${archive.dir}"/>
    <zip destfile="${archive.dir}/${archive.name}" encoding="UTF8" whenempty="create">
    <fileset dir="${staging.dir}"/>
    </zip>
    </target>
    <target name="stage.to.ear" depends="init">
    <property name="prefix" value=""/>
    <antcallex target="archive" inheritUserProps="false" inheritAll="false" inheritRefs="false">
    <param name="wl.home" value="${wl.home}"/>
    <param name="patch.home" value="${patch.home}"/>
    <param name="workspace" value="${workspace}"/>
    <param name="init.typedefs.executed" value="true"/>
    <param name="archive.dir" value="${ear.staging.dir}${prefix}"/>
    <param name="ear.staging.dir" value="${ear.staging.dir}"/>
    </antcallex>
    </target>
    <target name="generated.root.init" depends="init">
    <property name="generated.module.root" value="${project.dir}/build/weboutput"/>
    </target>
    <target name="assembly" depends="init,generated.root.init">
    <taskdef name="assemble"
    classname="com.bea.control.assembly.AssembleTask"
    classpathref="java.classpath"
    onerror="report" />
    <property name="assembly.src.output" value="${java.src.0.output}"/>
    <mkdir dir="${assembly.src}"/>
    <path id="assembly.classpath">
    <path refid="java.classpath" />
    <pathelement location="${assembly.src.output}" />
    <pathelement path="${java.outpath}" />
    <pathelement path="${java.sourcepath}"/>
    </path>
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
    <apt
    srcdir="${assembly.src}"
    preprocessdir="${apt.src.output.dir}"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false">
    <classpath refid="assembly.classpath" />
    </apt>
    <javac
    srcdir="${assembly.src}"
    destdir="${assembly.src.output}"
    debug="on">
    <classpath refid="assembly.classpath" />
    </javac>
    </target>
    <target name="webservice.build" depends="init,generated.root.init">
    <path id="jwsc.srcpath">
    <path path="${java.sourcepath}" />
    <pathelement path="build/assembly/.src" />
    </path>
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" />
    <property name="jwsc.module.root" value="${project.dir}/build/weboutput"/>
    <property name="jwsc.contextpath" value="billingservice"/>
    <property name="jwsc.srcpath.prop" refid="jwsc.srcpath"/>
    <path id="jwsc.classpath">
    <path refid="java.classpath" />
    <pathelement path="${java.outpath}" />
    </path>
    <jwsc
    destdir="${project.dir}/build"
    classpathref="jwsc.classpath"
    >
    <module name="weboutput" explode="true" contextPath="${jwsc.contextpath}">
    <jwsFileSet srcdir="${jwsc.srcpath.prop}">
    <include name="**/*.java"/>
    </jwsFileSet>
    <descriptor file="${jwsc.module.root}/WEB-INF/web.xml" />
    <descriptor file="${jwsc.module.root}/WEB-INF/weblogic.xml" />
    </module>
    </jwsc>
    </target>
    </project>
    ==================== end of exported build.xml =========
    Thanks!
    Edited by renqili at 08/09/2007 10:52 AM

    It looks a bug to me. The exported ant script does not take care the jar files setup in the classpath in workshop/eclipes and copy them to the WEB-INFO/lib directory.

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

Maybe you are looking for