![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
"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 |
#4
| |||
| |||
|
|
"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 |
#5
| |||
| |||
|
|
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. |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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 |
#8
| |||
| |||
|
|
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? |
#9
| |||
| |||
|
|
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 |
#10
| |||
| |||
|
|
"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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |