Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,420 --> 00:00:04,810
In this lesson, we continue
our database creation
2
00:00:04,810 --> 00:00:08,080
through the use of the DBCA,
or Database Configuration
3
00:00:08,080 --> 00:00:09,220
Assistant.
4
00:00:09,220 --> 00:00:11,470
We've selected
all of our options
5
00:00:11,470 --> 00:00:16,240
for initialization
parameters and click Next.
6
00:00:16,240 --> 00:00:18,490
So now we have our
options for how
7
00:00:18,490 --> 00:00:20,440
we want to create the database.
8
00:00:20,440 --> 00:00:22,510
Certainly, if we're going
to create a database,
9
00:00:22,510 --> 00:00:26,030
we want to leave the
Create Database selected.
10
00:00:26,030 --> 00:00:28,840
We could save it as a
template and call it
11
00:00:28,840 --> 00:00:33,140
whatever name we wish,
give it a description,
12
00:00:33,140 --> 00:00:35,720
and we can also click this box.
13
00:00:35,720 --> 00:00:39,710
This is going to generate
database creation scripts.
14
00:00:39,710 --> 00:00:41,810
So when we create
a database, there's
15
00:00:41,810 --> 00:00:42,920
a number of ways to do it.
16
00:00:42,920 --> 00:00:45,590
We can use the DBCA,
but we don't have to.
17
00:00:45,590 --> 00:00:48,200
It can also be done
entirely scripted.
18
00:00:48,200 --> 00:00:51,650
And so, as we step
through this installation,
19
00:00:51,650 --> 00:00:53,300
here in the last
step, we can just
20
00:00:53,300 --> 00:00:56,540
allow Oracle to generate
those creation scripts.
21
00:00:56,540 --> 00:01:00,670
So we'll do that, so we
can take a look at them.
22
00:01:00,670 --> 00:01:03,180
The customized
storage location is
23
00:01:03,180 --> 00:01:05,970
going to give us the storage
locations for various table
24
00:01:05,970 --> 00:01:08,860
spaces, so this is the
system table space.
25
00:01:08,860 --> 00:01:13,100
We notice that the file name
is OMF_SYSTEM_DATAFILE_1.
26
00:01:13,100 --> 00:01:16,240
It has a size of 700 megs.
27
00:01:16,240 --> 00:01:19,330
And the reason it says
OMF here is because we've
28
00:01:19,330 --> 00:01:22,480
selected Oracle Managed
Files for Oracle
29
00:01:22,480 --> 00:01:26,080
to control the sizing and
location of our data files.
30
00:01:26,080 --> 00:01:28,570
Here, we have the
individual files themselves.
31
00:01:28,570 --> 00:01:31,180
If for any reason we want
to change their sizes,
32
00:01:31,180 --> 00:01:33,580
we can do so here.
33
00:01:33,580 --> 00:01:36,220
And we have redo logs as well.
34
00:01:36,220 --> 00:01:39,900
So we'll have three
redo log groups.
35
00:01:39,900 --> 00:01:43,550
Click close, then click Next.
36
00:01:46,170 --> 00:01:47,970
So it does the
prerequisite checks,
37
00:01:47,970 --> 00:01:49,950
and it didn't find any problems.
38
00:01:49,950 --> 00:01:53,250
Notice that we have kind
of the history of the steps
39
00:01:53,250 --> 00:01:56,990
that we've gone through,
and now we're on 13 of 14.
40
00:01:56,990 --> 00:02:00,560
And the only one that it flagged
us on was database credentials,
41
00:02:00,560 --> 00:02:03,530
and again, that's because I
put in a password that didn't
42
00:02:03,530 --> 00:02:05,840
meet their security standards.
43
00:02:05,840 --> 00:02:11,590
We can see a summary here of
all the choices that we've made,
44
00:02:11,590 --> 00:02:16,990
parameters, character sets,
table spaces, and data files,
45
00:02:16,990 --> 00:02:19,080
so on and so forth.
46
00:02:19,080 --> 00:02:22,650
And now we'll click Finish.
47
00:02:22,650 --> 00:02:27,720
It created the template,
and it generated the scripts
48
00:02:27,720 --> 00:02:30,290
in this location.
49
00:02:30,290 --> 00:02:32,320
And now it goes
through the process
50
00:02:32,320 --> 00:02:33,860
of building the database.
51
00:02:33,860 --> 00:02:36,460
And this can take
several minutes.
52
00:02:36,460 --> 00:02:38,460
While this is running,
we could say a few things
53
00:02:38,460 --> 00:02:41,130
about the steps that
it's going through.
54
00:02:41,130 --> 00:02:44,400
The first is to create and
start the Oracle instance.
55
00:02:44,400 --> 00:02:46,200
So that's going to
allocate the memory
56
00:02:46,200 --> 00:02:50,100
necessary for the database,
configure all the parameters
57
00:02:50,100 --> 00:02:52,650
that are involved, really take
all the choices that we've
58
00:02:52,650 --> 00:02:56,780
made in the DBCA and use them.
59
00:02:56,780 --> 00:03:00,410
Then it's going to create
the files themselves on disk.
60
00:03:00,410 --> 00:03:03,020
Then it's going to build
the data dictionary views.
61
00:03:03,020 --> 00:03:05,540
When Oracle creates the
data dictionary views,
62
00:03:05,540 --> 00:03:09,410
it's building all of those
base tables and views
63
00:03:09,410 --> 00:03:13,610
that Oracle uses to maintain
the data dictionary,
64
00:03:13,610 --> 00:03:16,280
so the data dictionary
pulls all of the information
65
00:03:16,280 --> 00:03:17,660
about the database.
66
00:03:17,660 --> 00:03:21,380
And we will use this frequently
as a database administrator
67
00:03:21,380 --> 00:03:24,380
because it's the kind of
sum total of knowledge
68
00:03:24,380 --> 00:03:25,940
about the database.
69
00:03:25,940 --> 00:03:27,710
So the actual creation
of the database
70
00:03:27,710 --> 00:03:30,810
can take quite a while,
even up to 20 or 30 minutes,
71
00:03:30,810 --> 00:03:34,190
depending on the
speed of your disk.
72
00:03:34,190 --> 00:03:36,070
So now the steps have completed.
73
00:03:36,070 --> 00:03:40,280
And it gives us the information
about what we've just created.
74
00:03:40,280 --> 00:03:44,380
So this is a good screen to
maybe screenshot and save.
75
00:03:44,380 --> 00:03:46,480
It gives you
information about where
76
00:03:46,480 --> 00:03:48,970
the Database Express
for Enterprise Manager
77
00:03:48,970 --> 00:03:51,250
is, the name of the
database, some things that
78
00:03:51,250 --> 00:03:53,320
are kind of important to keep.
79
00:03:53,320 --> 00:03:56,380
At this point, we can also
do some password management.
80
00:03:56,380 --> 00:04:02,950
But for our purposes, we'll
just click Exit and close.
81
00:04:05,930 --> 00:04:08,340
Now the final thing that
we wanted to look at
82
00:04:08,340 --> 00:04:13,350
was the scripts that were
generated at the last step
83
00:04:13,350 --> 00:04:15,090
of the Oracle installation.
84
00:04:15,090 --> 00:04:18,450
So we instructed the DBCA
to create a database,
85
00:04:18,450 --> 00:04:21,640
but we also said that we
wanted the scripts generated.
86
00:04:21,640 --> 00:04:23,040
So let's take a look at those.
87
00:04:27,430 --> 00:04:30,060
So those were in
the Admin Directory
88
00:04:30,060 --> 00:04:33,870
inside the Oracle
based directory, so
89
00:04:33,870 --> 00:04:38,470
Oracle Base, Admin, ORCL--
90
00:04:38,470 --> 00:04:40,530
the name of our database--
91
00:04:40,530 --> 00:04:43,350
and then the scripts directory.
92
00:04:43,350 --> 00:04:48,590
All of these scripts are steps
that the DBCA goes through.
93
00:04:48,590 --> 00:04:52,880
The DBCA is just a GUI front
end to create these scripts
94
00:04:52,880 --> 00:04:54,350
and run them basically.
95
00:04:54,350 --> 00:04:58,310
So we can also go through
them and make alterations
96
00:04:58,310 --> 00:04:59,450
if we wish.
97
00:04:59,450 --> 00:05:03,290
If we want to, we can just
generate the scripts themselves
98
00:05:03,290 --> 00:05:04,880
and do our own creation.
99
00:05:04,880 --> 00:05:08,600
In fact, we could create
the ORCL database simply
100
00:05:08,600 --> 00:05:11,930
by clicking the orcl.bat.
101
00:05:11,930 --> 00:05:14,150
But, for our purposes, I'm
going to right click on
102
00:05:14,150 --> 00:05:17,680
it and edit it.
103
00:05:17,680 --> 00:05:21,360
And this gives you some example
of the command line commands
104
00:05:21,360 --> 00:05:24,960
that will be used during
the database creation.
105
00:05:24,960 --> 00:05:29,750
So there is mkdir commands that
make all of these directories.
106
00:05:29,750 --> 00:05:33,800
There are these steps
with this oradim.exe.
107
00:05:33,800 --> 00:05:36,910
And those are steps that you'll
see in a Windows database
108
00:05:36,910 --> 00:05:40,760
creation that you'll not ever
see in a Unix or Linux database
109
00:05:40,760 --> 00:05:44,210
creation because these
create the necessary Windows
110
00:05:44,210 --> 00:05:46,960
services to run Oracle.
111
00:05:46,960 --> 00:05:51,570
And then the last step is simply
to start the SQL*Plus tool
112
00:05:51,570 --> 00:05:54,840
and run the next
script in the list,
113
00:05:54,840 --> 00:06:01,350
which is orcl.sql right here.
114
00:06:01,350 --> 00:06:05,980
The orcl.sql sets a
couple of variables.
115
00:06:05,980 --> 00:06:08,410
And then each one
of these is just
116
00:06:08,410 --> 00:06:10,960
another script that
it runs, so a script
117
00:06:10,960 --> 00:06:15,380
to create the database,
create the database files,
118
00:06:15,380 --> 00:06:18,900
to create the database
catalog, so on and so forth,
119
00:06:18,900 --> 00:06:20,940
down to the last step.
9683
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.