473,836 Members | 1,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to rollforward without userexit - SQL1268N

I have restored a clients database using a redirected restore. However,
it is in a roll forward pending state. When I try to to a roll forward
to end of the logs, I get
SQL1268N Roll-forward recovery stopped due to error "1" while
retrieving log....

I have all of the logs, including the one mentioned in the SQL1268N
message. And they are in the log directory
I have tried changing userexit to no, and logretain to recovery.

Is there a way to roll forward without the customer's user exit
program? or pehaps there is something else I have missed here?

Regards
Dave Arnold

Mar 31 '06
18 5767
Are you restoring the database on the same instance from which the
backups were made on or you trying to build a duplicate database
somewhere else?

Philip Sherman
da*****@carreke r.com wrote:
I have restored a clients database using a redirected restore. However,
it is in a roll forward pending state. When I try to to a roll forward
to end of the logs, I get
SQL1268N Roll-forward recovery stopped due to error "1" while
retrieving log....

I have all of the logs, including the one mentioned in the SQL1268N
message. And they are in the log directory
I have tried changing userexit to no, and logretain to recovery.

Is there a way to roll forward without the customer's user exit
program? or pehaps there is something else I have missed here?

Regards
Dave Arnold

Apr 3 '06 #11
Philip,
I am building a duplicate database. This is a customer data base that
we need to install on our site for a project. We have the backup and
logs, but do not have their user exit pgm.

One other thought I had over the weekend was to try to use the sample
Windows db2uext2.cdisk. But I was hoping for an easier solution

Dave

Apr 3 '06 #12
DaveA wrote:
Philip,
I am building a duplicate database. This is a customer data base that
we need to install on our site for a project. We have the backup and
logs, but do not have their user exit pgm.

One other thought I had over the weekend was to try to use the sample
Windows db2uext2.cdisk. But I was hoping for an easier solution


Is there anything in the log files that you really need? If not, you could
do the restore with the WITHOUT ROLLING FORWARD option. Then the backup
image is applied only.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Apr 3 '06 #13
For a restore from an online backup image, one would still need to
supply all/any logs till the end of backup operation. DB2 will still
play thru these minimum logs even if there aren't any transactions.
WITHOUT ROLLING FORWARD will not help in this case.

Can you take an offline backup and restore?

BTW, Per V7.2 documentation (Administration Guide: Implementation) ,
error 1 treated as error 32 - "The user exit was terminated by the
user"

Keith Ponnapalli
adv_dba at yahoo dot com
IBM Certified Advanced Database Administrator - DB2 UDB V8.1 for Linux,
UNIX, and Windows
INFORMIX Certified Database Administrator

Knut Stolze wrote:
DaveA wrote:
Philip,
I am building a duplicate database. This is a customer data base that
we need to install on our site for a project. We have the backup and
logs, but do not have their user exit pgm.

One other thought I had over the weekend was to try to use the sample
Windows db2uext2.cdisk. But I was hoping for an easier solution


Is there anything in the log files that you really need? If not, you could
do the restore with the WITHOUT ROLLING FORWARD option. Then the backup
image is applied only.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany


Apr 3 '06 #14
Knut,
Thanks for the suggestion. Ultimatly we need all the data, but I tried
your suggestion with the hope that at least that would give us some
data to get started, but I got error SQL2537N Roll-forward is required
following the Restore.

Frankly, I am somewhat surprised I have seen no postings on this
problem. What I am trying to do seems like a normal requirement
Certainly we do it all the time with other customers. I suspect this is
the first time though that we have encountered the use of the user
exit.

Apr 3 '06 #15
Keith wrote:
For a restore from an online backup image, one would still need to
supply all/any logs till the end of backup operation. DB2 will still
play thru these minimum logs even if there aren't any transactions.
WITHOUT ROLLING FORWARD will not help in this case.


This is true. At some point (V8.2?) the logs written during the backup
operation are already included in the backup image. But that's all
guessing because we don't know the details.

Another idea might be to create the database, restore it from the backup
image, then copy the logs to the respective directory and then do the
rollforward. W/o the user exit being activated, DB2 might (I don't know
for sure) search for the log files in the logpath. When rollforward finds
it there, you're happy.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Apr 3 '06 #16
Since you needed a redirected restore, I assume that the disk
architecture/directory structure doesn't match the production system.

Did you make sure that the database log location, after restore, points
to the correct drive/path where you copied the logs? If you have to have
the user exit, you could write one that indicates the log is available
in the appropriate directory without actually doing anything.

Phil Sherman

DaveA wrote:
Philip,
I am building a duplicate database. This is a customer data base that
we need to install on our site for a project. We have the backup and
logs, but do not have their user exit pgm.

