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

Automate Log shipping

Greeting,
I'm using Db2 9.5 for windows.

would anybody please suggest me on how to "automate log shipping "?

Regards,
situ
Aug 21 '08 #1
2 3661
Ian
situ wrote:
Greeting,
I'm using Db2 9.5 for windows.

would anybody please suggest me on how to "automate log shipping "?
HADR is certainly the best method.

On Windows, if both servers can see each other directly, you can do
this by using LOGARCHMETH2 and using a UNC path for a share on the
standby server, as in DISK:\\server2\share. This requires that the
privileges be set up properly (easiest if both machines are in a domain,
and the DB2 instance owner on both servers is the same domain ID).

The alternate method is to write some batch / shell scripts that will
run periodically to copy the archive log files from the primary server
to the secondary.
In both cases, you would need to have a scheduled task that runs on
the standby server to issue the rollforward database command to apply
the new transaction logs that have been shipped from the primary server.
Aug 22 '08 #2
On Aug 21, 3:44*am, situ <SRIDHAR...@rediffmail.comwrote:
Greeting,
I'm using Db2 9.5 for windows.

would anybody please suggest me on how to "automate log shipping "?

Regards,
situ
There are parameters in your db cfg that allow you to do that. HADR
is one possibility.
The simplest is to use LOGARCHMETH1 and LOGARCHMETH2.
You can use the first parm. to archive a copy wherever you need:on
system disk, tape, remote disks, TASM, Veritas, ....
You use the the second parm. to do the same to archive any of the
other places but the one you chose for the first parm.

So if you can map your receiving drives on the remote system where you
want to ship to your DB2 system then all you need to do is update, in
your db cfg:
LOGRETAIN=RECOVERY and LOGARCHMETH1 or METH2 to <remote data path>

From then on, any time a log file fills, whatever the state of the
transactions in it, the log will automatically ship to the target.

Hope this helps, Pierre.
Aug 22 '08 #3

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

Similar topics

6
by: Demetris | last post by:
hello people! I am very new to the SQL World. Currently I work on DB2 and ORACLE and this is a new "fruit" for me. I have the task to automate the following scenario: - backup database A -...
2
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
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
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
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
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...
2
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...
0
by: ppatel | last post by:
In shopping cart I have a Product Quantity and Unitcost per product. Should I calculate shipping (per item weight * Quantity) for each item or should I add up total weight and calculate shipping...
6
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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...

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.