您的位置:首页 > 房产 > 建筑 > 小公司网络组建_网站建设哪家最好用_个人主页网页设计_当阳seo外包

小公司网络组建_网站建设哪家最好用_个人主页网页设计_当阳seo外包

2024/12/22 19:02:31 来源:https://blog.csdn.net/Story_begins/article/details/143221241  浏览:    关键词:小公司网络组建_网站建设哪家最好用_个人主页网页设计_当阳seo外包
小公司网络组建_网站建设哪家最好用_个人主页网页设计_当阳seo外包

1.修改闪回区大小,路径,保留时间

SQL> show parameter db_recovery_file_dest
SQL> show parameter db_flashback_retention_targetSQL> alter system set db_recovery_file_dest_size=20G scope=both;System altered.SQL> alter system set db_recovery_file_dest='/arch/flashback' scope=both;System altered.SQL> alter system set db_flashback_retention_target=4320 scope=both;   --单位分钟 4320=3天System altered.

2.开启数据库闪回,需要停库启动到mount

SQL> select FLASHBACK_ON from v$database;FLASHBACK_ON
------------------
NOSQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area  584568832 bytes
Fixed Size                  2255432 bytes
Variable Size             226493880 bytes
Database Buffers          348127232 bytes
Redo Buffers                7692288 bytes
Database mounted.SQL> alter database flashback on;Database altered.SQL> alter database open;Database altered.

3.创建闪回点

SQL> select FLASHBACK_ON from v$database;FLASHBACK_ON
------------------
YESSQL> create restore point BEFORE_UPDATE guarantee flashback database;Restore point created.SQL> set line 200 pages 1000
SQL> col time for a35
SQL> col RESTORE_POINT_TIME for a30
SQL> col NAME for a30
SQL> select * from v$restore_point;SCN DATABASE_INCARNATION# GUA STORAGE_SIZE TIME                                RESTORE_POINT_TIME             PRE NAME
---------- --------------------- --- ------------ ----------------------------------- ------------------------------ --- ------------------------------1117669                     2 YES     52428800 23-SEP-22 08.18.37.000000000 PM                                    YES BEFORE_UPDATE

4.删除闪回点,关闭闪回,可以在线执行

SQL> drop restore point before_update;Restore point dropped.SQL> select * from v$restore_point;no rows selectedSQL> alter database flashback off;Database altered.SQL> select FLASHBACK_ON from v$database;FLASHBACK_ON
------------------
NO

5.执行闪回数据库命令

SQL> startup mount
ORACLE instance started.
Database mounted.SQL>  select * from v$restore_point;SCN DATABASE_INCARNATION# GUA STORAGE_SIZE TIME                                RESTORE_POINT_TIME             PRE NAME
---------- --------------------- --- ------------ ----------------------------------- ------------------------------ --- ------------------------------1117848                     2 YES     52428800 23-SEP-22 08.20.59.000000000 PM                                    YES BEFORE_UPDATESQL> flashback database to restore point BEFORE_UPDATE;Flashback complete.SQL> alter database open resetlogs;Database altered.SQL> drop restore point BEFORE_UPDATE;Restore point dropped.SQL>  alter database flashback off;Database altered.

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com