- 浏览: 27383 次
- 性别:
- 来自: 北京
最新评论
1. objective:
copy online redologs to offline desitination
database recovery
update standby database
2.change redolog mode(archive log mode)
in oracle 10g startup mount
alter database archivelog/noarchivelog
in oracle 9i startup mount
alter database archivelog/noarchivelog
alter system archive log start/stop;
in oracle 10g, if enable archive log,automatic archving log start also. oracle 9i is not.
3.start/stop automantic archive at instance startup
(oracle 9i)
alter system set log_archive_start=false;
alter system set log_archive_max_process=5;(maximum 10)
alter system archive log stop/start
(ORACLE 10g)
alter database archivelog manual;
4.log archive destination
log_archive_dest_n(n>=1and n<=10) (oracle 10g)
log_archive_dumplex_dest=(oracle 9i)
log_archive_dest=(9i)
5.archived log format
log_archive_format %S%s%T%t
6.get archive log information
archive log list
v$archived_log;
v$archive_dest;
v$log_history;
select archiver from v$instance;
select log_mode from v$database;
7.archive dest state
LOG_ARCHIVE_DEST_STATE_n
ENABLE
indicates that the database can use the destination.
DEFER
indicates that the location is temporarily disabled.
ALTERNATE
indicates that the destination is an alternate.
8.the Mode of Log Transmission
Normal:In normal transmission mode, the archiving destination is another disk drive of the database server.
Standby:In standby transmission mode, the archiving destination is either a local or remote standby database.keep your standby database synchronized with your source database by automatically applying transmitted archive logs.
To transmit files successfully to a standby database, either ARCn or a server process must do the following:
-
Recognize a remote location
-
Transmit the archived logs in conjunction with a remote file server (RFS) process that resides on the remote server
Each ARCn process has a corresponding RFS for each standby destination. For example, if three ARCn processes are archiving to two standby databases, then Oracle Database establishes six RFS connections.
You transmit archived logs through a network to a remote location by using Oracle Net Services. Indicate a remote archival by specifying a Oracle Net service name as an attribute of the destination. Oracle Database then translates the service name, through the tnsnames.ora
file, to a connect descriptor. The descriptor contains the information necessary for connecting to the remote database. The service name must have an associated database SID, so that the database correctly updates the log history of the control file for the standby database.
The RFS process, which runs on the destination node, acts as a network server to the ARCn client. Essentially, ARCn pushes information to RFS, which transmits it to the standby database.
The RFS process, which is required when archiving to a remote destination, is responsible for the following tasks:
-
Consuming network I/O from the ARCn process
-
Creating file names on the standby database by using the
STANDBY_ARCHIVE_DEST
parameter -
Populating the log files at the remote site
-
Updating the standby database control file (which Recovery Manager can then use for recovery)
9: in oracle 10g,
automatic archive start when change archived log mode
default archive dest flashrecovery(db_recovery_file_deset) rechive when change archived log mode
change default archive alter system set log_archive_dest_1='location=' scope=spfile;
SQL> alter system set log_archive_dest_1='/oracle/product/9.2.0/arch' scope= spfile;
alter system set log_archive_dest_1='/oracle/product/9.2.0/arch' scope= spfile
* 第 1 行出现错误:
ORA-32017: failure in updating SPFILE
ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
reason: there is no LOCATION or SERVICE key word
SQL> alter system set log_archive_dest_1='location=/oracle/product/9.2.0/arch' scope=spfile;
implications of noarchivelog and archivelog
1.in noarchivelog
if tablespace unaviable,database can not be used immediate.
we must full database backup(cold backup) in shutdown immediate,for asy.
2. in archivelog
we must have enough space to hold archived log files.
we can backup database when it online.
we can restore database when it open.
if tablespace unaviable,database can be continuely used.
select log_mode from v$database;
-
NOARCHIVELOG
-
ARCHIVELOG
-
MANUAL
which processes complete archiving logfiles
1.in automatic archive: arcn process
2.in manual archive: server process
发表评论
-
from string get number data using pl/sql or sql
2012-02-16 17:32 892declare @aa varchar(80),--- ... -
SQL
2012-02-15 18:01 7341.select sal salary from emp; ... -
modify ip
2012-02-10 17:45 7991.netconfig 2./etc/sysconfig/n ... -
MULTI dbwr or io slaves
2012-02-10 15:21 883thanks dukope of itpub. ... -
FAQS
2012-02-09 15:59 7581.How can I get the largest amo ... -
HOW TO STUDY ORACLE FROM Yong Huang
2012-01-18 14:48 804Assuming you want to study orac ... -
RMAN
2012-01-14 17:07 7081.components of the rman ... -
INSTANCE and CRASH RECOVERY
2012-01-12 10:12 7541.type of checkpoint full c ... -
STARTUP PFILE=
2011-12-31 14:11 12281.vi initdbs.ora spfile=&quo ... -
MANAGE TABLE
2011-12-26 16:50 5751.heap table IOT PARTI ... -
MONITOR redo size
2011-12-21 17:48 6501.set autot on stat 2.unsin ... -
What do rollback and commit
2011-12-21 11:21 746When we COMMIT, all that is lef ... -
What is the schema ?
2011-12-20 15:18 592A schema is a collection of dat ... -
MANAGE UNDOTABS
2011-12-19 17:15 6801.manual undo_management=ma ... -
DBA SQL
2011-12-19 15:21 4401.select a.name,b.status from v ... -
SEGMENT EXTENTS ORACLEBLOCK
2011-12-15 16:11 8001.SEGMENT: allocated fo ... -
MANAGE TABLESPACE AND DATAFILES
2011-12-13 15:28 5801. tablespace,segment,extent,bl ... -
ORACLE NET
2011-12-12 09:49 6881.net_service_name: servive ... -
SQLPLUS TIPS
2011-12-09 17:51 9121.SQLPLUS : a tool that execute ... -
ORACLE ENVIRONMENT VARIABLES
2011-12-09 17:15 660ORACLE_HOME ORACLE_SID : or ...
相关推荐
磁盘坏了,需要使用archived redo logs和online redo logs来恢复数据;truncate一个表或其他操作,需要使用REDO来恢复到之前的状态。 什么是UNDO? UNDO是为了撤销你做的操作,例如你执行了一个TRANSACTION,但是...
归档重做日志文件(Archived Redo Logs)是当联机日志或备用日志满时归档的记录,存在于主数据库和所有备用库中。 日志传送服务(Log Transport Services)负责将重做数据从主数据库传输到备用库。通过LOG_ARCHIVE_...
2.1 **系统故障恢复**:通常涉及恢复控制文件和数据库到一个一致的状态,可能需要使用 archived redo logs 和 online redo logs。 2.2 **介质故障恢复**:当数据文件、控制文件或重做日志丢失时,需要使用备份恢复...
* RFS (remote file server process):接受由 primary 数据库的 lgwr 或 arch 通过 oracle net 传来的 redo 数据,写入 standby redo logs 或 standby archived redo logs。 * MRP (managed Recovery Process):管理...
对于完全恢复,Oracle使用归档日志(Archived Redo Logs),这是在每次日志切换时产生的历史记录,用于在数据库灾难性失败后进行完全恢复。 归档日志是Oracle数据恢复策略中的关键元素,因为它们包含了自上次备份...
1. ARCH 传输:使用 ARCH 进程将归档日志(archived redo logs)传输到目标数据库。 2. LGWR 同步传输:LGWR 进程在写入源数据库的重做日志文件后立即同步传输到目标数据库。 3. LGWR 异步传输:LGWR 进程先写入源...
在这种模式下,当联机重做日志写满并触发日志切换时,旧的日志组不会被覆盖,而是被归档到指定的目录,形成归档重做日志(Archived Redo Logs)。这些归档日志包含了所有已提交的事务处理信息,使得即使在灾难性事件...
例如,P代表归档日志(archived logs),C代表控制文件(control file),F代表数据文件(data files),O代表重做日志文件(online redo logs),W代表工作文件(work files)。另外,B代表数据块(blocks),A代表...
重做日志(redo log)是另一关键组件,分为在线重做日志(online redo logs)和归档重做日志(archived redo logs)。在线重做日志记录了所有事务的更改,以确保在数据库崩溃时可以恢复到一致性状态。归档重做日志是...
重做日志文件分为联机重做日志(Online Redo Logs)和归档重做日志(Archived Redo Logs)。联机重做日志在完成循环使用之前会被归档,以确保可以跟踪历史更改。 4. **参数文件 (Parameter File)**: 扩展名为 .ORA ...
通过重做日志和归档日志(Archived Redo Logs),实现故障后的数据恢复。 8. **性能优化**:Oracle的性能优化涉及索引设计、查询优化、分区技术(Partitioning)、物质化视图(Materialized Views)和数据库调优...
myeclipse-10.0-archived-update-site.part01
7. **联机重做日志(Online Redo Logs)与归档日志(Archived Redo Logs)**:联机重做日志记录了事务的更改,当一组日志填满后会被切换到下一组,并可能被归档以备恢复。 8. **服务器进程(Server Processes)**:...
此外,还有联机还原段(Online Redo Logs)和归档日志(Archived Redo Logs)用于备份和恢复策略。 3. **逻辑结构(Logical Structure)**: Oracle采用表空间(Tablespaces)和段(Segments)来组织数据。表空间...
在Oracle数据库中,这通常意味着读取归档日志文件(archived redo logs)或者在线日志文件(online redo logs)。数据传输是将捕获到的数据变化通过网络传输到目标系统。最后,数据应用是指在目标数据库上应用这些...
- 归档日志文件(Archived Redo Logs):非启动必需,但在归档日志模式下用于备份和恢复,因此答案D正确。 2. **用户执行SQL语句时的角色**: - 用户进程(User Process):发起SQL请求。 - 服务器进程(Server ...
myeclipse-10.6-archived-update-site.part14
它分为在线重做日志文件(Online Redo Logs)和归档重做日志文件(Archived Redo Logs)。 5. **回滚段**:回滚段(Rollback Segments)存储事务的回滚信息,用于在事务回滚或系统崩溃时恢复未完成的操作。 6. **...
- 归档日志文件(Archived Redo Logs):非必需,但在归档模式下用于长期存储已满的日志文件。 2. 执行 SELECT 语句时的数据获取: - 用户进程(User Process):发起 SQL 请求。 - 服务器进程(Server Process...
### 故障解决:OGG-00446 Could not find archived log for sequence #### 一、背景与概述 在数据库同步过程中,Oracle GoldenGate (OGG) 是一种广泛使用的工具,它能够帮助实现不同数据库之间的高效同步。然而,...