How to run Fast export script from Shell script

Database
Enthusiast

How to run Fast export script from Shell script

Hi,

I am new to shell scripting and I have a requirement to run few fast exports scripts from a Shell script.

Could some one help me out on this or guide me to a place where I can learn and get this?

3 REPLIES
Enthusiast

Re: How to run Fast export script from Shell script

Basically, you can go through fastexport manual.

else if utilities are installed on unix then you can invoke using correct PATH and run using fexp command

fexp <script

Enthusiast

Re: How to run Fast export script from Shell script

#!/usr/bin/ksh

#shell script code

#########

#######

###

fexp <<EOF

** - ----

**--

EOF

#########

#######

###

# End of script

Enthusiast

Re: How to run Fast export script from Shell script

Hi All,

Thanks for the information.I need small clarifications.

My fastload,fastexport utilities and scripts are present in my 'c:' drive and my shell script is present in the directory say root/prod/npq/samplescripts/sample1.sh.

from this sample1.sh

if I say fexp<myfastexport.txt  and the resultant data is to be exported to c:\answerset1

will this be possible?

and after this I need to gunzip this file in the same shell script.plz help me