Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 05:02 PM
Larry Williams
 
Posts: n/a
Default OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

Hi All,

Total Db2 Newbie. Cutting my way through the forest!

My db2 7.1.0 is on a small (think VERY small) Multiprise 3000 p30 and
I have no idea why, but the application programmers just adding some
test tables and data, and suddenly I'm infested with hundreds of
ARCHLOG type datasets!!!!!!!

I finally found the information on picking the safe ARCHLOGs to delete
after shutting down (on a now emergency basis, everyday!) based on the
RBAs of last store, from the reports noted in the DB2 books.

Things I can't completely figure out:

DB2 seems to slowly "catch up" with the logs, so a log moves from
important, to "can be deleted, if you need to"

What? Is it delaying something? I would prefer to just force the
write to happen now. We are devolpers, and can replace the data, if
need be. Performance, not a big deal with 1 or 2 people on.

I did figure out to get ONE Archlog using DSNZPARM so at least it's
not doing 2 copies of very trival data.

*sigh* Can I just force ARCHLOG=NO safely? I've been told to NOT
derail this project as it is time important.

What steps can I take to stop this useless ARCHLOG dataset allocs?
They are jamming up my storage packs like crazy. BUT, I need to make
sure the data is still stored (provided the lights don't go out for a
LONG time while the job is running. I can restore to a previous
backup with no protest) (See: I told you they was trivial data)

So, if you answer is I need some ARCHLOGs, I saw a post on using GDGs
for the data. OK. some is OK. How about NONE? Can I do that? and
what if the batch job lives longer than the UPS? What do I need to
restore?

Please provide some answers for this storage filling beast!

If you aswser GDGs... how many? how do I figure that out.

The new IBM manuals are mostly useless. You need to know the answer
to find the question! USENET is about the only place I actually FIND
useful stuff

TIA

Larry

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 05:02 PM
Mark A
 
Posts: n/a
Default Re: OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

"Larry Williams" <larryw@ix.netcom.com> wrote in message
news:n4cg201ufupce97iljk5lhvgqopk2no868@4ax.com...
> Hi All,
>
> Total Db2 Newbie. Cutting my way through the forest!
>
> My db2 7.1.0 is on a small (think VERY small) Multiprise 3000 p30 and
> I have no idea why, but the application programmers just adding some
> test tables and data, and suddenly I'm infested with hundreds of
> ARCHLOG type datasets!!!!!!!
>
> I finally found the information on picking the safe ARCHLOGs to delete
> after shutting down (on a now emergency basis, everyday!) based on the
> RBAs of last store, from the reports noted in the DB2 books.
>
> Things I can't completely figure out:
>
> DB2 seems to slowly "catch up" with the logs, so a log moves from
> important, to "can be deleted, if you need to"
>
> What? Is it delaying something? I would prefer to just force the
> write to happen now. We are devolpers, and can replace the data, if
> need be. Performance, not a big deal with 1 or 2 people on.
>
> I did figure out to get ONE Archlog using DSNZPARM so at least it's
> not doing 2 copies of very trival data.
>
> *sigh* Can I just force ARCHLOG=NO safely? I've been told to NOT
> derail this project as it is time important.
>
> What steps can I take to stop this useless ARCHLOG dataset allocs?
> They are jamming up my storage packs like crazy. BUT, I need to make
> sure the data is still stored (provided the lights don't go out for a
> LONG time while the job is running. I can restore to a previous
> backup with no protest) (See: I told you they was trivial data)
>
> So, if you answer is I need some ARCHLOGs, I saw a post on using GDGs
> for the data. OK. some is OK. How about NONE? Can I do that? and
> what if the batch job lives longer than the UPS? What do I need to
> restore?
>
> Please provide some answers for this storage filling beast!
>
> If you aswser GDGs... how many? how do I figure that out.
>
> The new IBM manuals are mostly useless. You need to know the answer
> to find the question! USENET is about the only place I actually FIND
> useful stuff
>
> TIA
>
> Larry
>

