Applies to:
Oracle Server - Enterprise Edition - Version: 10.1.0.3 to 11.1.0.7
Information in this document applies to any platform.
This note will guide a DBA in copying archivelog files currently located in a ASM diskgroup to a file system. This is commonly useful when a DBA needs to copy archivelog files from a primary to standby database in a dataguard environment.
The article here provides RMAN examples to copy archivelogs files from ASM to filesytem and vice versa.
RMAN allow you to copy archivelog files to a tape or filesystem. The following examples provide RMAN scripts for copying all archivelog files to '/tmp'.
-- Copy all archivelog files to a location in filesystem
rman>
run
{
allocate channel c1 type disk format '/tmp/arc_%U';
backup archivelog all;
}
-- Back up all archived logs created more than 7 and less than 30 days ago.
run {
allocate channel ch1 type disk format '/tmp/arc_%U';
backup archivelog from time 'SYSDATE-30' until time 'SYSDATE-7';
}
-- Back up all archived logs from sequence # 250 to sequence # 301 and deletes the archived redo logs after the backup is complete.
run {
allocate channel ch1 type disk format '/tmp/arc_%U';
backup
archivelog from logseq 250 until logseq 301 thread 1
}
In FORMAT clause, %U is replaced with unique file names when creating archivelog backups.
The above RMAN statements create a file in the following format in the destination directory (/etc).
-rw-r----- 1 oracle dba2 46623232 Sep 28 13:14 arc_03kqcj6g_1_1
Then, one can restore archive logs that are already located on a filesystem using restore command:
run {
set archivelog destination to '/tmp';
restore archivelog all;
}
If you do not specify SET ARCHIVELOG DESTINATION, then RMAN restores archived redo log files to the flash recovery area (when FRA is configured ). Refer to RMAN options to restore only the required archive logfiles based on sequence number or creation timestamp.
分享到:
相关推荐
SQL>select object_name,object_id from user_objects where instr(object_name,'LOG')>0; 查看某表的创建时间 SQL>select object_name,created from user_objects where object_name=upper('&table_name'); ...
Oracle释放archivelog空间 Oracle数据库中的archivelog空间是指数据库中记录所有事务日志的存储区域。这些日志文件记录了数据库中的所有操作,包括数据修改、数据插入、数据删除等等。这些日志文件对数据库的恢复和...
### Oracle 11.2.0.3 RAC ASM与单实例文件系统的DATAGUARD配置 #### 实施目的 本实施方案旨在构建一种高可用性的数据库模式,即通过Oracle 11.2.0.3版本创建两个节点的ASM(自动存储管理)存储方式的RAC(Real ...
### 重建ASM磁盘组的关键步骤详解 #### 一、背景与目的 在Oracle数据库管理过程中,ASM(Automatic Storage Management)作为一项高级存储技术被广泛应用于数据库存储层面,它能够提供高可用性、高性能和易管理性的...
【使用RMAN DUPLICATE...FROM ACTIVE DATABASE 创建物理备库】 在Oracle数据库管理中,创建物理备用数据库(Physical Standby Database)是数据保护策略的重要组成部分,主要用于实现Data Guard环境中的灾难恢复和...
CELLSRV FAILS DUE TO ORA-7445 [KAF4F0RST9IR2SRP1] 11733603 ORA-54 WITH SELECT STATEMENT USING NOWAIT CLAUSE WITH NO CONCURRENT ACTIVE TX 11786053 SR11.2.0.3ASM - TRC - KFMDXGRPREGLMON 11883252 REDO...
- **Datafiles and Redolog Files Are Made Available to Users at the OPEN Stage (D)**: After the database reaches the MOUNT state, further steps are taken to make the datafiles and redolog files ...
### 从ASM向操作系统拷贝文件 #### 一、引言 在数据库管理与维护过程中,经常需要将存储在自动存储管理(Automatic Storage Management,简称ASM)中的文件移动或复制到操作系统(OS)的文件系统中。例如,在进行...
### ORACLE 数据库从AIX裸设备到ASM存储的迁移过程 #### 概述 本文主要介绍了Oracle数据库从AIX裸设备迁移到ASM(自动存储管理)存储的过程。这一迁移通常涉及从传统的直接连接存储(DAS)或网络附加存储(NAS)等裸设备...
### Linux上实战Raw+ASM+RMAN #### Oracle10G在Linux上的安装与迁移 在本篇内容中,我们将详细介绍如何在Linux环境下安装Oracle 10G,并进行相关的迁移操作,包括裸设备(Raw)的安装、RMAN备份与恢复、ASM实例...
### Oracle_RAC+ASM+DataGuard配置实验记录与常见问题 #### 一、环境规划 在进行Oracle RAC (Real Application Clusters) + ASM (Automatic Storage Management) + DataGuard 的配置之前,首先需要对环境进行规划...
UPDATE SET name = 'ֵ1' WHERE id = 'ֵ' AND name = 'ֵ1'; GRANT 权限 TO 用户; REVOKE 权限 FROM 用户; SELECT force_logging FROM v$database; ``` 获取系统日期时间、更新表数据、授予或撤销用户权限、...
- 删除表空间:`DROP TABLESPACE tbs_name INCLUDING CONTENTS AND DATAFILES;` 6. **用户与权限管理**: - 创建用户:`CREATE USER username IDENTIFIED BY password DEFAULT TABLESPACE tbs_name QUOTA 100M ON...
1. Oracle逻辑错误造成无法启动 .................. 2. 某一个datafile故障或丢失 .................. 3. 某一个tablespace故障 .................. 4. 意外drop table .................. 5. 意外drop user ...
oracle11g10g安装备份基础维护
5. 查询数据文件信息:`SELECT TABLESPACE_NAME, FILE_NAME FROM DBA_DATA_FILES;` 二、控制文件管理 控制文件记录了数据库的元数据,如数据文件的位置和状态。实验涉及的操作有: 1. 添加控制文件:`ALTER SYSTEM ...
from dba_data_files order by tablespace_name; ``` 通过此查询可以得知每个数据文件的名称、ID、大小(以MB为单位)。 3. **查看回滚段名称及大小** ```sql select segment_name, tablespace_name, r....
connected to target database (not started) RMAN> startup nomount; startup failed: ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file '/u01/app/oracle/product/...
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE MAXSETSIZE TO UNLIMITED; # default CONFIGURE ENCRYPTION FOR DATABASE OFF; # default CONFIGURE ENCRYPTION ALGORITHM...