Oracle中fast recovery area的使用

1、fast recovery area的作用:

快速恢复区域是Oracle数据库管理的空间,可用于保存RMAN磁盘备份、控制文件自动备份和存档的重做日志文件。放置在此位置的文件由Oracle数据库维护,生成的文件名以Oracle托管文件(OMF)格式维护。平时在生产环境中很少见到有用fast recovery area的,一般在生产环境中数据量比较大,而fast recovery area对空间要求也比较高,多少了解一下。

  • 有关fast recovery area的参数。
SQL> show parameter db_recovery_file_dest

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest                string     /oracle/app/oracle/flash_recovery_area
db_recovery_file_dest_size           big integer 4977M
  • dbca安装时选用fast recovery area之后,查看该空间下都保存了什么数据
[root@ocm flash_recovery_area]# ls -la
总用量 16
drwxr-x---. 4 oracle oinstall 4096 6月  17 15:37 .
drwxrwxr-x. 9 oracle oinstall 4096 6月  17 15:04 ..
drwxr-x---. 2 oracle oinstall 4096 6月  17 15:04 ocm     --存放的是控制文件
drwxr-x---. 3 oracle oinstall 4096 6月  17 15:37 OCM     --存放的是归档文件

2、如何开启fast recovery area

You set the size of the fast recovery area with the parameter DB_RECOVERY_FILE_DEST_SIZE first, and then you set the physical location of the flash recovery files with the parameter DB_RECOVERY_FILE_DEST.

3、如何关闭fast recovery area

  1. If Flashback Database is enabled, then disable it before you disable the fast recovery area.

    ALTER DATABASE FLASHBACK OFF;
    
  2. If you are using the fast recovery area for archive logs, then set the initialization parameter LOG_ARCHIVE_DEST_n to use a non-fast recovery area location.

    For example, to change the fast recovery area for LOG_ARCHIVE_DEST_1 to a non-fast recovery area location, use the command ALTER SYSTEM SET:

    LOG_ARCHIVE_DEST_1='LOCATION=USE_DB_RECOVERY_FILE_DEST'
    
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=/ORACLE/DBS/';
    
  3. Disable the fast recovery area initialization parameter.

    ALTER SYSTEM SET DB_RECOVERY_FILE_DEST=''; 

4、fast recovery area的管理

 

转载于:https://www.cnblogs.com/dayu-liu/p/11045980.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值