All language subtitles for [SubtitleTools.com] Parameter File - Learning Oracle 12c [Video]

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,410 --> 00:00:03,690 In this lesson, we'll be learning about the parameter 2 00:00:03,690 --> 00:00:04,530 file. 3 00:00:04,530 --> 00:00:08,190 And the parameter file is very important for an Oracle DBA, 4 00:00:08,190 --> 00:00:11,250 because everything in the database configuration 5 00:00:11,250 --> 00:00:13,110 is controlled by parameters. 6 00:00:13,110 --> 00:00:15,390 So all of those parameters individually 7 00:00:15,390 --> 00:00:18,670 control different aspects of the database. 8 00:00:18,670 --> 00:00:22,290 So those parameters can be used to control the size of memory, 9 00:00:22,290 --> 00:00:24,360 the way the Oracle optimizer behaves 10 00:00:24,360 --> 00:00:27,270 in certain circumstances, the number of processes 11 00:00:27,270 --> 00:00:30,390 that we have, the number of background processes we have. 12 00:00:30,390 --> 00:00:34,930 All of those kinds of things are controlled by parameters. 13 00:00:34,930 --> 00:00:38,400 Now there's two ways to store those parameters, an Init 14 00:00:38,400 --> 00:00:42,090 File, or a P-File, we could call it, or an SP-File, 15 00:00:42,090 --> 00:00:43,770 which we'll take a look at. 16 00:00:43,770 --> 00:00:45,960 So when we talk about the parameter file, 17 00:00:45,960 --> 00:00:48,340 we need to know where it's located. 18 00:00:48,340 --> 00:00:52,050 So in Windows, if we have an Oracle installation on Windows, 19 00:00:52,050 --> 00:00:56,580 we'll find the parameter file in the Oracle Home directory, 20 00:00:56,580 --> 00:00:59,160 and underneath that, a folder called Database. 21 00:00:59,160 --> 00:01:02,310 So Oracle Home Database is where we'd 22 00:01:02,310 --> 00:01:06,210 find the parameter file for an Oracle installation on Windows. 23 00:01:06,210 --> 00:01:09,180 In Linux, it's similar but slightly different. 24 00:01:09,180 --> 00:01:11,220 It will be in the Oracle Home directory, 25 00:01:11,220 --> 00:01:14,190 and then a directory under that called DBS. 26 00:01:14,190 --> 00:01:19,440 So in Linux, we say that it's an Oracle Home DBS. 27 00:01:19,440 --> 00:01:22,740 So the two types are the initialization Parameter File, 28 00:01:22,740 --> 00:01:28,020 or the P-File, and the Server Parameter File, or the SP-File. 29 00:01:28,020 --> 00:01:33,150 So the P-File is the essentially the old way that DBA's 30 00:01:33,150 --> 00:01:35,550 modified and used parameters. 31 00:01:35,550 --> 00:01:37,470 So the P-File is text based. 32 00:01:37,470 --> 00:01:39,960 So it's nothing but a text based file. 33 00:01:39,960 --> 00:01:43,630 You could open it with Notepad or any text editor. 34 00:01:43,630 --> 00:01:47,070 And what you would see is a list of parameters, and then 35 00:01:47,070 --> 00:01:50,460 an equal sign, and then the value for that parameter. 36 00:01:50,460 --> 00:01:53,880 And then that file would be read during instant startup. 37 00:01:53,880 --> 00:01:57,270 So it's very easy to manage parameters with a P-File. 38 00:01:57,270 --> 00:01:59,880 You simply open the file, change the value, 39 00:01:59,880 --> 00:02:01,380 save it and close it. 40 00:02:01,380 --> 00:02:05,010 The problem with the P-File is that it requires the database 41 00:02:05,010 --> 00:02:06,960 to be restarted. 42 00:02:06,960 --> 00:02:09,990 So anytime you want to change a parameter, 43 00:02:09,990 --> 00:02:12,960 you have to shut the database down and restart it. 44 00:02:12,960 --> 00:02:16,410 And when it's restarted, that P-File, that text file, 45 00:02:16,410 --> 00:02:19,440 will be reread, and then the database 46 00:02:19,440 --> 00:02:21,720 will be opened with those parameters. 47 00:02:21,720 --> 00:02:24,810 So Oracle saw that this was somewhat problematic. 48 00:02:24,810 --> 00:02:27,780 Because in Version 9I, they came up 49 00:02:27,780 --> 00:02:31,890 with the idea of the Server Parameter File, or SP-File. 50 00:02:31,890 --> 00:02:34,140 The SP-File is a binary file. 51 00:02:34,140 --> 00:02:35,880 It's not a text file. 52 00:02:35,880 --> 00:02:37,950 It's binary, it's read by Oracle, 53 00:02:37,950 --> 00:02:39,660 and read into the memory. 54 00:02:39,660 --> 00:02:43,680 And it enables us to do dynamic changes to parameters, 55 00:02:43,680 --> 00:02:46,080 because those parameters are actually in memory, 56 00:02:46,080 --> 00:02:48,910 at least to some parameters. 57 00:02:48,910 --> 00:02:52,210 It's important to understand that the SP-File is 58 00:02:52,210 --> 00:02:53,510 a binary file. 59 00:02:53,510 --> 00:02:57,710 So if we opened that file up with a text editor, 60 00:02:57,710 --> 00:03:01,360 we would see some parameters and values 61 00:03:01,360 --> 00:03:02,890 that we were familiar with. 62 00:03:02,890 --> 00:03:06,430 We would say that we could read it, in essence. 63 00:03:06,430 --> 00:03:09,670 But we would also see a lot of special characters and junk 64 00:03:09,670 --> 00:03:12,460 characters, because the file is binary. 65 00:03:12,460 --> 00:03:15,130 So it's sort of text embedded in binary. 66 00:03:15,130 --> 00:03:18,460 It's very important that a DBA never try 67 00:03:18,460 --> 00:03:21,070 to modify the SP-File directly. 68 00:03:21,070 --> 00:03:24,400 That is to say, to open the file and actually change 69 00:03:24,400 --> 00:03:27,790 the values in the SP-File, because that will corrupt 70 00:03:27,790 --> 00:03:30,640 the file and it will not be able to be used 71 00:03:30,640 --> 00:03:33,290 in order to start the database. 72 00:03:33,290 --> 00:03:38,010 So here we have our Oracle Home. 73 00:03:38,010 --> 00:03:40,770 This is the Oracle Home directory on my machine. 74 00:03:40,770 --> 00:03:42,810 Yours would be slightly different. 75 00:03:42,810 --> 00:03:46,020 And so if we want to see the Parameter File, 76 00:03:46,020 --> 00:03:50,710 we need to look in Oracle Home Database. 77 00:03:50,710 --> 00:03:52,880 So there's a number of files here. 78 00:03:52,880 --> 00:03:57,480 But we see one called SP-FILEORCL.ORA. 79 00:03:57,480 --> 00:04:01,990 And so that's going to be the default name of the SP-File 80 00:04:01,990 --> 00:04:03,910 for this database. 81 00:04:03,910 --> 00:04:07,660 It's important to understand that Oracle, when it starts up, 82 00:04:07,660 --> 00:04:11,650 will look for a certain file in a certain location. 83 00:04:11,650 --> 00:04:16,030 So the first thing it looks for in the Oracle Home Database 84 00:04:16,030 --> 00:04:21,880 or in Linux DBS Directory, will be a file called SP-File 85 00:04:21,880 --> 00:04:25,690 and then the name of the database SID.DOT.ORA. 86 00:04:25,690 --> 00:04:29,890 And so if it can find that file, it will use those parameters. 87 00:04:29,890 --> 00:04:32,620 It will attempt to read the SP-File, 88 00:04:32,620 --> 00:04:35,920 and read those into memory and start the database up. 89 00:04:35,920 --> 00:04:40,210 If it does not find a file called SP-File, 90 00:04:40,210 --> 00:04:42,940 the name of the SID or DATABASE.ORA, 91 00:04:42,940 --> 00:04:47,530 then it will look for one called a NIT, name of the SID.ORA. 92 00:04:47,530 --> 00:04:53,710 And they NITSID.ORA, or in this case would be a NITORCL.ORA, 93 00:04:53,710 --> 00:04:54,950 is the P-File. 94 00:04:54,950 --> 00:04:57,580 So that's the Initialization Parameter File. 95 00:04:57,580 --> 00:05:01,300 So by default, it will look for an SP-File first, which 96 00:05:01,300 --> 00:05:04,630 is the preferred method, because it allows us to dynamically 97 00:05:04,630 --> 00:05:06,220 change parameters. 98 00:05:06,220 --> 00:05:09,960 And then it will look for an a Init File. 99 00:05:09,960 --> 00:05:13,140 So there's certain ways that we can control the use 100 00:05:13,140 --> 00:05:15,780 of the SP-File and the P-File. 101 00:05:15,780 --> 00:05:18,780 One task that a lot of times we want to do 102 00:05:18,780 --> 00:05:23,430 is write out everything it's in the SP-File into an Init File 103 00:05:23,430 --> 00:05:25,290 just so we can look at it. 104 00:05:25,290 --> 00:05:27,630 And again, we don't want to directly operate 105 00:05:27,630 --> 00:05:29,940 on the SP-File, because it's a binary file 106 00:05:29,940 --> 00:05:32,210 and is easily corrupted. 107 00:05:32,210 --> 00:05:36,880 So let's log into the database as sysdba, 108 00:05:36,880 --> 00:05:39,420 so an administrative. 109 00:05:39,420 --> 00:05:49,070 We're going to try Create P-File from SP-File. 110 00:05:49,070 --> 00:05:51,160 So let's see what it did. 111 00:05:51,160 --> 00:05:55,060 And notice that now we have a file called INITORCL.ORA. 112 00:05:58,390 --> 00:05:59,860 I'm going to open it with Notepad. 113 00:06:02,420 --> 00:06:05,270 And notice there are a number of database parameters 114 00:06:05,270 --> 00:06:08,840 here, something like DB Name equals, 115 00:06:08,840 --> 00:06:11,270 the name of the database. 116 00:06:11,270 --> 00:06:15,540 Open Cursors equal, Processes equal, all of these 117 00:06:15,540 --> 00:06:18,330 are parameters that control the database. 118 00:06:18,330 --> 00:06:23,730 Anything not listed in this file will be simply a default value. 119 00:06:23,730 --> 00:06:26,350 And so Oracle will use the default value. 120 00:06:26,350 --> 00:06:29,460 So if we need to change a parameter and it's not here, 121 00:06:29,460 --> 00:06:31,590 we could simply add it. 122 00:06:31,590 --> 00:06:34,140 So adding it in an Init File just means 123 00:06:34,140 --> 00:06:36,750 adding it to this text file. 124 00:06:36,750 --> 00:06:39,960 But we're going to prefer to use the SP-File, 125 00:06:39,960 --> 00:06:44,010 because the SP-File will allow us to be able to dynamically 126 00:06:44,010 --> 00:06:46,730 change some parameters. 10413

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