473,385 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

One small problem, NOT LOGGED INITIALLY

Folks,

I did run into a small problem afterall. Running my first SP I am
seeing a number of errors in the windows 2k server event viewer.
Following is a paste:
--
2004-03-03-15.06.49.967001 Instance:DB2 Node:000
PID:2444(db2syscs.exe) TID:1696 Appid:*LOCAL.DB2.0115C3193403
data management sqldEndNoLogList Probe:1 Database:dbname

ADM5530E The COMMIT processing of table "tbname" that
used NOT LOGGED INITIALLY has been initiated. It is recommended that
you take
a backup of this table's table space(s).
--
This appears to be happening after I am performing an explicit commit
from inside the SP. I have two tables that apply the activate not
logged initially param to at the start of the proc [to avoid logging
issue] and after each explicit commit. This is performed after a
commit counter reaches a certain level from within a 'while' loop.

Windows is logging it as an error [red cross] however it really doesnt
mean a thing to me as that is what I wanted to happen. No errors in
the db2diag.log at all. Is there a way to configure windows or db2 to
supress this ? It will be more than annoying after a while as it will
fill the log and wipe out the rest.

Many thanks for any assistance you mightbe able to offer.

Tim
Nov 12 '05 #1
7 6146

"Tim.D" <td******@hotmail.com> wrote in message
news:11**************************@posting.google.c om...
Folks,

I did run into a small problem afterall. Running my first SP I am
seeing a number of errors in the windows 2k server event viewer.
Following is a paste:
--
2004-03-03-15.06.49.967001 Instance:DB2 Node:000
PID:2444(db2syscs.exe) TID:1696 Appid:*LOCAL.DB2.0115C3193403
data management sqldEndNoLogList Probe:1 Database:dbname

ADM5530E The COMMIT processing of table "tbname" that
used NOT LOGGED INITIALLY has been initiated. It is recommended that
you take a backup of this table's table space(s).
From the DB2 InfoCenter:
http://publib.boulder.ibm.com/infoce...n/r0000888.htm

<start snip>
Any changes made to the table by an INSERT, DELETE, UPDATE, CREATE INDEX,
DROP INDEX, or ALTER TABLE in the same unit of work after the table is
altered by this statement are not logged. Any changes made to the system
catalog by the ALTER statement in which the NOT LOGGED INITIALLY attribute
is activated are logged. Any subsequent changes made in the same unit of
work to the system catalog information are logged
<end snip>

While catalog changes are recorded in the database log, none of the data
changes are. This means that if you have a database failure before all the
changed pages are written to disk (which happens in the background via the
page cleaners), then you will lose all of the changes you made to your data
while in NOT LOGGED INITIALLY mode..

If you do a rollforward recovery (or restore from an older backup and do a
rollforward recovery), your database catalogs will be up-to-date, but none
of the data operations you did while in NOT LOGGED INITIALLY mode will be
recovered.

This is why it is important to do a tablespace (or database) backup after
doing operations in NOT LOGGED INITIALLY mode, as all of the changed pages
will be flushed to disk and then backed up, preventing the possibilty of
data loss.
This appears to be happening after I am performing an explicit commit
from inside the SP. I have two tables that apply the activate not
logged initially param to at the start of the proc [to avoid logging
issue] and after each explicit commit. This is performed after a
commit counter reaches a certain level from within a 'while' loop.

Windows is logging it as an error [red cross] however it really doesnt
mean a thing to me as that is what I wanted to happen. No errors in
the db2diag.log at all. Is there a way to configure windows or db2 to
supress this ? It will be more than annoying after a while as it will
fill the log and wipe out the rest.


I would suggest that you rethink why you are using NOT LOGGED INITIALLY and
whether it's worth the risk.

--
Matt Emmerton
DB2 OLTP Performance
IBM Toronto Lab
Nov 12 '05 #2
Matt,

Seems Tim is OK with NLI and he wants DB2 to stop bugging him about it.
Kind of like your seat-belt warning light flashing when you're parked ;-)

