dbTalk Databases Forums  

knowing if an NLI is active or has occurred recently

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss knowing if an NLI is active or has occurred recently in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce
 
Posts: n/a

Default knowing if an NLI is active or has occurred recently - 04-20-2010 , 09:08 AM






Hi all -

Running AIX 6, UDB 9.1.4.

Other than referring to the db2inst1.nfy log is there anyway to know
if a table has been created with 'not logged initially'? I need
something that I can query to determine the NLI status.

Thanks,

Bruce

Reply With Quote
  #2  
Old   
Mark A
 
Posts: n/a

Default Re: knowing if an NLI is active or has occurred recently - 04-20-2010 , 12:33 PM






"Bruce" <bwmiller16 (AT) gmail (DOT) com> wrote

Quote:
Hi all -

Running AIX 6, UDB 9.1.4.

Other than referring to the db2inst1.nfy log is there anyway to know
if a table has been created with 'not logged initially'? I need
something that I can query to determine the NLI status.

Thanks,

Bruce
Did you try db2look? You can pull DDL for one table with -t option

Reply With Quote
  #3  
Old   
Bruce
 
Posts: n/a

Default Re: knowing if an NLI is active or has occurred recently - 04-20-2010 , 01:49 PM



On Apr 20, 1:33*pm, "Mark A" <no... (AT) nowhere (DOT) com> wrote:
Quote:
"Bruce" <bwmille... (AT) gmail (DOT) com> wrote in message

news:ae7155e6-6ce7-49b0-9ccb-f4a5f441748e (AT) 22g2000vbg (DOT) googlegroups.com...

Hi all -

Running AIX 6, UDB 9.1.4.

Other than referring to the db2inst1.nfy log is there anyway to know
if a table has been created with 'not logged initially'? * I need
something that I can query to determine the NLI status.

Thanks,

Bruce

Did you try db2look? You can pull DDL for one table with -t option
That's an idea...but is it going to tell me what's been NLI-activated
in the last...say...2 days? I need to know when and if I miss
the .nfy msg and if my HADR standby is still good.

Reply With Quote
  #4  
Old   
Bruce
 
Posts: n/a

Default Re: knowing if an NLI is active or has occurred recently - 04-20-2010 , 02:21 PM



On Apr 20, 1:33*pm, "Mark A" <no... (AT) nowhere (DOT) com> wrote:
Quote:
"Bruce" <bwmille... (AT) gmail (DOT) com> wrote in message

news:ae7155e6-6ce7-49b0-9ccb-f4a5f441748e (AT) 22g2000vbg (DOT) googlegroups.com...

Hi all -

Running AIX 6, UDB 9.1.4.

Other than referring to the db2inst1.nfy log is there anyway to know
if a table has been created with 'not logged initially'? * I need
something that I can query to determine the NLI status.

Thanks,

Bruce

Did you try db2look? You can pull DDL for one table with -t option
I need something 'queryable'...where does DB2 store the info re: the
NLI? its one thing to create a TABLE with NLI but another thing
entirely to know that its done the load and that the NLI option is,
essentially, complete. I need to know that my HADR standby is trust-
worthy.

Reply With Quote
  #5  
Old   
The Boss
 
Posts: n/a

Default Re: knowing if an NLI is active or has occurred recently - 04-20-2010 , 04:55 PM



Bruce wrote:
Quote:
On Apr 20, 1:33 pm, "Mark A" <no... (AT) nowhere (DOT) com> wrote:
"Bruce" <bwmille... (AT) gmail (DOT) com> wrote in message

news:ae7155e6-6ce7-49b0-9ccb-f4a5f441748e (AT) 22g2000vbg (DOT) googlegroups.com...

Hi all -

Running AIX 6, UDB 9.1.4.

Other than referring to the db2inst1.nfy log is there anyway to know
if a table has been created with 'not logged initially'? I need
something that I can query to determine the NLI status.

Thanks,

Bruce

Did you try db2look? You can pull DDL for one table with -t option

I need something 'queryable'...where does DB2 store the info re: the
NLI? its one thing to create a TABLE with NLI but another thing
entirely to know that its done the load and that the NLI option is,
essentially, complete. I need to know that my HADR standby is
trust- worthy.
It won't be.
From the docs:

<q>
Because changes to the table are not logged, you should consider the
following when deciding to use the NOT LOGGED INITIALLY table attribute:

- All changes to the table will be flushed out to disk at commit time. This
means that the commit might take longer.

- If the NOT LOGGED INITIALLY attribute is activated and an activity occurs
that is not logged, the entire unit of work will be rolled back if a
statement fails or a ROLLBACK TO SAVEPOINT is executed (SQL1476N).