One other thought I had over the weekend was to try to use the sample
Windows db2uext2.cdisk. But I was hoping for an easier solution

Dave

Apr 3 '06 #17
Tim
Hi Dave

What I would suggest is once you have the database restored but not yet
rolled forward, do a db2 get db cfg for ae12sym and look for the line
with Path to log files in it. Then put all the logs you need for
rolling forward in this directory, make sure aren't compressed or
anything like that and that they all have a name of the format
Snnnnnnn.LOG. At this point a simple db2 rollforward database stop
should work just fine assuming you only want to take the database out
of rollforward pending.

If you do want to rollforward pass the necessary arguements to db2
rollforward database. All DB2 wants is having the logs in a place
where it can get to them. A user exit is pretty much useless in a
redirected restore into another database as far as I know (feel free to
correct me if I'm wrong).

regards
tim

Apr 4 '06 #18
Tim,
Thankyou! The stop option was what finally resolved this for me.

Dave.

Apr 4 '06 #19

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

Similar topics

2
2622
by: Raquel | last post by:
I have asked a similar question before, but am still not very clear on this......expecting some insights on this one.... Ok, so these are the two pieces of information regarding archived logs during a rollforward recovery in a recoverable database: 1. OVERFLOWLOGPATH configuration parameter can specify a location for DB2 to find log files that are needed for rollforward operations. 2. The database configuration file parameter...
1
9801
by: Steven | last post by:
Ok W2K DB2 v8.1 fix pack 5. On production I took a an online backup of production and copied it over to my staging environment. restored the production database on top of staging database redirect. I copied over all the log files from production box to a temp directory. restore was complete with redirect and staging went into roll forward pending.
2
3121
by: shenanwei | last post by:
DB2 V8.1.5 on Windows. When I execute ROLLFORWARD after a Restore. C:\db2 ROLLFORWARD db sample to END OF LOGS overflow log path(C:\LOGS\) Rollforward Status Input database alias = sample Number of nodes have returned status = 1
3
3412
by: t2581 | last post by:
Hi , I run restore with rollforward In job in output, last commited transaction time less then backup image time Is it normal ? RESTORE DATABASE PRICE_V8 FROM "E:\BACKUP" TAKEN AT 20050610095841 TO "D:" INTO PR_READ NEWLOGPATH "D:\DB2_FILES\PR_READ\LOG" WITH 2 BUFFERS BUFFER 1024 REDIRECT PARALLELISM 1 WITHOUT PROMPTING .....
3
2526
by: EC | last post by:
We have two DB2 servers are supposed to be a replicate of each other with a database of the same name. I want to do a 'db2 db backup online... include logs' on the first server, and do a 'db2 restore db to ... logtarget...' on the second server, and then rollforward ONLY those logs that were included in the backup image. Both databases may have the same DB id because of previous restores. However, the second server might have additional...
2
1818
by: satish mullapudi | last post by:
Hi, Am facing a tough situation & the scenario goes like this: I have scheduled online backup on a db. The online backup is scheduled to run daily at 12 in the night. Now am to restore the same db in another server . I have with me the backup image & 50 logs which I need to rollforward. When am trying to restore it is working fine & the db goes into ROLLFORWARD PENDING state as expected. When am trying to ROLLFORWARD the db, it is saying...
1
2201
by: Patrick Finnegan | last post by:
The db2 diag log shows the last log file archived was S0011941.LOG. cat db2diag.log| grep -i archived MESSAGE : Successfully archived log file S0011938.LOG to USEREXIT from MESSAGE : Successfully archived log file S0011939.LOG to USEREXIT from MESSAGE : Successfully archived log file S0011940.LOG to USEREXIT from MESSAGE : Successfully archived log file S0011941.LOG to USEREXIT from However the db config examined after archive...
2
5529
by: Patrick Finnegan | last post by:
Running db2 8.2 ON aIX 5.3. We have a third party USEREXIT program that periodically hangs for some unknown reason. Db2 generates error message to the diag log. MESSAGE : Successfully archived log file S0011930.LOG to USEREXIT from
0
65317
by: shorti | last post by:
We are running DB2 UDB 8.1 fp 14 on AIX using archival logging and online backups. I was running some disaster tests and found my database restore was not restoring to the latest active log. Online backup include logs. For this test I created a disaster where we lost the database about 30 minutes after the last backup. Current archive and active logs were saved off and I ran a Restore of the latest backup and rollforward to the end of...
0
9814
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9666
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10836
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
10543
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
10585
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
9368
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...
0
5819
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4447
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
3
3108
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.