Home Database Mysql Tutorial Oracle 10g学习之闪回数据库

Oracle 10g学习之闪回数据库

Jun 07, 2016 pm 04:55 PM
oracle database

estimated_flashback_size -------估计数据的大小 Fromv$flashback_database_log; V$FLASHBACK_DATABASE_STAT 显示闪回

  目标

  闪回数据库

  去定为每种恢复情形使用哪种闪回技术

  配置和使用闪回数据库

  监视闪回数据库

  使用EM管理闪回数据库

  管理(维护)Flash Recovery Area

  闪回技术概述

  9i中首次引入闪回技术,第一个出现的是闪回查询(flackback query)。

  10g里有了显着的扩展:

  闪回数据库(Flashback Database)

  闪回删除(Flashbackup Drop)

  闪回版本查询(Flashback Versions Query)

  闪回事务查询(Flashback Transaction Query)

  闪回表(FlashbackTable)

  所有的闪回技术,除了闪回数据库,都是基于撤销数据(undodata)。

  闪回数据库技术可以替代不完全恢复,优势在于闪回数据库更快效率更高,它是基于闪回日志的。

  闪回删除、闪回版本查询、闪回事务和闪回表最佳用法是恢复单独的对象或者对象中的行。

  闪回删除------------虚拟回收站,允许被删除的对象重建

  闪回版本查询、闪回事务查询--------------识别和确定需要恢复到先前状态的数据行

  闪回表---------------从错误中恢复单独的表或表组

  闪回数据库最适用于从某些种类的失误中恢复,如截短大表、不完整的批任务或删除了用户。

  闪回数据库概述

  闪回数据库能使整个数据库闪回到特定的时间点。

  闪回数据库恢复比传统恢复操作更快的原因是:恢复不再受数据库大小的影响。

  闪回数据库恢复时间正比于恢复过程汇总需要备份的变化的数量,而不是数据文件和归档日志大小。

  闪回数据库恢复的结构:恢复写入器(PVWR)后台进程和闪回数据库日志组成。

  PVWR在闪回控制区写入闪回数据库日志。

  闪回恢复区。

  闪回数据库的局限:

  1.不能解决介质故障,介质故障仍然需要重建数据文件和恢复归档日志。

  2.缩小数据文件到较小的尺寸,也被称为截短数据文件,,闪回数据库不能撤销。

  3.如果控制文件被重建,不能使用闪回数据库

  4.不能完成删除一个表空间并用resetlogs恢复。

  5.不能将数据库闪回到一个SCN值(如果该SCN早于闪回日志中最早的可用的SCN)

  使用Recovery Manager管理闪回恢复区

  闪回恢复区专门用于将所有恢复文件集中存储于磁盘上的某个区域。

  闪回恢复区对恢复过程提供两个主要好处:

  所有恢复文件集中存储在一个区域

  它提供更快的备份和重建方法,因为信息被写入磁盘而不是磁带

  闪回恢复区通过初始化数据库参数而建立,同时也在参数中定义恢复区大小和位置。

  BDA_OUTSTANDING_ALERTS视图可查看闪回恢复区状态信息。

  恢复区使用率达到90%和95%时,10g数据库将向警告日志发送警告信息。90%时10g将自动把已废弃的 文件从闪回恢复区删除。

  配置闪回恢复区

  只需在数据库增加一对数据库参数:db_recovery_file_dest_size db_recovery_file_dest

  例子:

  1.SQL>altersystemsetdb_recovery_file_dest_size=10mscope=both

  2.SQL>altersystemsetdb_recovery_file_dest='d:Oracleflash_recovery_areatest';

  修改用alter system

  停用闪回恢复区:alter system set db_recovery_file_dest=' ';

  使用闪回恢复区

  闪回恢复区是一个集中的恢复区域。

  这些文件和数据文件及控制文件有关系。这就减少了手工清除不需要的归档日志。

  V$recovery_file_dest检查消耗的空间和其他关于闪回恢复区的统计信息。

  闪回恢复区可以包括数据文件、控制文件、联机重做日志、各种各样的RMAN文件和闪回日志。用户可以在建立重做日志、控制文件、和归档日志文件时将他们存储在闪回恢复区。

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How long will Oracle database logs be kept? How long will Oracle database logs be kept? May 10, 2024 am 03:27 AM

The retention period of Oracle database logs depends on the log type and configuration, including: Redo logs: determined by the maximum size configured with the "LOG_ARCHIVE_DEST" parameter. Archived redo logs: Determined by the maximum size configured by the "DB_RECOVERY_FILE_DEST_SIZE" parameter. Online redo logs: not archived, lost when the database is restarted, and the retention period is consistent with the instance running time. Audit log: Configured by the "AUDIT_TRAIL" parameter, retained for 30 days by default.

Oracle database server hardware configuration requirements Oracle database server hardware configuration requirements May 10, 2024 am 04:00 AM

Oracle database server hardware configuration requirements: Processor: multi-core, with a main frequency of at least 2.5 GHz. For large databases, 32 cores or more are recommended. Memory: At least 8GB for small databases, 16-64GB for medium sizes, up to 512GB or more for large databases or heavy workloads. Storage: SSD or NVMe disks, RAID arrays for redundancy and performance. Network: High-speed network (10GbE or higher), dedicated network card, low-latency network. Others: Stable power supply, redundant components, compatible operating system and software, heat dissipation and cooling system.

How much memory does oracle require? How much memory does oracle require? May 10, 2024 am 04:12 AM

The amount of memory required by Oracle depends on database size, activity level, and required performance level: for storing data buffers, index buffers, executing SQL statements, and managing the data dictionary cache. The exact amount is affected by database size, activity level, and required performance level. Best practices include setting the appropriate SGA size, sizing SGA components, using AMM, and monitoring memory usage.

Oracle scheduled tasks execute the creation step once a day Oracle scheduled tasks execute the creation step once a day May 10, 2024 am 03:03 AM

To create a scheduled task in Oracle that executes once a day, you need to perform the following three steps: Create a job. Add a subjob to the job and set its schedule expression to "INTERVAL 1 DAY". Enable the job.

How much memory is needed to use oracle database How much memory is needed to use oracle database May 10, 2024 am 03:42 AM

The amount of memory required for an Oracle database depends on the database size, workload type, and number of concurrent users. General recommendations: Small databases: 16-32 GB, Medium databases: 32-64 GB, Large databases: 64 GB or more. Other factors to consider include database version, memory optimization options, virtualization, and best practices (monitor memory usage, adjust allocations).

How much memory does an oracle database require? How much memory does an oracle database require? May 10, 2024 am 02:09 AM

Oracle Database memory requirements depend on the following factors: database size, number of active users, concurrent queries, enabled features, and system hardware configuration. Steps in determining memory requirements include determining database size, estimating the number of active users, understanding concurrent queries, considering enabled features, and examining system hardware configuration.

Detailed tutorial on establishing a database connection using MySQLi in PHP Detailed tutorial on establishing a database connection using MySQLi in PHP Jun 04, 2024 pm 01:42 PM

How to use MySQLi to establish a database connection in PHP: Include MySQLi extension (require_once) Create connection function (functionconnect_to_db) Call connection function ($conn=connect_to_db()) Execute query ($result=$conn->query()) Close connection ( $conn->close())

How to start the listening program in oracle How to start the listening program in oracle May 10, 2024 am 03:12 AM

Oracle listeners are used to manage client connection requests. Startup steps include: Log in to the Oracle instance. Find the listener configuration. Use the lsnrctl start command to start the listener. Use the lsnrctl status command to verify startup.

See all articles