I. Applicable background
There is a database named test, whose data is in the device test, and the log is in the device test_log;
The test database has a table tab1 with 5 Records (1-5 );
Complete database backup: dump database test to '/opt/data/test. dump ';
Then, five records (6-10) are inserted into the tab1 table. The time is: 17:30:09;
Then, record 1 in Table tab1 is
的文件, will be at the end of the fileThere are deleted signs.MV recovered_files/file.97653 T2. MYD # #rename The original file Mount MySQL directory, MV recover files, modify master for MySQL, boot file --------Instance---------- Inode is allocatedFile mode:16877Low + bits of Owner uid:0Size in bytes:1024Access time:1450538126...File name | Inode number | Deleted s
log to the SHUA2, which is the database right-click Task.If you fill in, first fill in the beginning of the backup log C:\shua_log.bak, and then tick [restore], the most important thing is to choose a point in time, but this point of time can not select milliseconds, so I chose 29 seconds, This time will restore the data 29 seconds ago, and my data is deleted fr
that supports ext3, ext4 file systems.
My system is Ubuntu15.04 and the file system is EXT4. Tried the Debugfs to recover, but did not succeed. If the file system is not EXT4 students can try this way, here is a reference document. 3. Extundelete Recovery Documents
Install Extundelete
sudo apt-get install Extundelete
Any File recovery tool to uninstall or mount the restored partition as read-only before using it, preventing
Use the following tool to restore the deleted database files (*. MDF, *. LDF)
**************************************** **********************************Note that any disk operations, including software installation, may damage the deleted files and cause file recovery to fail.
Therefore, we recommend that you install the above file recovery tool on another computer.And mount your hard disk to the computer
suck a few fresh air, the merit will be gaocheng. 3. After the database restore is successful, this state Display (Restoring ... ), restore the transaction log to the SHUA2, which is the database right-click Task. If you fill in, first fill in the beginning of the backup log C:\shua_log.bak, and then tick [restore], the most important thing is to choose a point in time, but this point of time can not select milliseconds, so I chose 29 seconds, This time will restore the
recover data that was delete
Suppose the table name is: Table_delete
View System Current time
--Get the system current timeSelect To_char (sysdate, ' Yyyy-mm-dd hh24:mi:ss ') from dual;
View the data in this table at a point in time before deleting data
SELECT * from Table_delete
Label: -- Turn on line move function
ALTER TABLE tablename ENABLE row movement;
-- Restore table data at a point
in time of deletion or modification Table to timestamp to_timestamp ('2016-05-07/17:01:50',' YYYY-MM-DD hh24:mi:ss');
-- Note: Turn off the line movement function after recovery ALTER TABLE DISABLE row movement; 1, the query table data as follows: Select T.* from Z_test tDN sysdate1 abcde
Tags: style color using IO strong data ar problemFlashback query ( flash back ) principleBased on the undo information, Oracle uses the undo data, similar to the consistent read method, to place the table at a point in time ( or SCN) before deletion to retrieve the data.Flashback query ( flash back ) premise:Sql> show parameter undo;NAME TYPE VALUE------------------------------------ ----------- ---------
Application Environment: A table is accidentally deleted. At this time, I cannot restore the entire database, which is too troublesome. So now I will copy the data file from the new database to restore it. Therefore, Oracle cannot only restore a part of the data file when restoring the file, because oracle must ensure that the
Environment: the database is in Open state, then rm-rf users. dbf (delete users tablespace), and finally retrieve the users. dbf file.
When replying, the reply method has little to do with the database version (because it is a physical file), but has a certain relationship with the operating system, such as Red hat Linux and Solaris Linux.
The following is an example:
Delete users tablespace.1. First, go to Sqlplus and execute the SQL statement:
Select name from v $ datafile;NAME--------------
filled in, first fill in the log c: \ shua_log.bak, and then select [restore]. The most important thing is to select a time point. Unfortunately, this time point cannot be set to milliseconds, so I chose 29 seconds. At this time, the data from the past 29.0 seconds will be restored, and my data will be deleted from 29.880 seconds. Therefore, I chose 29 seconds;
1. No recovery of data files:
In the afternoon in the operation of the database, accidentally will look at the uncomfortable file deleted, press the return button before remembering that this is an Oracle database data file. Fortunately this database is a test, data file lost relationship is not big, but still surprise
After a week of hard work, I finally completed the market research report. I happily opened the computer of the Organization and inserted the beloved mobile memory-USB flash drive. I just printed it out to make the transfer. However, I found N times in the USB flash drive, and did not find the folder where the file is located, and the original directory in the USB
database is relatively large, this restore to wait a long time, go out to suck a few fresh air, the merit will be gaocheng.3. After the database restore is successful, this stateDisplay (Restoring ... ), restore the transaction log to the SHUA2, which is the database right-click Task.If you fill in, first fill in the beginning of the backup log C:\shua_log.bak, and then tick [restore], the most important thing is to choose a point in time, but this point of time can not select milliseconds, so
Q: Why do some "completely" deleted data can still be found back to recover it?
A: Some friends will be surprised: I clearly deleted the data, and emptied the Recycle Bin, why can I find it back? This has to start with the principle of recording
OS:Oracle Linux Server Release 5.7Db:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0-64bit ProductionFirst create the Yoon databasesql> Create Tablespace Yoon datafile '/u01/oracle/oradata/yoon/yoon01.dbf ' size 50m;Tablespace created.Sql> create user Yoon identified by Yoon Default Tablespace yoon;User created.Sql> Grant DBA to Yoon;Grant succeeded.Sql> CREATE TABLE Yoon.yoon as SELECT * from Scott.emp;Table created.Accidental deletion of data
Recovering from accidental deletion of data in SQL Server is not a difficult task to recover from the transaction log. However, this recovery requires two prerequisites:1. There is at least one full backup of the database before it is mistakenly deleted.2. The recovery model of the database (Recovery mode) is "full".There are three scenarios for both of these pre
Oracle 10 Gb Deleted Data Query methods (1) as of timestamp eg. SQL code select * from t_table as of timestamp (sysdate-1/24) where... note: The table alias (2) as of scn SQL code SQL> select dbms_flashback.get_system_change_number from dual; GET_SYSTEM_CHANGE_NUMBER -------------------- 1859181 -- if you do not know the exact scn, try a smaller SQL statement> select count (*) from t_table as of scn 1800000
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.