Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to Create a Backup Site ?

 
   Database Forums (Home) -> Ingres RSS
Next:  Project Management Knowledge Base !  
Author Message
thiagomz

External


Since: May 26, 2008
Posts: 15



(Msg. 1) Posted: Wed Aug 20, 2008 9:38 am
Post subject: How to Create a Backup Site ?
Archived from groups: comp>databases>ingres (more info?)

Hi There,

My Boss ask me how to create a Backup site for Ingres Database, I looked
at Ingres Documentation and the only solution that I can found was use
ingres replicator to whole the database.

I ask you guys. There are other ways to do that ?

There are a way to replicate journal like a Oracle Standby Database ?

Thank you All !!

Regards

Thiago Zerbinato
Ribeirao Preto, SP
Brazil

 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
Karl Betty Schend1

External


Since: Jul 21, 2004
Posts: 121



(Msg. 2) Posted: Wed Aug 20, 2008 9:38 am
Post subject: Re: [Info-Ingres] How to Create a Backup Site ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 20, 2008, at 8:38 AM, thiagomz wrote:

> Hi There,
>
> My Boss ask me how to create a Backup site for Ingres Database, I
> looked
> at Ingres Documentation and the only solution that I can found was use
> ingres replicator to whole the database.
>
> I ask you guys. There are other ways to do that ?
>

It depends on a few things, but mainly on whether you need
the standby to be exact up to the most recent committed transaction,
or if you can tolerate the standby being a couple minutes out of
date in the worst case.

If you need a standby that is guaranteed to be always
exactly in sync with the primary, I think your only
option right now is replication. You can use the
traditional Ingres replicator or the HVR product.
HVR might be easier to set up and keep running.
I think Ingres Corp is working with Golden Gate on a
log based replicator, but I don't know any details or
timeframes.

If you can tolerate the standby being possibly a few minutes
out of date, what you can do is set up an exactly identical
Ingres installation on another machine. This installation
has to have the same directory paths as the primary. You then
take checkpoints on the primary and rollforward them on the
standby. Journal files get copied incrementally from primary
to standby, and if the primary fails, the journals are
rolled forward on the backup. (There's an incremental
journal rollforward feature that I think is in ingres2006r3
that makes this much easier. With older versions you have to
be careful to restore the checkpoint snapshot with +c -j,
and only restore the journals if needed since you only get
one shot.) You can use something like rsync to minimize the
data transferred between primary and standby.

With the journal-copy solution, you'll probably want to issue
trace point DM1314 before copying a new journal increment.
DM1314 forces an early journal cycle so that you don't miss
transactions that are sitting in the transaction log, waiting
for the next journal cycle.

Karl

 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
Karl Betty Schend1

External


Since: Jul 21, 2004
Posts: 121



(Msg. 3) Posted: Wed Aug 20, 2008 11:27 am
Post subject: Re: [Info-Ingres] How to Create a Backup Site ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 20, 2008, at 10:14 AM, Gerard Schoorl wrote:

> HVR already supports log-based capture for Ingres databases.
> Support is from Ingres 2.6, unto and including Ingres 2006 R3.


Thanks for the correction, Gerard; I see I'm a bit behind the times!

Karl



