473,396 Members | 1,834 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,396 software developers and data experts.

9.1 Problem changing logging to circular

On a 64 bit linux, db2 9.1 system, I am trying to change logging to
"circular" via:
-----
UPDATE DB CFG FOR MYDB7 USING logarchmeth1 OFF logarchmeth2 OFF
logprimary 16 logsecond -1 logfilsiz 10240;
-----
I get back an error:
------
SQL5153N The update cannot be completed because the following
relationship would be violated:
"logsecond can only be set to -1 if log archiving is enabled".
------
However, logsecond IS set to -1, besides the fact that the above query
is setting it as well.
Also, the following sql did go thru ok:
UPDATE DB CFG FOR MYDB7 USING logsecond -1;

But, I still get the error mentioned when I try running the first
aforementioned script.

Please advise; Thanks.
nat

May 21 '07 #1
2 5806
Ian
natG wrote:
On a 64 bit linux, db2 9.1 system, I am trying to change logging to
"circular" via:
-----
UPDATE DB CFG FOR MYDB7 USING logarchmeth1 OFF logarchmeth2 OFF
logprimary 16 logsecond -1 logfilsiz 10240;
-----
I get back an error:
------
SQL5153N The update cannot be completed because the following
relationship would be violated:
"logsecond can only be set to -1 if log archiving is enabled".
------
However, logsecond IS set to -1, besides the fact that the above query
is setting it as well.
Also, the following sql did go thru ok:
UPDATE DB CFG FOR MYDB7 USING logsecond -1;

But, I still get the error mentioned when I try running the first
aforementioned script.
As the error says, setting LOGSECOND to -1 (a.k.a. "Infinite Logging")
requires that your database have archive logging enabled -- the concept
of infinite logging makes no sense if you're trying to use circular
logging.

If you want to switch to circular logging, you MUST to set LOGSECOND to
a value >= 0, in addition to turning LOGARCHMETH1/2 to OFF.
May 21 '07 #2
On May 21, 3:59 pm, Ian <ianb...@mobileaudio.comwrote:
natG wrote:
On a 64 bit linux, db2 9.1 system, I am trying to change logging to
"circular" via:
-----
UPDATE DB CFG FOR MYDB7 USING logarchmeth1 OFF logarchmeth2 OFF
logprimary 16 logsecond -1 logfilsiz 10240;
-----
I get back an error:
------
SQL5153N The update cannot be completed because the following
relationship would be violated:
"logsecond can only be set to -1 if log archiving is enabled".
------
However, logsecond IS set to -1, besides the fact that the above query
is setting it as well.
Also, the following sql did go thru ok:
UPDATE DB CFG FOR MYDB7 USING logsecond -1;
But, I still get the error mentioned when I try running the first
aforementioned script.

As the error says, setting LOGSECOND to -1 (a.k.a. "Infinite Logging")
requires that your database have archive logging enabled -- the concept
of infinite logging makes no sense if you're trying to use circular
logging.

If you want to switch to circular logging, you MUST to set LOGSECOND to
a value >= 0, in addition to turning LOGARCHMETH1/2 to OFF.
Aye. Thank you much. It works now.<g>
nat

May 21 '07 #3

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

Similar topics

1
by: DB2 Convert | last post by:
Hi, A few points to confirm as I am still new with DB2. 1. What will happen if archive logging is used, however there is no userexit or manual process to move those online archived logs to...
6
by: Matt | last post by:
I have a production database that I need to change the logging type from circular to archived so that I can do online backups. The database is not particularly large, but is used by many people. ...
1
by: Bala Nagarajan | last post by:
Hello, I am building a web service application in which i will have to implement logging based on user id. My question is where do i store the user ids? Since the nature of this problem is so...
5
by: shsandeep | last post by:
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...
46
by: dunleav1 | last post by:
I have a process that does inserts that runs 50% slower that Oracle and Mssql. Queries normally take 50% slower than normal. DB2, Oracle, Mssql all are configured on same os, same disk array...
7
by: barias | last post by:
Although circular dependencies are something developers should normally avoid, unfortunately they are very easy to create accidentally between classes in a VS project (i.e. circular compile-time...
3
by: prakku | last post by:
Hi guys, Can you please give your inputs for this, OS : AIX 5.2 S/W : DB2 ESE 8.1 with fixpak 9.(Partitioned environment)
4
by: lfhenry | last post by:
I am a newbie to HADR and Admin of DB2 (I am websphere guy). My question relates to DB2 logging. I've read that HADR does not allow Infinite logging (-1). I am expecting my Database to grow...
3
by: Robert Rawlins | last post by:
Hi Fredrik, This is interesting, I did a test where I explicitly destroyed the instance using 'del my_instance' while the application was running and no error was thrown. It would see you...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.