Extract DDL from an exp dmp file

One feature I would find handy is the ability to read an exp dmp file to extract DDL statements from it. Are there any plans to include such a tool?

I assume you are using traditional export/import.
So run the import with show=Y and it will write all the DDLs in the logfile.
Amardeep Sidhu

Similar Messages

  • How do I extract pages from a Secured PDF file

    How do I extract pages from a Secured PDF file?

    Adobe would call that hacking, and don't allow discussion of it in this forum. You should contact the copyright holder and see if they are prepared to release the password, or an unsecured document, to you. If it's something made for you like a bank statement you should tell the bank how inconvenient their choices are.

  • How to extract data from Essbase to Flat File using ODI

    Hi,
    Anyone know how to extract data from Essbase to Flat File using ODI?
    Thanks in advance.
    Regards,
    Sumardi

    Hi,
    Have you read through :-
    Oracle Data Integrator Adapter for Hyperion Essbase Getting Started - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_getting_started.pdf
    Oracle Data Integrator Adapter for Hyperion Essbase User's Guide - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_users.pdf
    If you have read them and are still have a problem at what stage are you having the issues?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Extract data from Oracle in excel file

    Hi,
    I have a requirement where in I need to extract data from Oracle in excel file and the excel worksheet name should be "Data".
    for eg. excel file name "AR Data_DDMMYY" and excel worksheet name "Data"
    I have used the UTL_FILE API to extract the tab delimited data which can be opened in excel but it is not exactly an excel file as the worksheet name is same as the file name.
    I tried using utl_file.fcopy and frename.
    Is there any way to do this using PLSQL?
    select * from v$version;
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE     10.2.0.5.0     Production"
    TNS for HPUX: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - ProductionSample Code:
    declare
    cursor c is
    select * from scott.emp;
    v varchar2(100);
    f utl_file.file_type;
    file_name varchar2(100) := 'AR Data.xls';
    dir varchar2(50) := 'CESDIR191710';
    --select * from dba_directories
    begin
    f := utl_file.fopen(dir, file_name, 'W');
    v := 'EMPNO'||chr(9)||'ENAME'||chr(9)||'JOB'||chr(9)||'SAL'||chr(9)||'HIREDATE'||chr(9)||'DEPTNO';
    utl_file.put_line(f, v);
    for i in c
    loop
    v := i.empno||chr(9)||i.ename||chr(9)||i.job||chr(9)||i.sal||chr(9)||i.hiredate||chr(9)||i.deptno;
    utl_file.put_line(f, v);
    end loop;
    utl_file.fclose(f);
    --utl_file.frename(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls', false);
    utl_file.fcopy(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls');
    end;Thanks
    Imran

    Imran Soudagar wrote:
    Hi,
    I was able to generate the excel 2007 file with the data using the package from below link;
    http://technology.amis.nl/2011/02/19/create-an-excel-file-with-plsql/
    but the requirement is to generate excel 2003 file.
    I tried changing the .xlsx to .xls and it gives a note while opening the file "The file you are trying to open, abc.xls, is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?"Then you have three options:
    1) stop using anton's package and find another one that supports the old and deprecated version of Excel 2003
    2) write your own package to produce an Excel file.
    3) Upgrade your version of Excel to a recent version
    I tried the programs from other links on the forum but I am still getting this message. The client does not want this message to be displayed as the excel file works as an input to another system.
    Can anyone help me with the issue?
    Also, is it true that the programatically generated excel file is actually an xml file which is renamed to .xls and hence it shows the message while opening such files?Yes, Excel supports several different formats for it's files. By default, if you save an XLS files from Excel, it writes it out in a Microsoft proprietary binary format, which you would be hard pushed to replicate easily from PL/SQL. Excel also has the ability to save it's files as XML format, which is more readable and easier to produce programatically, whilst still allowing you to have multiple sheets, formulas and formatting included in it. That's the format that most people who need formatting and multiple sheets opt for when programatically generating their data as excel workbooks. (There's also an SLYK format that people used to use before that, but it's not as flexible)
    If you want to write your own, the easiest thing to do is to start with a blank workbook in Excel, and put in your basic requirements e.g. a couple of named sheets, and some data in different formats (number, date, text etc.) and different formatting options etc. Save that file in XML format from Excel and then open up the file using notepad/wordpad to look at the structure. There'll be a whole load of redundant rubbish Microsoft put in there, but you should be able to figure out the basic structure of XML required to give you what you want.

  • Sending exp dmp file direct to tape

    I am wondering how to send exp dmp file directly to tape, if someone can give me example would help...

    10203 on AIX TL07
    I am trying to exp my db directly to tape because of its big size, wondering this is right command to do that , i will replace /dev/rmt/0m/ according to our setup...
    exp user/password file=/dev/rmt/0m/sid.dmp volsize=50G full=y consistent=y direct=y statistics=none log=/oracle/fullexp.log

  • Possiblity to import any particular table from the full dmp file

    Hi,
    I am using Oracle 10G database.
    I a have dmp file.
    I need to import only a particular from that dmp file.
    Is there any possiblity to import a particular table from the whole dump.
    Thanks and Regards,
    Ansaf.

    Ansaf wrote:
    Hi,
    I am using Oracle 10G database.
    I a have dmp file.
    I need to import only a particular from that dmp file.
    Is there any possiblity to import a particular table from the whole dump.
    Thanks and Regards,
    Ansaf.
    You can specify like below example
    impdp hr TABLES=employees, xxx, xxxCheers

  • Trouble extracting data from a previously written file

    I am trying to extract two arrays from a previously written file, which contains two arrays, seperated by a /t char. The files are saved in this format;
    Wavelength(nm)ower(W):
    *lambda1**power1*
    *lambda2**power2*
    "lambda#" and "power#" are both actually numbers, but I wanted to illustrate that they correlate. 
    Furthermore, with the extracted data, I would like to write a new file, which uses the information (during another sweep) to calculate a third value (called EQE), which is dependant on the power and current at a given wavelength. So while the VI is reading current per lambda, it should also be able to find out what the power value at said lambda was and calculate the EQE.
    The VIs I have so far are attached. The third portion of "problem.vi" is enclosed in a while loop, so it repeats a lot of times.
    Thank you very much
    Solved!
    Go to Solution.
    Attachments:
    Problem.vi ‏36 KB

    MAELV wrote:
    How would I begin from the second line?
    Use a Read Text File function.  Right-click on it and there will be an option to read lines or characters.  If you set it to read lines and leave the number unwired, it will by default read a single line.  You don't care about the header data, so don't worry about the output unless you want to show it on the front panel for debug reasons.  From there, read the rest of the file as you already have.
    MAELV wrote:
    When I have execution highlighted, the wavelength index number seems to get stuck fairly quickly (at say #51) where as the power index continually lower to zero.
    I'm not sure what you mean by this.  Can you post an example file as well so I can play around with what you are seeing?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Read Lines.png ‏5 KB

  • Create a test DB from  the export DMP file

    Hi Gurus,
    I was able to create the DMP file by export and transfer it to the test machine. It is a Windows OS.
    Now in this machine I recently installed Oracle 11g. And I have this export *.DMP file in a dir.
    I need to import the DMP file which into this newly created database to give a test database in 11g.
    I also created the user for which the export is done.
    I need to know how to import the DMP file. I am new to this import-export business.
    Thanks
    Amitava.

    Hi,
    Use IMPDP:
    impdp username/password@dbname full=Y directory=<location of the dmp file> dumpfile=<dumpfile name> logfile=<logfile name to be created>
    Check the below link for more information:
    ORACLE-BASE - Oracle Data Pump (expdp and impdp) in Oracle Database 10g

  • Extract words from JSP into text file

    Hi,
    I have a big problem:
    I want to extract selected words from a jsp file.
    Following are found in one of my jsp file:
    E.g.
    1) <td width="217"><font face="verdana,arial" size=2>ORGANISATION UNIT NAME<font color="#FF0000"> <font
    id="fontMandatory">*</font></font>
    I want to retrieve "ORGANISATION UNIT NAME"
    2)errPrompt(frm.txtDesc, "Maximum length is just 100 character only");
    I want to retrieve "Maximum length is just 100 character only"
    I try String tokenising, then check that is the token ends with ">", then the next token is the one
    I want, then loop until "<" is found. BUT this would not work as there is no spacing between some of
    the tags and the words.(e.g. <p>abc)--> This cauese the whole token to be <p>abc, so the "abc" will
    not be extracted as it does not have a "ends with >" in front of it.
    Even with using ">" as a checking does not work for pop up messages, as it does not have tags(refer
    to e.g 2).
    Please reply a.s.a.p...
    Really urgent!!
    Thank You
    Michelle

    for extracting the HTML tags, u can use DOM/DHTML
    I dont remember the syntxes, how to use, but i know that it is possible, just go thru' the DOM/DHTML
    Regards,
    Ritesh

  • How do i extract pages from a large pdf file?

    I have Windows XP, with Adobe Reader 9 and PDF version 1.4 (Acrobat 5.x) installed. I received a large pdf file (19,000KB) with 25 pages of architectural drawings. I want to extract just 8 pages from that document. Under the Documents Properties Tab, it states page extraction is allowed. How do i do this?
    Morgy1

    I'm not an Acrobat user. But if you have a PDF print driver or if Acrobat 5 5 has a print PDF mode you can tell the PDF print driver to print the page number that you want and it should prompt you to save the individual page in PDF format. If you don't have a PDF print driver you can Google PDFCreate and got to its website and download it and install it.

  • Extract DDL from Database

    Hi all,
    I am trying to extract the DDL statements for my database indexes. I am using Oracle 8i. The two option:
    (1) You could run the export utility with ROWS=NO, but the output was hard to re-use because of quoted strings.
    (2) DBMS_METADATA.GET_DDL but it is only available for Oracle 9i and above. So it does me not good.
    Are there any other option beside (1) that I can use in Oracle 8i. Any suggestion would be appreciated.
    Thanks,
    Ravi

    You could run the export utility with ROWS=NO, but the output was hard to re-use because of quoted strings.You haven't mentioned the OS.
    you can create the indexfile(ddl file) and remove the quoted strings using global replacement and you would have a clean SQL file with DDL's.

  • OdiReadMail  - extract field from and subject in file

    Tool odiReadMail extract the body of the message in to file.
    I wont extract in this file fields form e-mal "from" and "subject". How i can do it?

    Yes. I want to extract fields "subject", "sender" and body mail message and place them in a file.
    I think, that it is necessary to change odiReadMail. But I do not know where to find source codes of this ODI tools.
    Message was edited by:
    RAD

  • Extracting text from .doc,.ppt,.pdf files

    How can i extract ascii text from the file types like .doc , .ppt , .pdf ,. xls ..etc.
    Any tips/hints would be helpful
    Thanks
    Rama

    HI I tried for pdf, but didn't succeed
    Following is for text/Doc files
    <pre>
    import java.io.*;
    public class Doc
         public static void main(String[] args)
              try{
                   File file=new File("c:\\downloads\\WP2001.doc");
                   LineNumberReader buffer=new LineNumberReader(new FileReader(file));
                   StringBuffer buff=new StringBuffer("");
              boolean valid=true;
              while(valid)
                   //System.out.println(buffer.readLine());
                   buff=buff.append(buffer.readLine()+"\n");
                   if(buffer.read()==-1)
                        valid=false;
                   else
                   buffer.setLineNumber(buffer.getLineNumber()+1);
                   System.out.println(buff);
              catch(Exception fne)
                   System.out.println("File Not Found"+fne);
    </pre>
    pathreading

  • Extracting text from the iWeb Domain file

    Hi Folks
    We used iWeb to run our travel diary when we were travelling last year, I now want to take all our diary entries and add them into another website I'm building. I'm aware that I can fire up iWeb and just copy and paste the text but with over nine months of diary entries it's going to be a laborious task and quite frankly I'd rather have root canal work!
    Surely I must be able to extract the text or the daily entries from the Domain file, I just don't know how.
    Does anyone out there know or have any ideas how it can be done?
    Many thanks
    Potterman
    17" Powerbook G4   Mac OS X (10.4.9)  

    You need only use a browser to copy text.
    Open the page in a browser and drag the cursor across the text portion. Once highlighted Command-C to copy.
    Use paste Command-V to add the text into the other software or html files. You could even just paste the whole shebang into one large TextEdit file to add at your leisure.
    Even hundreds of pages would only take an hour. It would take longer than that to open iWeb, then each page then copy and switch to another app.
    Of course this will only work if the source really is text. iWeb has a habit of converting text to .png files when Web safe fonts are not used.

  • Problem extracting image from metadata of MP3 file

    I am having a problem with MP3 metadata.
    I am running the example AudioPlayer2 from Chapter 8 from Pro JavaFX 2: A Definitive Guide to Rich Clients with Java Technology .
    The problem that i am having is that the image is not displayed for some of the files i try to play, but others work fine.
    All the MP3's play fine and display other metadata tags.
    I am using Tag Renamer to set my MP3 tags.
    The only change to the example code is to line 128, I change the url to a file.
    Has anybody else run into this problem and if so Help.
    Thank You
    Gary

    >
    ...my problem is that I've created a little GUI in Eclipse and in addition to having a src folder which contains the following packages GUI and Core, I then have a folder called cards which contains 52 card images and a background images, now when I run the application from Eclipse all is well and my images show, but when I create a JAR file and try to run the GUI that way none of the images are showing for some reason and was hoping someone could please tell me is this some to do with the paths etc and how to fix ...>This is virtually an FAQ.
    The String based constructor for an ImageIcon presumes the String is the path & name of a File.
    Your IDE is most likely making a Jar file containing all classes and resources, so the only way to access those resources is via URL.
    To obtain an URL to an image in a Jar on the application's runtime classpath, do the following..
    URL iconUrl = Thread.
      currentThread().
      getContextClassLoader().
      getResource("Cards/table.jpg");
    final ImageIcon icon = new ImageIcon(iconUrl);

Maybe you are looking for