#!/bin/sh

 
if [ -z "$ORACLE_BASE" ] 
then
	. /usr/local/oracle/config.sh
fi

PATH=$PATH:$HOME/usr/sbin

ORACLE_OWNER=oracle

su $ORACLE_OWNER -c id || ( echo "Can't run as $ORACLE_OWNER"; exit 1 )

cat > /tmp/params.dat.$$ << EOF
COMPRESS=Y
FULL=Y
FILE=$HOME/oracle.dmp
# You should specify CONSISTENT=Y when you anticipate that other
# applications will be updating the database after an export has started
CONSISTENT=N
FEEDBACK=10
EOF

exp "system/" PARFILE=/tmp/params.dat.$$
