If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Roll Forward recovery

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-16-10, 08:12
p19689 p19689 is offline
Registered User
 
Join Date: Sep 2010
Posts: 12
Roll Forward recovery

Hi, I am trying to test roll forward recovery on db2 v8.2 DPF , AIX 5.3 and having following issues:
a) When I issue db2_all to update db cfg to update TRACKMOD, the command returns 'update db cfg using ... completed ok' But does not update.
Initially I have issued db2 update db cfg command to update the node 0 and it updated successfully. Also it allows me to update db cfg for individual nodes without an error.

b) Do I need to change both parms LOGARCHMETH1 and LOGRETAIN to enable archive logging or just LOGARTHMETH1 is suffice.

c) Do I always need to use db2_all to update db cfg in DPF environment ?
Thanks all for your help.
Reply With Quote
  #2 (permalink)  
Old 09-16-10, 09:32
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by p19689 View Post
a) When I issue db2_all to update db cfg to update TRACKMOD, the command returns 'update db cfg using ... completed ok' But does not update.
Initially I have issued db2 update db cfg command to update the node 0 and it updated successfully. Also it allows me to update db cfg for individual nodes without an error.
You need to restart the database for the change to take effect.

Quote:
Originally Posted by p19689 View Post
b) Do I need to change both parms LOGARCHMETH1 and LOGRETAIN to enable archive logging or just LOGARTHMETH1 is suffice.
Changing LOGARTHMETH1 is enough.

Quote:
Originally Posted by p19689 View Post
c) Do I always need to use db2_all to update db cfg in DPF environment ?
No, you don't always need to use db2_all. However, each partition has its own database configuration parameter file. If you want to keep parameters on all partition in sync, you will have to update them on each partition somehow.
Reply With Quote
  #3 (permalink)  
Old 09-16-10, 10:51
p19689 p19689 is offline
Registered User
 
Join Date: Sep 2010
Posts: 12
Hi, Thanks. I have stopped and started the instance but still can't see db cfg updates with db2_all ! But I can update db cfg for individual nodes.
Reply With Quote
  #4 (permalink)  
Old 09-17-10, 08:25
p19689 p19689 is offline
Registered User
 
Join Date: Sep 2010
Posts: 12
Hi n_i,

I have issued db2_all "update db cfg using TRACKMOD YES" command. Then I issued db2 "get db cfg show detail" to see the delayed value. But it hasn't changed, it's similar to the current value. We are running db2 v8.2 with DPF (10 nodes) on AIX 5.3.

Do you think anyother reason this command hasn't take effect other than not restating db2 ? (As I told earlier, I stop and restart db2 instance).

Thanks .
Reply With Quote
  #5 (permalink)  
Old 09-17-10, 08:56
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
No, I don't know why it does not work. May be inter-partition communication (by rsh or whatever method you use) is not configured properly in your environment, and db2_all does not work. By the way, you should use db2_all to check the database configuration as well.

Do you mind copying and pasting your entire session, including command output?
Reply With Quote
  #6 (permalink)  
Old 09-17-10, 09:19
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
And also try:
db2_all "db2 update db cfg using TRACKMOD YES"
Reply With Quote
  #7 (permalink)  
Old 09-17-10, 10:23
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by db2girl View Post
And also try:
db2_all "db2 update db cfg using TRACKMOD YES"
What a sharp eye!
Reply With Quote
  #8 (permalink)  
Old 09-20-10, 06:39
p19689 p19689 is offline
Registered User
 
Join Date: Sep 2010
Posts: 12
Thanks, it worked fine but I had to include the 'for db' name as below as well.
db2_all " db2 update db cfg for testdb using TRACKMOD YES"


Can you pl assist me to issue the db2 update db cfg command with a varibale. as below. Currently I am having error 'Value indicated by the database configuration parameter "LOGARCHMETH1" is not valid'


db2_all "db2 update db cfg for testdb using LOGARCHMETH1 DISK:/database/$N/testdb/archive"

I want to pass $N as node numer (NODE001 etc) ?

Hi N_i , you mentioned that LOGRETAIN is not necessary. Is it phased out ? What's the role of this parameter ?
Reply With Quote
  #9 (permalink)  
Old 09-20-10, 08:21
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by p19689 View Post


db2_all "db2 update db cfg for testdb using LOGARCHMETH1 DISK:/database/$N/testdb/archive"

I want to pass $N as node numer (NODE001 etc) ?
It's not how you specify the partition number when invoking db2_all. May be it's time for you to read some manuals?

Quote:
Originally Posted by p19689 View Post

Hi N_i , you mentioned that LOGRETAIN is not necessary. Is it phased out ? What's the role of this parameter ?
This is also explained in the manual.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On