• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

OCM_Session3_3_FlashbackDatabase

mysql 搞代码 4年前 (2022-01-09) 18次浏览 已收录 0个评论

3. Flashback Database 3.1 Turn on Flashback Database 3.1.1 Configure a flash recovery area of 4GB 3.1.2 Put your flash recovery area in /home/oracle/flash (you may have to create this diretory) 3.2 Leave your databases open for review. 首


3. Flashback Database
3.1 Turn on Flashback Database 3.1.1 Configure a flash recovery area of 4GB 3.1.2 Put your flash recovery area in /home/oracle/flash (you may have to create this diretory) 3.2 Leave your databases open for review.首先创建一个路径,然后配置闪回去大小和位置,mount状态下flashback为on,最后打开数据库。
[oracle@ocm1 ~]$ mkdir /home/oracle/flash[oracle@ocm1 ~]$ sqlplus “/as sysdba”
SQL*Plus: Release 10.2.0.1.0 – Production on Fri Mar 21 14:13:55 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – ProductionWith the Partitioning, OLAP and Data Mining options
SQL> show parameter db_recovery_file_dest
NAME TYPE VALUE———————————— ———– ——————————db_recovery_file_dest stringdb_recovery_file_de本文来源gao($daima.com搞@代@#码(网5st_size big integer 0
SQL> alter system set db_recovery_file_dest_size=4g scope=spfile;
System altered.
SQL> alter system set db_recovery_file_dest=’/home/oracle/flash’ scope=spfile;
System altered.
SQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.SQL> startup mount;ORACLE instance started.
Total System Global Area 524288000 bytesFixed Size 1220360 bytesVariable Size 176161016 bytesDatabase Buffers 343932928 bytesRedo Buffers 2973696 bytesDatabase mounted.SQL> alter database flashback on;
Database altered.
SQL> alter database open;
Database altered.
SQL> select flashback_on from v$database;
FLASHBACK_ON——————YES
SQL>
SQL> show parameter recovery
NAME TYPE VALUE———————————— ———– ——————————db_recovery_file_dest string /home/oracle/flashdb_recovery_file_dest_size big integer 4Grecovery_parallelism integer 0


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:OCM_Session3_3_FlashbackDatabase
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址