>
> -----Original Message-----
> From: info-ingres-bounces.RemoveThis@kettleriverconsulting.com
> [mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of
> Karl
> & Betty Schendel
> Sent: Wednesday, August 20, 2008 3:29 PM
> To: Ingres and related product discussion forum
> Subject: Re: [Info-Ingres] How to Create a Backup Site ?
>
>
> On Aug 20, 2008, at 8:38 AM, thiagomz wrote:
>
>> Hi There,
>>
>> My Boss ask me how to create a Backup site for Ingres Database, I
>> looked
>> at Ingres Documentation and the only solution that I can found was
>> use
>> ingres replicator to whole the database.
>>
>> I ask you guys. There are other ways to do that ?
>>
>
> It depends on a few things, but mainly on whether you need
> the standby to be exact up to the most recent committed transaction,
> or if you can tolerate the standby being a couple minutes out of
> date in the worst case.
>
> If you need a standby that is guaranteed to be always
> exactly in sync with the primary, I think your only
> option right now is replication. You can use the
> traditional Ingres replicator or the HVR product.
> HVR might be easier to set up and keep running.
> I think Ingres Corp is working with Golden Gate on a
> log based replicator, but I don't know any details or
> timeframes.
> ...
 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
Gerard Schoorl

External


Since: Aug 20, 2008
Posts: 1



(Msg. 4) Posted: Wed Aug 20, 2008 4:14 pm
Post subject: Re: [Info-Ingres] How to Create a Backup Site ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

HVR already supports log-based capture for Ingres databases.
Support is from Ingres 2.6, unto and including Ingres 2006 R3.

Gerard Schoorl
PSB / High Volume Replication bv
Haaksbergweg 45
1101 BR Amsterdam
The Netherlands
+31 20 312 75 16
http://www.hvr.biz

-----Original Message-----
From: info-ingres-bounces DeleteThis @kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of Karl
& Betty Schendel
Sent: Wednesday, August 20, 2008 3:29 PM
To: Ingres and related product discussion forum
Subject: Re: [Info-Ingres] How to Create a Backup Site ?


On Aug 20, 2008, at 8:38 AM, thiagomz wrote:

> Hi There,
>
> My Boss ask me how to create a Backup site for Ingres Database, I
> looked
> at Ingres Documentation and the only solution that I can found was use
> ingres replicator to whole the database.
>
> I ask you guys. There are other ways to do that ?
>

It depends on a few things, but mainly on whether you need
the standby to be exact up to the most recent committed transaction,
or if you can tolerate the standby being a couple minutes out of
date in the worst case.

If you need a standby that is guaranteed to be always
exactly in sync with the primary, I think your only
option right now is replication. You can use the
traditional Ingres replicator or the HVR product.
HVR might be easier to set up and keep running.
I think Ingres Corp is working with Golden Gate on a
log based replicator, but I don't know any details or
timeframes.

If you can tolerate the standby being possibly a few minutes
out of date, what you can do is set up an exactly identical
Ingres installation on another machine. This installation
has to have the same directory paths as the primary. You then
take checkpoints on the primary and rollforward them on the
standby. Journal files get copied incrementally from primary
to standby, and if the primary fails, the journals are
rolled forward on the backup. (There's an incremental
journal rollforward feature that I think is in ingres2006r3
that makes this much easier. With older versions you have to
be careful to restore the checkpoint snapshot with +c -j,
and only restore the journals if needed since you only get
one shot.) You can use something like rsync to minimize the
data transferred between primary and standby.

With the journal-copy solution, you'll probably want to issue
trace point DM1314 before copying a new journal increment.
DM1314 forces an early journal cycle so that you don't miss
transactions that are sitting in the transaction log, waiting
for the next journal cycle.

Karl

_______________________________________________
Info-Ingres mailing list
Info-Ingres DeleteThis @kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet
Managed Scanning Services - powered by MessageLabs. For further
information visit http://www.verizonbusiness.com/uk
 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
thiagomz

External


Since: May 26, 2008
Posts: 15



(Msg. 5) Posted: Thu Aug 21, 2008 12:23 pm
Post subject: Re: How to Create a Backup Site ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Guys,

Thank all ! I´ll try that´s possible solutions.

Regargs,

Thiago

thiagomz escreveu:
> Hi There,
>
> My Boss ask me how to create a Backup site for Ingres Database, I looked
> at Ingres Documentation and the only solution that I can found was use
> ingres replicator to whole the database.
>
> I ask you guys. There are other ways to do that ?
>
> There are a way to replicate journal like a Oracle Standby Database ?
>
> Thank you All !!
>
> Regards
>
> Thiago Zerbinato
> Ribeirao Preto, SP
> Brazil
 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
Oscar_Carlés

External


Since: May 03, 2005
Posts: 13



(Msg. 6) Posted: Fri Aug 22, 2008 5:43 pm
Post subject: Re: [Info-Ingres] How to Create a Backup Site ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi all!
I am running Ingres 2.6 sp5 on a Tru64 box.
My disaster recovery schema, include a periodic copy (about each 20
minutes) of production environment journals to another machine file system.
According to mails below, I want to execute trace point DM1314, just
before copying journal files to remote machine.
Is there any known risk to do this?

Your comments will be appreciated

Regards

Oscar Carlés

Karl & Betty Schendel wrote:
> On Aug 20, 2008, at 8:38 AM, thiagomz wrote:
>
>
>> Hi There,
>>
>> My Boss ask me how to create a Backup site for Ingres Database, I
>> looked
>> at Ingres Documentation and the only solution that I can found was use
>> ingres replicator to whole the database.
>>
>> I ask you guys. There are other ways to do that ?
>>
>>
>
> It depends on a few things, but mainly on whether you need
> the standby to be exact up to the most recent committed transaction,
> or if you can tolerate the standby being a couple minutes out of
> date in the worst case.
>
> If you need a standby that is guaranteed to be always
> exactly in sync with the primary, I think your only
> option right now is replication. You can use the
> traditional Ingres replicator or the HVR product.
> HVR might be easier to set up and keep running.
> I think Ingres Corp is working with Golden Gate on a
> log based replicator, but I don't know any details or
> timeframes.
>
> If you can tolerate the standby being possibly a few minutes
> out of date, what you can do is set up an exactly identical
> Ingres installation on another machine. This installation
> has to have the same directory paths as the primary. You then
> take checkpoints on the primary and rollforward them on the
> standby. Journal files get copied incrementally from primary
> to standby, and if the primary fails, the journals are
> rolled forward on the backup. (There's an incremental
> journal rollforward feature that I think is in ingres2006r3
> that makes this much easier. With older versions you have to
> be careful to restore the checkpoint snapshot with +c -j,
> and only restore the journals if needed since you only get
> one shot.) You can use something like rsync to minimize the
> data transferred between primary and standby.
>
> With the journal-copy solution, you'll probably want to issue
> trace point DM1314 before copying a new journal increment.
> DM1314 forces an early journal cycle so that you don't miss
> transactions that are sitting in the transaction log, waiting
> for the next journal cycle.
>
> Karl
>
> _______________________________________________
> Info-Ingres mailing list
> Info-Ingres DeleteThis @kettleriverconsulting.com
> http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres
>
>


--
Lic. Oscar Carlés Barriocanal
Director de Servicios al Cliente
Íntegra S.R.L.
Telefax: (595 21) 424473 RA
Asunción - Paraguay
 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
Karl Betty Schend1

External


Since: Jul 21, 2004
Posts: 121



(Msg. 7) Posted: Fri Aug 22, 2008 5:58 pm
Post subject: Re: [Info-Ingres] How to Create a Backup Site ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 22, 2008, at 5:43 PM, Oscar Carlés wrote:

> Hi all!
> I am running Ingres 2.6 sp5 on a Tru64 box.
> My disaster recovery schema, include a periodic copy (about each 20
> minutes) of production environment journals to another machine file
> system.
> According to mails below, I want to execute trace point DM1314, just
> before copying journal files to remote machine.
> Is there any known risk to do this?
>

It's safe enough.

I should have added, in order to ensure that the archive cycle has
finished, it is a good idea to wait a few seconds after issuing the
DM1314 trace point (to give the archiver time to notice and wake up),
and then issue logstat -header commands until ARCHIVE no longer
shows in the status. It's quite possible that the cycle will
already be finished, but if you see ARCHIVE in the status then
the archiver is still doing its thing and you need to wait longer.

Another point, it doesn't matter which database you issue the
DM1314 against, it applies to the whole installation.

Karl
 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
thiagomz

External


Since: May 26, 2008
Posts: 15



(Msg. 8) Posted: Mon Aug 25, 2008 9:53 am
Post subject: Re: How to Create a Backup Site ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

thiagomz escreveu:
> Hi There,
>
> My Boss ask me how to create a Backup site for Ingres Database, I looked
> at Ingres Documentation and the only solution that I can found was use
> ingres replicator to whole the database.
>
> I ask you guys. There are other ways to do that ?
>
> There are a way to replicate journal like a Oracle Standby Database ?
>
> Thank you All !!
>
> Regards
>
> Thiago Zerbinato
> Ribeirao Preto, SP
> Brazil

Guys,

Just for information, replies from Ingres Community Forum:

Reply 1
=======

Hi,
It depends what sort of backup site you want. If you need an on-line
'fail-safe' back up site then replication or mirroring is a solution.
HVR replication tool works extremely well with Ingres. If you are
looking for an off-line backup site then wouldn't a good DR strategy of
checkpointing to seperate file systems in conjunction with tape backups
be a solution.

There is a white paper on DR
http://broadspire-louk.navisite.net/...gres-WP-CN.pdf

Regards
Matt

Reply 2
========


Assuming a replicator type solution is acceptable then there are 3
solution; Ingres Replicator (flexible but not too scalable), PSB HVR
(very fast and scalable, but will cost extra money), GoldenGate (also
very fast, good high-end reputation, will cost extra money, still in
alpha/beta testing).

If you want a solution closer to the Oracle backup based live DR to one
read-only copy then you will probably need the incremental rollforward
feature available in Ingres 9.2 (still beta). The current draft of the
release guide documents:

-----------------------------------------------------------------------
Incremental Rollforwarddb

The incremental rollforwarddb feature allows the journals from a
database to be incrementally applied, as they are generated, to a backup
copy of the database.
This feature can be used to minimize downtime in the event that the
backup database is needed for disaster recovery.
For this feature, two new options are added to the rollforwarddb command:

* -incremental
* -norollback

To use the incremental rollforwarddb feature

* Start the incremental rollforwarddb by issuing the following command:

rollforwarddb dbname +c -j -incremental

* Issue one or more of the following commands to cause
rollforwarddb to discover new journals and apply them.

rollforwarddb dbname -c +j -norollback

The database remains inconsistent and readonly.

* Discover and apply new journals by issuing the following command:

rollforwarddb dbname -c +j -rollback

The incremental rollforwarddb ends, and the database is marked
consistent and updateable.

--------------------------------------------------------------------------

Note that this feature gives you the basis you need to create a disaster
recover scenario, but it is not the whole package. Ingres services are
planning to put together a packaged engagement to set this up in a
supported fashion (in much the same way that the Oracle version
developed), if you are interested inn the completed package contact the
Ingres services organization.
 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
Karl Betty Schend1

External


Since: Jul 21, 2004
Posts: 121



(Msg. 9) Posted: Mon Aug 25, 2008 3:42 pm
Post subject: Re: [Info-Ingres] How to Create a Backup Site ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 25, 2008, at 3:07 PM, thiagomz wrote:

> Karl & Betty Schendel escreveu:
>>
>> On Aug 22, 2008, at 5:43 PM, Oscar Carlés wrote:
>>>
>>> According to mails below, I want to execute trace point DM1314, just
>>> before copying journal files to remote machine.
>>> Is there any known risk to do this?
>>>
>>
>> It's safe enough.
>>
> Karl,
>
> The event "DM1314 trace point" is the same as execute an "alterdb mydb
> -next_jnl_file" ?

No, it's not quite the same. DM1314 forces the archiver to run
even though a consistency point has not been reached (consistency
points and database close are the two main archiver cycle triggers).
The archiver cycle is run normally and no new journal file is
started unless the size guideline has been reached.

The alterdb -next_jnl_file command forces a new journal file to
start. I think it also forces a journaling cycle, like DM1314,
but I'm not 100% sure of that ... I'd have to take a look
at the code.

Karl
 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
thiagomz

External


Since: May 26, 2008
Posts: 15



(Msg. 10) Posted: Mon Aug 25, 2008 4:07 pm
Post subject: Re: [Info-Ingres] How to Create a Backup Site ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Karl & Betty Schendel escreveu:
>
> On Aug 22, 2008, at 5:43 PM, Oscar Carlés wrote:
>
>> Hi all!
>> I am running Ingres 2.6 sp5 on a Tru64 box.
>> My disaster recovery schema, include a periodic copy (about each 20
>> minutes) of production environment journals to another machine file
>> system.
>> According to mails below, I want to execute trace point DM1314, just
>> before copying journal files to remote machine.
>> Is there any known risk to do this?
>>
>
> It's safe enough.
>
> I should have added, in order to ensure that the archive cycle has
> finished, it is a good idea to wait a few seconds after issuing the
> DM1314 trace point (to give the archiver time to notice and wake up),
> and then issue logstat -header commands until ARCHIVE no longer
> shows in the status. It's quite possible that the cycle will
> already be finished, but if you see ARCHIVE in the status then
> the archiver is still doing its thing and you need to wait longer.
>
> Another point, it doesn't matter which database you issue the
> DM1314 against, it applies to the whole installation.
>
> Karl
>
>

Karl,

The event "DM1314 trace point" is the same as execute an "alterdb mydb
-next_jnl_file" ?

--
Regards,

Thiago Zerbinato
Oracle/Ingres DBA
Ribeirao Preto/SP
Brazil
 >> Stay informed about: How to Create a Backup Site ? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Info-ingres] IngresCorp Support Site - Hi Dudes and Dudettes, What are peoples thoughts on the IngresCorp support web site? Here are a few of my thoughts. 1. The login screen user/password doesn't remember me. Which is annoying. 2. The Open Issue page doesn't have that cute little flag th...

Cannot create database - Hi, I am a beginner with ingres. I can't create a new datbase with the following error: [ingres@ce1] </usr/sgbd/ingres/utility> createdb testcgi -ucgi Creating database 'testcgi' . . . E_SC0206 An internal error prevents further processing of th...

CREATE INDEX parallel vs CREATE INDEX in sequence - Hi all, I have a table with 6 382 316 tuples and 7 indexes, 2 K pages. Table is Heap. Ingres version is II 9.0.4 (a64.lnx/105)NPTL on RedHat. To rebuild indexes, I try two method : - "old school" : CREATE INDEX in sequence - "new style&q...

Process hanging on Endselect - We have a process which needs to produce an average figure over the last 16 qualifying weeks. The way it currently works is to select the rows from the two relevant tables ordered by date descending, then in a select loop check if the week qualifies and...

E_DM9063_LK_TABLE_MAXLOCKS - We have a weekly job that takes a COPY.OUT from the "Live" database and then does a COPY.IN to a development database in a separate installation. I've noticed that in one instance, the ERRLOG is getting a number of messages of the general form...
   Database Forums (Home) -> Ingres All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]