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

Similar Messages

  • 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

  • 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

  • Generating ddl script in oracle

    Hi ,
    i ned a script to generate ddl's for all the objects in a particular schema.
    i used the DBMS package dbms_metadata.get_ddl
    SELECT 'select dbms_metadata.get_ddl('''||OBJECT_TYPE||''','''||OBJECT_NAME||''','''||OWNER||''') from dual;' FROM DBA_OBJECTS WHERE OWNER='RSEXT' AND OBJECT_TYPE='TABLE'
    by using the above script i am not getting the complete script.
    how can i get the complete script.
    can anyone suggest me.
    thanks in advance.

    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

  • Serious Error when generating UPGRADE scripts

    The following runtime service log is generated when we try to generate UPGRADE scripts for a dimension that changed:
    14:10:32 [5E3974] Runtime Platform Service Version 9.2.0.2.8 starting
    14:10:32 [5E3974] Platform Repository Name OWB_RUNTIME_MGR on Service UTIDWHQ1 at Host localhost
    14:10:32 [5E3974] Recovery starting
    14:10:32 [5E3974] Service startup complete
    14:15:52 [5E3974] AuditId=8171: Processing unit deployment request
    14:15:52 [228A02] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:15:52 [228A02] script_run_begin auditId=8173 operation=9001
    14:15:59 [228A02] script_run_end auditId=8181 scriptRunStatus=15002
    14:16:00 [228A02] deploy_unit_done auditId=8171
    14:16:00 [5E3974] AuditId=8170: Request completed
    14:27:48 [5E3974] AuditId=8183: Processing unit deployment request
    14:27:48 [1173EF] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:27:48 [1173EF] script_run_begin auditId=8185 operation=9001
    14:27:53 [1173EF] script_run_end auditId=8193 scriptRunStatus=15002
    14:27:54 [1173EF] deploy_unit_done auditId=8183
    14:27:54 [5E3974] AuditId=8182: Request completed
    14:32:56 [5E3974] AuditId=8194: Processing execute request
    14:32:57 [4EC44] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    14:32:57 [4EC44] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.PLSQL'
    14:32:57 [4EC44] PLSQL callspec: declare l_env wb_rt_mapaudit.wb_rt_name_values;function bool_to_char (val boolean) return varchar2 is begin if (val is null) then return null; else if (val) then return 'true'; else return 'false'; end if; end if; end; begin l_env(1).param_name := 'AUDIT_ID'; l_env(1).param_value := 8194; l_env(2).param_name := 'OPERATING_MODE'; l_env(2).param_value := '2'; l_env(3).param_name := 'PURGE_GROUP'; l_env(3).param_value := 'wb'; l_env(4).param_name := 'MAX_NO_OF_ERRORS'; l_env(4).param_value := '50'; l_env(5).param_name := 'COMMIT_FREQUENCY'; l_env(5).param_value := '50000'; l_env(6).param_name := 'AUDIT_LEVEL'; l_env(6).param_value := '2'; l_env(7).param_name := 'BULK_SIZE'; l_env(7).param_value := '50000'; ? := MAP_GET_HB.main(p_env=>l_env);end;
    14:35:50 [4EC44] report_execution_result auditId=8194
    14:35:50 [5E3974] AuditId=8194: Request completed
    14:36:49 [5E3974] AuditId=8203: Processing unit deployment request
    14:36:49 [341960] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:36:50 [341960] script_run_begin auditId=8205 operation=9001
    14:36:55 [341960] script_run_end auditId=8213 scriptRunStatus=15002
    14:36:55 [341960] deploy_unit_done auditId=8203
    14:36:56 [5E3974] AuditId=8202: Request completed
    14:37:39 [5E3974] AuditId=8214: Processing execute request
    14:37:39 [233D48] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    14:37:39 [233D48] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.PLSQL'
    14:37:39 [233D48] PLSQL callspec: declare l_env wb_rt_mapaudit.wb_rt_name_values;function bool_to_char (val boolean) return varchar2 is begin if (val is null) then return null; else if (val) then return 'true'; else return 'false'; end if; end if; end; begin l_env(1).param_name := 'AUDIT_ID'; l_env(1).param_value := 8214; l_env(2).param_name := 'OPERATING_MODE'; l_env(2).param_value := '2'; l_env(3).param_name := 'PURGE_GROUP'; l_env(3).param_value := 'wb'; l_env(4).param_name := 'MAX_NO_OF_ERRORS'; l_env(4).param_value := '50'; l_env(5).param_name := 'COMMIT_FREQUENCY'; l_env(5).param_value := '50000'; l_env(6).param_name := 'AUDIT_LEVEL'; l_env(6).param_value := '2'; l_env(7).param_name := 'BULK_SIZE'; l_env(7).param_value := '50000'; ? := MAP_GET_HB.main(p_env=>l_env);end;
    14:39:55 [233D48] report_execution_result auditId=8214
    14:39:55 [5E3974] AuditId=8214: Request completed
    14:49:57 [5E3974] AuditId=8223: Processing unit deployment request
    14:49:57 [7EBE1] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:49:57 [7EBE1] script_run_begin auditId=8225 operation=9001
    14:50:02 [7EBE1] script_run_end auditId=8233 scriptRunStatus=15002
    14:50:03 [7EBE1] deploy_unit_done auditId=8223
    14:50:03 [5E3974] AuditId=8222: Request completed
    14:50:27 [5E3974] AuditId=8235: Processing unit deployment request
    14:50:27 [7A8A02] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:50:27 [7A8A02] script_run_begin auditId=8237 operation=9001
    14:50:33 [7A8A02] script_run_end auditId=8245 scriptRunStatus=15002
    14:50:34 [7A8A02] deploy_unit_done auditId=8235
    14:50:34 [5E3974] AuditId=8234: Request completed
    14:51:06 [5E3974] AuditId=8246: Processing execute request
    14:51:06 [6C6696] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    14:51:06 [6C6696] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.PLSQL'
    14:51:06 [6C6696] PLSQL callspec: declare l_env wb_rt_mapaudit.wb_rt_name_values;function bool_to_char (val boolean) return varchar2 is begin if (val is null) then return null; else if (val) then return 'true'; else return 'false'; end if; end if; end; begin l_env(1).param_name := 'AUDIT_ID'; l_env(1).param_value := 8246; l_env(2).param_name := 'OPERATING_MODE'; l_env(2).param_value := '3'; l_env(3).param_name := 'PURGE_GROUP'; l_env(3).param_value := 'wb'; l_env(4).param_name := 'MAX_NO_OF_ERRORS'; l_env(4).param_value := '50'; l_env(5).param_name := 'COMMIT_FREQUENCY'; l_env(5).param_value := '50000'; l_env(6).param_name := 'AUDIT_LEVEL'; l_env(6).param_value := '2'; l_env(7).param_name := 'BULK_SIZE'; l_env(7).param_value := '50000'; ? := MAP_GET_HB.main(p_env=>l_env);end;
    15:35:44 [6C6696] report_execution_result auditId=8246
    15:35:44 [5E3974] AuditId=8246: Request completed
    11:07:43 [5E3974] AuditId=8255: Processing unit deployment request
    11:07:44 [73A7AB] Attempting to create adapter 'class.Oracle Database.9.2.CMUpgrade'
    11:07:44 [73A7AB] java.lang.NullPointerException
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.prepare(OdbCMUpgradeAdapter.java:222)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:101)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] java.lang.UnsatisfiedLinkError: /opt/oracle/product/rdbms/9.2.0/lib/libocijdbc9.sl: specified file is not a shared library, or a format error was detected.
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:265)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:360)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:141)
         at oracle.sysman.vdb.VdbSession.establishConnection(VdbSession.java:1266)
         at oracle.sysman.vdb.VdbSession.<init>(VdbSession.java:763)
         at oracle.sysman.vdb.VdbAutoCommitSession.<init>(VdbAutoCommitSession.java:266)
         at oracle.sysman.vdb.VdbSessionFactory.getNewAutoCommitSession(VdbSessionFactory.java:1206)
         at oracle.sysman.vdb.VdbSessionFactory.getAutoCommitSession(VdbSessionFactory.java:1118)
         at oracle.sysman.cmSDK.CMClient.<init>(CMClient.java:243)
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.getCMClient(OdbCMUpgradeAdapter.java:775)
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.prepare(OdbCMUpgradeAdapter.java:81)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:101)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] oracle.wh.runtime.platform.service.controller.RecoveryInProgress: RPE-01008: Recovery of this request is in progress.
         at oracle.wh.runtime.platform.service.controller.AdapterContextImpl.initialize(AdapterContextImpl.java:974)
         at oracle.wh.runtime.platform.service.controller.DeploymentContextImpl.initialize(DeploymentContextImpl.java:434)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.initialize(DeploymentController.java:69)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:95)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:114)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] Attempting to create adapter 'class.Oracle Database.9.2.CMUpgrade'
    11:07:44 [73A7AB] java.lang.NullPointerException
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.prepare(OdbCMUpgradeAdapter.java:222)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:101)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:114)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] java.lang.UnsatisfiedLinkError: /opt/oracle/product/rdbms/9.2.0/lib/libocijdbc9.sl: specified file is not a shared library, or a format error was detected.
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:265)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:360)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:141)
         at oracle.sysman.vdb.VdbSession.establishConnection(VdbSession.java:1266)
         at oracle.sysman.vdb.VdbSession.<init>(VdbSession.java:763)
         at oracle.sysman.vdb.VdbAutoCommitSession.<init>(VdbAutoCommitSession.java:266)
         at oracle.sysman.vdb.VdbSessionFactory.getNewAutoCommitSession(VdbSessionFactory.java:1206)
         at oracle.sysman.vdb.VdbSessionFactory.getAutoCommitSession(VdbSessionFactory.java:1118)
         at oracle.sysman.cmSDK.CMClient.<init>(CMClient.java:243)
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.getCMClient(OdbCMUpgradeAdapter.java:775)
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.prepare(OdbCMUpgradeAdapter.java:81)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:101)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:114)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] prepare_unit_done auditId=8255
    11:07:44 [5E3974] AuditId=8254: Request completed

    Hi Marlene,
    It looks like the cause of your issue is
    11:07:44 [73A7AB] java.lang.UnsatisfiedLinkError: /opt/oracle/product/rdbms/9.2.0/lib/libocijdbc9.sl: specified file is not a shared library, or a format error was detected
    Can you let us know what platform you run on? Is the environment correctly set up?
    Thanks,
    Mark.

  • Feature request: Add sequences to "Drop Section" when Generating DDL

    Hi Data Modeler Team,
    could you add a feature so that it is possible to generate the "DROP SEQUENCE " statements when in "File"->"Export"->"DDL File"?
    Right now my workaround is to add a table script under "Table properties"->"Scripts"->"Before create"
    Thank you,
    Blama
    (Win7, Version 3.0.0.665)

    Hi,
    it would be great if you included drop scripts for the generated triggers as well.
    Thanks in advance.

  • Generate DDL script tailoring

    I would like to know how to tailor the sql script generated by JDev
    (11.1.1.0.0) - offline database source).
    I've reversed engineered a schema and modified a number of tables (in
    10g). I would now want to generate a complete "create script", but
    without any of the storage clause (so it can be ran in another schema in another tablespace, for example).
    I would also like to tag on some tables a number of DML
    statements. Could I add 'pre' or 'post' scripts attached to db objects/tables?
    I would appreciate any help either on how to do it, or where I could
    look to find more info on doing this.

    I would like to know how to tailor the sql script generated by JDev
    (11.1.1.0.0) - offline database source).
    I've reversed engineered a schema and modified a number of tables (in
    10g). I would now want to generate a complete "create script", but
    without any of the storage clause (so it can be ran in another schema in another tablespace, for example).
    I would also like to tag on some tables a number of DML
    statements. Could I add 'pre' or 'post' scripts attached to db objects/tables?
    I would appreciate any help either on how to do it, or where I could
    look to find more info on doing this.

  • Bug - when generating DDL for table

    I'm not sure if this has been logged yet or not, but when i click on the sql tab of a table it generates the ddl to recreate the table fine the first time.
    However if i then click on another tab and then come back to the table tab, when i go to the sql tab within this table tab the ddl is still displayed on the tab but it tries to regenerate it and then freezes, i have to kill raptor and restart it.

    I have the same problems with VIEWS.
    Reproducing the error:
    Open folder Views
    Click on a view (opens window with all the view stuff, Columns, Data etc)
    Click on tab SQL
    Copy the select part
    Open a worksheet and past the selected text
    Go back to the View tab SQL with result Raptor hangs...(Generating DLL....)

  • How do you include a DTD when generating an XML document

    Hi
    I have just started to use the Java XML Pack to generate a XML document.
    How do you put the dtd element
    <!DOCTYPE Controller SYSTEM "controller.dtd">
    in the generated document.
    I am using the following piece of code
    public void generate(...)
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.newDocument();
    Element rootElement = createElement("Controller");
    // Fill out the nodes etc
    // Save the result
    TransformerFactory tFactory =
    TransformerFactory.newInstance();
    Transformer transformer = Factory.newTransformer();
    File f = new File("dummy.xml");
    FileWriter fw = new FileWriter(f);
    DOMSource d1 = new
    DOMSource(rootElement,"controller.dtd");
    StreamResult result = new StreamResult(fw);
    transformer.transform(d1, result);
    Thanks
    Greg

    Hello,
    I had to go through quite some pain to get this done about a year ago,anyways,here is the solution.
    all the import files are in jaxp1.1 bundle.
    below is a test class code.
    import org.apache.crimson.tree.XmlDocument;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import java.io.*;
    public class CreateDTDInXMLFile {
    public CreateDTDInXMLFile() {
    public static void main(String[] args) {
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.newDocument();
    Element root = document.createElement("root");
    Element name = document.createElement("name");
    name.appendChild(document.createTextNode("Khalid"));
    Element address = document.createElement("address");
    address.appendChild(document.createTextNode("2022 11th Ave SW"));
    root.appendChild(name);
    root.appendChild(address);
    document.appendChild(root);
    ((XmlDocument)document).write(System.out);
    //the above will print the simple xml doc,now add the dtd
    //suppose the dtd is [<!DOCTYPE root SYSTEM "address.dtd">]
    ((XmlDocument)document).setDoctype(null,"address.dtd",null);
    //now print the xml doc again
    System.out.println("\n");
    ((XmlDocument)document).write(System.out);
    } catch(ParserConfigurationException pce) {
    pce.printStackTrace();
    return;
    }catch (IOException ioe) {
    ioe.printStackTrace();
    This will take care of the agony..
    Khalid

  • Error when generating Alter Record scripts with project PPLTLS84CUR

    I am trying to install HR89 + PT849 on REL5.4 + Oracle 10g manually under the guideline of official document: PeopleTools 8.49 Installation for Oracle.pdf
    After Database creation, need to upgrade Peopletools from the delivered version 8.46 to 8.49
    In page 570, Task B-15-6: Alter PeopleTools Tables, need to generate build scripts from project PPLTLS84CUR and then run the scripts from SQLPLUS side.
    Bu when generating the scripts with user PS/PS, the App Designer got error message as following:
    PS General Routines
    Out of available memory. -
    e:\pt849-903-R1-retail\peopletoos\SRC\pssys\rdmfld.app @ 998
    click OK, process can continue but the result can show: "Error: APPR_RULE_HDR - Alter process was unsuccessful. (76,42) "
    not only this record but also many others.
    In client PC which running app designer, the memory is enough for app designer, 1G free. Really hard to understand such error.
    Any reply will be much appreciated.
    Andy
    Edited by: Andy xu on 2012-5-14 上午2:22

    thank you for your reply.
    client pc is running on windows 7 and UAC is already disabled.
    current user running app designer is belong to Administrator group, hence, this may be a client security problem.
    I search on oracle website and found a page said this maybe a bug and be fixed from 8.49.11, this is why it is working on 8.49.13, and the wordaround solution is use non-vista pc, such as windows xp. :)
    https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(from=BOOKMARK&viewingMode=1143&bmDocTitle=E-QR:%20When%20modifying%20Criteria%20for%20certain%20Queries,%202-tier/3-tier%20Query%20Manager%20tool%20is%20generating%20error,%20%22Out%20of%20available%20memory%20-%20e:pt84814b%20-%20retailpeopletoolsSRCpssysqdmsel.cpp@1381%22&bmDocType=PROBLEM&bmDocDsrc=KB&bmDocID=659150.1))

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

  • 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

  • DDl script generatin

    Is there procedure/package/command in Oracle which will generate DDL script for existing objects, like
    CREATE TABLE table_name
    (col1 NUMBER(15,0) NOT NULL,
    col3 VARCHAR2(12))
    PCTFREE 10
    PCTUSED 40
    INITRANS 1
    MAXTRANS 255
    ALTER TABLE table_name
    ADD PRIMARY KEY (col1)
    USING INDEX
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    CREATE UNIQUE INDEX idx_c001 ON table_name
    col1 ASC
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    Thanks

    This Q&A covers using export/import to get DDL:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:439019911488
    This covers the exp/imp method but also includes an example from someone that provides cleaner DDL:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1464804639878

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

  • 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

Maybe you are looking for

  • How to use Public variables in other classes

    Please have a look at the program. In the below program, i want to use the variable 'name' in the class cl_airplane1 implementation under the method aircraft to display 'BRITISH AIRWAYS' which i am passing through the object AIR1. The variable 'name'

  • White Borders Around the Left and Right Edge of a Published Movie

    Does anyone know how to get rid of the white borders that are around the left and right edge of a published movie? It looks like they are about a 1 pixel border. I have the "show borders" unchecked in the themes options. Any help would be appreciated

  • Sequence in sequence Like Picture in Picture

    I have a background (People dancing)and foreground sequence (Talking heads)and I want to scale the foreground sequence and various different places throughout. I dont seem to be able to apply a motion filter to a sequence. can you help? G5 Mac OS X (

  • No windows sound after updating the IDT High definition Codec!! HELP!!!

    Hi all I really need ur help now I have updated IDT High Definitio Audio Codec several days ago after i reboot my notebook, I couldn't hear my windows sound anymore than i reboot till 2 times, n the windows sounds was heard again However, after I tur

  • OWB 10gR2 instructor lead training

    Does anybody know if there is perhaps a new course that covers R2? When I checked Oracle's courses catalog I didn't find anything that includes R2, but maybe I missed something? Julian