Backup method: 1. Export/Import: This is the most commonly used backup method in Oracle database. Use expdp to extract data from the database, and then use impdp to send the extracted data back to the Oracle database; 2. Cold backup: Cold backup must be performed when the database is closed. When the database is open, Performing database file system backup is ineffective; 3. Storage storage migration: This method is often suitable for raw devices; 4. Use Data Guard migration; 5. Data migration tools.
There are many methods for Oracle database backup, including but not limited to the following:
Export/Import (Expdp/Impdp or Exp/Imp): This is the most commonly used backup method in Oracle databases. Use expdp to extract data from the database, and then use impdp to send the extracted data back to the Oracle database.
Cold backup: Cold backup occurs when the database has been shut down normally, and the database is consistent at this time. The files that must be copied in cold backup include: all data files, all control files, all archived redo log files, and initialization parameter files (optional). Cold backup must be performed when the database is closed. When the database is open, performing a database file system backup is invalid.
Storage storage migration: This method is often suitable for raw devices. Generally, data files, control files, log files, and spfiles are all on storage (usually bare devices). We can directly mount the storage to the new machine, and then start the database on the new machine.
Migration using Data Guard: Data Guard can not only be used for disaster recovery, but physical Data Guard can also be used as a migration method.
Data migration tool: You can use professional data migration tools to perform backups. Common data migration tools such as: sqoop, Flyway, DB2DB, etc.
No matter which backup method is used, the purpose of backup is to restore the system with as little time and cost as possible after a failure.
The above is the detailed content of Oracle database backup method. For more information, please follow other related articles on the PHP Chinese website!