hi,
I'm trying to implement a backup script from a book called "oracle 8i backup and recovery by Rama velpuri"
But i get the following error:
$ dbbackup spcbase
/opt/app/oracle/admin/backup/backup/dbbackup_begin spcbase hot >> /opt/app/oracle/admin/backup/db_admin/spcbase/log/backup_020409.log 2>>
/opt/app/oracle/admin/backup/db_admin/spcbase/log/backup_020409.err
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] -e pattern_list...
[-f pattern_file...] [file...]
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] [-e pattern_list...]
-f pattern_file... [file...]
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] pattern_list [file...]
dbbackup[191]: Export terminated successfully: not found.
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] -e pattern_list...
[-f pattern_file...] [file...]
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] [-e pattern_list...]
-f pattern_file... [file...]
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] pattern_list [file...]
dbbackup[193]: Export terminated successfully: not found.
I've looked in the script and i see nothing wrong.
He complaints on a grep statement.
This is the first statement with grep:
STATUS=`ps -fu oracle | grep "ora_[a-z]*_${DBNAME}" `
But if i do this on an prompt mline this works fine.
Help!!!
PS: what's "$?" ?
Does this mean any variable?
If you don't have enough info let me know and i'll send the whole script.
thnx
I'm trying to implement a backup script from a book called "oracle 8i backup and recovery by Rama velpuri"
But i get the following error:
$ dbbackup spcbase
/opt/app/oracle/admin/backup/backup/dbbackup_begin spcbase hot >> /opt/app/oracle/admin/backup/db_admin/spcbase/log/backup_020409.log 2>>
/opt/app/oracle/admin/backup/db_admin/spcbase/log/backup_020409.err
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] -e pattern_list...
[-f pattern_file...] [file...]
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] [-e pattern_list...]
-f pattern_file... [file...]
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] pattern_list [file...]
dbbackup[191]: Export terminated successfully: not found.
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] -e pattern_list...
[-f pattern_file...] [file...]
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] [-e pattern_list...]
-f pattern_file... [file...]
Usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] pattern_list [file...]
dbbackup[193]: Export terminated successfully: not found.
I've looked in the script and i see nothing wrong.
He complaints on a grep statement.
This is the first statement with grep:
STATUS=`ps -fu oracle | grep "ora_[a-z]*_${DBNAME}" `
But if i do this on an prompt mline this works fine.
Help!!!
PS: what's "$?" ?
Does this mean any variable?
If you don't have enough info let me know and i'll send the whole script.
thnx