All language subtitles for [SubtitleTools.com] RMAN Incremental Backups - Learning Oracle 12c [Video]

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,370 --> 00:00:04,970 In this lesson, we're going to talk about incremental backups 2 00:00:04,970 --> 00:00:08,300 and RMAN does support incremental backups. 3 00:00:08,300 --> 00:00:12,470 And incremental backups are very advantageous to an Oracle DPA 4 00:00:12,470 --> 00:00:16,730 because they allow you to backup only the changes that 5 00:00:16,730 --> 00:00:20,540 have occurred since the previous backup. 6 00:00:20,540 --> 00:00:22,760 Now when we use incremental backups, 7 00:00:22,760 --> 00:00:25,140 we want to remember two things. 8 00:00:25,140 --> 00:00:28,130 First of all, this really requires a strategy. 9 00:00:28,130 --> 00:00:32,180 We need to think about things like when our backups occur, 10 00:00:32,180 --> 00:00:35,340 what our rates of change are in data. 11 00:00:35,340 --> 00:00:39,170 That is to say, how busy is our database during different days, 12 00:00:39,170 --> 00:00:40,790 and we need to kind of roll all of that 13 00:00:40,790 --> 00:00:45,450 into a strategy for how we can best use incremental backups. 14 00:00:45,450 --> 00:00:47,660 And Oracle gives us a couple of different ways 15 00:00:47,660 --> 00:00:50,090 to run incremental backups, and so that'll 16 00:00:50,090 --> 00:00:53,000 go into our strategy, as well. 17 00:00:53,000 --> 00:00:55,780 The next thing we need to remember that's very important 18 00:00:55,780 --> 00:00:58,330 and is not enabled by default is something 19 00:00:58,330 --> 00:01:00,820 called block change tracking. 20 00:01:00,820 --> 00:01:04,000 So we said that an incremental backup would only 21 00:01:04,000 --> 00:01:06,160 backup the blocks that have changed 22 00:01:06,160 --> 00:01:10,280 in the database since the previous backup. 23 00:01:10,280 --> 00:01:13,350 However, even though that is the case-- 24 00:01:13,350 --> 00:01:17,120 so we would expect that a incremental backup 25 00:01:17,120 --> 00:01:20,870 would take significantly less time than a full backup-- 26 00:01:20,870 --> 00:01:23,450 but that actually is not the case by default 27 00:01:23,450 --> 00:01:26,990 because even though it only writes out 28 00:01:26,990 --> 00:01:28,970 the blocks that have changed, it still 29 00:01:28,970 --> 00:01:33,140 must read every block to see if it has changed. 30 00:01:33,140 --> 00:01:36,500 So when we enable what's called block change tracking, 31 00:01:36,500 --> 00:01:40,550 Oracle actually keeps a list of changed blocks. 32 00:01:40,550 --> 00:01:42,980 So as blocks change, they're written 33 00:01:42,980 --> 00:01:45,500 to essentially a changed list. 34 00:01:45,500 --> 00:01:47,480 And then when an incremental backup 35 00:01:47,480 --> 00:01:50,930 occurs, instead of reading every block in the database 36 00:01:50,930 --> 00:01:55,100 in order to determine whether or not it needs to write that out, 37 00:01:55,100 --> 00:01:57,890 it simply looks at the list, collects the blocks 38 00:01:57,890 --> 00:01:59,930 that it needs, and writes those out. 39 00:01:59,930 --> 00:02:02,900 So the results can be significantly faster 40 00:02:02,900 --> 00:02:06,080 for an incremental backup if block change tracking 41 00:02:06,080 --> 00:02:07,400 is turned on. 42 00:02:07,400 --> 00:02:10,220 So we have two different types of incremental backups 43 00:02:10,220 --> 00:02:13,580 and really, these exist to give us the flexibility. 44 00:02:13,580 --> 00:02:16,910 Most people will use the type that's called differential, 45 00:02:16,910 --> 00:02:21,160 but there is also a kind called cumulative. 46 00:02:21,160 --> 00:02:24,950 So let's look at a differential incremental backup. 47 00:02:24,950 --> 00:02:28,570 So the rule here is that a differential 48 00:02:28,570 --> 00:02:30,700 is going to backup all the blocks that 49 00:02:30,700 --> 00:02:35,690 have changed since the last level n or lower. 50 00:02:35,690 --> 00:02:38,140 So when we do an incremental backup, 51 00:02:38,140 --> 00:02:41,980 the first thing we start with is a Level 0 backup. 52 00:02:41,980 --> 00:02:46,160 So a Level 0 is going to backup all of the database. 53 00:02:46,160 --> 00:02:48,760 So it's a complete and full database backup, 54 00:02:48,760 --> 00:02:51,880 but we must back it up as a Level 0 55 00:02:51,880 --> 00:02:54,010 if we want it to be the foundation 56 00:02:54,010 --> 00:02:56,770 of an incremental strategy. 57 00:02:56,770 --> 00:03:00,220 So when we do the first incremental, if you will, 58 00:03:00,220 --> 00:03:02,180 we'll call that a Level 1. 59 00:03:02,180 --> 00:03:05,170 So we'll specify a Level 0 for the first backup, 60 00:03:05,170 --> 00:03:08,690 and let's say that completes on Monday. 61 00:03:08,690 --> 00:03:11,810 The next one would be a Level 1, and so it'll 62 00:03:11,810 --> 00:03:16,730 backup all the blocks that have changed since the last Level 1 63 00:03:16,730 --> 00:03:17,720 or lower. 64 00:03:17,720 --> 00:03:20,430 In this case, it would be Level 0. 65 00:03:20,430 --> 00:03:22,350 Then we do a Level 2. 66 00:03:22,350 --> 00:03:24,090 So that will backup all the blocks 67 00:03:24,090 --> 00:03:28,440 that have changed since the last Level 2 or lower, 68 00:03:28,440 --> 00:03:31,240 and that happens to be a Level 1. 69 00:03:31,240 --> 00:03:35,290 But if we were to do after a Level 2 to do a Level 1, 70 00:03:35,290 --> 00:03:36,790 that will backup all the blocks that 71 00:03:36,790 --> 00:03:40,570 have changed since the last Level 1 or lower. 72 00:03:40,570 --> 00:03:43,330 So it would go all the way back to Tuesday 73 00:03:43,330 --> 00:03:45,620 in order to get those blocks. 74 00:03:45,620 --> 00:03:49,120 Now you can certainly just do Level 0s with Level 1s, 75 00:03:49,120 --> 00:03:53,050 but the idea of having a Level 2 in there as well 76 00:03:53,050 --> 00:03:55,900 gives you the flexibility to have some days where you 77 00:03:55,900 --> 00:04:00,180 skip or overlap data blocks. 78 00:04:00,180 --> 00:04:03,240 The other type is a cumulative incremental backup 79 00:04:03,240 --> 00:04:07,800 and that's going to backup the last level n-1 or lower. 80 00:04:07,800 --> 00:04:10,830 So again, a Level 0 is our foundation 81 00:04:10,830 --> 00:04:13,380 for our incremental strategy, and then we 82 00:04:13,380 --> 00:04:16,050 do a Level 1, which is going to be 83 00:04:16,050 --> 00:04:21,590 the last Level n the minus 1, which is zero or lower. 84 00:04:21,590 --> 00:04:23,930 Than we do another Level 1, which 85 00:04:23,930 --> 00:04:27,020 will do all the blocks that have changed since the last Level 86 00:04:27,020 --> 00:04:30,410 1 minus 1, which means it goes all the way back 87 00:04:30,410 --> 00:04:32,090 to the Level 0. 88 00:04:32,090 --> 00:04:34,880 And again, another Level 1 would again 89 00:04:34,880 --> 00:04:36,620 go back to all the blocks that have 90 00:04:36,620 --> 00:04:39,460 changed since the last Level 0. 91 00:04:39,460 --> 00:04:42,880 So this is why it's called a cumulative backup 92 00:04:42,880 --> 00:04:45,310 because each night after the Level 0, 93 00:04:45,310 --> 00:04:48,520 assuming you continue to do Level 1s, 94 00:04:48,520 --> 00:04:51,220 you'll backup all the blocks that have changed. 95 00:04:51,220 --> 00:04:54,760 So that's kind of how incremental backups break down 96 00:04:54,760 --> 00:04:57,370 in their theory, anyway. 97 00:04:57,370 --> 00:05:00,340 So let's take a look at doing a couple of operations 98 00:05:00,340 --> 00:05:05,480 like block change tracking and incremental backups. 99 00:05:05,480 --> 00:05:09,520 We'll go into SQL plus and we'll do a select status 100 00:05:09,520 --> 00:05:16,120 from v dollar block change tracking. 101 00:05:16,120 --> 00:05:18,830 So currently that says that is disabled. 102 00:05:18,830 --> 00:05:25,720 So we'll do alter database enable block change tracking. 103 00:05:25,720 --> 00:05:28,870 And now if we were to select the status from v dollar block 104 00:05:28,870 --> 00:05:31,840 change tracking, we could even do select star 105 00:05:31,840 --> 00:05:36,280 from v dollar block change tracking 106 00:05:36,280 --> 00:05:37,650 and it would give us the location 107 00:05:37,650 --> 00:05:41,000 of the file where it's writing the list of changed blocks. 108 00:05:45,150 --> 00:05:47,790 And lets perform an incremental backup. 109 00:05:47,790 --> 00:05:49,740 We do connect target to the database 110 00:05:49,740 --> 00:05:57,820 after logging into RMAN and we do backup incremental Level 0. 111 00:05:57,820 --> 00:06:00,890 Again, we must do a Level 0 as the foundation 112 00:06:00,890 --> 00:06:05,350 for our incremental strategy database. 113 00:06:05,350 --> 00:06:06,730 We hit Enter. 114 00:06:06,730 --> 00:06:09,000 And this will run for a bit. 115 00:06:09,000 --> 00:06:11,530 Now the level 0 is complete. 116 00:06:11,530 --> 00:06:14,410 So just to simulate the passage of a little bit of work, 117 00:06:14,410 --> 00:06:16,630 let's switch a log file-- 118 00:06:16,630 --> 00:06:18,390 alter system switch logfile. 119 00:06:21,040 --> 00:06:24,220 So it's as if some changes have occurred. 120 00:06:24,220 --> 00:06:27,130 And then let's do our incremental backup-- 121 00:06:27,130 --> 00:06:32,490 backup incremental level 1 database. 122 00:06:32,490 --> 00:06:35,610 So now we're assuming that we're doing a differential. 123 00:06:35,610 --> 00:06:37,980 If we want to do a cumulative incremental, 124 00:06:37,980 --> 00:06:42,390 we need to use the cumulative keyword. 125 00:06:42,390 --> 00:06:45,440 So this backup runs considerably faster. 126 00:06:45,440 --> 00:06:49,460 And that's really the benefit of an incremental backup, the idea 127 00:06:49,460 --> 00:06:54,140 that subsequent backups can back up only the changed blocks. 128 00:06:54,140 --> 00:06:56,250 And that's all that's required. 10557

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.