473,651 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(db2sys cs.exe) TID:1696 Appid:*LOCAL.DB 2.0115C3193403
data management sqldEndNoLogLis t 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 6159

"Tim.D" <td******@hotma il.com> wrote in message
news:11******** *************** ***@posting.goo gle.com...
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(db2sys cs.exe) TID:1696 Appid:*LOCAL.DB 2.0115C3193403
data management sqldEndNoLogLis t 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.e ye-be-em.com> a écrit dans le message de
news:c2******** **@hanover.toro lab.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******@hotma il.com> wrote in message
news:11******** *************** ***@posting.goo gle.com...
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
15372
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 IDENTITY ( START WITH +1 , INCREMENT BY +1 , NO CACHE ) ) IN "USERSPACE1" NOT LOGGED INITIALLY ; right now i have to delete almost one million rows in the table, so i found that i can use alter table activate not logged initially before i...
2
4292
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 ADM5530E The COMMIT processing of table "TBSPACEID=3.TABLEID=15107" that used NOT LOGGED INITIALLY has been initiated. It is recommended that you take a backup of this table's table space(s). since our application need to create table on the...
1
5476
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. After using "alter table tbname activate not logged initially", how to deactivate it?
4
4406
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 in the application. the source data exists in a third tablespace. due to the nature of the applicaiton, the problem is the summary data is constantly being 'refreshed', or deleted/inserted. this results in a high number of deletes, and...
0
1315
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 db2advis command those simulation tables. The problem is that those tables are logged, and we hit SQL0964C due to a huge catalog system (800Mb on a PeopleSoft database). What do you think of creating those simulation tables and ALTER TABLE ...
4
3716
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 the document it said " non-replicated operations include, but are not limited to --Tables created with the NOT LOGGED initially option specified", so does that means i can't do HADR on our current database because all the tables are created with the...
4
3059
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 warning on this statement for table created wihtout NOT LOGGED INITIALLY.
2
2093
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 'Activated Not Logged Initially" statement.
9
2005
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 table...when i wish to re-enter some values the form opens wid the previous values and when i replace the previous values with the new ones i get an error which says "Write Conflict" and stuff...now tell me wat should i do about it....and i want to set...
0
8352
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8802
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8697
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7297
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2699
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.