Are you archiving to tape or disk? Most people archive to tape unless they
have some sort of disk to tape migration software running. You can
automatically set the retention period on the tape. If you take image copies
of everything (including the catalog tables) then you probably don't need
the archive log before that time (unless you want to do a point in time
recovery to before the last image copy).

When data is logged, it is written to the log buffer (memory) and then to
the active log when committed. When the active logs fill up, DB2 switches to
a new active log dataset, and then archives the old one. This is done in a
round-robin fashion depending on the number of active log datasets set up.
So it is unlikely that the logs are slowing things down.

If you download the DB2 manuals in PDF format, they are easy to search with
the PDF search facility. Also look at the Master Index.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 05:03 PM
PM \(pm3iinc-nospam\)
 
Posts: n/a
Default Re: OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

You can also join the DB2-L list.
www.ylassoc.com

Lots of db2/mainframe people hang out there.

For other sysprog stuff and general mainframe/utilities, ... try the
newsgroup bit.listserv.ibm.main

PM


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 05:03 PM
Philip Nelson
 
Posts: n/a
Default Re: OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

Mark A wrote:

> "Larry Williams" <larryw@ix.netcom.com> wrote in message
> news:n4cg201ufupce97iljk5lhvgqopk2no868@4ax.com...
>> Hi All,
>>
>> Total Db2 Newbie. Cutting my way through the forest!
>>
>> My db2 7.1.0 is on a small (think VERY small) Multiprise 3000 p30 and
>> I have no idea why, but the application programmers just adding some
>> test tables and data, and suddenly I'm infested with hundreds of
>> ARCHLOG type datasets!!!!!!!
>>
>> I finally found the information on picking the safe ARCHLOGs to delete
>> after shutting down (on a now emergency basis, everyday!) based on the
>> RBAs of last store, from the reports noted in the DB2 books.
>>
>> Things I can't completely figure out:
>>
>> DB2 seems to slowly "catch up" with the logs, so a log moves from
>> important, to "can be deleted, if you need to"
>>
>> What? Is it delaying something? I would prefer to just force the
>> write to happen now. We are devolpers, and can replace the data, if
>> need be. Performance, not a big deal with 1 or 2 people on.
>>
>> I did figure out to get ONE Archlog using DSNZPARM so at least it's
>> not doing 2 copies of very trival data.
>>
>> *sigh* Can I just force ARCHLOG=NO safely? I've been told to NOT
>> derail this project as it is time important.
>>
>> What steps can I take to stop this useless ARCHLOG dataset allocs?
>> They are jamming up my storage packs like crazy. BUT, I need to make
>> sure the data is still stored (provided the lights don't go out for a
>> LONG time while the job is running. I can restore to a previous
>> backup with no protest) (See: I told you they was trivial data)
>>
>> So, if you answer is I need some ARCHLOGs, I saw a post on using GDGs
>> for the data. OK. some is OK. How about NONE? Can I do that? and
>> what if the batch job lives longer than the UPS? What do I need to
>> restore?
>>
>> Please provide some answers for this storage filling beast!
>>
>> If you aswser GDGs... how many? how do I figure that out.
>>
>> The new IBM manuals are mostly useless. You need to know the answer
>> to find the question! USENET is about the only place I actually FIND
>> useful stuff
>>
>> TIA
>>
>> Larry
>>

> Are you archiving to tape or disk? Most people archive to tape unless they
> have some sort of disk to tape migration software running. You can
> automatically set the retention period on the tape. If you take image
> copies of everything (including the catalog tables) then you probably
> don't need the archive log before that time (unless you want to do a point
> in time recovery to before the last image copy).
>
> When data is logged, it is written to the log buffer (memory) and then to
> the active log when committed. When the active logs fill up, DB2 switches
> to a new active log dataset, and then archives the old one. This is done
> in a round-robin fashion depending on the number of active log datasets
> set up. So it is unlikely that the logs are slowing things down.
>
> If you download the DB2 manuals in PDF format, they are easy to search
> with the PDF search facility. Also look at the Master Index.


