Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2008
    Posts
    70

    Unanswered: script for db2 command

    Dear All,

    How to create the script for db2 command.

    example:-

    db2 backup db BWD online to /db2/BWD/sapbackup compress include logs without prompting

    Can U give me the example.

    Awaiting for your reply ASAP.

    Regards,
    K.Manikandan.

  2. #2
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    What DB2 version and OS?

    Andy

  3. #3
    Join Date
    Oct 2008
    Posts
    70
    hi,

    DB2===>9.1

    os=>solaris 5.10

    Regards,
    K.Manikandan.

  4. #4
    Join Date
    Jan 2003
    Posts
    1,605
    Hi,
    using bash shell do the following:
    Code:
    #!/bin/bash
    db2 backup db BWD online to /db2/BWD/sapbackup compress include logs without prompting
    Then make this file executible:
    Code:
    chmod 700 yourfile
    ./yourfile
    Regards

  5. #5
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650
    or use DB2's scheduling script and scheduling tools.
    Visit the new-look IDUG Website , register to gain access to the excellent content.

Posting Permissions

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