• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

to export

This is a shell script to export

I want to export user1


How will edit the below script to export user1


 cat expdp_sch.sh*
#!/bin/sh

set -x
. /ldba/set_sprefuat.sh

USER=$1
#USER=SPAPP

LDBAPSWD=/ldba/${SERVER_ABBREV}/bin/.ldbapswd
LDBAPSWD=${LDBAPSWD}.${ORACLE_SID}
PASSWORD=`grep -w SYSTEM $LDBAPSWD | awk '{print $2}'`

expdp SYSTEM/${PASSWORD} DIRECTORY=DUMP_EXADATA1 DUMPFILE=expdp_${ORACLE_SID}_${USER}_%U.dmp PARALLEL=4 FILESIZE=4G JOB_NAME=expdp_job_${USER} SCHEMAS=$USER LOGFILE=expdp_${ORACLE_SID}_${USER}.log EXCLUDE=STATISTICS

exit 0
nj09mhf0362[oracle:sprefuat1] 71:
0
thomasliju
Asked:
thomasliju
1 Solution
 
slightwv (䄆 Netminder) Commented:
>>How will edit the below script to export user1

From your last question:
You don't.  You pass in the user you want to export.

From a shell prompt:
./expdp_sch.sh user1
0
 
Steve WalesSenior Database AdministratorCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now