Restore table accidentally deleted records, and delete table records by mistakeRestore table accidentally deleted records
I recently handled a user's accidental deletion of the delete table. Here I made a simple summary. The content of this article
In Oracle Database Operations, accidental data deletion and table drop often occur. In the past, after this happens, developers often seek help from DBAs or administrators to use database backup and recovery to retrieve the data.
From oracle 9i, 10
Environment: MySQL Sever 5.1 + MySQL command line tool
Problem: the current time of the MySQL datetime data type is set to the default value.
Solution:
Method 1:
Because the default value of the current MySQL field does not support functions, it is
Flash back in oracle and flash back in oracle
Overview:
Flash back is part of Oracle's powerful Database Backup recovery mechanism. When a logical error occurs in the database, flash back technology provides fast and minimal recovery (most flash
ModuleTime & DateTime ModuleTime ModuleImport TimePrint("Time Applications". Center (80,"*"))Print(Time.process_time ())#measuring processor operation time, not including sleep timePrint(Time.time ())#Timestamp , 1970 time up to now, in secondsPrint(
. Calculate the maximum number of days of a month
Calendar time = calendar. getinstance ();Time. Clear ();Time. Set (calendar. year, year); // year is intTime. Set (calendar. Month, I-1); // note that the Calendar Object is 0 by defaultInt day =
One of the relatively newer features in Oracle concerns the moving
Rows. Why wowould a row move and who or what controls that movement?
Furthermore, by "move," what exactly does move mean? Does a row move
Another table, or is row movement
#1. Converts the time of a string to a timestamp method: a = "2013-10-10 23:40:00" #将其转换为时间数组import Timetimearray = Time.strptime (A, "%y-%m-%d%h:%m:%s") # Convert to timestamp: timeStamp = Int (time.mktime (timearray)) TimeStamp = = 1381419600#
Oracle Flash-back technology , here are 4 kinds of flash back technology, the Oracle Flash-back technology to do a collation summary.
Overview:
The flash-back technology is part of Oracle's powerful database backup recovery mechanism, which
First, the principle
The time stamp principle is to convert the time format into decimal format, so that the time calculation is convenient. Good ~ directly into the subject. (The following package of a class, the need for students can refer to or
---Description flash back to the database
---Restore a table's contents to a specific point in time using the flash-back table
---recover from a deleted table
---Use a flashback query to view the contents of a database for any point in time
Today write down PHP, how to get the current system time, time stamp, and note the meaning of various formats, can be flexible.1. Get the current Time method date ()Quite simply, this is the way to get the time, in the format: Date ($format,
[Oracle@zhongwc1 ~]$ Sqlplus/as SYSDBA
Sql*plus:release 11.2.0.3.0 Production on Wed 23 17:02:01 2013
Copyright (c) 1982, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition release 11.2.0.3.0-64bit Production
With
methods for Oracle to recover deleted tables or table records
article Category: Database
One: Recovery of tables
For accidentally deleted tables, as long as you do not use the Purge permanent deletion option, then recover from the flash back zone
A front-end
IMG image Specifies the long width, compress the img picture, the whole page merges the picture as far as possible, similar Taobao drop practice
CSS Code tuning
CSS loading file order, CSS file compression
JS load files rely on
First, the recovery of the table
to mistakenly deleted the table, as long as not using the Purge permanent deletion option, then recover from the flash back zone hope is very large. General steps are:
1, from the Flash Back query deleted table
1. Calculate the number of days in a January
Calendar time=calendar.getinstance ();
Time.clear ();
Time.set (calendar.year,year); Year as int is the years you need to query
Time.set (calendar.month,i-1); Note that calendar objects default January
First, flash back technologyTo enable the database to recover quickly from any logical misoperation, Oracle exits the flash back technology. This technology can restore the data of row-level and transaction-level, reduce the time of data recovery,
View instance number, name and log mode:SYS as [email protected]>select dbid,name,log_mode from V$database;DBID NAME Log_mode---------- --------- ------------1391294860 ORCL ARCHIVELOG1 row selected.RMAN:Login:[[email protected] ~]$ RmanRman>
Oracle recovery deletes a table or table recordOne: Recovery of the table to the wrong deleted table, as long as not using the Purge permanent delete option, then recover from the flash back area hope is quite large. General steps are: 1, from the
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.