DBMS_Metadata package wrapping lines

How can you set the line size for the DDL that is generated from the DBMS_MetaData pkg? If I try to run the script that is generated by this output, I get errors because things are wrapped.
I used this sql to generate my ddl:
select dbms_metadata.get_ddl('TABLE','EMP') FROM DUAL;
Anybody have a good idea on how to get this output to work properly?
Thanks,
Jim

Setting LONG does not help wrapping lines, use LINESIZE and COLUMN FORMAT.
I am using this script:
PROMPT exporting &1. &2..&3.
--##&1=OBJECT_TYPE &2=OWNER &3=OBJECT_NAME
set echo off
set linesize 1000
set long 65536
set trimspool on
set null null
set head off
set pagesize 0
set newpage none
set headsep off
set feedback off
set ver off
set pause off
set flush off
column aaa format a1000
EXECUTE DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',true);
spool &Your_package.sql
select dbms_metadata.get_ddl('PACKAGE', '&Your_package', '&OWNER') aaa from dual
spool off

Similar Messages

  • Why are spaces missing at end of wrapped lines in bulleted lists

    Hi -
    Acrobat 11.0.10, Word 2013, Windows 7 ... Sometimes tagged PDFs don't have spaces at the end of wrapping lines in bulleted lists, throughout the document. In text edit mode the cursor movement indicates no space exists. Selecting with text touch-up shows no space. In accessible text the last word on line runs into first word on next line.  JAWS mis-pronounces those words as if they are one word.  PAC preview also shows the words running together. 
    Adding a space in text edit mode works for a few minutes, but when file is saved & reopened spaces are gone, even if, immediately after adding the spaces, I select the block of LBody text with text touch-up and re-tag it and initially spaces appear to have been added.
    Is starting to happen on a routine basis, different source files, different people/computers generating the PDFs, multiple computer reboots, Acrobat repair run, MS Office repair run. But not consistent ... e.g., if someone generated PDF with no spaces at end, someone else can generate from same source and spaces are present.
    Any ideas?
    Thanks

    Thanks 'C' student, nice to know it's not just us - "misery loves company" and all that.
    So far besides your reply there's deafening silence.
    Come on, folks, don't any of you experts have a solution for this? Or at least an inkling of an idea what may be causing this? It's starting to happen all the time now, becoming a major problem.  We may have to start by getting Acrobat to self-tag rather than starting with the tags generated from the source programs, but that adds time and effort because Acrobat's tags for our often complex documents are laughable and have, ironically, such poor syntax.
    Is there a way to get a discussion seen by more people?

  • How to wrap lines in JTable before printing

    Can somebody explane me how to wrap lines in a JTable.
    I mean, when a line is to large for printing in JTable, the cell of
    that line has to been elarged, but only that cell, not hole the table.
    Can somebody give me a good tutorial of example code?
    Tnx
    Twims

    I guess you will have to implement the cellRenderer extending the JTextArea instead of JTextField, and then set the .setLineWrap(true).
    Bruno

  • Dbms_metadata package

    hello experts,
    there is an error while using above package
    SQL> ED
    Wrote file afiedt.buf
    1* select dbms_metadata.get_ddl( 'TABLE', 'T1' ) from dual
    SQL> /
    select dbms_metadata.get_ddl( 'TABLE', 'T1' ) from dual
    ERROR at line 1:
    ORA-01024: invalid datatype in OCI call
    thanks
    yash

    it works for me.
      1* select dbms_metadata.get_ddl( 'TABLE','INSANE') from dual
    SQL> /
    DBMS_METADATA.GET_DDL('TABLE','INSANE')
      CREATE TABLE "USER1"."INSANE"
       (     "DEPT" NUMBER NOT NULL ENABLE,
         "FIRSTNAME" VARCHAR2(30),
         "SURNAME" VARCHAR2(30),
         "CITY" VARCHAR2(30),
         "FIRSTNAME2" VARCHAR2(30),
         "SURNAME2" VARCHAR2(30),
         "CITY2" VARCHAR2(30),
         "FIRSTNAME3" VARCHAR2(30),
         "SURNAME3" VARCHAR2(30),
    DBMS_METADATA.GET_DDL('TABLE','INSANE')
         "CITY3" VARCHAR2(30)
       ) SEGMENT CREATION IMMEDIATE
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DE
    FAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS"
    SQL>

  • DBMS_METADATA Package Body won't compile

    I get a PLS-00103 error when attempting to complile the package body for SYS.DBMS_METADATA. The body hasn't been modified so I'm not sure where to look.

    Or,
    Does anyone know where in a script I can find the line that created this package and body in the first place?

  • Error using DBMS_METADATA package

    Hi All,
    I have the following query and trying to get the DDLs for the foreign Key constraint on tables
    SELECT   TO_CHAR (DBMS_METADATA.get_ddl ('CONSTRAINT', constraint_name))
               || ';'
        FROM   all_constraints
       WHERE   status = 'ENABLED'
               AND table_name IN
                        ('OD_MF_ACCT_PLCY')
    ORDER BY   table_name;I am getting the following error:
    ORA-31603: object "ACCTROLE_FK_ACCTPLCY" of type CONSTRAINT not found in schema "D_OD"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA", line 2806
    ORA-06512: at "SYS.DBMS_METADATA", line 4333
    ORA-06512: at line 1
    Note able to decipher the same. Could you help me what it means?
    Thanks,
    Saff

    The table is in D_OD only.
    But I think I got the error...Was just reading about various constant types....instead of CONSTRAINT i think I need to give REF_CONSTRAINT as the type...
    This worked out
    SELECT   TO_CHAR (DBMS_METADATA.get_ddl ('REF_CONSTRAINT', constraint_name))
               || ';'
        FROM   user_constraints
       WHERE   status = 'ENABLED' AND constraint_type = 'R'
               AND table_name IN
                        ('OD_MF_ACCT_PLCY')
    ORDER BY   table_name;Thanks,
    Saff
    Edited by: saffron on Feb 1, 2010 1:19 PM

  • DBMS_METADATA package issue

    All,
    When I use the DBMS_METADATA.GET_DDL('INDEX',indexnm) package, I am getting the entire DB spcecifications as follows
    CREATE INDEX "T_OD"."XIE3OD_ORDER" ON "T_OD"."OD_ORDER" ("ORD_MNT_DTM")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "OD_DATA01"
    1) Is there a way to avoid the storage values? I only need CREATE INDEX "T_OD"."XIE3OD_ORDER" ON "T_OD"."OD_ORDER" ("ORD_MNT_DTM")
    2) Will "COMPUTE STATISTICS" compute stats on table also?
    Thanks,
    Saff

    Hi,
    For your table not existing error it could be
    1) Table not existing
    or
    2) Nonprivileged users can see the metadata of only their own objects.
    SYS and users with SELECT_CATALOG_ROLE can see all objects
    For other problem, there is a bug reported for your version, can search in metalink for workaround
    Regards

  • Text-wrap line art without alpha channel or path

    I have seen a tutorial that uses TIFF format images (B&W line art) around which text-wrap is applied.
    Do all TIFF images have this property, or just those that have been given the right treatment?
    Do any other graphic formats offer this property?
    Anyone knows of a tutorial that thoroughly covers graphic formats, the inherent and acquired properties?

    It's not an image property, and you can apply text wrap to any object in ID, either to the bounding box or the object shape, or to a custom shape that you modify with the pen tool

  • Package command line app with AIR app

    Forgive me if I seem completely dense, but I've been googling and forum finding and hair pulling all day on this.
    I wrote a command line application and I call it from my air application.  It all works just fine, but right now the location of the command line application is hard coded.  I want to know:
    1) What is the actionscript that allows me to refer my nativeProcess call to a an application that is packaged with the air app when I export?
    2) Where do I place the command line application in the file system of flash builder to bundle it with everything when I export?
    I realize it'll be different for mac and windows, but I need to do both.  I'm starting with the mac.  Right now as far as I know I can put the command line app in the source folder and that all ends up in the .app/contents/resources folder, but I'm not exactly sure how to reference that in actionscript or if I can or if I should?  I don't know.  Clue me in?

    Can you not use File.applicationDirectory.url as a base?

  • SQLPlus: Spool is wrapping lines at 80 chars when linesize = 1000

    I have following code and the result wrap off at 80 . Please suggest ways to avoid it. Thanks
    set define on
    set echo off
    set pages 10000
    set heading off
    set lines 1000
    set long 10000
    set heading on
    set feedback off
    set heading off
    set verify off
    set trimspool on
    set linesize 1000
    set wrap off
    spool c:\spooltext5.xml;
    SELECT NYTD_XML_DATA FROM NYTD_DATA_TEMP;
    spool off
    exit;

    Used Column formating and solved the issue
    column NYTD_XML_DATA new_value NYTD_XML_DATA format a1000;
    spool c:\spooltext5.xml;
    SELECT NYTD_XML_DATA FROM NYTD_DATA_TEMP;
    spool off
    Thanks

  • Some help with dbms_metadata package

    Hi
    I starting to use the package DBMS_Metadata for return metadata and I have some questions
    Firts
    I have a table TBMETADATA (subject varchar2, result clob)
    object = 'table', 'procedure', etc.
    result = keep output dbms_metadata.get_dll
    Now if I drop a table x from my database. How can I to run the script for this table x, stored in TBMETADATA.
    Any idea

    hi user,
    try with this,
       select a from
        select dbms_lob.substr(result,4000) a  from TBMETADATA
       ) where a like '%X%'
       Since you are not saving the table name in the TBTEMPDATA table im searching the same using like operator.
    Hope this helps.
    Regards
    Sankar MN

  • E-mail from Outlook via Echange 2007 - wraps line at every character...

    Has anyone seen e-mail sent from Outlook via Exchange that displays the e-mail one or two characters per line...
    So a message like - Help me: would show up like
    H
    e
    l
    p
    m
    e
    On the phone. The formatting is intact, if you 'forward' the message it pops up formatted just as it was sent. The wrap isn't exactly every character, it looks like it might be a certain pixel width, as sometimes two characters fit on a line. We have tried several phones, all have the same issues.
    A solution would be really nice...its kind irritating
    Thanks

    How does it look in Outlook? Or via OWA? Is it all messages, or just those from a specific sender?
    The general symptom is that the line length is set too short (or zero). This can be in Outlook or in the sender's mail client.

  • Proc, Function, package wrap

    Dear All,
    Is there any other way to encrypt our Procedures, Functions, packages in Oracle other than wrap utility provided?
    Thnaks
    *009*

    DBMS_DDL is an alternative to producing essentially the same output.How??
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/wrap.htmOP asks "is there another way than wrap utility"
    I think there's no way to encrypt PL/SQL objects without using wrap Utility. And why you don't want to use wrap utility. Wrap utility is the utility which created for this purpose only
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Invoking Powershell modules on remote clients via package/command line

    Hello Everyone -
    I have two modules(functions) that i've written and tested successfully locally in my environment that give me Uninstall and Repair functionality on whatever the string contains. Both .psm1's are delivered via a SCCM pkg that lands both into folders
    in the Modules directory. My issue is I can't seem to invoke this in a deployment scenario...as i'd like to deliver the "Invoke-command" using SCCM's command line to simply say...
    Invoke-Command -scriptblock { Do-This "<string>" }
    The above command works fine locally when...(exePol is set to Bypass).
    1.)Modules have respective folders living in WindowsPowershell\Modules directory named xxxx.psm1
    2.)Import-Module -name <path\name of module>
    3.)Verify Modules are loaded(moduleType is script)
    But when fabricating the folders\files above with SCCM, and running the Invoke-Command(in many different ways remotely), i recieve the cmdlet, program doesn't exist and has no idea what i'm talking about. Folders\Files for .psm1's are present and do
    show when running Get-Module -Listavailable locally on targeted clients.
    Maybe this is related to the Import-Module command and the context i'm trying to delivery it in?
    I've tried multiple scenario's of...
    A.) Psexec that launches powershell, followed by the Import-Module -name <path\name of module>
    B.) .Bat file that launches powershell with the same Import-Module syntax
    C.) PS1 that includes the same Import-Module line.
    D.) Just straight from the command line of the Pkg/Program.
    Has anyone tried this? Is there a better method when trying to deliver invoke-command on a module/function to a client via SCCM? 
    TIA 

    [I see that the you are running the powershell.exe and then importing the module in the command line for the Program you created in SCCM, so just importing the module will do the repair action for you ??]
    Not sure how else i would run a Import-Module without calling upon powershell.exe. The reason for using Import-Module first is it only creates the abilty of whatever the module(function in this case) on the client. So if i can get the remote
    Import-Module to work, which would then allow me in the future to use an Invoke-Command -scriptblock { Do-This "string" } on the clients. In this case its both an Uninstall and Repair function with an assortment of switches and arguements that will aide me
    in the future in managing our apps. For me to use the Modules, i would need to Invoke-Command as that is how the functions are built.
    Okey so the module does get dumped to the end machine.
    Suppose you have a test machine TEST01 where the Test.psm1 file  (having Test-Function)is delivered through SCCM.
    Then try this and tell if it works:
    PS C:\> $session = New-PSSession -ComputerName TEST01
    PS C:\> Invoke-Command -Session $session -ScriptBlock {Import-Module Test.psm1 }
    PS C:\> Invoke-Command -Session $session -ScriptBlock {Test-Function #inside your Module}#Or Simply try below:
    PS C:\> Invoke-Command -ComputerName TEST01 -ScriptBlock {Import-Modules Test.psm1;Test-Function #inside your Module}
    I think what you are doing is below.....for the example am taking "webadministration" module:
    PS C:\> Invoke-Command -ComputerName Server01 -ScriptBlock {Import-Module web*}
    PS C:\> Invoke-Command -ComputerName Server01 -ScriptBlock {get-website}
    The term 'get-website' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    + CategoryInfo : ObjectNotFound: (get-website:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName : sdwuweb017
    Point here is you need to import the module and work with it in an already opened session....If you specify a computername every time then PowerShell opens the Session does what you want it to do and tears down the session. To persist the importing of the
    module it must be done in a session which we make using New-PSSession and then run the commands against that session.
    I might have misunderstood the problem but this is what I have got so far.
    Hope this helps
    Knowledge is Power{Shell}.

  • Cant change call package on-line

    Hi
    Having decided to cancel my BTB I was persuaded to sign for another year.  In the process I lost my anytime time phone package but was assured I could simply re-add the package. 
    I used to be able to add and amend packages online no problem but since I renewed everytime I try using the change package on the web site I get the following response:
    We're sorry...
    You are currently unable to downgrade your BT Total Broadband option. To choose another BT Total Broadband option and order please follow this link.........
    I don't want to downgrade my BTB rather I want to add anytime to my phone.  Anyone had similar issues.

    Hi stumpie,
    Welcome to the forum.
    We'll probably need to take a closer look at this so we can see exactly what's going on. Can you send in your BT account details and MyBT username and we'll get back to you?
    If you click on my username you'll be able to get our forum mod email address.
    Thanks,
    Stephanie
    Stephanie
    BTCare Community Manager
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post. If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

Maybe you are looking for

  • How do I select multiple contacts for an e-mail?

    Using an iMac and wondering how to send an e-mail to multiple people in my contact list without having to open the contact list every time I select a name.  It would be nice if I could just open the contact list and select multiple people for the sam

  • Adding Fields to People Search Results Page

    Hi Working in SharePoint Online, I've been able to add a few fields to the People Search results page successfully: Organization Office Locator Office Location Work Phone Mobile Phone Home Phone Work Email All of the above fields are working and disp

  • Pooling data from an XML file to another XML file using File Adapter

    Hi, I am trying to Pool data from an XML file to another XML file using File Adapter. I have added "Target Namespace" in both the XML and XSD.The problem is "At the destination given in the FileAdapter" only a blank XML file is created and it doesnot

  • Has anyone been able to register Windows?

    Although my original copy of Windows Vista Business was activated, I was never able to register it. I bought a retail copy of Vista Ultimate (Lenovo will not supply a straight Windows disk) and installed and activated it. But still, when I try to reg

  • Hardening Solaris for Oracle

    Using Titan 4.0 as a hardening tool (part of the hardening process anyway). Question is not so much what to do but what not to do? Is anyone aware of possible issues using the Titan 4.0 hardening scripts (or any other known security measures) that mi