473,698 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error SQL1265N

Hi all,

I'm trying to setup a standby server using log shipping.
The live database has a user exit in place, which archives the closed
logs and ships them to the standby server.

The standby server, checks for new logs, and, if any, simply
rollforward to the end of logs.

Most of the time everything looks fine with the only weird thing that
if i do a rollforward query status i see something like:

Input database alias = abc
Number of nodes have returned status = 1

Node number = 0
Rollforward status = DB working
Next log file to be read = S0000530.LOG
Log files processed = S0000462.LOG - S0000528.LOG
Last committed transaction = 2004-12-08-00.27.36.000000

As you can see the last file processed is S0000528.LOG
and Next log file to be read is S0000530.LOG. Where is S000529.LOG ?

Next time the rollforward happens you would see something like:
Input database alias = abc
Number of nodes have returned status = 1

Node number = 0
Rollforward status = DB working
Next log file to be read = S0000531.LOG
Log files processed = S0000462.LOG - S0000529.LOG
Last committed transaction = 2004-12-08-00.28.40.000000

But since everything works i'm not so worry about.

The real problem i have is sometimes on a rollforward i get an error
like:

QL1265N The archive log file "S0000536.L OG" is not associated with the

current log sequence for database "ADOPT" on node "0".

At this point there is nothing i can do, it simply stops with this
error.

The query status looks like:

Input database alias = abc
Number of nodes have returned status = 1

Node number = 0
Rollforward status = DB working
Next log file to be read = S0000536.LOG
Log files processed = S0000462.LOG - S0000535.LOG
Last committed transaction = 2004-12-08-11.10.04.000000
And I don't know if it's a coincidence but the next log file to be read
is really 1 after the last log processed (the way it's supposed to be).
Any idea ??

I'm running db2 V 8.1 with fixpak 7a (which takes it the 8.2) on linux
x86 32 bit.
I'm running out of ideas. Any help will be greatly appriciated.
Thanks in advance

Fabrizio

Nov 12 '05 #1
2 5866
Hi,

This may answer your doubts:

IY46859: SLOW DATABASE ACTIVATION, ROLLFORWARD FAILS WITH SQL1265 , OR
DATABASE CRASHES AND IS NON-RECOVERABLE

APAR status
Closed as program error.
Error description
This problem exists only on the following DB2 levels:
version 7.2, Fixpaks 9 and 10
version 8.1, Fixpak 2
If you have LOGRETAIN or USEREXIT set to ON and more than 4GB of
log space configured,
(( LOGPRIMARY + LOGSECOND ) * LOGFILSIZ * 4KB )
you may experience one or more of the following conditions:
- Database activation takes longer than expected. This will
occur every time the database is activated or connected to for
the first time. If the database is consistent at the time of
activation, DB2 will reallocate log files causing database
activation to be slow. When this occurs, an entry will be
created in the db2diag.log file as follows:

2003-04-29-09.02.25.259200 Instance:db2ins t1 Node:000
PID:36348(db2lo ggr (SAMPLE)) Appid:none
data_protection sqlpgilt Probe:484
firstlsn 0003B616D000 does not match expected
firstlsn of 0002B616D000 for extent 59.

- Rollforward fails and returns SQL1265 Archive log file is
not associated with the current log sequence . When log files
are reallocated the new log file may not be created in proper
sequence with the previous one. A rollforward operation fails
when trying to process the new log file. When this occurs, an
entry will be created in the db2diag.log file as follows:

2003-07-21-15.33.39.044501 Instance:db2ins t1 Node:000
PID:4341870(db2 loggr (SAMPLE) 0) Appid:none
data_protection sqlpgarl Probe:580:1 Appid:none
Problem with log file S0038566.LOG, Index 5,
PId 1058669249, 38565 1058501042
Log file S0038566.LOG is not chaining with log file
S0038565.LOG.

- A database crashes and attempts to recover it fail. This may
occur when a very large transaction is running requiring more
than 4GB of active log space. This results in an incorrect log
sequence number being written to the transaction logs on disk.
This will also cause crash recovery to fail. When this occurs,
entries will be created in the db2diag.log file as follows:

2003-07-30-19.22.03.807234 Instance:db2ins t1 Node:008
PID:23879810(db 2agent (SAMPLE) 8) Appid:*N8.db2bp r.0307310222
data_protection sqlpWriteToLog Probe:10 Database:SAMPLE
DIA3826C A fatal error occurred in data protection services.
ZRC=0xFFFFF51D

2003-07-30-19.22.03.869349 Instance:db2ins t1 Node:008
PID:23879810(db 2agent (SAMPLE) 8) Appid:*N8.db2bp r.0307310222
data_protection sqlpWriteToLog Probe:10 Database:SAMPLE
Transaction Entry first lsn: 009c febd 8043

2003-07-30-19.22.03.876264 Instance:db2ins t1 Node:008
PID:23879810(db 2agent (SAMPLE) 8) Appid:*N8.db2bp r.0307310222
data_protection sqlpWriteToLog Probe:10 Database:SAMPLE
Max lsn first lsn: 009d 12aa 77ae
Local fix
Reduce the database's total log space ((LOGPRIMARY + LOGSECOND)
* LOGFILSIZ * 4096) to be less than 4GB.
Problem summary
Users having more than 4 GB of active log space
are exposed to this problem. The following symptoms have been
seen so far :
..
- Db activation takes a long time with sqlpgilt,probe: 484 in
the db2diag.log
- Rollforward db cmd fails with SQL1265N
- Database crash with subsequent crash recovery failing