- If you are using high availability disaster recovery (HADR) you should not
use the NOT LOGGED INITIALLY table attribute. Tables created on the primary
database with the NOT LOGGED INITIALLY option specified are not replicated
to the standby database. Attempts to access such tables on an active standby
database or after the standby becomes the primary as a result of a takeover
operation will result in an error (SQL1477N).

- You cannot recover these tables when rolling forward. If the rollforward
operation encounters a table that was created or altered with the NOT LOGGED
INITIALLY option, the table is marked as unavailable. After the database is
recovered, any attempt to access the table returns SQL1477N.
</q>
Source:
http://publib.boulder.ibm.com/infoce.../c0006079.html

HTH

--
Jeroen

Reply With Quote
  #6  
Old   
Ian
 
Posts: n/a

Default Re: knowing if an NLI is active or has occurred recently - 04-20-2010 , 11:38 PM



On 4/20/10 12:21 PM, Bruce wrote:
Quote:
On Apr 20, 1:33 pm, "Mark A"<no... (AT) nowhere (DOT) com> wrote:
"Bruce"<bwmille... (AT) gmail (DOT) com> wrote in message

news:ae7155e6-6ce7-49b0-9ccb-f4a5f441748e (AT) 22g2000vbg (DOT) googlegroups.com...

Hi all -

Running AIX 6, UDB 9.1.4.

Other than referring to the db2inst1.nfy log is there anyway to know
if a table has been created with 'not logged initially'? I need
something that I can query to determine the NLI status.

Thanks,

Bruce

Did you try db2look? You can pull DDL for one table with -t option
It used to be that unless you specified "NOT LOGGED INITIALLY" when you
created a table you could not use "ALTER TABLE ... NOT LOGGED
INITIALLY." However, this changed a LONG time ago -- perhaps in V7.1,
maybe earlier -- such that you no longer have allow this for a table
when you create the table.

Quote:
I need something 'queryable'...where does DB2 store the info re: the
NLI? its one thing to create a TABLE with NLI but another thing
entirely to know that its done the load and that the NLI option is,
essentially, complete. I need to know that my HADR standby is trust-
worthy.
Did you try SYSIBMADM.PDLOGMSGS_LAST24HOURS ? As in:

select timestamp, msg
from sysibmadm.pdlogmsgs_last24hours
where msgnum = 5530;


This (of course) only shows you events from the last 24 hours, so if
you want to see older you would have to look at db2diag.log. You can
do this quite easily using db2diag:

db2diag -H 36h -g msg:=ADM5530W

Reply With Quote
  #7  
Old   
Bruce
 
Posts: n/a

Default Re: knowing if an NLI is active or has occurred recently - 04-21-2010 , 07:04 AM



On Apr 21, 12:38*am, Ian <ianb... (AT) mobileaudio (DOT) com> wrote:
Quote:
On 4/20/10 12:21 PM, Bruce wrote:





On Apr 20, 1:33 pm, "Mark A"<no... (AT) nowhere (DOT) com> *wrote:
"Bruce"<bwmille... (AT) gmail (DOT) com> *wrote in message

news:ae7155e6-6ce7-49b0-9ccb-f4a5f441748e (AT) 22g2000vbg (DOT) googlegroups.com....

Hi all -

Running AIX 6, UDB 9.1.4.

Other than referring to the db2inst1.nfy log is there anyway to know
if a table has been created with 'not logged initially'? * I need
something that I can query to determine the NLI status.

Thanks,

Bruce

Did you try db2look? You can pull DDL for one table with -t option

It used to be that unless you specified "NOT LOGGED INITIALLY" when you
created a table you could not use "ALTER TABLE ... NOT LOGGED
INITIALLY." *However, this changed a LONG time ago -- perhaps in V7.1,
maybe earlier -- such that you no longer have allow this for a table
when you create the table.

I need something 'queryable'...where does DB2 store the info re: the
NLI? *its one thing to create a TABLE with NLI but another thing
entirely to know that its done the load and that the NLI option is,
essentially, complete. * *I need to know that my HADR standby is trust-
worthy.

Did you try SYSIBMADM.PDLOGMSGS_LAST24HOURS ? *As in:

* * select timestamp, msg
* * from * sysibmadm.pdlogmsgs_last24hours
* * where *msgnum = 5530;

This (of course) only shows you events from the last 24 hours, so if
you want to see older you would have to look at db2diag.log. *You can
do this quite easily using db2diag:

