- 浏览: 978469 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
孤星119:
好熟悉的数据库字段啊, 上家公司做的项目每天都跟这些字段打招呼 ...
Oracle exp compress参数引起的空间浪费 -
itspace:
quxiaoyong 写道遇到个问题,网上一搜,全他妈这篇文章 ...
数据库连接错误ORA-28547 -
quxiaoyong:
遇到个问题,网上一搜,全他妈这篇文章。你转来转去的有意思吗?
数据库连接错误ORA-28547 -
hctech:
关于version count过高的问题,不知博主是否看过ey ...
某客户数据库性能诊断报告 -
itspace:
invalid 写道写的不错,我根据这个来安装,有点理解错误了 ...
AIX 配置vncserver
进行测试之前先将数据库做全备:
假设现在数据库异常宕机
启动数据库至nomount状态
1、利用dbms_backup_restore恢复控制文件
SQL> DECLARE
2 devtype varchar2(256);
3 done boolean;
4 BEGIN
5 devtype := dbms_backup_restore.DeviceAllocate(type => '',ident => 'testctl');
6 dbms_backup_restore.RestoresetdataFile;
7 dbms_backup_restore.RestoreControlFileto('/app/oracle/oradata/ora9i/control01.ctl');
8 dbms_backup_restore.RestoreBackupPiece('/backup/full708756233',done => done);
9 dbms_backup_restore.RestoresetdataFile;
10 dbms_backup_restore.RestoreControlFileto('/app/oracle/oradata/ora9i/control02.ctl');
11 dbms_backup_restore.RestoreBackupPiece('/backup/full708756233',done => done);
12 dbms_backup_restore.RestoresetdataFile;
13 dbms_backup_restore.RestoreControlFileto('/app/oracle/oradata/ora9i/control03.ctl');
14 dbms_backup_restore.RestoreBackupPiece('/backup/full708756233',done => done);
15 dbms_backup_restore.DeviceDeallocate;
16 END;
17 /
PL/SQL procedure successfully completed.
当然也已可用rman进行控制文件恢复
2、利用dbms_backup_restore恢复数据文件
PL/SQL procedure successfully completed.
3、利用dbms_backup_restore恢复归档日志
4、不完全恢复打开数据库
引用
RMAN> run {
2> allocate channel ch00 device type disk;
3> backup database include current controlfile format '/backup/full%t' tag='FULLDB';
4> sql 'alter system archive log current';
5> backup archivelog all format '/backup/arch%t' tag='ARCHIVELOG';
6> release channel ch00;
7> }
allocated channel: ch00
channel ch00: sid=17 devtype=DISK
Starting backup at 20-JAN-10
channel ch00: starting full datafile backupset
channel ch00: specifying datafile(s) in backupset
including current controlfile in backupset
input datafile fno=00001 name=/app/oracle/oradata/ora9i/system01.dbf
input datafile fno=00002 name=/app/oracle/oradata/ora9i/undotbs01.dbf
input datafile fno=00005 name=/app/oracle/oradata/ora9i/example01.dbf
input datafile fno=00011 name=/app/oracle/oradata/ora9i/STREAM01.dbf
input datafile fno=00010 name=/app/oracle/oradata/ora9i/xdb01.dbf
input datafile fno=00006 name=/app/oracle/oradata/ora9i/indx01.dbf
input datafile fno=00009 name=/app/oracle/oradata/ora9i/users01.dbf
input datafile fno=00003 name=/app/oracle/oradata/ora9i/cwmlite01.dbf
input datafile fno=00004 name=/app/oracle/oradata/ora9i/drsys01.dbf
input datafile fno=00007 name=/app/oracle/oradata/ora9i/odm01.dbf
input datafile fno=00008 name=/app/oracle/oradata/ora9i/tools01.dbf
channel ch00: starting piece 1 at 20-JAN-10
channel ch00: finished piece 1 at 20-JAN-10
piece handle=/backup/full708756233 comment=NONE
channel ch00: backup set complete, elapsed time: 00:02:26
Finished backup at 20-JAN-10
Starting Control File and SPFILE Autobackup at 20-JAN-10
piece handle=/app/oracle/product/9.0.2/dbs/c-2494723682-20100120-00 comment=NONE
Finished Control File and SPFILE Autobackup at 20-JAN-10
sql statement: alter system archive log current
Starting backup at 20-JAN-10
current log archived
channel ch00: starting archive log backupset
channel ch00: specifying archive log(s) in backup set
input archive log thread=1 sequence=1 recid=254 stamp=708756150
input archive log thread=1 sequence=2 recid=255 stamp=708756383
input archive log thread=1 sequence=3 recid=256 stamp=708756383
channel ch00: starting piece 1 at 20-JAN-10
channel ch00: finished piece 1 at 20-JAN-10
piece handle=/backup/arch708756383 comment=NONE
channel ch00: backup set complete, elapsed time: 00:00:02
Finished backup at 20-JAN-10
Starting Control File and SPFILE Autobackup at 20-JAN-10
piece handle=/app/oracle/product/9.0.2/dbs/c-2494723682-20100120-01 comment=NONE
Finished Control File and SPFILE Autobackup at 20-JAN-10
released channel: ch00
2> allocate channel ch00 device type disk;
3> backup database include current controlfile format '/backup/full%t' tag='FULLDB';
4> sql 'alter system archive log current';
5> backup archivelog all format '/backup/arch%t' tag='ARCHIVELOG';
6> release channel ch00;
7> }
allocated channel: ch00
channel ch00: sid=17 devtype=DISK
Starting backup at 20-JAN-10
channel ch00: starting full datafile backupset
channel ch00: specifying datafile(s) in backupset
including current controlfile in backupset
input datafile fno=00001 name=/app/oracle/oradata/ora9i/system01.dbf
input datafile fno=00002 name=/app/oracle/oradata/ora9i/undotbs01.dbf
input datafile fno=00005 name=/app/oracle/oradata/ora9i/example01.dbf
input datafile fno=00011 name=/app/oracle/oradata/ora9i/STREAM01.dbf
input datafile fno=00010 name=/app/oracle/oradata/ora9i/xdb01.dbf
input datafile fno=00006 name=/app/oracle/oradata/ora9i/indx01.dbf
input datafile fno=00009 name=/app/oracle/oradata/ora9i/users01.dbf
input datafile fno=00003 name=/app/oracle/oradata/ora9i/cwmlite01.dbf
input datafile fno=00004 name=/app/oracle/oradata/ora9i/drsys01.dbf
input datafile fno=00007 name=/app/oracle/oradata/ora9i/odm01.dbf
input datafile fno=00008 name=/app/oracle/oradata/ora9i/tools01.dbf
channel ch00: starting piece 1 at 20-JAN-10
channel ch00: finished piece 1 at 20-JAN-10
piece handle=/backup/full708756233 comment=NONE
channel ch00: backup set complete, elapsed time: 00:02:26
Finished backup at 20-JAN-10
Starting Control File and SPFILE Autobackup at 20-JAN-10
piece handle=/app/oracle/product/9.0.2/dbs/c-2494723682-20100120-00 comment=NONE
Finished Control File and SPFILE Autobackup at 20-JAN-10
sql statement: alter system archive log current
Starting backup at 20-JAN-10
current log archived
channel ch00: starting archive log backupset
channel ch00: specifying archive log(s) in backup set
input archive log thread=1 sequence=1 recid=254 stamp=708756150
input archive log thread=1 sequence=2 recid=255 stamp=708756383
input archive log thread=1 sequence=3 recid=256 stamp=708756383
channel ch00: starting piece 1 at 20-JAN-10
channel ch00: finished piece 1 at 20-JAN-10
piece handle=/backup/arch708756383 comment=NONE
channel ch00: backup set complete, elapsed time: 00:00:02
Finished backup at 20-JAN-10
Starting Control File and SPFILE Autobackup at 20-JAN-10
piece handle=/app/oracle/product/9.0.2/dbs/c-2494723682-20100120-01 comment=NONE
Finished Control File and SPFILE Autobackup at 20-JAN-10
released channel: ch00
假设现在数据库异常宕机
引用
SQL> shutdown abort
ORACLE instance shut down
ORACLE instance shut down
启动数据库至nomount状态
引用
SQL> startup nomount
ORACLE instance started.
Total System Global Area 1125193868 bytes
Fixed Size 452748 bytes
Variable Size 335544320 bytes
Database Buffers 788529152 bytes
Redo Buffers 667648 bytes
ORACLE instance started.
Total System Global Area 1125193868 bytes
Fixed Size 452748 bytes
Variable Size 335544320 bytes
Database Buffers 788529152 bytes
Redo Buffers 667648 bytes
1、利用dbms_backup_restore恢复控制文件
引用
SQL> DECLARE
2 devtype varchar2(256);
3 done boolean;
4 BEGIN
5 devtype := dbms_backup_restore.DeviceAllocate(type => '',ident => 'testctl');
6 dbms_backup_restore.RestoresetdataFile;
7 dbms_backup_restore.RestoreControlFileto('/app/oracle/oradata/ora9i/control01.ctl');
8 dbms_backup_restore.RestoreBackupPiece('/backup/full708756233',done => done);
9 dbms_backup_restore.RestoresetdataFile;
10 dbms_backup_restore.RestoreControlFileto('/app/oracle/oradata/ora9i/control02.ctl');
11 dbms_backup_restore.RestoreBackupPiece('/backup/full708756233',done => done);
12 dbms_backup_restore.RestoresetdataFile;
13 dbms_backup_restore.RestoreControlFileto('/app/oracle/oradata/ora9i/control03.ctl');
14 dbms_backup_restore.RestoreBackupPiece('/backup/full708756233',done => done);
15 dbms_backup_restore.DeviceDeallocate;
16 END;
17 /
PL/SQL procedure successfully completed.
当然也已可用rman进行控制文件恢复
引用
RMAN> restore controlfile from '/app/oracle/product/9.0.2/dbs/c-2494723682-20100120-00';
Starting restore at 20-JAN-10
using channel ORA_DISK_1
channel ORA_DISK_1: restoring controlfile
channel ORA_DISK_1: restore complete
replicating controlfile
input filename=/app/oracle/oradata/ora9i/control01.ctl
output filename=/app/oracle/oradata/ora9i/control02.ctl
output filename=/app/oracle/oradata/ora9i/control03.ctl
Finished restore at 20-JAN-10
Starting restore at 20-JAN-10
using channel ORA_DISK_1
channel ORA_DISK_1: restoring controlfile
channel ORA_DISK_1: restore complete
replicating controlfile
input filename=/app/oracle/oradata/ora9i/control01.ctl
output filename=/app/oracle/oradata/ora9i/control02.ctl
output filename=/app/oracle/oradata/ora9i/control03.ctl
Finished restore at 20-JAN-10
2、利用dbms_backup_restore恢复数据文件
引用
SQL> DECLARE
2 devtype varchar2(256);
3 done boolean;
4 BEGIN
5 devtype := dbms_backup_restore.DeviceAllocate (type => '',ident => 'testdatafile');
6 dbms_backup_restore.RestoreSetDatafile;
7 dbms_backup_restore.RestoreDatafileTo(dfnumber => 1,toname => '/app/oracle/oradata/ora9i/system01.dbf');
8 dbms_backup_restore.RestoreDatafileTo(dfnumber => 2,toname => '/app/oracle/oradata/ora9i/undotbs01.dbf');
9 dbms_backup_restore.RestoreBackupPiece(done => done,handle => '/backup/full708756233', params => null);
10 dbms_backup_restore.DeviceDeallocate;
11 END;
12 /
2 devtype varchar2(256);
3 done boolean;
4 BEGIN
5 devtype := dbms_backup_restore.DeviceAllocate (type => '',ident => 'testdatafile');
6 dbms_backup_restore.RestoreSetDatafile;
7 dbms_backup_restore.RestoreDatafileTo(dfnumber => 1,toname => '/app/oracle/oradata/ora9i/system01.dbf');
8 dbms_backup_restore.RestoreDatafileTo(dfnumber => 2,toname => '/app/oracle/oradata/ora9i/undotbs01.dbf');
9 dbms_backup_restore.RestoreBackupPiece(done => done,handle => '/backup/full708756233', params => null);
10 dbms_backup_restore.DeviceDeallocate;
11 END;
12 /
PL/SQL procedure successfully completed.
3、利用dbms_backup_restore恢复归档日志
引用
SQL> DECLARE
2 devtype varchar2(256);
3 done boolean;
4 BEGIN
5 devtype := dbms_backup_restore.DeviceAllocate (type => '',ident => 'testarchlog');
6 dbms_backup_restore.RestoreSetArchivedLog(destination=>'/app/oracle/product/9.0.2/dbs/arch');
7 dbms_backup_restore.RestoreArchivedLog(thread=>1,sequence=>1);
8 dbms_backup_restore.RestoreArchivedLog(thread=>1,sequence=>2);
9 dbms_backup_restore.RestoreArchivedLog(thread=>1,sequence=>3);
10 dbms_backup_restore.RestoreBackupPiece(done => done,handle => '/backup/arch708756383', params => null);
11 dbms_backup_restore.DeviceDeallocate;
12 END;
13 /
PL/SQL procedure successfully completed.
2 devtype varchar2(256);
3 done boolean;
4 BEGIN
5 devtype := dbms_backup_restore.DeviceAllocate (type => '',ident => 'testarchlog');
6 dbms_backup_restore.RestoreSetArchivedLog(destination=>'/app/oracle/product/9.0.2/dbs/arch');
7 dbms_backup_restore.RestoreArchivedLog(thread=>1,sequence=>1);
8 dbms_backup_restore.RestoreArchivedLog(thread=>1,sequence=>2);
9 dbms_backup_restore.RestoreArchivedLog(thread=>1,sequence=>3);
10 dbms_backup_restore.RestoreBackupPiece(done => done,handle => '/backup/arch708756383', params => null);
11 dbms_backup_restore.DeviceDeallocate;
12 END;
13 /
PL/SQL procedure successfully completed.
4、不完全恢复打开数据库
引用
SQL> alter database mount;
Database altered.
SQL> recover database using backup controlfile;
ORA-00279: change 17329956 generated at 01/20/2010 04:43:54 needed for thread 1
ORA-00289: suggestion : /app/oracle/product/9.0.2/dbs/arch/1_2.dbf
ORA-00280: change 17329956 for thread 1 is in sequence #2
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00279: change 17330517 generated at 01/20/2010 04:46:23 needed for thread 1
ORA-00289: suggestion : /app/oracle/product/9.0.2/dbs/arch/1_3.dbf
ORA-00280: change 17330517 for thread 1 is in sequence #3
ORA-00278: log file '/app/oracle/product/9.0.2/dbs/arch/1_2.dbf' no longer
needed for this recovery
ORA-00279: change 17330520 generated at 01/20/2010 04:46:23 needed for thread 1
ORA-00289: suggestion : /app/oracle/product/9.0.2/dbs/arch/1_4.dbf
ORA-00280: change 17330520 for thread 1 is in sequence #4
ORA-00278: log file '/app/oracle/product/9.0.2/dbs/arch/1_3.dbf' no longer
needed for this recovery
ORA-00308: cannot open archived log
'/app/oracle/product/9.0.2/dbs/arch/1_4.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 17330520 generated at 01/20/2010 04:46:23 needed for thread 1
ORA-00289: suggestion : /app/oracle/product/9.0.2/dbs/arch/1_4.dbf
ORA-00280: change 17330520 for thread 1 is in sequence #4
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/app/oracle/oradata/ora9i/redo06.log
Log applied.
Media recovery complete.
Database altered.
SQL> recover database using backup controlfile;
ORA-00279: change 17329956 generated at 01/20/2010 04:43:54 needed for thread 1
ORA-00289: suggestion : /app/oracle/product/9.0.2/dbs/arch/1_2.dbf
ORA-00280: change 17329956 for thread 1 is in sequence #2
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00279: change 17330517 generated at 01/20/2010 04:46:23 needed for thread 1
ORA-00289: suggestion : /app/oracle/product/9.0.2/dbs/arch/1_3.dbf
ORA-00280: change 17330517 for thread 1 is in sequence #3
ORA-00278: log file '/app/oracle/product/9.0.2/dbs/arch/1_2.dbf' no longer
needed for this recovery
ORA-00279: change 17330520 generated at 01/20/2010 04:46:23 needed for thread 1
ORA-00289: suggestion : /app/oracle/product/9.0.2/dbs/arch/1_4.dbf
ORA-00280: change 17330520 for thread 1 is in sequence #4
ORA-00278: log file '/app/oracle/product/9.0.2/dbs/arch/1_3.dbf' no longer
needed for this recovery
ORA-00308: cannot open archived log
'/app/oracle/product/9.0.2/dbs/arch/1_4.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 17330520 generated at 01/20/2010 04:46:23 needed for thread 1
ORA-00289: suggestion : /app/oracle/product/9.0.2/dbs/arch/1_4.dbf
ORA-00280: change 17330520 for thread 1 is in sequence #4
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/app/oracle/oradata/ora9i/redo06.log
Log applied.
Media recovery complete.
发表评论
-
buffer cache 的内部结构
2020-03-18 14:21 576BUFFER CACHE作为数据块的 ... -
Oracle OMC介绍
2020-03-18 13:19 484Oracle管理云服务(OMC)的大数据平台,自动收集的企业 ... -
参加Oracle勒索病毒防范专题培训会议
2019-09-27 17:15 5112019年7月22日,受邀参加Oracle勒索病毒防范专题培训 ... -
记一次内存换IO的Oracle优化
2019-09-27 16:50 826某客户数据库从P595物理 ... -
如何定位Oracle SQL执行计划变化的原因
2019-07-03 14:49 1458性能优化最难的是能够 ... -
如何定位Oracle SQL执行计划变化的原因
2018-10-30 09:24 1185性能优化最难的是能够 ... -
数据库性能优化目标
2018-10-08 10:59 518从数据库性能优化的场 ... -
数据库无法打开的原因及解决办法
2018-10-05 20:45 2117数据库的启动是一个相当复杂的过程。比如,Oracle在启动之前 ... -
怎么样彻底删除数据库?
2018-09-18 11:10 598Oracle提供了drop database命令用来删除数据库 ... -
Oracle减少日志量的方法
2018-09-10 10:17 865LGWR进程将LOG BUFFER中的 ... -
如何快速关闭数据库
2018-09-09 13:14 1231“一朝被蛇咬,十年怕井绳”。在没被“蛇”咬之前,很多DBA喜欢 ... -
关于《如何落地智能化运维》PPT
2018-05-17 10:19 1128在DTCC 2018发表《如何落地智能化运维》演讲,主要内容如 ... -
记录在redhat5.8平台安装oracle11.2容易忽视的几个问题
2018-05-11 19:58 577问题一:ping不通问题 在虚拟机上安装好linux系统后, ... -
《Oracle DBA实战攻略》第一章
2018-05-11 10:42 945即日起,不定期更新《OracleDBA实战攻略》一书电子版,请 ... -
Oracle 12c新特性
2018-05-11 10:33 898查询所有pdb [oracle@gj4 ~]$ sqlplu ... -
关于修改memory_target的值后数据库无法启动的问题
2017-02-28 12:24 3981操作系统:RHEL6.5 数据库版本:11.2.0.4 ... -
10g rac安装error while loading shared libraries libpthread.so.0 问题
2017-02-28 12:22 69311g rac安装在二节点跑脚本一般会报此错误: 解决这个问 ... -
记一次Oracle会话共享模式故障处理过程
2017-02-27 19:16 798故障简述 XXX第八人民医院HIS数据库7月13日11点左右从 ... -
RESMGR:cpu quantum等待事件处理过程
2017-02-27 18:23 2615由于数据库上线过程中出现大量的RESMGR:cpu quant ... -
谈谈log file sync
2014-03-19 14:18 1757数据库中的log file sync等待事件指的是,当user ...
相关推荐
40. **DBMS_BACKUP_RESTORE**: 数据库备份和恢复工具。 41. **DBMS_CRYPTO.HASH**: 创建数据的哈希值,用于验证数据完整性。 42. **DBMS_METADATA.GET_TRANSFORM_PARAM**: 查询当前转换参数设置。 43. **DBMS_...
sys.dbms_backup_restore.restoreBackupPiece(done=>done,handle=>'/opt/oracle/flash_recovery_area/ORCL/backupset/2008_07_18/o1_mf_ncsnf_TAG20080718T203240_482fls2h_.bkp',params=>null); sys.dbms_backup_...
命令执行器是RMAN的核心组件,负责解释用户输入的控制命令,并将其翻译成PL/SQL指令,通过网络连接目标数据库并将PL/SQL指令传送给数据库实例中的DBMS-BACKUP-RESTORE和DBMS-RCVMAN两个PL/SQL程序包。 目标数据库是...
9. **PL/SQL和SQL命令**:熟练掌握`RESTORE`、`RECOVER`等SQL命令,以及相关的PL/SQL包,如DBMS_RECOVERY,是进行备份恢复操作的基础。 10. **最佳实践**:定期测试恢复过程,确保备份的可用性;合理规划备份存储...
### Oracle数据库备份恢复 #### RMAN(备份与恢复管理器) **RMAN**,即**Recovery Manager**,是Oracle数据库管理系统中的一项重要工具,主要用于数据库的备份与恢复操作。它能够提供高度自动化且功能强大的解决...
5. **DBMS_BACKUP_RESTORE**:备份和恢复工具。 6. **DBMS_SCHEDULER**:用于创建和管理调度任务。 7. **DBMS_FLASHBACK**:支持闪回查询和恢复操作。 8. **DBMS_AUTO_TASK_ADMIN**:自动化任务管理。 #### 五、DSA...
### Oracle数据库的备份与恢复策略研究 ...此外,随着技术的发展,Oracle数据库还提供了更多的高级备份工具和技术,例如RMAN(Restore and Recovery Manager),可以帮助用户更高效地进行数据库的备份和恢复工作。
可以使用DBMS_BACKUP_RESTORE包或者EXPDP(数据泵导出)命令来进行逻辑备份。VB程序可以构建一个自动化脚本,定时触发这些命令,将数据库表、用户对象、甚至是整个数据库导出为一个或多个文件。同时,程序需要处理...
它是利用Oracle表扫描机制、数据嫁接机制恢复TRUNCATE或者损坏数据的工具包,这个包是由行内有影响力的DBA大师黄炜先生通过PLSQL编写的,再这里再次感谢他的无私技术分享。Fy_Recover_Data去本文附近中下载 好了,...
总的来说,解决Oracle数据库的坏块问题需要深入理解数据库的工作原理、故障排查技巧以及如何利用Oracle提供的工具进行修复。这不仅依赖于理论知识,实践经验同样重要,因为每个环境都有其独特性,可能需要定制化的...
4. **备份与恢复**:编写PL/SQL脚本来自动化备份和恢复过程,例如使用`DBMS_BACKUP_RESTORE`包来执行物理备份,或`DBMS_RMAN`包进行RMAN备份。 5. **数据库安全性**:使用`DBA_USERS`、`DBA_ROLES`和`DBA_PRIVS`...
2. **sys.dbms_backup_restore**:用于创建系统调用来执行数据库的备份或恢复操作。 此外,还有一些内核级别的RMAN数据包支持RMAN在不同的数据库状态(如nomount和mount)下运行。 #### 数据块备份概述 1. **数据...
RMAN命令执行器接收用户输入的备份指令,并将其转化为PL/SQL指令,通过网络连接发送给目标数据库实例,由数据库实例中的DBMS_BACKUP_RESTORE和DBMS_RMAN包处理,从而实现备份和恢复操作。恢复目录则是一个独立于目标...
本文档详细记录了从Oracle 11.2.0.4版本数据库通过RMAN工具进行异地备份恢复,并最终升级至12c PDB环境的过程。 #### 数据库版本确认 **源数据库 (11g):** ``` Oracle Database 11g Enterprise Edition Release ...
- 清除控制文件中的归档日志信息:`EXECUTE SYS.DBMS_BACKUP_RESTORE.RESETCFILESECTION(11);` - **归档日志相关操作** - 手动归档所有日志:`ALTER SYSTEM ARCHIVELOG ALL;` - 归档当前日志:`ALTER SYSTEM ...
在Oracle数据库管理中,RMAN(Recovery Manager)是一种强大的工具,用于备份、还原和恢复数据库。它提供了多种方式来保护数据免受各种灾难的影响,其中包括将数据库恢复到指定时间点的功能。这种不完全恢复的方法...
- **物理还原**:直接替换数据库文件或使用特定的恢复命令(如MySQL的`mysqlimport`或SQL Server的`RESTORE DATABASE`)。 - **逻辑还原**:通过读取备份文件中的SQL语句,使用`java.sql.Statement`执行这些语句来...
Oracle数据库是企业级广泛应用的关系型数据库系统,其稳定性和数据安全性是其核心优势之一。为了确保数据在意外情况下的可恢复性,Oracle提供了多种备份策略和技术。本篇将详细讲解Oracle自动备份、定期备份以及如何...
Oracle 11G 引入了一个重要的新工具——数据恢复顾问(Data Recovery Advisor,简称 DRA),它能够自动诊断并修复数据库中的故障。当遇到物理损坏或逻辑错误时,DRA 可以提供一系列建议来修复问题。例如: 1. **...