472,794 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,794 software developers and data experts.

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.LOG" 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 5763
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:db2inst1 Node:000
PID:36348(db2loggr (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:db2inst1 Node:000
PID:4341870(db2loggr (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:db2inst1 Node:008
PID:23879810(db2agent (SAMPLE) 8) Appid:*N8.db2bpr.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:db2inst1 Node:008
PID:23879810(db2agent (SAMPLE) 8) Appid:*N8.db2bpr.0307310222
data_protection sqlpWriteToLog Probe:10 Database:SAMPLE
Transaction Entry first lsn: 009c febd 8043

2003-07-30-19.22.03.876264 Instance:db2inst1 Node:008
PID:23879810(db2agent (SAMPLE) 8) Appid:*N8.db2bpr.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.com 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:db2inst1 Node:000
PID:36348(db2loggr (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:db2inst1 Node:000
PID:4341870(db2loggr (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:db2inst1 Node:008
PID:23879810(db2agent (SAMPLE) 8) Appid:*N8.db2bpr.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:db2inst1 Node:008
PID:23879810(db2agent (SAMPLE) 8) Appid:*N8.db2bpr.0307310222
data_protection sqlpWriteToLog Probe:10 Database:SAMPLE
Transaction Entry first lsn: 009c febd 8043

2003-07-30-19.22.03.876264 Instance:db2inst1 Node:008
PID:23879810(db2agent (SAMPLE) 8) Appid:*N8.db2bpr.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
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...
5
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...
1
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...
1
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...
5
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. ...
13
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
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....
2
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...
0
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...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.