All language subtitles for [SubtitleTools.com] SQL Loader - Learning Oracle 12c [Video]_2

af Afrikaans
ak Akan
sq Albanian
am Amharic
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
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

Original subtitles

In this lesson, we're going to look at data

migration using SQL Loader.

So data migration is the act of moving data

from one place to another and often from an external source

into an Oracle database.

So there are numerous ways to load data into a database.

So we're going to take a look at SQL Loader.

So SQL Loader is somewhat of an older tool,

but it's still very commonly used today

because it's really, really good at taking file data, just

straight delimited data, let's say, or even raw data,

and loading it into tables.

There's quite a bit of work in setting it up.

But once you do that work, it's something

that doesn't have to be repeated unless your table changes,

and it can be very, very fast.

So SQL Loader is going to read data from a delimited file

and load it into a table.

So a delimited file would be just a file where the data is

delimited by some delimiter, like a comma-delimited file,

or pipe delimited, or any number of characters,

and you just need to specify what the delimiter is.

It can also read data from flat files

and load it into tables based on character positions.

So it can say, take the first five characters of the file

and load that into the first column, and then the next 10,

and load that into the second column, so on and so forth.

And often this is used with mainframe data,

in conjunction with mainframe data, where the Oracle

database is in the mid tier, kind of, of the enterprise

and receives data that's stored in a mainframe system.

So SQL Loader can run using two different methods.

The first is the conventional path,

and all that the conventional path does

is simply construct INSERT statements using

the delimited or raw data and then just run

those INSERT statements.

So conventional path is the safest,

if you would, but only in terms of being

able to use all kinds of different data types.

There's nothing inherently unsafe about either way,

or either method, except that the second method, direct path,

can't necessarily use some of the more esoteric data types

that people sometimes have in a database.

Direct path, however, constructs blocks

from that data that are written directly into the database.

And it actually bypasses the database buffer cache

and the caching that needs to occur.

And for that reason, direct path is much faster.

So it doesn't have to construct and run INSERT statements.

It just constructs the blocks that are directly written.

And so whenever possible, we definitely

want to use the direct path.

And we should be able to in most cases,

unless there's something sort of unusual

about the table that we're loading into

or the data that we have.

So there are a number of files that are used in a SQL Loader

operation.

So all these have to be prepared before we run our SQL

Loader, which the statement itself is quite simple,

but we have to compose all of these files.

So the first one is the input data file itself.

So that's going to be the delimited data or raw data

that we're trying to load into a table.

The second is the parameter file,

and that's a file that just has a location for all

the other files, so the input data file, the output files,

like the log, and those kind of things, the control file.

The parameter file is what knows all about those other files.

And it's actually the parameter file

that we're going to directly call from the SQL Loader

application, and then it's going to find everything else.

And the third is the control file.

So that's actually a specification

on how the data is to be loaded.

So let's take a look here.

I've got a little bit of setup here

already in the Oracle-based directory.

I've created a directory called loader.

All right.

Click that.

And then I have a dept load.dat file.

If we take a look at that, that's simply

data from the dept table.

So we just poured that out to a DAT file.

And then, so it's comma delimited-- three columns,

comma-delimited file.

So that's what we're going to use for our loader, our load

data.

Let's go into Scott and create a table to receive this data.

So we'll create a table that's just like the dept table.

So if we select from the dept_loader table,

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