First, the common operation:
Back up the entire database
Format:MYSQLDUMP-H host name-P Port-u username-p password (–database) database name > filename. sqlMysqldump-h{hostname}-p{port}-u{username}-p{password} {DatabaseName} > {backupfile.sql}For example:The code is as follows:
The code is as follows
Copy Code
mysqldump-hlocalhost-p
The mysqldump client can be used to dump databases or collect databases for backup or transfer data to another SQL Server (not necessarily a MySQL Server ). Dump contains table Creation
The mysqldump client can be used to dump databases or collect databases for backup or transfer data to another SQL Server (not necessarily a MySQL Server ). Dump contains table Creation
The mysqldump client can be used
Query Character SetSql> select * from Nls_database_parameters;Nls_charactersetAl32utf8Character set is important when backing up, otherwise it will be garbledOne, Level 0 backup (full) Red is to be modified, depending on the location of the personal storage.[email protected] script]$ cat Db_bak0.rmanRun{Configure retention policy to recovery windows of 8 days;Configure Controlfile autobackup on;Configure
Database backup and recovery, inspection object settings to be concerned: 1. database Name, and DBID; -- dbid in v $ database SYS @ ORCLselectdbid, namefromv $ database; DBIDNAME-------------------1385095721ORCL2. location of the control file; showparametercontrol_files; sel
home must be the same.3. Test the creation of the backup database in the test environment before putting it into the production environment.
2. on the primary database:
1. Enable forced logging for the primary database:
SQL> ALTER DATAB
1, mysqldump1.1 BackupMysqldump is a SQL-level backup mechanism that guides data tables into SQL script files and is relatively appropriate for upgrades between different versions of MySQL, which is also the most common method of backup. Now let's talk about some of the main parameters of mysqldump:
--compatible=nameIt tells Mysqldump which database or older ver
Recently, the company needs to switch the Oracle database to another server and use EXP and IMP to export the import tool. After a long period of time, an error is returned... All kinds of tangle... Therefore, a simple cold Backup recovery mechanism is adopted. However, because the original database version is 10.2.0.1, the server to be switched is 10.2.0.5, and
GoalThis document explains in detail on what happens when a tablespace/datafile was kept in hot backup/begin backup mode.SolutionTo perform online/hot backup We had to put the tablespace in begin backup mode followed by copying the datafiles And then putting the tablespace to end backup.In 8i, 9i we had to put each tab
ZRM is an acronym for Zmanda Recovery Manager, an open source software for backing up MySQL.It is http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/MySQL-zrm.htmlFirst, installation#yum install-y MYSQL-ZRMSecond, create an alternate user#mysql-uroot-pMysql>grant select,insert,update,create,drop,reload,shutdown,alter,super,lock table,replication Client on * * to ' Backup ' @ ' localhost ' identified by
+case @RETYPE when'Dbnor'Then', NORECOVERY'ELSE', RECOVERY'END--set the current database offline status EXEC ('ALTER DATABASE ['[Email protected]+'] SET OFFLINE with ROLLBACK IMMEDIATE') --Recover Database EXEC (@SQL)--set the current database connection status EXEC ('
sql2005| Backup | objects | resolve | data | Database sql2000 backup DATABASE after restoring to sql2005, select database diagram prompt: This database does not have a valid owner, so the data
delete the user and the user all the data under the operation, and end the relevant process, the script is as follows:Drop user username cascade;Select sid,serial# from v$session where username= ' username ';Alter system kill session SessionID;Note: If you want to restore the backup to a different database, you do not need to do the above operation.2.2 Create th
sql| Backup | recovery | data | Database 1, ASP How to implement SQL database backup, restore!
Answer: ASP online Backup SQL Server database:
1, Backup
sql= "
1 Introduction
ORACLE Database is a large relational database that can store terabytes of data. Therefore, it is especially important to ensure the security of such data. We started using the ORACLE database in 1991, over the years, we have developed a complete set of ORACLE Database
server to establish the same form of source server space (note the size of the form space, form spatial data files can be multiple, a maximum data of 32G) View the instance inside the form space: select Tablespace_name from Dba_tablespaces; There are two ways of creating a form space: The first one is built in EM. The second is built with DBA authority in Sqlplus command to create tablespace files Create Tablespace Erpsys (Erpsys for you to create a form name) Logging DataFile ' d:\oracle da
Database backup recovery, patrol needs to focus on the object settings:1. Database name, and dbid;--dbid in V$database[email protected]>select dbid,name from V$database;DBID NAME---------- ---------1385095721 ORCL2. Control the location of the file;Show parameter control_fil
You must use SYS or SYSTEM to perform incremental export and import.
Incremental export: includes three types:
(1) "Complete" incremental Export (Complete) // back up the entire database
$ Exp user/pwd file =/dir/xxx. dmp log = xxx. log inctype = complete
(2) incremental export and export the data changed after the last backup.
$ Exp user/pwd file =/dir/xxx. dmp log = xxx. log inctype = incremental
(3) Cum
Backup | reference | reference Manual | recovery | data | database | Chinese InnoDB Chinese Reference Manual---canine (heart sail) Translation 6 backup and restore InnoDB database
Secure database management is the use of regular data backups.
InnoDB Hot
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 infileThe advantage of this method is that the exported data can be self-defined format, and 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.