BACKUP
来源:互联网 发布:python url发送 编辑:程序博客网 时间:2024/05/16 18:20
backup(oracle)
The following table illustrates the main types of physical backups and the non-RMAN methods for performing these backups.
Datafiles
Operating system utility
% cp df3.f df3.bak
Archived logs
Operating system utility
% cp log_1_23.arc log_1_23.bak
Control files
SQL statement
SQL> ALTER DATABASE BACKUP CONTROLFILE TO cf1.bak
Initialization parameter file
SQL statement
SQL> CREATE PFILE = init.ora.bak FROM SPFILE;
Network and password files
Operating system utility
% cp tnsnames.ora tnsnames.bak
C:/> copy tnsnames.ora tnsnames.bak
Logical objects (tables, indexes, PL/SQL units)
Export utility
% export SYSTEM/manager TABLE=hr.emp FILE=emp.dmp
Consistent and Inconsistent User-Managed Backups
You can use RMAN or operating system commands to make an inconsistent backup or a consistent backup. An inconsistent backup is a backup of one or more database files made while the database is open or after the database has not been shut down normally. A consistent backup is a backup of one or more database files that you make after the database has been shut down normally. Unlike an inconsistent backup, a consistent backup does not require recovery after it is restored.
A consistent whole database backup is the only valid backup option for databases running in NOARCHIVELOG
mode, because otherwise redo needed for recovery is not available. In NOARCHIVELOG
mode, Oracle overwrites redo records without archiving them first.
If you run the database in ARCHIVELOG
mode, then you can back up database files while the database is open. These backups are inconsistent, but as long as you have the necessary archived redo logs you can recover these backups. You can either take a tablespace offline and back up its datafiles, or perform an online backup. An online backup occurs when the tablespace is still online. To perform an online backup, you must begin and end the backup with SQL statements that place the tablespace in and take the tablespace out of backup mode.
- backup
- BACKUP
- backup
- backup
- backup
- backup
- backup
- Backup
- Backup
- Backup
- backup
- backup
- Backup
- backup
- backup
- backup
- backup
- backup
- 又没分了
- NSString urlEncode decode base64 encode decode
- 七个寓言故事
- 心得
- #Pragma 指令
- BACKUP
- Dojo 的 textArea onChange 事件
- mysql创建用户命令
- NIO学习系列:核心概念及基本读写
- DOS命令大全(经典收藏)
- oralce 10g 安装遇到的怪异问题
- (引)The item "obj/Debug/xxx.resources" was specified more than once the "Resources
- 让 DLL 卸载自身
- PJSIP介绍