Results 1 to 4 of 4

Thread: BACKUp errors

  1. #1
    Join Date
    May 2004
    Location
    Bordentown, NJ
    Posts
    27

    Unanswered: BACKUp errors

    DB2 V8.1.5.449 OS Win2003

    I have a .bat file that issues a db2 backup command in the scheduled tasks. when it runs, it finishes with rc=8 and the db is not backed up. where can i see the errors?

    Thanks,
    Craig

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Error messages go to the standard output stream. You can redirect it to a file in you batch and look at the SQL error code. There also may be something in the db2diag.log file.

    Does the batch file run OK if you invoke it from the command line?

  3. #3
    Join Date
    May 2004
    Location
    Bordentown, NJ
    Posts
    27
    yes. the file works fine from the command line. how do i direct the o/p to a file?

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Code:
    backup.bat > backup.log

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •