Exadata的备份恢复跟普通单机或者RAC数据库的备份恢复基本面是一样的,但是针对多节点还是有一些优化的最佳实践。今天就简单谈谈针对Exadata的备份和恢复。
为充分利用Exadata的I/O能力和多节点的优势,建议先在每个DB节点上分配2个通道进行测试。另外,为了让所有的DB节点都能参与到备份任务中,可以在每个节点建立一个failover类型的service。下面是一个实际的测试配置和脚本,仅供参考。
srvctl add service –d df –s bkup1 –r df1 –a df2 ,df3 ,df4
srvctl add service –d df –s bkup2 –r df2 –a df1 ,df3 ,df4
srvctl add service –d df –s bkup3 –r df3 –a df1 ,df2 ,df4
srvctl add service –d df –s bkup4 –r df4 –a df1 ,df2 ,df3
srvctl start service -d df
export ORACLE_HOME
export NLS_DATE_FORMAT=”YYYY/MM/DD HH24:MI:SS”
begin_time_sec=`date +%s`
set echo on
run
{
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE DEVICE TYPE DISK PARALLELISM 8;
allocate channel ch01 device type disk connect ‘sys/welcome1@x3-scan/bkup1’;
allocate channel ch02 device type disk connect ‘sys/welcome1@x3-scan/bkup2’;
allocate channel ch03 device type disk connect ‘sys/welcome1@x3-scan/bkup3’;
allocate channel ch04 device type disk connect ‘sys/welcome1@x3-scan/bkup4’;
allocate channel ch05 device type disk connect ‘sys/welcome1@x3-scan/bkup1’;
allocate channel ch06 device type disk connect ‘sys/welcome1@x3-scan/bkup2’;
allocate channel ch07 device type disk connect ‘sys/welcome1@x3-scan/bkup3’;
allocate channel ch08 device type disk connect ‘sys/welcome1@x3-scan/bkup4’;
backup
as backupset
incremental level 0
section size 128g
database;
}
end_time_sec=`date +%s`
total_execution_time_sec=`expr ${end_time_sec} – ${begin_time_sec}`
echo “Script execution time is $total_execution_time_secseconds”
下图是一个官方数据的截图,原文可以参考白皮书
从上图可以看到,在11203的版本下,满配的X2-2(X3-2),磁盘的备份速度可以达到每小时20-25TB。在11202版本下,可以达到每小时17-18TB。
针对恢复,同理,下面是一段参考脚本:
此示例是在1/8配置的环境下进行的测试,使用了16个channel,针对每个node建了一个service。注意此处是针对表空间而非全库的恢复,稍加修改可以进行全库的恢复。
run
{
allocate channel ch01 device type disk connect ‘sys/oracle@bg1’;
allocate channel ch02 device type disk connect ‘sys/oracle@bg1’;
allocate channel ch03 device type disk connect ‘sys/oracle@bg1’;
allocate channel ch04 device type disk connect ‘sys/oracle@bg1’;
allocate channel ch05 device type disk connect ‘sys/oracle@bg2’;
allocate channel ch06 device type disk connect ‘sys/oracle@bg2’;
allocate channel ch07 device type disk connect ‘sys/oracle@bg2’;
allocate channel ch08 device type disk connect ‘sys/oracle@bg2’;
allocate channel ch09 device type disk connect ‘sys/oracle@bg1’;
allocate channel ch010 device type disk connect ‘sys/oracle@bg1’;
allocate channel ch011 device type disk connect ‘sys/oracle@bg1’;
allocate channel ch012 device type disk connect ‘sys/oracle@bg1’;
allocate channel ch013 device type disk connect ‘sys/oracle@bg2’;
allocate channel ch014 device type disk connect ‘sys/oracle@bg2’;
allocate channel ch015 device type disk connect ‘sys/oracle@bg2’;
allocate channel ch016 device type disk connect ‘sys/oracle@bg2’;
sql ‘ALTER TABLESPACE eighth OFFLINE IMMEDIATE’;
restore tablespace eighth;
recover tablespace eighth;
sql ‘ALTER TABLESPACE eighth ONLINE’;
}
永劫无间手游测试服 安卓版v1.0.262342
下载永劫无间手游台服 安卓版v1.0.262342
下载永劫无间手游国际服 安卓版v1.0.262342
下载永劫无间手游豌豆荚版 安卓版v1.0.262342
下载曼德拉男孩 最新版v2025.1.1
曼德拉男孩是一款专为女性玩家准备的治愈类恋爱游戏,在这里玩家
游戏开发者无限金币版 最新版v1.0.16
游戏开发者内置菜单版是一款非常好玩的模拟经营类手游,内部有功
没有中间商赚差价内购版 最新版v23.7.3
没有中间商赚差价免广告是一款非常好玩的模拟经营类手游,无需看
我的世界某不科学的空岛下载mcbbs 最新版v隔壁老王
我的世界某不科学的空岛整合包是一款像素风格的模拟沙盒游戏,该
洗衣店模拟器无限钞票免广告版 v2.2.2
洗衣店模拟器无限钞票版是一款模拟经营类手游,玩家们将在游戏中