当前位置:网站首页>Oracle中Delete数据之后想恢复?来看这里[只要三步]
Oracle中Delete数据之后想恢复?来看这里[只要三步]
2022-07-21 05:21:00 【小林家的史莱姆】
1.查询数据库当前时间(目的是为了检查数据库时间是否与你电脑时间相近,避免时间不同而将数据恢复到错误时间点)
select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual;
2、查询删除数据时间点之前的数据(eg:我想恢复11点之前的数据)
select * from 表名 as of timestamp to_timestamp('2019-11-20 11:00:00','yyyy-mm-dd hh24:mi:ss');
3.开启用行移动功能
alter table 表名 enable row movement;
4.恢复数据
flashback table 表名 to timestamp to_timestamp('2019-11-20 11:00:00','yyyy-mm-dd hh24:mi:ss');
5.测试
select * from 表名;
边栏推荐
- Common auxiliary classes with high concurrency
- What information does the process control block (PCB) contain
- Lamp Architecture - mysq cluster and master-slave replication (2)
- Dry goods | overview of RDBMS index types
- JDBC connection / operation database of JMeter
- DNS domain name resolution service
- Intranet detection 1- working group information collection & intra domain information collection
- Use Mysql to query logs slowly
- Example of Cisco configuring VLAN
- Synchronization and mutual exclusion of processes
猜你喜欢
Lamp架构——mysql集群及组复制(3)
[rviz2] error occurs when importing URDF model: could not load resource XXX, unable to open file XXX, error retrieving file XXX
Intranet detection 2-powershell collects domain information & sensitive data / data / information collection and sorting
2022 latest Ningxia construction eight members (Electrical constructors) simulation question bank and answers
Construction of CODIS cluster
Deployment of adaptive synchronization mode of two centers in the same city
Enterprises and individuals choose cloud terminals or cloud servers for cloud desktops? You will know after reading this article
235. Nearest common ancestor DFS method of binary search tree
Blocking and wakeup of processes
Practical exercise | export MySQL tables to CSV
随机推荐
TZC 1283: simple sort merge sort
3. Use playbook in ansible
Does Navicat 16 support native Apple silicon M1 chips| Apple user must read
JVM运行原理解析
[ol cesium] two-dimensional and three-dimensional linkage between openlayers and cesium
The database is for the salaries table emp above_ No field create index idx_ emp_ no
The danger of testing SQL | don't take it lightly
Synchronization and mutual exclusion of processes
Name reference defined by peoplecode
Kruskal reconstruction tree
Comprehensive experiment of static routing
Practical exercise | a simple method to retrieve odd or even rows in the database
Amazon cloud technology training and Certification Course in August is wonderful and can't be missed!
Frequently asked interview questions in software testing [3]
Migrate repo managed code to Gerrit
[email protected] interactive
Frequently asked interview questions in software testing [2]
Sample explanation of hybrid drive for automated testing
Peoplecode understands the structure and content of component cache
SQL | null value and SQL count() function