Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / March 2006

Tip: Looking for answers? Try searching our database.

Logging

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shsandeep - 24 Mar 2006 01:15 GMT
Q 1.
How do I come to know what type of logging has been enabled for a
particular database (circular/archival,etc.) ?

Q 2.
DataStage is loading data into the tables. A parameter has been set into
it to commit every 1000 rows. How to verify whether the commit is
happening every 1000 rows on the database side?

Thanks.

Cheers,
San.
Ian - 24 Mar 2006 01:42 GMT
> Q 1.
> How do I come to know what type of logging has been enabled for a
> particular database (circular/archival,etc.) ?

Look at the LOGRETAIN database config parameter.

> Q 2.
> DataStage is loading data into the tables. A parameter has been set into
> it to commit every 1000 rows. How to verify whether the commit is
> happening every 1000 rows on the database side?

Look at an application snapshot for the datastage process that's writing
data and compare the number of commit statements to rows inserted.  The
ratio should be pretty close to 1:1000.
Bob [IBM] - 26 Mar 2006 22:42 GMT
>> Q 1.
>> How do I come to know what type of logging has been enabled for a
[quoted text clipped - 10 lines]
> data and compare the number of commit statements to rows inserted.  The
> ratio should be pretty close to 1:1000.

If I am not mistaken, archival logging can also be turned on with
USEREXIT = ON and I do not think in that case the log retain is set to
ON. Have no system to check at this time however.

Bob
Peter Postlbauer - 27 Mar 2006 08:20 GMT
> If I am not mistaken, archival logging can also be turned on with
> USEREXIT = ON and I do not think in that case the log retain is set to
> ON. Have no system to check at this time however.
>
> Bob
First you have to turn on USEREXIT=ON then you can set LOG RETAIN = ON.
Per default userexit=off and circularlogging = on.
regards, peter
Bob [IBM] - 27 Mar 2006 18:07 GMT
>> If I am not mistaken, archival logging can also be turned on with
>> USEREXIT = ON and I do not think in that case the log retain is set to
[quoted text clipped - 7 lines]
>
>  
Actually this is not correct -- turning USEREXIT =ON does in fact turn
on LOG RETAIN by default -- the switch does not show LOG RETAIN=RECOVERY
but as long as USEREXIT=ON LOGRETAIN=RECOVERY by default.

This is documented at :   *http://tinyurl.com/bslng*
Bob [IBM] - 27 Mar 2006 18:09 GMT
>>> If I am not mistaken, archival logging can also be turned on with
>>> USEREXIT = ON and I do not think in that case the log retain is set to
[quoted text clipped - 12 lines]
>
> This is documented at :   *http://tinyurl.com/bslng*
Just an addendum as my link not work propery -- search for USEREXIT on
the online documentation and this is documented:

"If this parameter is enabled, log retention logging is performed
_regardless of how the logretain parameter is set_. This parameter also
indicates that a user exit program should be used to archive and
retrieve the log files. Log files are archived when the database manager
closes the log file. They are retrieved when the ROLLFORWARD utility
needs to use them to restore a database."
"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.