How to extract a .tar.gz file in IBM AIX 6.1

we are in R12.1.3 on IBM AIX 6.1,we took the cold backup of prod Instance using the below command
nohup tar cvf - /u01/oracle/prod/db | gzip > /u01/backup/backup_prod/prod_db.tar.gz &
nohup tar cvf - /u01/oracle/prod/apps | gzip > /u01/backup/backup_prod_8035/prod_apps.tar.gz &
we tried to extrac the above 2 .tar.gz files on the same server using below commands, they are extracting on source location i.e /u01/oracle/prod/db.so original files getting updated with old one
cd /u01/backup/backup_prod_8035
$gunzip < prod_apps.tar.gz | tar xvf -
$gunzip < prod_db.tar.gz | tar xvf -
Please let me know how to extract this files in the same folder with out affecting the original files
Thanks in advance

Helios,
Thank you very much for your reply
Is it possible to do both gzip and tar -xvf in single commnd because we don't have that much space on the server
when we execute gzip -d /u01/backup/backup_prod/prod_db.tar.gz it will create file as prod_db.tar again we need to execute
tar -xvf /u01/backup/backup_prod/prod_db.tar
In the above command either we need to give . to untar the files in the same directory same like Linux.
With out . in aix the untar files are over riding on source location i.e /u01/erp/prod
Please advice

