473,498 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

db2 archive log shipping

1 New Member
Hi,
I have Db2 8.1.1.152 FixPack 17 on AIX using SAP with DB2. we wanted to have a DR site. we are backing our production using TSM. we just restored the filesystem and later the DB2 data on DR site. every thing seemed to work fine. now we want to have online DR, for this we are shipping archive logs from production to DR site. but if we say
db2 rollforward db <dbname> to end of logs and complete
then this DR DB2 starts creating archive logs. but we want to keep shipping archive logs from production to DR, and then again do rollforward. for this reason we tried
after complete we will
db2rfpen on dbname
this command will again bring it in rollforward pending state.

is there any other way that we can do, that archive logs keep shipping and we dont have to keep our db in rollforward pending state. or if we it is not in rollforward pending state, it should not create its own archive logs instead wait for the logs coming from production site.
please advise soon
adeelsanaullah gmail com
Jul 19 '11 #1
1 3772
vijay2082
112 New Member
Hi,

Probably you are having a DR site by using the log shipping technology. Use below command to rollforward your database and keep it in rollforward pending mode.

1) Once your batch job runs and log file are shipped to DR server go to step 2

2) use below command to rollforward the database through the logs from step 1

db2 "rollforward db <db_name> to eng of logs"

Now to go to step 1 > and then to step 2 ....you will have a database which will be in sync with your production as long as you have all log files form step1.

If your production database is unavailable and you want to make your DR database up, then move the exisitng logs form primary to the DR site and use below command

db2 "rollforward db <db_name> to eng of logs and complete"

Above command will apply the existing logs to the database and open your database for read/write activity. Also your database at DR site will start archiving logs as well and will act as standlone active database.


You can also trying using the HADR feature form the IBM form db2 udb databases that will take care of log apply and automatic failover as and when required.

Cheers, Vijay
Jul 30 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
5986
by: Tim Groulx | last post by:
Hello, I am setting up log shipping between two SQL servers. Everything in the setup seems to work fine. The problem I am having is that the "Log Shipping Alert Job - Backup" job is failing,...
4
2124
by: Jason Huang | last post by:
Hi, In the MS SQL 2000 Server, if the log shipping is set up right, does that mean data in primary server changed will mapped to secondary server later on? Thanks. Jason
0
1697
by: InProcess | last post by:
We have successfully implemented Log Shipping between two MS SQL Server 2000 servers (bothe SP3). The problem we are having is two fold: 1) The tran log on the primary server is not being truncated...
1
1839
by: tram | last post by:
I have to schedule the automatic restore the standby database for testing backups . The database was already in log shipping mode. Up to what point do I need to restore the database without...
10
4233
by: Howard Martin | last post by:
I have a form at http://www.develop.check.com.au/hh/order.html where an extended sub-total and then a grand total is calculated as soon as a quantity is input by a user. I would like to be able to...
3
2624
by: Peter Sands | last post by:
Hi, I want to implement some log shipping from a production server to a remote stand-by server. I am using db2uext to do this. But is their a way I can 'twig' the db2uext.cdisk prog to FTP instead...
2
4077
by: nek | last post by:
Greetings, I tried to implement log shipping using PULL method as described in 'The Basics of DB2 Log Shipping' by Dale McInnis, but found the subsequent "rollforward" did not go beyond the...
2
4352
by: Fred | last post by:
Hi. Sorry, but I don't know where else to ask. I wrote a access shipping database and we currently use the web interface for DHL to print shipping labels. That means we have to manualy transpose...
6
4607
by: Chris Buckett | last post by:
Hi, I was just wondering if anyone has had any experience in developing a shipping matrix. We are based in the UK, and we need to ship both locally and internationally. Local shipping is...
2
3663
by: situ | last post by:
Greeting, I'm using Db2 9.5 for windows. would anybody please suggest me on how to "automate log shipping "? Regards, situ
0
6993
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...
0
7162
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
7197
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...
1
6881
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
5456
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,...
1
4899
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...
0
3088
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
287
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...

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.