Now we needed a new backup script so i took the script that's in the book. (On a RS6000 machine with AIX 4.3.3)
But i'm not good at scripting and i get this error message: "No such database"
So it goes wrong at this line:
case $1 in bkup_tst) ....
Wat does this mean?
He goes right to => *) echo "No such database";
this is a copy of the script:
case $1 in
bkup_tst) ORACLE_HOME=/opt/app/oracle/product/8.1.7; # This is my oracle home
ORACLE_SID=bkup_tst; # ???
PATH=/usr/bin:/usr/sbin:$ORACLE_HOME/bin ; # nothing changed here
# EXPORTDIROLD=/oradata9/${1}/backup/ Test_backup_old/old_export; # I made these dirs
EXPORTDIR=/oradata9/${1}/backup/Test_export; # ok
BACKUPDIR=/oradata9/${1}/backup/Test_backup; # ok
# BACKUPDIROLD=/oradata9/${1}/backup/Test_old_backup; # ok
ARCOLD=/oradata9/${1}/backup/Test_archive; # ok
;;
*) echo "No such database";
exit 1 ;;
esac
Thanks,
But i'm not good at scripting and i get this error message: "No such database"
So it goes wrong at this line:
case $1 in bkup_tst) ....
Wat does this mean?
He goes right to => *) echo "No such database";
this is a copy of the script:
case $1 in
bkup_tst) ORACLE_HOME=/opt/app/oracle/product/8.1.7; # This is my oracle home
ORACLE_SID=bkup_tst; # ???
PATH=/usr/bin:/usr/sbin:$ORACLE_HOME/bin ; # nothing changed here
# EXPORTDIROLD=/oradata9/${1}/backup/ Test_backup_old/old_export; # I made these dirs
EXPORTDIR=/oradata9/${1}/backup/Test_export; # ok
BACKUPDIR=/oradata9/${1}/backup/Test_backup; # ok
# BACKUPDIROLD=/oradata9/${1}/backup/Test_old_backup; # ok
ARCOLD=/oradata9/${1}/backup/Test_archive; # ok
;;
*) echo "No such database";
exit 1 ;;
esac
Thanks,