SKC

Nov 12 '05 #2
It does not look like that this is my problem because
1) i'm running 8.1 fixpak 7a
2) (( LOGPRIMARY + LOGSECOND ) * LOGFILSIZ * 4KB ) = ((20 + 8) + 5000
*4KB) =
546MB < 4GB

Thanks for you help anyway.

Fabrizio

cs****@gmail.co m wrote:
Hi,

This may answer your doubts:

IY46859: SLOW DATABASE ACTIVATION, ROLLFORWARD FAILS WITH SQL1265 , OR DATABASE CRASHES AND IS NON-RECOVERABLE

APAR status
Closed as program error.
Error description
This problem exists only on the following DB2 levels:
version 7.2, Fixpaks 9 and 10
version 8.1, Fixpak 2
If you have LOGRETAIN or USEREXIT set to ON and more than 4GB of
log space configured,
(( LOGPRIMARY + LOGSECOND ) * LOGFILSIZ * 4KB )
you may experience one or more of the following conditions:
- Database activation takes longer than expected. This will
occur every time the database is activated or connected to for
the first time. If the database is consistent at the time of
activation, DB2 will reallocate log files causing database
activation to be slow. When this occurs, an entry will be
created in the db2diag.log file as follows:

2003-04-29-09.02.25.259200 Instance:db2ins t1 Node:000
PID:36348(db2lo ggr (SAMPLE)) Appid:none
data_protection sqlpgilt Probe:484
firstlsn 0003B616D000 does not match expected
firstlsn of 0002B616D000 for extent 59.

- Rollforward fails and returns SQL1265 Archive log file is
not associated with the current log sequence . When log files
are reallocated the new log file may not be created in proper
sequence with the previous one. A rollforward operation fails
when trying to process the new log file. When this occurs, an
entry will be created in the db2diag.log file as follows:

2003-07-21-15.33.39.044501 Instance:db2ins t1 Node:000
PID:4341870(db2 loggr (SAMPLE) 0) Appid:none
data_protection sqlpgarl Probe:580:1 Appid:none
Problem with log file S0038566.LOG, Index 5,
PId 1058669249, 38565 1058501042
Log file S0038566.LOG is not chaining with log file
S0038565.LOG.

- A database crashes and attempts to recover it fail. This may
occur when a very large transaction is running requiring more
than 4GB of active log space. This results in an incorrect log
sequence number being written to the transaction logs on disk.
This will also cause crash recovery to fail. When this occurs,
entries will be created in the db2diag.log file as follows:

2003-07-30-19.22.03.807234 Instance:db2ins t1 Node:008
PID:23879810(db 2agent (SAMPLE) 8) Appid:*N8.db2bp r.0307310222
data_protection sqlpWriteToLog Probe:10 Database:SAMPLE
DIA3826C A fatal error occurred in data protection services.
ZRC=0xFFFFF51D

2003-07-30-19.22.03.869349 Instance:db2ins t1 Node:008
PID:23879810(db 2agent (SAMPLE) 8) Appid:*N8.db2bp r.0307310222
data_protection sqlpWriteToLog Probe:10 Database:SAMPLE
Transaction Entry first lsn: 009c febd 8043

2003-07-30-19.22.03.876264 Instance:db2ins t1 Node:008
PID:23879810(db 2agent (SAMPLE) 8) Appid:*N8.db2bp r.0307310222
data_protection sqlpWriteToLog Probe:10 Database:SAMPLE
Max lsn first lsn: 009d 12aa 77ae
Local fix
Reduce the database's total log space ((LOGPRIMARY + LOGSECOND)
* LOGFILSIZ * 4096) to be less than 4GB.
Problem summary
Users having more than 4 GB of active log space
are exposed to this problem. The following symptoms have been
seen so far :
.
- Db activation takes a long time with sqlpgilt,probe: 484 in
the db2diag.log
- Rollforward db cmd fails with SQL1265N
- Database crash with subsequent crash recovery failing

SKC


Nov 12 '05 #3

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

Similar topics

2
4376
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two files containing some templates: adjacency_list.hpp and mem_fn.hpp can not compile. Does anyone have any solutions?
5
16251
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet Services Manager."
1
8409
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one file rc4.obj(rc4.c),it is creating the .dll file without any error. Command : ILINK32 rc4.obj 2.But,when we are trying to create .dll file with two .obj files with following errors.
1
6404
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32 Debug-------------------- Linking... icarus_camera.obj : error LNK2001: unresolved external symbol _dgels_ icarus_leastsquares.obj : error LNK2001: unresolved external symbol _dgels_ icarus_maths.obj : error LNK2001: unresolved external symbol _dgels_...
5
5710
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ================================================================= Error 19: "CORBAManagerMessages.h", line 4 # Unexpected 'std'. using std::string; ^^^
13
6601
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
5012
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version, which I did, then reran WebSetup.msi and keeps giving me this error. "The installer was interrupted...
2
19474
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
0
2897
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
0
9169
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
9030
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...
1
8899
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7738
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
6528
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
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.