How to generate all index creation scripts without it's storage clause?

How to generate all index creation scripts without it's storage clause?

Execute this before running the actual dbms_metadata.get_ddl
exec dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'STORAGE', FALSE);
SELECT DBMS_METADATA.GET_DDL('INDEX',a.index_name) FROM USER_INDEXES A;-Anantha
Edited by: Anantha R on Sep 30, 2009 11:40 AM

Similar Messages

  • How to get all INDEXes from a database

    How to get all INDEXes in a database? I need to store them in script file (.SQL). My database version is 10.2.0.3.0.
    Edited by: Iniyavan on Sep 18, 2009 1:39 PM

    --Thanks, Koppelaars. The second query works. But I'm unable to store in spool file. May be it's due to CLOBs in the output. I did the following:
    set head off
    set feedback off
    set linesize 32727
    set pagesize 50000
    spool c:\indexes.sql
    select dbms_metadata.get_ddl('INDEX',INDEX_NAME,'MYSCHEMA')
    from user_indexes;
    spool off
    --In the spool file, I find only this
    CREATE UNIQUE INDEX "MYSCHEMA"."A" ON "MYSCHEMA"."BNK_DEALID" ("DEAL_ID")
    PCTF
    CREATE INDEX "MYSCHEMA"."ACCENT_RAC_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "VAL
    CREATE INDEX "MYSCHEMA"."ACCENT_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "APP_REF
    CREATE UNIQUE INDEX "MYSCHEMA"."ACCENT_X" ON "MYSCHEMA"."ACCENT" ("DEAL_ID")
    P
    CREATE UNIQUE INDEX "MYSCHEMA"."ACCNAV_X" ON "MYSCHEMA"."ACCNAV" ("SCHEME", "ACCNA
    --How to get all the DMLs in one SQL file?
    --Nagappan, I'm using WIN.

  • How to generate barcode name in scripts

    hi,
       how to generate barcode name in scripts.what is the procedure tell me brief with example.what is the use of barcodes

    Hi,
    You have to use spacila BARCODE printers for that.
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    Check out the link for Adding Your Own Bar Code:-
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94fc51ea11d189570000e829fbbd/content.htm
    Check out the link for barcodes in SAP
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    Hope this helps.
    Regards,
    Richa

  • How to generate all forms at a time in designer using form generator?

    Hi All,
    I am using designer 9.0.4.6 .
    I am having so many forms in the module ....
    So how can I generate all forms at time using form generator ?
    Thank you
    sai

    There is a batch generate option inside the menu of the Design Editor. You can't batch generate by selecting all your forms and choose generate, this will only generate one of the selected forms.
    Regards,
    Mark

  • How to generate all possible keys for DES algorithm

    Hello every one,
    I want to generate all the possible key combinations for the DES algorithm 56-bit "actuallly 64 but the last 8 bits are just padding", so can anyone plz help how can i do that? or give me article or something that might help me?
    Thanks in advance,
    Amr M. Kamel.

    I know that but who said that it will be one
    processor it will be on distributed and clustered
    environment :). I just want to know how to generate
    the keys "or write binary".
    Thans again for your helpA cluster of 2285 machines will still take a year! The simplest algorithm is to just count from 0 to 2^56 .
    If you are thinking of cracking DES then there is a Book I have on my shelf 'Cracking DES' published by the 'Electronic Frontier Foundation' ISBN 1-56592-520-3 . It contains the C code and describes the hardware used. The hardware cost was about $100,000 and it cracks DES in about 3.5 days.
    Assuming Moore's law ( http://en.wikipedia.org/wiki/Moore's_law ) applies then it should now take about much less than a day and cost much less than $100,000. BUT - it will take a long time using basic computers.

  • How to generate IDOC while creation of Sales Orders

    Hi
       If i create a sales order means.. i want to trigger a IDOC with this ORDER data .. how can  we do this.. when ever i'm creating a sales order it should be automatically trigger a IDOC , Because  ehen ever sales ordre  was created in R/3 system it should be transferred to some destination.. all the ALE configurations are done.. .
        so, how can we trigger an IDOC based on Orders creation..
    Thanks
    Babu

    Hi,
    Here is the link
    [Re: Idoc creation;
    Regards
    Sudheer

  • How to select all  indexes in a schema , for gathering the statistics

    In OEM 10g , How can we select all the indexes in a particular schema for gathering the statistics.
    For example , consider the schema got 1500 indexes. When i clicked on select all , it is selecting 10 indexes in one stretch ( all which are present in that page).
    For 1500 indexes , i have to make 150 such selection.
    How can we avoid it.
    In 9i OEM, its quite simple. With just 1 mouse clicke , we can select all the indexes .
    Thanks
    Naveen
    314 439 9554

    On the Administration Tab of the instance, choose Statistics Management - Manage Optimizer Statistics, then Gather Optimizer Statistics and click Continue. You then get a choice of Database, Schema, Tables or Indexes.
    Stupid that you have to supply an OS username and password to do this but anyway.

  • How to generate reports in text file without totals

    Hi!!!
    Does anybody knows how can I generate a report in text file
    (separated by |), but without the lines with totalizations ?
    In my application, the user can choose if he wants the output
    in HTML,PDF or a text file. So, the solution to this question
    must be implemented in code.
    Thanks a lot,
    Anderson.

    If you put a formatting trigger on any item or frame and return FALSE, it will disappear.
    So the totals need to be within a frame which has a trigger which returns false if text file is chosen.

  • How to general a db creation script from exiting db?

    alter database backup controlfile to trace;
    the info from the controlfile seems not enough,
    any other way to generate scripts like:
    create database
    create rollback segment
    alter rollback segment r0 online;
    create tablespace temp datafile
    create tablespace tools datafile
    create tablespace users datafile

    You can use the stored procedure as part of your query.
    In fact when you build the report the store procedure
    should show up in your query builder alongwith tables and views.
    Thanks,
    Prasad.
    Hi,
    I need help to call a db stored procedure below from report
    builder, when it is called, I need to pass in proper parameters
    like deptno in the sp.
    1.Where to call and What the correct command? looks like I have
    to have select statement to buile a report, how to use select
    statement to call sp or any other way to call?
    2. how to pass parameters in the sp, for a simple query I can
    use bind variable, is it possible to use bind variable to call
    sp and what the syntex?
    3. if possible can you show me a example?
    create or replace package testpkg AS           //working
    TYPE sumCur IS REF CURSOR;
         procedure test(
    dno IN NUMBER,
              sum_cv IN OUT NOCOPY sumCur);
    END;
    CREATE OR REPLACE PACKAGE BODY testpkg AS     
         procedure test(
    dno IN NUMBER,
              sum_cv IN OUT NOCOPY sumCur) AS
              sql_statement VARCHAR2(100);
         BEGIN
              sql_statement :='SELECT dname, from dept where
    deptno = :d ';
              OPEN sum_cv FOR sql_statement using dno;
         END test;     
    END;
    Thanks very much

  • Fireworks: How to find document index for scripting?

    Can anyone share a simple method for obtaining the document index of an active Fireworks document, within the array of open documents? Normally, the current document is accessed by using fw.getDocumentDOM(), but I'd like to obtain the actual array index value (e.g., 0, 1, 2, 3, etc.) to use elsewhere in a script.
    I've created a function to obtain this index value, but it's ungainly: It compares entire DOMs that have been converted to source. This requires too much memory or processing and nearly brings the script to a halt. I need something simpler.
    var dom = fw.getDocumentDOM();
    function documentIndex() {
        if (fw.documents.length == 1) {
            return 0;
        else if (fw.documents.length > 1) {
            var i = 0;
            for (i = 0; i < fw.documents.length; i++) {
                if (fw.documents[i].toSource() == dom.toSource()) {
                    return i;
                    break;
    I've considered using a document property like docTitleWithoutExtension, filePathForRevert, or filePathForSave as a basis for comparison between documents, but these are unreliable: They won't work if the documents in question have have not yet been saved. 
    I figure there must be a simple method, I just don't know what it is.

    In case anyone's interested, here's the workaround I'm now using to find the position of an active Fireworks document within the array of open documents (a.k.a., the document index). I'd still love to hear from anyone who can suggest a simpler method.
    The basic idea is to first look at two properties of the active document—docTitleWithoutExtension and filePathForRevert—and, where possible, compare those values to that of the same properties within each open document. On their own, each property has loopholes, which is why I'm combining them. (For example, it's possible to have two documents with the same title—if they have different extensions or file paths. Likewise, it's possible to open multiple copies of an unsaved document, all with the same filePathForRevert value.)
    New or untitled documents demand an entirely different criteria. I'm not crazy about this approach, but it seems like the best option at this point: When you can't find a DOM property to reliably distinguish one document from another, you temporarily write a distinctive value into a property of the document you want to find. Think of it like tagging a wild animal. In this case, when the active document lacks both a docTitle and file path, I write a crazy piece of "alt text" gibberish into the defaultAltText property and use that to identify my active document. (Even though I'm taking care to restore the original "alt text" afterwards, I don't love this method... but it seems to work.)
    var dom = fw.getDocumentDOM();
    function documentIndex() {
        if (fw.documents.length == 1) {
            return 0;
        else if (fw.documents.length > 1) {
            var docTitle = dom.docTitleWithoutExtension;
            var filePath = dom.filePathForRevert;
            if ((docTitle != "") && (filePath != null)) {
                var i = 0;
                for (i = 0; i < fw.documents.length; i++) {
                    if ((fw.documents[i].docTitleWithoutExtension == docTitle) && (fw.documents[i].filePathForRevert == filePath)) {
                        return i;
            else {
                var originalDefaultAlt = dom.defaultAltText;
                dom.defaultAltText = "toRtoiSeOfThEsLowAcoRnsRejoiCe";
                var i = 0;
                for (i = 0; i < fw.documents.length; i++) {
                    if (fw.documents[i].defaultAltText == dom.defaultAltText) {
                        dom.defaultAltText = originalDefaultAlt;
                        return i;

  • How to generate all the links of the java api methods

    Hi all,
    I noticed from my docs that the JAVA API methods are not linked. They are just static text. How can i link all the java api methods to a root url examble: java.sun.com/j2se/docs/javax/JFrame#pack()
    java.sun.com/j2se/docs/javax/JFrame#setVisible()
    java.sun.com/j2se/docs/java/sql/ResultSet#executeQuery()
    and so on.
    Thank you in advance.

    It sounds like you'd like to link to our docs on java.sun.com.
    You can do this using -link or -linkoffline
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javadoc.html#link
    Start by reading the section "Choosing between -linkoffline and -link"
    Basically, try this option first:
    -link http://java.sun.com/j2se/1.4/docs/api
    If this fails (because your shell cannot access java.sun.com),
    then copy package-list from java.sun.com to your current directory,
    then use this option:
    -linkoffline http://java.sun.com/j2se/1.4/docs/api .
    Notice that the second argument is a dot "." to indicate
    that package-list is in the current directory.
    -Doug Kramer
    Javadoc team

  • How to generate license for AIP-SSM without PAK-number?

    Hello! I’m sorry for my English. I have a problem with generating license for AIP-SSM. My contract with SMARTnet service is activated, but I don’t have a PAK-number. How I can generate a license for updating my module?

    Alternatively you can always write an email to [email protected] with your serial number and they should be able to provide you the license for any cisco device.
    Sachin

  • How to generate PDF from XML output without XML publisher

    Hi,
    I am facing a problem while splitting the rdf generated XML output.
    Problem Description:
    I have a oracle invoice report which runs once every day (scheduled program). This report fetches me the invoices generated on that day and needs to be Mailed / Faxed to the customers.
    So i developed the report in such a way that it generates the output order by customers...since the output generated will be as one .out file in APPLCSF/out directory...the .out file needs to be splitted by customers, for which i have written a cursor which takes the data of the main query and submits that many requests as many as customers are there.....There is a possibility of having 1000 customers per day also. If that is the case then my main program will fire that many requests.
    Is there a different approach......any inputs are highly appreciated.
    Also, i am generating the output in XML format. Is there a way from which i can directly generate a PDF from that XML output rather using any other tool.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

    Hi,
    with Reports Bursting and the defined "distributions" it's possible to have one report splittet to several parts with different receipients. Have a look at http://download-uk.oracle.com/docs/cd/B14504_01/dl/bi/B13673_01/pbr_dist.htm.
    With xsl-fo it's possible to create pdf out of xml ... that's what xml publisher is doing.
    Regards
    Rainer

  • How to delete all my photos from my iphone for storage space

    my photos are taking up a large portion of the storage on my phone...i've uploaded them to my computer and now i'd like to delete them all so i have more room for music. how can i delete them for good on my phone? is there any way to delete the following albums (or at least the pictures from the albums) : events from my mac, faces from my mac, and the last 12 months album. i just want to be able to put more music on my phone but my pictures are taking up more than half of the storage! please help

    If you've synced photos to your iPhone through iTunes, change your sync settings in iTunes to not sync any photos and apply the change.
    That will remove all synced photos, but not photos that you've taken with your iPhone's camera -- for those if you've imported them to your computer then to remove them you have to delete them one by one from the iPhone, or use your computer (assuming you have a Mac, iPhoto should allow you to select and delete what's stored on the iPhone, except for synced photos via iTunes).
    Then there's iCloud photos.  iCloud only holds the last 30 days of photos, but your device will continue to hold them up to the 1000 photo limit, regardless of how old they are.  To reduce these, you can delete one by one, or if you Restore your iPhone that will strip off all iCloud photos, and add back only the last 30 days of iCloud photos, assuming you leave the Photo Stream setting ON in iCloud settings.

  • How to generate a feild to use it in group by clause

    Dear all ,
    i have the following select statment
    SELECT MIN(SUBNO) MIN_SUBNO, MAX(SUBNO) MAX_SUBNO
    FROM(SELECT SUBNO
    FROM IAA_HISTCALLS
    order by 1)
    where i need to select in the outer select statement a feild that will be repeated for x number of records inorder to group by this feild keeping in mind that i cannot depend on rowid as i'm doing an order by subno in inner select statement

    Like this..?(instead of 100, 5 records are selected..)
    SQL> select empno,ename,sal,
      2     ceil(row_number() over(order by sal)/5) grp
      3  from emp;
         EMPNO ENAME             SAL        GRP
          7369 SMITH             800          1
          7900 JAMES             950          1
          7876 ADAMS            1100          1
          7521 WARD             1250          1
          7654 MARTIN           1250          1
          7934 MILLER           1300          2
          7844 TURNER           1500          2
          7499 ALLLEN           1600          2
             1 TEST             2000          2
          7782 CLARK            2450          2
          7698 BLAKE            2850          3
          7566 JONES            2975          3
          7902 FORD             3000          3
          7788 SCOTT            3000          3
          7839 KING             5000          3
    15 rows selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Actual settlement

    Hi All     My name is vivek chaubey. i am working in tata steel as a fi/co consultant.    when i am doing actual settlement from tcode ko88. system is adding existing    down payment amount to. actualy i made PO and GR, in that PO i used that    inte

  • Search list button active in Find Mode

    Hi all, On the item master in Find mode, the search list button on the preferred vendor field is not working. Is this correct? Thanks, jane

  • Technical workflow with Webservices

    Hi everyone. I've developed a BPM that has as outbound message, a SYNC webservice. As output, the response of the webservice. In other interfaces, using FILE adapter as outbound, if i get errors, i can view technical workflow clicking in 'PE'. With w

  • MM Pricing Schema - Contract item price not picked

    Hi All, For a certain Material and Vendor, when there is a Info Rec Condition and Contract Condition maintained, I thought having the Key table for Contract (016) above the Key table for Info Rec (017) in the Access Sequence for PB00 would take the C

  • HT1386 My ipod is syncing but music is not appearing onto it, help?

    It's appearing in itunes and syncing but when i check the content tab or the ipod's library itself, nothing is there.