I'm a DBA not a sysprog, but here are a couple of thoughts -

It also sounds like your active log datasets are too small for the volume of
transactions you are processing, hence the large number of archive logs
being produced.

As previously stated you should really seriously consider archiving to
tape / cartridge.

You also want to look at setting up housekeeping to keep the number of
archive logs manageable. Apart from anything else your bootstraps (I
think) will continue to grow in size. You'll find details of this in the
manuals.

HTH

Phil
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 05:04 PM
Larry Williams
 
Posts: n/a
Default Re: OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

On Mon, 9 Feb 2004 21:04:05 -0700, "Mark A" <ma@switchboard.net>
wrote:


>Are you archiving to tape or disk? Most people archive to tape unless they
>have some sort of disk to tape migration software running. You can
>automatically set the retention period on the tape. If you take image copies
>of everything (including the catalog tables) then you probably don't need
>the archive log before that time (unless you want to do a point in time
>recovery to before the last image copy).
>
>When data is logged, it is written to the log buffer (memory) and then to
>the active log when committed. When the active logs fill up, DB2 switches to
>a new active log dataset, and then archives the old one. This is done in a
>round-robin fashion depending on the number of active log datasets set up.
>So it is unlikely that the logs are slowing things down.
>
>If you download the DB2 manuals in PDF format, they are easy to search with
>the PDF search facility. Also look at the Master Index.
>



Tape not an option. I have one tape drive, no scratch pool except for
backups, and no operator.

My comments on the manuals is they are now badly written, and getting
worse. One recent example was something like:

XYZ001 TCP return code was 1

explaination: TCP returned a return code of one (duh)

actions: See "other book"

Other book:
-----------

Return code: 1 see the first book.

keyword searchs are getting much worse, cause if you put in a keyword,
most of the time it gives a terse, useless remark, and includes a link
that will, without fail, say "book must be in same shelf"

And yes, I do know how to use PDF files... now what file do I look at?

If you tell me where doing image copies is explained (with examples
would be nice) that would be great.

We've never done an image copy. Can it be done with DB2 up (if no
transactions are running?) can I then just delete all the arch log
files? (provided the image copy worked ok?)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 05:04 PM
Mark A
 
Posts: n/a
Default Re: OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

"Larry Williams" <larryw@ix.netcom.com> wrote in message
news:a1ti20he99545k505p0d3h7e8jrg275vq8@4ax.com...
> On Mon, 9 Feb 2004 21:04:05 -0700, "Mark A" <ma@switchboard.net>
> wrote:
>
>
> >Are you archiving to tape or disk? Most people archive to tape unless

they
> >have some sort of disk to tape migration software running. You can
> >automatically set the retention period on the tape. If you take image

copies
> >of everything (including the catalog tables) then you probably don't need
> >the archive log before that time (unless you want to do a point in time
> >recovery to before the last image copy).
> >
> >When data is logged, it is written to the log buffer (memory) and then to
> >the active log when committed. When the active logs fill up, DB2 switches

to
> >a new active log dataset, and then archives the old one. This is done in

a
> >round-robin fashion depending on the number of active log datasets set

up.
> >So it is unlikely that the logs are slowing things down.
> >
> >If you download the DB2 manuals in PDF format, they are easy to search

with
> >the PDF search facility. Also look at the Master Index.
> >

