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 > Can't change logging parameters via Control Center

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-22-10, 17:18
CanSpice CanSpice is offline
Registered User
 
Join Date: Feb 2010
Posts: 2
Can't change logging parameters via Control Center

I'm not sure which version of DB2 I'm running, possibly 8, but I do know it's running on a Linux host. I'm trying to run an UPDATE on a table with just over a million rows, and every time I run the command I get an error about running out of transaction log space.

However, I've tried updating the various parameters (number of primary/secondary log files and the file size) via the Control Center, but these changes never seem to take. If I watch the files on disk, there are always the same number of them and they're always the same size. They do get updated when I run the UPDATE command, so I know that logging is actually happening, but I can't seem to actually get the requested changes to stick.

Every time I revisit the logging options in Control Center the parameters are back to their defaults (13 primary files / 4 secondary files / 1024 records).

When I hit 'finish' in the logging wizard window I get a DB2 Message window pop up, and it says the command attempted is:
Quote:
UPDATE DB CFG FOR SINGEEX USING logarchmeth1 OFF logarchmeth2 OFF logprimary 20 logsecond 20 logfilsiz 2048;
...and the resulting message is:
Quote:
The command completed successfully.

Explanation:

No errors were encountered during the execution of this
command.

User Response:

No action required.
...which leads me to believe that it's actually being updated somewhere, but I just don't know where!

Any ideas?
Reply With Quote
  #2 (permalink)  
Old 02-22-10, 17:22
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
For some changes, the database must be deactivated for the changes to take effect. that means that there are no connections to the database. In some cases, you may have to take a backup immediately after making the change (if you were to turn ON logarchmeth1).

Real DBA's don't use control center to make db cfg changes, they use the command line. If you want to know which ones are pending (not take effect until database deactivation) then connect to the database and do the following:

db2 get db cfg for sample show detail
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 02-22-10, 17:40
CanSpice CanSpice is offline
Registered User
 
Join Date: Feb 2010
Posts: 2
Quote:
Originally Posted by Marcus_A View Post
For some changes, the database must be deactivated for the changes to take effect. that means that there are no connections to the database.
Oooooooh, that makes sense then.

Quote:
Real DBA's don't use control center to make db cfg changes, they use the command line.
I never claimed to be a real DBA.

Quote:
If you want to know which ones are pending (not take effect until database deactivation) then connect to the database and do the following:

db2 get db cfg for sample show detail
Thanks, that shows that the changes I requested are pending. I've restarted the database and they've stuck. Thanks!
Reply With Quote
  #4 (permalink)  
Old 02-22-10, 19:01
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
What is control center?
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