All language subtitles for [SubtitleTools.com] Alert Log And Trace Files - 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,150 --> 00:00:02,820 In this lesson, we'll learn a little bit 2 00:00:02,820 --> 00:00:05,760 about the alert log and the trace files. 3 00:00:05,760 --> 00:00:07,740 So these are informational files that 4 00:00:07,740 --> 00:00:11,400 are going to have primarily error information, or problem 5 00:00:11,400 --> 00:00:13,710 information, although the alert log will give us 6 00:00:13,710 --> 00:00:16,330 a lot of supplemental information, as well. 7 00:00:16,330 --> 00:00:18,570 So the two types of log files that we 8 00:00:18,570 --> 00:00:21,970 have are the alert log and the trace file. 9 00:00:21,970 --> 00:00:23,770 The alert log is going to be something 10 00:00:23,770 --> 00:00:27,190 that the DBA does interface with an awful lot. 11 00:00:27,190 --> 00:00:30,160 For most DBAs, this is their first stop 12 00:00:30,160 --> 00:00:32,680 when they think there's a problem in the database 13 00:00:32,680 --> 00:00:36,340 because it's going to record all of that type of information 14 00:00:36,340 --> 00:00:39,100 and some informational stuff, as well, information 15 00:00:39,100 --> 00:00:41,860 about the startup of the database, about the shut down, 16 00:00:41,860 --> 00:00:43,510 those kinds of things. 17 00:00:43,510 --> 00:00:45,190 Trace files, on the other hand, are 18 00:00:45,190 --> 00:00:47,740 going to be more difficult to interpret 19 00:00:47,740 --> 00:00:51,330 and are usually for Oracle Support. 20 00:00:51,330 --> 00:00:53,970 So the alert log, as we said, is the primary source 21 00:00:53,970 --> 00:00:55,380 of problem information. 22 00:00:55,380 --> 00:00:59,010 The alert log is primarily a text file, 23 00:00:59,010 --> 00:01:02,430 although it does have a file that exists as XML, as well. 24 00:01:02,430 --> 00:01:05,370 So ordinarily when we would look at the alert log, 25 00:01:05,370 --> 00:01:07,170 we might just go out to the alert log 26 00:01:07,170 --> 00:01:11,760 itself and open it up in a notepad or a text editor 27 00:01:11,760 --> 00:01:15,250 and then just read it and its information that it has. 28 00:01:15,250 --> 00:01:18,390 Starting in 11g, version 11g, we were also 29 00:01:18,390 --> 00:01:21,240 able to do this through the ADRCI, which 30 00:01:21,240 --> 00:01:25,290 is a command-line tool that allows us to do a lot of things 31 00:01:25,290 --> 00:01:29,870 that have to do with the alert log and trace files, as well. 32 00:01:29,870 --> 00:01:33,350 Trace files, however, are purely diagnostic information. 33 00:01:33,350 --> 00:01:36,770 They are mostly unreadable except by Oracle Support, 34 00:01:36,770 --> 00:01:40,310 and they have programs that can parse them and get 35 00:01:40,310 --> 00:01:42,590 the relevant information out of them. 36 00:01:42,590 --> 00:01:44,930 But we do need to know about the trace files 37 00:01:44,930 --> 00:01:47,750 because in a serious problem situation, 38 00:01:47,750 --> 00:01:50,370 Oracle Support will request those files. 39 00:01:50,370 --> 00:01:52,910 So we need to know at least a little bit about where they are 40 00:01:52,910 --> 00:01:55,610 and the information that they contain. 41 00:01:55,610 --> 00:01:58,430 So here we are in the Oracle base directory. 42 00:01:58,430 --> 00:02:02,960 So that'll be, in my case, E:/app/sries. 43 00:02:02,960 --> 00:02:05,870 Now, we know that our home is under product and then 44 00:02:05,870 --> 00:02:09,170 several directory layers underneath that, 45 00:02:09,170 --> 00:02:13,160 but we have a directory called diag in the Oracle base, 46 00:02:13,160 --> 00:02:16,050 and this is where the diagnostic information is located, 47 00:02:16,050 --> 00:02:18,350 and it is very extensive. 48 00:02:18,350 --> 00:02:21,680 So let's drill down and get to the alert log 49 00:02:21,680 --> 00:02:22,910 and the trace files. 50 00:02:22,910 --> 00:02:27,950 So I'm going to click on rdbms and the name of the database, 51 00:02:27,950 --> 00:02:30,470 name of the database again, and then 52 00:02:30,470 --> 00:02:34,040 directory trace, not the directory alert, the directory 53 00:02:34,040 --> 00:02:35,750 trace. 54 00:02:35,750 --> 00:02:38,870 So right here at the top, we have a file called 55 00:02:38,870 --> 00:02:43,500 alert_orcl.log, and that'll be the default name of the alert 56 00:02:43,500 --> 00:02:44,000 log. 57 00:02:44,000 --> 00:02:45,670 It'll begin with alert, and it will have 58 00:02:45,670 --> 00:02:47,810 the name of the database in it. 59 00:02:47,810 --> 00:02:51,200 I'm going to click that and bring that up. 60 00:02:51,200 --> 00:02:54,920 So this can look very confusing, and it is not important 61 00:02:54,920 --> 00:02:58,700 that you understand what every line of the alert log means. 62 00:02:58,700 --> 00:03:00,410 It is something you can get a little more 63 00:03:00,410 --> 00:03:03,230 familiar with with experience, but we can kind of 64 00:03:03,230 --> 00:03:05,480 outline a few things in the alert log 65 00:03:05,480 --> 00:03:08,490 as far as the type of information that it contains. 66 00:03:08,490 --> 00:03:10,970 So the first entry here has a date 67 00:03:10,970 --> 00:03:13,940 and starting the Oracle instance. 68 00:03:13,940 --> 00:03:15,360 And so then it's going through all 69 00:03:15,360 --> 00:03:17,600 of the process of starting it up. 70 00:03:17,600 --> 00:03:19,100 Now, there's a lot of things in here 71 00:03:19,100 --> 00:03:21,950 that we wouldn't understand, but there's information 72 00:03:21,950 --> 00:03:23,900 about processors and such. 73 00:03:23,900 --> 00:03:27,500 But notice that we have a section here, system parameters 74 00:03:27,500 --> 00:03:29,240 with non-default values. 75 00:03:29,240 --> 00:03:31,970 And so we have a number of different processes here, 76 00:03:31,970 --> 00:03:34,700 and they have values that aren't the default. 77 00:03:34,700 --> 00:03:36,500 So this can be important sometimes when 78 00:03:36,500 --> 00:03:40,340 you are changing parameters and you think that you maybe 79 00:03:40,340 --> 00:03:41,900 didn't do it right, that you didn't 80 00:03:41,900 --> 00:03:43,130 get the expected behavior. 81 00:03:43,130 --> 00:03:44,720 You can come back to the alert log 82 00:03:44,720 --> 00:03:47,570 and look and say, well, what parameter values did 83 00:03:47,570 --> 00:03:49,280 it start up with? 84 00:03:49,280 --> 00:03:51,600 So after it has that information-- 85 00:03:51,600 --> 00:03:54,020 this is all, again, during the nomount state-- 86 00:03:54,020 --> 00:03:58,250 it starts the process PMON, MMAN, some processes 87 00:03:58,250 --> 00:04:00,710 that we would recognize, database writer, 88 00:04:00,710 --> 00:04:04,160 the log writer, the checkpoint, system monitor, 89 00:04:04,160 --> 00:04:07,220 all of those processes, and then gives us information 90 00:04:07,220 --> 00:04:09,270 about what happens after that. 91 00:04:09,270 --> 00:04:12,800 So notice that this is a CREATE DATABASE statement. 92 00:04:12,800 --> 00:04:16,310 So after the instance was started, a CREATE DATABASE. 93 00:04:16,310 --> 00:04:19,320 And actually, this database that I'm working on was created. 94 00:04:19,320 --> 00:04:22,900 And here's the actual SQL that was used. 95 00:04:22,900 --> 00:04:24,280 So that's the kind of information 96 00:04:24,280 --> 00:04:26,270 that we can see here. 97 00:04:26,270 --> 00:04:29,870 I wanted to make a point about a particular line 98 00:04:29,870 --> 00:04:33,890 in the alert log, and that'll be the one that says, 99 00:04:33,890 --> 00:04:38,270 beginning crash recovery of, usually in a single instance, 100 00:04:38,270 --> 00:04:39,650 one threads. 101 00:04:39,650 --> 00:04:41,690 And that's the line that you see in the alert log 102 00:04:41,690 --> 00:04:44,760 whenever instance recovery is occurring. 103 00:04:44,760 --> 00:04:48,470 So the database was shut down ungracefully through an abort, 104 00:04:48,470 --> 00:04:51,550 through a power off on the system, something where 105 00:04:51,550 --> 00:04:54,290 a shutdown immediate didn't occur to take down 106 00:04:54,290 --> 00:04:56,090 the database gracefully. 107 00:04:56,090 --> 00:04:59,210 And then an instance recovery has to occur after that. 108 00:04:59,210 --> 00:05:02,690 If we had backup information, it would be in here, as well, 109 00:05:02,690 --> 00:05:04,310 as well as recovery information if we 110 00:05:04,310 --> 00:05:06,180 did any database recovery. 111 00:05:06,180 --> 00:05:09,390 So the alert log is just a wealth of information. 112 00:05:09,390 --> 00:05:11,990 It just takes some time and practice and research 113 00:05:11,990 --> 00:05:15,370 to find the information that you're looking at. 114 00:05:15,370 --> 00:05:18,040 Next will be the trace files, and the trace files 115 00:05:18,040 --> 00:05:20,380 come in two different flavors, if you will. 116 00:05:20,380 --> 00:05:22,360 They'll be the trace files that are associated 117 00:05:22,360 --> 00:05:24,940 with a background process and then trace 118 00:05:24,940 --> 00:05:28,970 files that are associated with a user process. 119 00:05:28,970 --> 00:05:31,570 So for instance, let's find a trace file 120 00:05:31,570 --> 00:05:34,780 with a background process that we'd be familiar with, 121 00:05:34,780 --> 00:05:37,210 something like the checkpoint process. 122 00:05:37,210 --> 00:05:39,250 So we see here that there will be 123 00:05:39,250 --> 00:05:42,970 the name of the database, the process name, ckpt, and then 124 00:05:42,970 --> 00:05:43,900 a number. 125 00:05:43,900 --> 00:05:47,200 But we have a trc and a trm. 126 00:05:47,200 --> 00:05:51,580 The trms are normally going to be binary type or XML type 127 00:05:51,580 --> 00:05:55,640 information that are read by that ADR CI tool. 128 00:05:55,640 --> 00:05:59,140 So if we want to read them in their natural text state, 129 00:05:59,140 --> 00:06:01,230 we always look at the .trc. 130 00:06:01,230 --> 00:06:02,670 So if I click that-- 131 00:06:02,670 --> 00:06:04,210 and this is going to have information 132 00:06:04,210 --> 00:06:08,350 that is generally unreadable to most DBAs, if not all. 133 00:06:08,350 --> 00:06:12,940 This is information that's used primarily by Oracle Support. 134 00:06:12,940 --> 00:06:16,540 But we can see that the trace file is associated with a given 135 00:06:16,540 --> 00:06:18,140 background process. 136 00:06:18,140 --> 00:06:19,720 So if we were to go a little further, 137 00:06:19,720 --> 00:06:23,630 here's the dbw0 process, which is the database writer. 138 00:06:23,630 --> 00:06:29,040 And so we can see a message here about an action that it did. 139 00:06:29,040 --> 00:06:35,280 Another example would be maybe the log writer process, lgwr. 140 00:06:35,280 --> 00:06:38,670 We created two redo writer workers-- 141 00:06:38,670 --> 00:06:41,140 so just a lot of informational messages. 142 00:06:41,140 --> 00:06:45,150 But if anything occurs in the realm of an error, 143 00:06:45,150 --> 00:06:46,830 that process information is going 144 00:06:46,830 --> 00:06:49,290 to be written to a trace file, as well. 145 00:06:49,290 --> 00:06:52,770 So things like memory dumps, crash dumps, core dumps, 146 00:06:52,770 --> 00:06:55,350 all of that type of information will be at least 147 00:06:55,350 --> 00:06:57,730 alluded to in trace files, as well. 148 00:06:57,730 --> 00:07:01,450 So it's important to at least know about their existence. 12298

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