>
>
> Tape not an option. I have one tape drive, no scratch pool except for
> backups, and no operator.
>
> My comments on the manuals is they are now badly written, and getting
> worse. One recent example was something like:
>
> XYZ001 TCP return code was 1
>
> explaination: TCP returned a return code of one (duh)
>
> actions: See "other book"
>
> Other book:
> -----------
>
> Return code: 1 see the first book.
>
> keyword searchs are getting much worse, cause if you put in a keyword,
> most of the time it gives a terse, useless remark, and includes a link
> that will, without fail, say "book must be in same shelf"
>
> And yes, I do know how to use PDF files... now what file do I look at?
>
> If you tell me where doing image copies is explained (with examples
> would be nice) that would be great.
>
> We've never done an image copy. Can it be done with DB2 up (if no
> transactions are running?) can I then just delete all the arch log
> files? (provided the image copy worked ok?)


I don't know what manuals you are looking at, but they don't sound like the
right ones. Here is the link to manuals. They are the best manuals in the IT
business, by a long shot.
http://www-306.ibm.com/software/data...0/v7books.html

Image copies are in the Utility Reference Manual. Image copies are extremely
important. You must image copy the catalog tablespaces on a regular basis.
There may be example JCL supplied for the catalog image copies with the
install libraries. Backup of user tablespaces is recommended also, but not
quite as critical for a development environment. But if don't do image
copies and there is a disk failure, you could loose the database. Image
copies can be run with share level reference with the system up.

I have never heard of a modern MVS system without an automated tape library
(usually cartridge). But yes, you can delete the archive log files if you
have image copies for all tablespaces and they were made after the archive
log file. I would try to keep the archive logs for a month if possible and
do image copies of everything once a week.

DB2 for OS/390 is not for people who have no education or experience on that
product. I suggest you get some professional help, even if on a part time
temporary basis.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-26-2008, 05:06 PM
Larry Williams
 
Posts: n/a
Default Re: OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

On Tue, 10 Feb 2004 17:48:20 -0700, "Mark A" <ma@switchboard.net>
wrote:

>"Larry Williams" <larryw@ix.netcom.com> wrote in message
>news:a1ti20he99545k505p0d3h7e8jrg275vq8@4ax.com.. .
>> On Mon, 9 Feb 2004 21:04:05 -0700, "Mark A" <ma@switchboard.net>
>> wrote:
>>
>>
>> >Are you archiving to tape or disk? Most people archive to tape unless

>they
>> >have some sort of disk to tape migration software running. You can
>> >automatically set the retention period on the tape. If you take image

>copies
>> >of everything (including the catalog tables) then you probably don't need
>> >the archive log before that time (unless you want to do a point in time
>> >recovery to before the last image copy).
>> >
>> >When data is logged, it is written to the log buffer (memory) and then to
>> >the active log when committed. When the active logs fill up, DB2 switches

>to
>> >a new active log dataset, and then archives the old one. This is done in

>a
>> >round-robin fashion depending on the number of active log datasets set

>up.
>> >So it is unlikely that the logs are slowing things down.
>> >
>> >If you download the DB2 manuals in PDF format, they are easy to search

>with
>> >the PDF search facility. Also look at the Master Index.
>> >

>>
>>
>> Tape not an option. I have one tape drive, no scratch pool except for
>> backups, and no operator.
>>
>> My comments on the manuals is they are now badly written, and getting
>> worse. One recent example was something like:
>>
>> XYZ001 TCP return code was 1
>>
>> explaination: TCP returned a return code of one (duh)
>>
>> actions: See "other book"
>>
>> Other book:
>> -----------
>>
>> Return code: 1 see the first book.
>>
>> keyword searchs are getting much worse, cause if you put in a keyword,
>> most of the time it gives a terse, useless remark, and includes a link
>> that will, without fail, say "book must be in same shelf"
>>
>> And yes, I do know how to use PDF files... now what file do I look at?
>>
>> If you tell me where doing image copies is explained (with examples
>> would be nice) that would be great.
>>
>> We've never done an image copy. Can it be done with DB2 up (if no
>> transactions are running?) can I then just delete all the arch log
>> files? (provided the image copy worked ok?)