Similar Messages

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • How to extract Source from  .wda file

    Hi WebDynpro Experts,
    Do you know how to extract source from .wda file. I appreciate your help and will award points for correct answers.
    Thank you
    Maruti CR

    Hi,
    U wont be able to extract source code from wda file.It contains
    only class,xml and mf  files.The only thing that u would be able
    to use is class file which u need to convert to .java file
    by .class to .java converter.
    Hope this will clear ur doubt.Still if u want to try just extract
    wda file using winzip.go on doing this untill u find unzip files.
    Regards
    Surender Dahiya

  • How to extract XML from EAR file?

    how to Extract weblogic-application.xml file from StellentPortlets.ear file ???

    http://en.wikipedia.org/wiki/EAR_(file_format)
    An EAR file is a standard JAR file (and therefore a Zip file) with a .ear extension, with one or more entries representing the modules of the application, and a metadata directory called META-INF which contains one or more deployment descriptors.
    7zip is a nice tool for me but most any should be usable.

  • Extract multiple tar.gz files

    hey people
    I.ve got a problem here. I.ve got a folder with about 100 .tar.gz files, and I want to extract them all with 1 command. How do I do this? "tar zxvf *.tar.gz" doesn.t work...
    cheers

    find . -name "*.tar.gz" -exec tar xvzf {} ;

  • How to extract data from dmp file to oracle express edition database

    Hi,
    I wanted to extract a oracle dump file in oracle express edition database. Is it possible? If yes, then can anyone please guide me how to do it?
    Thanks

    Hi,
    This might help
    Backup/Export Question!
    Br,Jari

  • Extract A tar.gz file

    Ok guys,
    I have a program that extracts the contents of a tar.gz file. Right now it does extract one of the files and then throws an error:
    com.ice.tar.InvalidHeaderException: bad header in block 9 record 10, header magi
    c is not 'ustar' or unix-style zeros, it is '1141115144674854', or (dec) 114, 11
    1, 51, 44, 67, 48, 54
            at com.ice.tar.TarInputStream.getNextEntry(Unknown Source)
            at Extract_TAR_GZ_FILE.untar(Extract_TAR_GZ_FILE.java:37)
            at Extract_TAR_GZ_FILE.run(Extract_TAR_GZ_FILE.java:55)
            at Extract_TAR_GZ_FILE.main(Extract_TAR_GZ_FILE.java:67)
    bad header in block 9 record 10, header magic is not 'ustar' or unix-style zeros
    , it is '1141115144674854', or (dec) 114, 111, 51, 44, 67, 48, 54 The class that extracts the files:
    import java.io.*;
    import com.ice.tar.*;
    import javax.activation.*;
    import java.util.zip.GZIPInputStream;
    public class Extract_TAR_GZ_FILE {
         public static InputStream getInputStream(String tarFileName) throws Exception{
          if(tarFileName.substring(tarFileName.lastIndexOf(".") + 1, tarFileName.lastIndexOf(".") + 3).equalsIgnoreCase("gz")){
             System.out.println("Creating an GZIPInputStream for the file");
             return new GZIPInputStream(new FileInputStream(new File(tarFileName)));
          }else{
             System.out.println("Creating an InputStream for the file");
             return new FileInputStream(new File(tarFileName));
         private static void untar(InputStream in, String untarDir) throws IOException {
           System.out.println("Reading TarInputStream... (using classes from http://www.trustice.com/java/tar/)");
          TarInputStream tin = new TarInputStream(in);
          TarEntry tarEntry = tin.getNextEntry();
          if(new File(untarDir).exists()){
               while (tarEntry != null){
                  File destPath = new File(untarDir + File.separatorChar + tarEntry.getName());
                  System.out.println("Processing " + destPath.getAbsoluteFile());
                  if(!tarEntry.isDirectory()){
                     FileOutputStream fout = new FileOutputStream(destPath);
                     tin.copyEntryContents(fout);
                     fout.close();
                  }else{
                     destPath.mkdir();
                  tarEntry = tin.getNextEntry();
               tin.close();
          }else{
             System.out.println("That destination directory doesn't exist! " + untarDir);
         private void run(){
              try {               
                   String strSourceFile = "G:/source/BROKERH_20080303_A2008_S0039.TAR.GZ";
                   String strDest = "G:/source/Extracted Files";
                   InputStream in = getInputStream(strSourceFile);
                   untar(in, strDest);          
              }catch(Exception e) {
                   e.printStackTrace();          
                   System.out.println(e.getMessage());
         public static void main(String[] strArgs) throws IOException{
              new Extract_TAR_GZ_FILE().run();
    }The file I tested with can be found here:
    http://www.yourfilehost.com/media.php?cat=other&file=BROKERH_20080303_A2008_S0039.TAR.GZ
    Any help? Thanks a bunch.

    I fixed the problem. It was the ftp transfer of files program which wasn't set to BINARY mode. I edited that program and then rerun the above class and boom.. It worked.
    Thank you guys for responses.Great! Glad you got it working.
    ~

  • How can I enable the ias transaction on IBM AIX.

    Hello:
    I have a question.I install the ias sp1 for aix. ias can't enable the
    trancsaction.
    I find if you want to disable the transaction on NT.You can disable
    through the kregedit-> software\iplanet->Application
    Server->6.0->CSCO->TXNMGR->isEnable=0.
    You can get the image "Transactions aren't enable on the server" in ias
    admintool.and you can't config the transaction.
    I install the ias sp1 on IBM AIX.I find I can't enable the
    transaction.Like I disable the transaction on NT. I try to enable the
    transaction.I use the db_setup.But I can't enable the transaction.How can I
    do? Please help me!!
    Thank you.

    Hi,
    If you want to enable the transaction in AIX, use kregedit and enable the
    same way as you enabled in NT. db_setup is not a utility to enable
    transactions, where as to enable the data source for processing transactions.
    Regards
    Raj
    "Dr.K" wrote:
    Hello:
    I have a question.I install the ias sp1 for aix. ias can't enable the
    trancsaction.
    I find if you want to disable the transaction on NT.You can disable
    through the kregedit-> software\iplanet->Application
    Server->6.0->CSCO->TXNMGR->isEnable=0.
    You can get the image "Transactions aren't enable on the server" in ias
    admintool.and you can't config the transaction.
    I install the ias sp1 on IBM AIX.I find I can't enable the
    transaction.Like I disable the transaction on NT. I try to enable the
    transaction.I use the db_setup.But I can't enable the transaction.How can I
    do? Please help me!!
    Thank you.

  • How to extract data from a file?

    o to all labview users.
    I am currently learning labview to control the network analyzer hp8720
    as part of my project. Through my program, i am able to do a sweeping
    function with my NA and the sweeping data are written to txt file. and
    i want to extract the db value corresponding to a specific frequency.
    my txt file is like the following:
    MHz   dB
    103     0.015
    168     2.09
    201     2.67e01
    I know that we can extract certain selected data by using the some palettes like "read file" and "scan file"
    I tried using "scan file" and i couldnt extract the data(ex: the dB
    value corresponding to 168MHz) i want successfully....i checked the
    help file and did put some syntax in the format string like (%[^2.09]),
    but it seems the "scan file" palette was only able to scan the first
    line, which gave me "Mhz db".....
    is the format of my txt file not correct?
    also, i tried using "read file" palettle..and i set the count to "-1"
    to read the whole file. someone suggested on the forum that it is
    easier to read the whole file and then use array to extract the
    selected data.
    How can i write to the array using "read file" while specifying the what range of data i want?
    Instead of doing that, maybe i can just simply write the db value
    related to the specific range of frequency while the program is in a
    while loop doing sweeping?
    It would be greatly appreciated if someone could me some guidance.
    thank you very much
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate

    Hi, I have been reading this post It is very interesting and also I
    need help. I am doing a project involving scattering matrix (S
    parameter) using frequency and time domain analysis. In order to make
    use of S parameter in frequency domain from Vector Network Analyzer, I
    need to convert S parameters from frequency domain (sweep from 8.2 GHz
    to 12.4 GHz) to time domain using inverse chirp z transform or any. I
    have no idea how to implement it. Could you please help or guide me how
    to implement them. I am using Labview 8.0 and matlab. Please see the attached file for the data in frequency domain both linear , dB magnitude and phase.
    Thank you so much for any help.
    Tantong
    Attachments:
    S11 Phase.xls ‏70 KB
    S11 dB magnitude.xls ‏70 KB
    S11 linear magnitude.xls ‏70 KB

  • How to extract data from .xltm file in a (dataset, datatable or a list) using wpf c#

    Hi all,
    As we can get data from .xls, .xlsx file in a dataset. Now i want to read all the entire data from .xltm file.
    I also want to get all sheets name from .xltm file. I am using .Net framework 4.5, Visual studio 2012.
    Please help me. I am unable to extract it. It is urgent.

    Hello Kalpna Bindal,
    I just investigate this issue and use the following way but it does work:
    private void Button_Click(object sender, RoutedEventArgs e)
    // initialize connection
    OleDbConnection con = new OleDbConnection();
    con.ConnectionString =
    "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\Fruits1.xltm;Extended Properties=\"Excel 12.0 Xml;HDR=YES;\"";
    //pass query to Insert values into Excel
    OleDbCommand cmd = new OleDbCommand();
    cmd.CommandText = "insert into [Sheet1$] values('')";
    cmd.Connection = con;
    // EXECUTE QUERY
    con.Open();
    cmd.ExecuteNonQuery();
    con.Close();
    I then did a research about this issue and find the following case:
    http://stackoverflow.com/questions/22225017/reading-excel-xltm-files-programmatically
    To test whether it is possible I use the following code in WPF:
    Microsoft.Office.Interop.Excel.Application xltmApp = new Microsoft.Office.Interop.Excel.Application();
    xltmApp.Visible = false;
    xltmApp.ScreenUpdating = false;
    Workbook xltmBook = xltmApp.Workbooks.Open(@"D:\Fruits1.xltm");
    Worksheet xlworksheet = xltmBook.Worksheets.get_Item(1);
    for (int i = 1; i <= 1; i++)
    for(int j=1;j<=1;j++)
    string str = (string)(xlworksheet.UsedRange.Cells[i, j] as Microsoft.Office.Interop.Excel.Range).Value;
    MessageBox.Show(str);
    The result is that I can read this .xltm file and read the firstline without problem.
    I would think you can also use this way to work with your .xltm file and output it to your application.
    For more details about how to fill to your WPF, common wpf and excel thread will be helpful:
    http://www.codearsenal.net/2012/06/c-sharp-read-excel-and-show-in-wpf.html#.URPyfPJJocU
    http://www.dotnetcurry.com/showarticle.aspx?ID=988
    http://mozouna.com/Blog/2013/03/28/wpf-reading-and-writing-to-excel-file-with-c/
    By the way, for WPF case please post on WPF forum instead of C# forum.Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to extract data from xml file and store that data inti data base table

    Hii All
    I have one table that table contains one column that column contain an XML file
    I want to extract data from that XML file and want to store that extracted data into an other table.
    That xml file has different different values
    I want to store that values into table in diff diff columns

    Hi,
    I am also facing the same problem.I have a .xml file and i need to import the data into the custom table in oracle database.
    Can you please let me know if you know the solution how to do it in oracle apps.
    Thanks,

  • How to extract data from xml file in owb 10.2?

    I have to load data from an xml file into a relational table , may i know how to do it in owb 10.2.

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • How to extract a tab delimiter file on appli server in openhub destination

    Hi All,
    in my scenario i want download a file on application server in tab delimiter file where iam not able to do it.while creating  OHD iam selecting seperator feild has ';'(semicolan).tab delimiter fule format is not posible with semicolan and even i tried it with "comma" also but not getting the tab delimiter formate.please help how to get that particular format..
    thanks
    vamshi..

    Hi Dashyam,
    May help you:----
    with comma delimiter file read
    I want to download comma delimiter file on to presentation server from inte
    http://wiki.sdn.sap.com/wiki/display/ABAP/UploadaCommaDelimitedCSVfilethatcontainscommasindata+fields
    Regards,
    Suman

  • How to extract data into excel file from more than one internal table

    Hi Guys
                 I want to extract the data from module pool screen.
                 In screen there are two internal tables
                      1. header
                      2. items.
                 I want to extract the data as same format looking in the screen.
                 With simple Download FM we cannot do this one, because in this we   will display as continuous rows.
    <b> But my requirement is saving as table with heading, date, header details</b>
    Note that it is not the simple down load . Suggest me with example  coding

    Hi Guys,
      I think it depends on which software you will use to see the result.
      If U are using Excel, it's very easy to achieve it.
      1. Define a structure as string, the lenth depend on your need.And use the structure to define a internal table, supposed is as A..
      2. Concatenate the head data using some separator, for ex. a comma; and then add this into A.
      3. The above step's concatenate is depend on your format for request;For ex, you want to place the date at the 4th cell in excel, that means you should put three separator before the date field.
      4 Concatenate the item data into the download table.
      5. Download the table to file.
      6. Display the file, using your defined separator.
    Hope this helpful.
    Bob

  • How to extract outline to flat file

    Hi ,
    I want to extract outline from the ASO cube. cube is in the version 7 essbase.
    what can be the methods to extract the outline with data.
    thanks
    r

    user8738287 wrote:
    i should run the outline installer with oracle installer? No, you need to install the Essbase client with the Oracle installe.. The Outline Extractor needs the Essbase Client on the machine to run.
    i get this error runtime error 53 file not found :esbapin.DLLEsbapin.dll is the VB API dll installed as part of the Essbase Client.
    Tim Tow
    Applied OLAP, Inc

Maybe you are looking for

  • R/3 Reports in the Enterprise Portal

    Hello, I would like to know if anyone has put R/3 reports in the Portal.  What type of report or query did you use?  How did you get it to populate in the Portal?  How do you create the iView?  What are all the methods of getting R/3 reports into the

  • Database Exception Handling Error

    Hi Platform: BPEL/SOA Suite 10.1.3.3 I created an async BPEL process that does a simple insert into a database, and added error handling to ensure that database errors are trapped and interested parties notified when errors occur. To test the excepti

  • Re: Invalid MAC Code?

    I am having the same problem (switching my broadband from o2 to BT and being issued an invalid mac code) and i am getting nowhere fast.  My broadband with o2 worked very well for well over a year.  The wireless router was good enough to let me son pl

  • Second (!) external monitor lagging after OS X update

    Hi, I have a second external monitor connecte to my MBA mid-2012. This monitor runs via a USB - DVI link. The first external monitor runs via the thunderbolt connection. Under the previous OS X things were very fine - now, there is a delay on the sec

  • ITunes and computer freezes when syncing

    My iPod and iTunes work fine separately, but when I sync my iPod, it'll sync a couple songs/photos/videos and then suddenly freeze which freezes my entire task bar. I use windows vista and itunes 7.6.1 and I haven't had this problem before.. What's t