Skip to content

Commit

Permalink
发布博客,时间:2023-12-20 23:14:52
Browse files Browse the repository at this point in the history
  • Loading branch information
whp98 committed Dec 20, 2023
1 parent 2cbd18e commit ce3c034
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docs/数据库/Oracle数据库/Oracle数据库恢复.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,18 @@ SELECT * FROM YOUR_TABLENAME AS OF TIMESTAMP SYSDATE - 125 / 1440
闪回表数据SQL语句:


```SQL
-- 1、启动表的row movement特性
ALTER TABLE YOUR_TABLENAME ENABLE ROW MOVEMENT;
```


```SQL
-- 2、闪回指定时间的快照
FLASHBACK TABLE YOUR_TABLENAME TO TIMESTAMP
TO_TIMESTAMP('2018-04-23 16:06:00','yyyy-mm-dd hh24:mi:ss');
```


```SQL
-- 3、关闭表的row movement功能
ALTER TABLE YOUR_TABLENAME DISABLE ROW MOVEMENT;
```


闪回数据表的SQL语句:
```SQL
-- 闪回表(通过TRUNCATE语句删除的表无法闪回)
Expand Down

0 comments on commit ce3c034

Please sign in to comment.