>
>I don't know what manuals you are looking at, but they don't sound like the
>right ones. Here is the link to manuals. They are the best manuals in the IT
>business, by a long shot.
>http://www-306.ibm.com/software/data...0/v7books.html
>
>Image copies are in the Utility Reference Manual. Image copies are extremely
>important. You must image copy the catalog tablespaces on a regular basis.
>There may be example JCL supplied for the catalog image copies with the
>install libraries. Backup of user tablespaces is recommended also, but not
>quite as critical for a development environment. But if don't do image
>copies and there is a disk failure, you could loose the database. Image
>copies can be run with share level reference with the system up.
>
>I have never heard of a modern MVS system without an automated tape library
>(usually cartridge). But yes, you can delete the archive log files if you
>have image copies for all tablespaces and they were made after the archive
>log file. I would try to keep the archive logs for a month if possible and
>do image copies of everything once a week.
>
>DB2 for OS/390 is not for people who have no education or experience on that
>product. I suggest you get some professional help, even if on a part time
>temporary basis.
>
>
>

Yes, friends, the box from IBM for Partnerworld has one tape drive,
and you are told not to use it for backups(?)

Second note: Yea, I keep telling them a part time DBA would be a good
idea... like yelling at a stone
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-26-2008, 05:06 PM
Mark A
 
Posts: n/a
Default Re: OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

> >I don't know what manuals you are looking at, but they don't sound like
the
> >right ones. Here is the link to manuals. They are the best manuals in the

IT
> >business, by a long shot.
> >http://www-306.ibm.com/software/data...0/v7books.html
> >
> >Image copies are in the Utility Reference Manual. Image copies are

extremely
> >important. You must image copy the catalog tablespaces on a regular

basis.
> >There may be example JCL supplied for the catalog image copies with the
> >install libraries. Backup of user tablespaces is recommended also, but

not
> >quite as critical for a development environment. But if don't do image
> >copies and there is a disk failure, you could loose the database. Image
> >copies can be run with share level reference with the system up.
> >
> >I have never heard of a modern MVS system without an automated tape

library
> >(usually cartridge). But yes, you can delete the archive log files if you
> >have image copies for all tablespaces and they were made after the

archive
> >log file. I would try to keep the archive logs for a month if possible

and
> >do image copies of everything once a week.
> >
> >DB2 for OS/390 is not for people who have no education or experience on

that
> >product. I suggest you get some professional help, even if on a part time
> >temporary basis.
> >

> Yes, friends, the box from IBM for Partnerworld has one tape drive,
> and you are told not to use it for backups(?)
>
> Second note: Yea, I keep telling them a part time DBA would be a good
> idea... like yelling at a stone
>

I don't consider archiving the logs to tape to be a "backup." It's a
necessity for making DB2 work.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-26-2008, 05:07 PM
Larry Williams
 
Posts: n/a
Default Re: OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

O
>I don't consider archiving the logs to tape to be a "backup." It's a
>necessity for making DB2 work.
>

I'm not kidding, IBM says not to use the drive for backups. A tape
drive that can't do backups???

The Multiprise 3000 is a very strange box. 50+mips and no tape drive?
IBM wants $55,000 for a tape drive external to the box! (a rental
unit, no less)

I'm glad you at least gave me a lead. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-26-2008, 05:07 PM
Mark A
 
Posts: n/a
Default Re: OS390 2.10 DB2 7.1.0 ARCHLOG management HELP!??

> O
> >I don't consider archiving the logs to tape to be a "backup." It's a
> >necessity for making DB2 work.
> >

> I'm not kidding, IBM says not to use the drive for backups. A tape
> drive that can't do backups???
>
> The Multiprise 3000 is a very strange box. 50+mips and no tape drive?
> IBM wants $55,000 for a tape drive external to the box! (a rental
> unit, no less)
>
> I'm glad you at least gave me a lead. Thanks.


I am not sure what the Multiprise 3000 is, but I don't know of any
mainframes with integrated tape drives. Most mainframes have robotic
cartridge systems, not necessarily made by IBM.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422