Format reload system, only to think of Oracle 10g database did not do backup, began to think very troublesome, did not expect the database recovery is quite smoothRecovery method:1, the original database file backup, (D:\ORACLE\PRODUCT\10.2.0\ORADATA\GQXT), rename it, I name
Create a job and regularly execute the following stored procedure
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Set
Ansi_nulls
On
Set
Quoted_identifier
On
Go
Alter Proc [ DBO ] . [ Beifen1 ] As Declare @ Date Varchar ( 100 ), @ Time1 Varchar ( 10 ), @ Time2 Varchar ( 10 ), @ Time3 Varchar ( 10 ), @ Time4 Varchar ( 10
Choose a Blog from HANGHWP
1, how to implement the ASP SQL database backup, Recovery!Answer: ASP online Backup SQL Server database:1, Backupsql= "BACKUP database name to disk= '" server.mappath ("
); (4) Perform database update operations, such as deleting several records and adding several records; (5) Close the database (SHUTDOWN IMMEDIATE); (6) Copy all previously saved data files, control files, online redo log files to the original location, overwriting the original files; (7) Restart the database (startup); (8) Query the data to see if the updated da
First, the database is a large storage of data warehouse, in order to ensure data integrity, to prevent some accidental loss of data, such as the need for data backup and restore.Backing up data does not affect the normal operation of the database.
1. Back up and restore the databaseStart by backing up the database
int PRIMARY KEY, ... Deptno int, CONSTRAINT fk_emp FOREIGN KEY (MGR) REFERENCES EMP (empno) ); To add a foreign key constraint when modifying a table ALERT TABLE EMP AddConstraint fk_emp_deptno FOREIGN KEY (deptno) REFERENCES dept (DEPTNO); To delete a foreign key constraint when modifying a table ALTER TABLE EMP DROP FOREIGN KEY fk_emp_deptno;/* constraint name */ -------------------------- 7 Relationship between a
1. Database backup Under the full recovery model1 UseMaster;2 ALTER DATABASEAdventureWorks2012SETRECOVERY Full;3 GO4 --The AdventureWorks2012 database to new media set (backup Set 1).5 BACKUP DATABASEAdventureWorks20126 to DIS
by norecovery to revert to the last log.-In the final analysis, this is a database requirement.3. Restore the DatabaseTake the database offline firstALTER DATABASE db_name set offline with rollback immediateTo restore again Restore Database db_name from
disk= ' D:\db_name.bak ' with
replace Attention:1. Make sure the
Label:Original http://www.cnblogs.com/xuejie/archive/2013/01/11/2856911.html We will certainly encounter the backup database in the course of running the project, restore the database situation, we generally use two ways to deal with: 1. Import and export backup data using into outfile and load data infile The advantag
This article discusses MySQL's backup and recovery mechanism, and how to maintain data tables, including the two most important types of tables: MyISAM and Innodb, and the MySQL version in this article is 5.0.22.
The free backup tools currently supported by MySQL are: mysqldump, mysqlhotcopy, and can be backed up with SQL syntax: Backup TABLE or SELECT into outfi
Tags: trigger ase Refresh a log principle Pac Oba theMysqldump is a good command for MySQL database backup, and it comes with MySQL.- D: Only the table structure is backed up, backup files are SQL statements, only statements that create tables are backed up, and the inserted data is not backed up.- t: Backs up data only, data is text, table structure is not backe
Problem Description:
Implementation of the Oracle automatic backup script.
Error tip 1:
Message file RMAN.MSB not found
Verify that Oracle_home is set properly
。。。。。。
Error Reason:
Automatic execution does not recognize the appropriate command and requires an explicit declaration of Oracle's environment variables in an automatic backup script.
Error Tip 2:
Standard in must to be a TTY
。。。。。。
Erro
have completely removed the table and then imported it. Attention: You need to have enough permissions, not enough permissions, and it will prompt you. Database, you can connect to the. You can use tnsping test to get the database test to connect Appendix I: Adding permissions to the import data to the user First, start sql*puls Second, landing with System/manager Third, create user username identified by
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.