Retrieve the Table that has been mistakenly dropped/Truncate/Delete on the primary database on the standby Database
Prerequisites:
- Standby Database Must be in Flashback database mode. - Time at which Drop/Truncate/Delete Table happened should be within the db_flashback_retention_target and all the flashback and arch
Note
Compared to the DELETE statement, the TRUNCATE TABLE has the following advantages:
The transaction log space used is small.
The DELETE statement deletes one row at a time and records an entry for each row that is deleted in the transaction log. TRUNCATE table deletes data by releasing the data pages used to
Note
Compared to the DELETE statement, the TRUNCATE TABLE has the following advantages:
The transaction log space used is small.
The DELETE statement deletes one row at a time and records an entry for each row that is deleted in the transaction log. TRUNCATE table deletes data by releasing the data pages used to
into table. The merge condition is on (condition), which only updates the corresponding record in the into table when the condition is met, and when the condition is not satisfied, it can only add the corresponding data to the into table, and the data is only The data that corresponds to the current record in the using table
How to restore the MySQL truncate table (provided that binlog is backed up and enabled)1.1 back up database thunder mysqldump-S/tmp/mysql3316.sock -- single-transaction -- master-data = 2 thunder> thunder_full_2015112. SQL 1.2 for truncate table operation and insert into table
Tags: using SP strong data div on BS SQL MySQLTruncate use note due to the TRUNCATE TABLE a_table command once, take the lesson and record it as a warning!MySQL TRUNCATE TABLE a_table command affected result description, hands-on experience command TRUNCATE
Truncate table nameFast and efficient, because the truncate table function is the same as the DELETE statement without the WHERE clause: both DELETE all rows in the TABLE.However, truncate table is faster than DELETE and uses less
Q: How does SQL server access the table of the sybase database?
A: The specific method is as follows:
1: Install the Sybase Client
Version requirements:
Sybase client 11.9.2 for NT
1.1: After the installation is complete, start running->Program-> Sybase-> dsedit
First, Analog truncate operation:Sql> Conn Scott/tigerSql> Select COUNT (*) from T;COUNT (*)----------13sql> truncate TABLE t;Second, restore the data of the TRUNCATE TABLE1. Download the HELLODBA Recovery tool to the database serverUse the terminal under Linux, as follows:Under Windows, enter the following URL:Http://
Oracle Databases perform unconventional recoveries through Oracle Dul after truncate deletion of a table of data in the absence of a backup1. Preparing the Oracle Dul test EnvironmentSql> Select COUNT (*) from T_xifenfei; COUNT (*)----------67854sql> desc T_xifenfei Name Null? Type-----------------------------------------------------------------------------OWN
Degree from strong to weak 1, drop table TB drop directly delete the form, no way back 2, truncate (table) TB Delete all data in the table, cannot be used with where 3, delete from TB (where) Delete data in a table (can make a row) difference:
Tags: recover autonumber SQL Server from Run efficiency data ble cannot--Removes all data from the table, automatically numbering zeros.--1.delete from Biao--Removes all data from the table and automatically numbers the zeros.--2.truncate Table Biao--truncate Features:The--1
Tags: using SP for strong file data on Div BSAs we all know, TRUNCATE table can be used to delete the contents of the entire table, which is not the same as when the delete is behind the where condition. But beyond that, do we know that there are other differences between them? In this chapter we will discuss the differences between
Recently released to the market version of the frequent occurrence of database table corruption, the specific phenomenon is that the Select Table hint table does not exist, but to view the data file, the corresponding table of IBD and frm files are in.Through the statistics of multiple failures, found several frequentl
TRUNCATE table is functionally the same as a DELETE statement without a WHERE clause: Both delete all rows in the table. However, TRUNCATE TABLE is faster than DELETE and uses less system and transaction log resources. The Delete statement deletes one row at a time and rec
Today, when cleaning up business-Library data, developers say they can use TRUNCATE table to clean up all data from two tables
Both tables have their own ID, all made table partitions, single table 200GB, two tables using SELECT ident_current (')
The current self appreciation is 3000012, the two tables are almost ide
Tags: rop cat cut Media te Pro for a login SQL caseThe requirement for TRUNCATE permissions in an Oracle document is that a table is required under the currently logged-on user, or the currently logged-on user has the permission to drop any table.However, if the first condition is not met, the permission is too large for a user to satisfy the second condition.Refer to the discussion on the Web, you can use
Oracle has its own unique practices for truncate table operations. It takes almost the same time to truncate dozens of data records and tens of millions of data records,
Oracle only updates the data dictionary and does not operate on the actual data. It only needs to pull back the hwm location.
Sys @ orcl> Create Table
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.