mbt masai
 
Welcome !
         

                                
After experiencing a lot of down time, We decided to move this site to CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.

 Seek help on windows script to do database export work.

Author Message
citicbj

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 1/11/2010
  • Status: offline
Seek help on windows script to do database export work. Monday, January 11, 2010 6:05 AM (permalink)
0
I tried to create a windows shell script to execute data dump work on daily basis. However, the command seems didn't work because it even didn't generate log file for me to identify the problem. Please give me a hand to solve this problem. Here is the windows command file and expdp parameter file.

1. windows command file

@echo off
rem
rem Filename: My_Expdp.bat
rem Purpose: Export tables of My database
rem Date: 08-Jan-2010
rem Author:
rem

rem -- Set parameters --
set EXPNAME=DB_Daily
set PATH=F:\ORACLE\PRODUCT\10.2.0\ADMIN\MYDB\DPDUMP

rem -- Keep 5 versions of the expdp log file --
if exist %PATH%%EXPNAME%_4.log copy %PATH%%EXPNAME%.log %PATH%%EXPNAME%_5.log >NUL:
if exist %PATH%%EXPNAME%_3.log copy %PATH%%EXPNAME%.log %PATH%%EXPNAME%_4.log >NUL:
if exist %PATH%%EXPNAME%_2.log copy %PATH%%EXPNAME%.log %PATH%%EXPNAME%_3.log >NUL:
if exist %PATH%%EXPNAME%_1.log copy %PATH%%EXPNAME%.log %PATH%%EXPNAME%_2.log >NUL:
if exist %PATH%%EXPNAME%.log copy %PATH%%EXPNAME%.log %PATH%%EXPNAME%_1.log >NUL:

rem -- Keep 5 versions of the expdp dump file --
if exist %PATH%%EXPNAME%_4.dmp copy %PATH%%EXPNAME%.dmp %PATH%%EXPNAME%_5.dmp >NUL:
if exist %PATH%%EXPNAME%_3.dmp copy %PATH%%EXPNAME%.dmp %PATH%%EXPNAME%_4.dmp >NUL:
if exist %PATH%%EXPNAME%_2.dmp copy %PATH%%EXPNAME%.dmp %PATH%%EXPNAME%_3.dmp >NUL:
if exist %PATH%%EXPNAME%_1.dmp copy %PATH%%EXPNAME%.dmp %PATH%%EXPNAME%_2.dmp >NUL:
if exist %PATH%%EXPNAME%.dmp copy %PATH%%EXPNAME%.dmp %PATH%%EXPNAME%_1.dmp >NUL:

rem -- Do the data pump --
expdp sys/syspassword@db parfile=%PATH%my_expdp.par

rem -- Add timestamp to top of export log file --
date /T >timestamp.tmp
copy timestamp.tmp + %PATH%%EXPNAME%.log %PATH%%EXPNAME%.tmp
copy %PATH%%EXPNAME%.tmp %PATH%%EXPNAME%.log

rem -- Cleanup temporary files --
del %PATH%%EXPNAME%.tmp
del timestamp.tmp

---parameter file

DUMPFILE=My_DB.DMP
LOGFILE=My_DB.LOG
DIRECTORY=Mydb_DIR
TABLE=My_table1, My_table2, My_table3
CONTENT=DATA_ONLY
JOB_NAME=My_DB_1
#1
    kangyuta

    • Total Posts : 7
    • Scores: 0
    • Reward points : 0
    • Joined: 4/15/2010
    • Status: offline
    Re:Seek help on windows script to do database export work. Thursday, April 15, 2010 2:28 PM (permalink)
    0
    Do not eat a heavy meal fore several hours before your class. yoga is best practiced on an empty stomach. Do new york city asian escorts drink water, both before and after your practice in order to keep your new york city asian escort body well hydrated.yoga for a beginner is the first step on a journey of ever new york city escorts increasing self-awareness, a greater level of strength, endurance, and flexibility, and a new york city escort deeper sense of peace. Have fun and enjoy everything along the way!Della Menechella is a yoga and fitness enthusiast who has been involved in fitness for over thirty years. Here

    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.8
      mbt shoes www.wileywilson.com