* * db2diag -H 36h -g msg:=ADM5530W
Thank You. Yes this is more towards what I need...but it appears that
SYSIBMADM.PDLOGMSGS_LAST24HOURS simply goes out to the .nfy log and
simply dumps what's already there...I'm already scanning my db2diag
and .nfy logs for this NLI info but it means I can do a SELECT to get
the data instead of hassling with GREP. Again, I'm looking for a
short list of those tables that may be inconsistent or marked 'bad' on
the HADR standby-side to determine which tables need to be rebuilt due
to an NLI. I'm simply not seeing what I need.

Where does db2 store the info on these NLI tables on the standby-side?

Reply With Quote
  #8  
Old   
The Boss
 
Posts: n/a

Default Re: knowing if an NLI is active or has occurred recently - 04-21-2010 , 05:40 PM



Bruce wrote:
Quote:
On Apr 21, 12:38 am, Ian <ianb... (AT) mobileaudio (DOT) com> wrote:
On 4/20/10 12:21 PM, Bruce wrote:





On Apr 20, 1:33 pm, "Mark A"<no... (AT) nowhere (DOT) com> wrote:
"Bruce"<bwmille... (AT) gmail (DOT) com> wrote in message

news:ae7155e6-6ce7-49b0-9ccb-f4a5f441748e (AT) 22g2000vbg (DOT) googlegroups.com...

Hi all -

Running AIX 6, UDB 9.1.4.

Other than referring to the db2inst1.nfy log is there anyway to
know if a table has been created with 'not logged initially'? I
need something that I can query to determine the NLI status.

Thanks,

Bruce

Did you try db2look? You can pull DDL for one table with -t option

It used to be that unless you specified "NOT LOGGED INITIALLY" when
you created a table you could not use "ALTER TABLE ... NOT LOGGED
INITIALLY." However, this changed a LONG time ago -- perhaps in V7.1,
maybe earlier -- such that you no longer have allow this for a table
when you create the table.

I need something 'queryable'...where does DB2 store the info re: the
NLI? its one thing to create a TABLE with NLI but another thing
entirely to know that its done the load and that the NLI option is,
essentially, complete. I need to know that my HADR standby is trust-
worthy.

Did you try SYSIBMADM.PDLOGMSGS_LAST24HOURS ? As in:

select timestamp, msg
from sysibmadm.pdlogmsgs_last24hours
where msgnum = 5530;

This (of course) only shows you events from the last 24 hours, so if
you want to see older you would have to look at db2diag.log. You can
do this quite easily using db2diag:

db2diag -H 36h -g msg:=ADM5530W

Thank You. Yes this is more towards what I need...but it appears that
SYSIBMADM.PDLOGMSGS_LAST24HOURS simply goes out to the .nfy log and
simply dumps what's already there...I'm already scanning my db2diag
and .nfy logs for this NLI info but it means I can do a SELECT to get
the data instead of hassling with GREP. Again, I'm looking for a
short list of those tables that may be inconsistent or marked 'bad' on
the HADR standby-side to determine which tables need to be rebuilt due
to an NLI. I'm simply not seeing what I need.

Where does db2 store the info on these NLI tables on the standby-side?
It doesn't, and you shouldn't use NLI in a HADR environment.
Please read my previous reply I posted about 24 hours ago.

--
Jeroen

Reply With Quote
  #9  
Old   
Mark A
 
Posts: n/a

Default Re: knowing if an NLI is active or has occurred recently - 04-21-2010 , 06:47 PM



"The Boss" <usenet (AT) No (DOT) Spam.Please.invalid> wrote

Quote:
It doesn't, and you shouldn't use NLI in a HADR environment.
Please read my previous reply I posted about 24 hours ago.

--
Jeroen
Bruce understands that one should not use it an HADR environment, but he
needs to check to see if someone else did it.

Reply With Quote
  #10  
Old   
Bruce
 
Posts: n/a

Default Re: knowing if an NLI is active or has occurred recently - 04-22-2010 , 07:35 AM



On Apr 21, 7:47*pm, "Mark A" <no... (AT) nowhere (DOT) com> wrote:
Quote:
"The Boss" <use... (AT) No (DOT) Spam.Please.invalid> wrote in message

news:4bcf7ed0$0$4570$e4fe514c (AT) dreader30 (DOT) news.xs4all.nl...

It doesn't, and you shouldn't use NLI in a HADR environment.
Please read my previous reply I posted about 24 hours ago.

--
Jeroen

Bruce understands that one should not use it an HADR environment, but he
needs to check to see if someone else did it.
Right...HADR has literally saved our B**T many times and we absolutely
positively need it...Do I wish that PeopleSoft didn't use NLI? Sure,
but it does and there isn't a way around it. So, I'm stuck with what
I've been given. Now, back to the question: "How can I know from
looking at something in DB2 if HADR has been compromised from an NLI-
standpoint?".

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.