这个备份策略怎么做

[复制链接]
查看11 | 回复9 | 2009-1-4 14:52:28 | 显示全部楼层 |阅读模式
要求最多损失2小时内的数据,采用RMAN备份,谢谢
回复

使用道具 举报

千问 | 2009-1-4 14:52:28 | 显示全部楼层
每2小时 对当前重做日志归档 备份
回复

使用道具 举报

千问 | 2009-1-4 14:52:28 | 显示全部楼层
设定下面的这个参数!
ARCHIVE_LAG_TARGET=7200
回复

使用道具 举报

千问 | 2009-1-4 14:52:28 | 显示全部楼层
thx
回复

使用道具 举报

千问 | 2009-1-4 14:52:28 | 显示全部楼层
最初由 Silentman 发布
[B]设定下面的这个参数!
ARCHIVE_LAG_TARGET=7200 [/B]

给这个参数是何义?好像跟楼主要求不搭界吧?
回复

使用道具 举报

千问 | 2009-1-4 14:52:28 | 显示全部楼层
Rman +归档
一切都ok'
回复

使用道具 举报

千问 | 2009-1-4 14:52:28 | 显示全部楼层
standby吧.
回复

使用道具 举报

千问 | 2009-1-4 14:52:28 | 显示全部楼层
最初由 yanggq 发布
[B]standby吧. [/B]

人家2小时数据损失都可以接受,不至于要standby吧?毕竟要多花钱的。
我觉得比较实际的方法是rman备份,看归档日志生成情况,如果慢就半小时switch logfile, 然后copy日志文件。这可以用shell自动实现,最多损失半小时数据,比楼主预期可好多了。
回复

使用道具 举报

千问 | 2009-1-4 14:52:28 | 显示全部楼层
Setting the ARCHIVE_LAG_TARGET Initialization Parameter
When you set the ARCHIVE_LAG_TARGET initialization parameter, you cause Oracle to examine an instance's current online redo log periodically. If the following conditions are met the instance will switch the log:
The current log was created prior to n seconds ago, and the estimated archival time for the current log is m seconds (proportional to the number of redo blocks used in the current log), where n + m exceeds the value of the ARCHIVE_LAG_TARGET initialization parameter.
The current log contains redo records.
In an Oracle Real Application Clusters environment, the instance also nudges other threads into switching and archiving logs if they are falling behind. This can be particularly useful when one instance in the cluster is more idle than the other instances (as when you are running a 2-node primary/secondary configuration of Oracle Real Application Clusters).
Initialization parameter ARCHIVE_LAG_TARGET specifies the target of how many seconds of redo the standby could lose in the event of a primary shutdown or crash if the Data Guard environment is not configured in a no-data-loss mode. It also provides an upper limit of how long (in the number of seconds) the current log of the primary database can span. Because the estimated archival time is also considered, this is not the exact log switch time.
The following initialization parameter setting sets the log switch interval to 30 minutes (a typical value).
ARCHIVE_LAG_TARGET = 1800

A value of 0 disables this time-based log switching functionality. This is the default setting.
You can set the ARCHIVE_LAG_TARGET initialization parameter even if there is no standby database. For example, the ARCHIVE_LAG_TARGET parameter can be set specifically to force logs to be switched and archived.
ARCHIVE_LAG_TARGET is a dynamic parameter and can be set with the ALTER SYSTEM SET statement.
回复

使用道具 举报

千问 | 2009-1-4 14:52:28 | 显示全部楼层
最初由 xinjingcool 发布
[B]Setting the ARCHIVE_LAG_TARGET Initialization Parameter
When you set the ARCHIVE_LAG_TARGET initialization parameter, you cause Oracle to examine an instance's current online redo log periodically. If the following conditions are met the instance will switch the log:
The current log was created prior to n seconds ago, and the estimated archival time for the current log is m seconds (proportional to the number of redo blocks used in the current log), where n + m exceeds the value of the ARCHIVE_LAG_TARGET initialization parameter.
The current log contains redo records.
In an Oracle Real Application Clusters environment, the instance also nudges other threads into switching and archiving logs if they are falling behind. This can be particularly useful when one instance in the cluster is more idle than the other instances (as when you are running a 2-node primary/secondary configuration of Oracle Real Application Clusters).
Initialization parameter ARCHIVE_LAG_TARGET specifies the target of how many seconds of redo the standby could lose in the event of a primary shutdown or crash if the Data Guard environment is not configured in a no-data-loss mode. It also provides an upper limit of how long (in the number of seconds) the current log of the primary database can span. Because the estimated archival time is also considered, this is not the exact log switch time.
The following initialization parameter setting sets the log switch interval to 30 minutes (a typical value).
ARCHIVE_LAG_TARGET = 1800

A value of 0 disables this time-based log switching functionality. This is the default setting.
You can set the ARCHIVE_LAG_TARGET initialization parameter even if there is no standby database. For example, the ARCHIVE_LAG_TARGET parameter can be set specifically to force logs to be switched and archived.
ARCHIVE_LAG_TARGET is a dynamic parameter and can be set with the ALTER SYSTEM SET statement. [/B]

受教。。。


看完了才想起以前学过的。从来没用居然忘了。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行