Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2013
    Posts
    4

    Unanswered: How to activate all DBs under an instance

    I have an instance with 8 databases under it. Do I need to activate them one by one manually or does it have a command to activate all the databases under a certain instance ?

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Quote Originally Posted by KennyAround View Post
    does it have a command to activate all the databases under a certain instance ?
    "It" doesn't have a command, but you can:

    Code:
    db2 list db directory | \
    awk '/Database name/{nm=$4} /Indirect/{print "activate db", nm}' | \
    db2
    ---
    "It does not work" is not a valid problem statement.

  3. #3
    Join Date
    Apr 2013
    Posts
    4
    Thanks very much.

Posting Permissions

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