www.1q.co.kr(park1q.com)

ID :  Password : Auto  

   ȸ¿ø:0¸í / ¼Õ´Ô:2¸í
 

 

Technote

ÀÚ·á ¹× °ü¸®ÆÁ

  • DBA Notes
  • Q & A

    ºÏ¸¶Å©
  • Asktom
       (Oracle ÀÇ ´ëÇ¥ Forum)
  • Technical Bulltin(KR)
       (±â¼úÁö¿ø°Ô½ÃÆÇ)
  • Dbazine

  •  

     


     Script For Exporting With COMPRESS under UNIX
    park1q  2013-04-26 14:39:18, Á¶È¸ : 5,189, Ãßõ : 1385
























    ¹®¼­ ID: °øÁö:1015589.6
    Á¦¸ñ: Script For Exporting With COMPRESS under UNIX
    À¯Çü: PROBLEM
    »óÅÂ: PUBLISHED











    ÄÁÅÙÆ® À¯Çü: TEXT/PLAIN
    »ý¼º ³¯Â¥: 07-FEB-1996
    ¸¶Áö¸· °»½Å ³¯Â¥: 09-MAY-2003
    Problem Description:  
    ====================  
      
    The following Unix shell script will pipe an Oracle export file through the  
    Unix compress utility to obtain a compressed export dump file.  
      
      
    #  
    #                      EXPORT WITH COMPRESS SCRIPT  
    #                      ---------------------------  
    #  
    # BEFORE RUNNING THIS SCRIPT, USE the mknod command to create a named pipe  
    # called /dev/PIPE.dmp (mknod is Unix command, PIPE.dmp is an arbitrary name).  
    # Then set environment variables for ORACLE_HOME, ORACLE_SID, and DUMPDIR, as  
    # well as PATH if needed.  
    # If you save the script as, say, exp_comp.sh, type  
    #        % exp_comp.sh &  
    # at the Unix prompt to run it.  
    # WARNING: You must have unique names for each pipe if you have  
    # multiple concurrent executions of this script.  
      
    trap '' 1 # nohup  
      
    # Set these to appropriate values  
    ORACLE_HOME=  
    ORACLE_SID=  
    DUMPDIR=  
      
    # Customize PATH if needed  
    PATH=/bin:/usr/bin:${ORACLE_HOME}/bin:/usr/local/bin:/usr/lbin  
      
    export ORACLE_HOME ORACLE_SID PATH  
    LOGFILE=$DUMPDIR/exp${ORACLE_SID}.log  
    exec >$LOGFILE 2>&1  
      
    echo "Exporting $ORACLE_SID database. start `date`"  
      
    # Customize this as needed  
    exp system/manager GRANTS=Y FULL=Y INDEXES=Y COMPRESS=Y FILE=/dev/PIPE.dmp &  
      
    compress $DUMPDIR/exp$ORACLE_SID.dmp.Z &
    .


      ÃßõÇϱâ ÇÁ¸°Æ®   ¸ñ·Ïº¸±â

     [Metalink]Script For Exporting With COMPRESS under UNIX  park1q  2013-04-26
    14:39:18
         [Metalink][re] Script For Importing with UNCOMRPESS under UNIX  park1q  2013-04-26
    18:11:32

    Copyright 1999-2026 Zeroboard

     

     
     
    [Today:4 / Total:174371]    Design by p@rk1q