Tim which diag level are you running with?

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #3
I had done some significant reading [both in this group and via
manuals] on the matter before I went this way. See my other post re:
cpu util for the SP logic, it completes a fairly significant number of
small inserts to both a tmp table and final result. No concurrency is
necessary, no online uses other than myself, can be repeated as many
times as necessary which is why I dont really worry about any further
changes to the tables after activating. My first runs of the SP
resulted in the log file getting hammered as the procedure was
running. The table space containing the tmp and data tables were not.
I increased the group commit but it didnt seem to help, so here we are
.... heh

I'd really like to get rid of the error though, as I do not see it as
an error so to speak. If it is paramater activated, and can only be
done so intentionally, why log it as an error and not a warning ? and
be able to suppress it if desired ?

In the procedure I maintain a v_commit count that I activate every
2000 records, wwould that be better being set higher or lower perhaps
?

Thanks Matt,

Tim
Nov 12 '05 #4
Hi Serge,

DIAGLEVEL = 3
NOTIFYLEVEL = 3

Thanks for your help on this.

Tim
Nov 12 '05 #5
For event logs on windows, that would be the NOTIFYLEVEL ant not
theDIAGLEVEL.

http://publib.boulder.ibm.com/infoce...76%65%6c%22%20

PM

"Serge Rielau" <sr*****@ca.eye-be-em.com> a écrit dans le message de
news:c2**********@hanover.torolab.ibm.com...
Matt,

Seems Tim is OK with NLI and he wants DB2 to stop bugging him about it.
Kind of like your seat-belt warning light flashing when you're parked ;-)

Tim which diag level are you running with?

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

Nov 12 '05 #6

"Tim.D" <td******@hotmail.com> wrote in message
news:11**************************@posting.google.c om...
Hi Serge,

DIAGLEVEL = 3
NOTIFYLEVEL = 3


Set these to 1 (or 2?) and you won't see the errors anymore.

--
Matt Emmerton
Nov 12 '05 #7
Thanks PM will give it a try.
Nov 12 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: xixi | last post by:
hi, i have a table with create ddl using not logged initially, CREATE TABLE "NJIPD "."IVPWGMR" ("IVDY01" DECIMAL(2,0) , "IVMO01" DECIMAL(2,0) , "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS...
2
by: db2group88 | last post by:
hi, we install db2 udb v8.1 on windows 64bit, in our application, we have sql execute "create table .... not logged initially", but from the operating system event viewer showing error stating that...
1
by: Daniel Chou | last post by:
Hello, I have two questions about "not logged initially": 1. Before using "alter table tbname activate not logged initially", should the table be created with "not logged initially"? 2....
4
by: Alexander Pope | last post by:
We have 5 tables that hold summary data. they exist in their own tablespace. indices for these 5 tables also exist in their own tablespace. these 5 summary tables are required for various reports...
0
by: Jean-Marc Blaise | last post by:
Dear all, I have noticed the simulation catalog tables are created/dropped every time the Design Advisor is called to advise for MQT. It also seems necessary to drop thru -f option of the...
4
by: db2group88 | last post by:
we are using db2 udb v8.2 on windows. all our tables are created with not logged initially property, So if i want to activate HADR (high availability disaster recovery) for the database, in...
4
by: bughunter | last post by:
I'm sorry but previously command ALTER TABLE tbl ACTIVATE NOT LOGGED INITIALLY on table created without NOT LOGGED INITIALLY option was impossible. Or not? IMHO, more better give error or...
2
by: bwmiller16 | last post by:
Folks - DB2 FP9 on Linux AS 4. We are running PeopleSoft which has every table generated with "Not Logged Initially". Fine. But we need to know if Peoplesoft has manually run the...
9
by: Sidraa | last post by:
hello i hav come across this small problem...i made a small project using Access...now what happens is when i enter the data through a form it gets calculated by a query and then gets stored in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.