DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: problem in moving export dump file

  1. #1
    Join Date
    Apr 2002
    Posts
    291

    problem in moving export dump file

    Dear gurus,
    I want to take an export of an unused schema. Due to my system is running out of disk space, i want to take the export in a compressed file. For this, i wrote a small script using bzip2. But its not working. Can any one correct this script please....

    $ mkfifo exp_pipe
    $ vi cfusexp.sh
    #!/bin/bash
    cat /u09/mytools/expimp/exp_pipe | /usr/bin/bzip2 --stdout > /u09/mytools/expimp/cfusexp1.dmp.bz2 &
    /opt/oracle/product/8.1.6/bin/exp / owner=CFUSADM file=/u09/mytools/expimp/exp_pipe log=/u09/mytools/logs/cfusexp1.log

    $nohup cfusexp.sh 1 > cfusexp.out 2>&1 &
    $cat cfusexp.out
    /bin/nice: cfusexp.sh: No such file or directory


    Where am i making mistake? If i'm running it using

    $sh cfusexp.sh it's running like a normal export and created a 4G single file. which i can't move to another machine. I want to create through a pipe and export it into a zipped file using bzip2.

    Can any one help me out please......

    Many thanks in advance
    PNRDBA

  2. #2
    Join Date
    Apr 2001
    Location
    Brisbane, Queensland, Australia
    Posts
    1,203
    OCP 8i, 9i DBA
    Brisbane Australia

  3. #3
    Join Date
    Apr 2002
    Posts
    291
    Sorry, i forgot to write my OS and DB version:

    Linux 7.1 and Oracle 8.1.6

    Thanks again
    PNRDBA

  4. #4
    Join Date
    Apr 2002
    Posts
    291
    Excellent explaination Mr.Johnson, But, can i apply the same logic for bzip2 to??? b'coz as far as my knowledge goes bzip2 does still more compression than gzip. Is it true, if so, i want to use bzip2 as my server can't accodomate the export dump files. Please help me.......

    Thanks a lot for your help
    PNRDBA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width