ORACLE PL/SQL Fundamentals


language: TL

                  WEBVTT
Right?
Select statement.
Yeah, so...
You want to try this?
I mean, we can...
I already prepared
an employees table
in the database there.
All of you,
can you open the SQL
developer tools?
I already put
a shortcut in your desktop if it's not
already open.
Yeah, just click run.
Thank you, Christine.
How about, Jeremy?
I see Joseph.
Are you accessing
individual desktop or
you prefer to access one desktop
in your conference
or something?
Individual
Yeah, yeah.
And I think you have access, right?
How about, Miguel?
Do you have access right now?
Apo.
Can you open the SQL developer
right now?
It's the middle icon.
Nakabukas na, sir.
Yung sayo po, sir Miguel?
Ayos po.
Nakabukas na po yung...
Hmm...
Ang nakikita ko
right now sayo, sir Miguel,
is yung command prompt.
Yung CMD, yung terminal.
Okay.
So, can you click local?
See if it is loading.
For our password,
please type ashblue.
Jeremy has.
What is your nickname,
Jer?
Jerry.
Can you type
ashblue as password?
A-ashblue. A-S-H-B-L-U-E.
A-S-H?
Yeah.
B-L-U-E. Blue.
Okay. So, that's...
Oops. You closed the error,
sir Jerry.
So, for example,
in that case, so, we're trying
to debug here.
How can I share...
Yeah.
For sir Jerry,
how can I share...
Let me share, okay.
I'll reshare my screen
one moment.
Stop share.
Let me know if you can see my desktop.
Right now, I'm looking at
sir Jerry
account. As you can see,
the error is
ora-2541.
Meaning...
Meaning, the server
is not running.
Okay.
To fix that,
can you open the terminal, sir Jerry?
Yeah, command prompt. Yep.
Then, let's
check your hostname. Type
hostname. Enter.
Okay.
So, we need to match the hostname.
Can you
open a folder, please?
Okay. You see the
on the right side, the
tnsnames.ora,
can you open that file? Right click on
that. Then, let's
open that in with code.
With Visual Studio Code.
There you go.
As you can see,
the reason why it's not running,
first is the server,
the database
server is not
running. It is stopped.
One
moment. Let me grab the code.
lsn.
So, we have
a few ways to fix
that. So, we're gonna
replace... You see the
on the line 6, the ray
lhnw-resize.
We have to replace every
instant of that with your hostname,
jeremias-93dn.
Okay. Perfect. Now,
click save.
Ctrl-S, please.
Sir Jerry.
Okay. Awesome. We can close
that now.
Then, we
need to... Sorry. Go back
again to the folder, please.
Let's edit the other one,
the listener.ora.
Yeah. Let's edit that.
That's the last piece we need.
Right click and edit in Visual Studio Code.
Okay. You see... Yeah. There you go.
Thank you.
Then, I send... How can I
send?
On the...
Dito sa zoom, may send ako na
Google Sheet.
Can you click that po?
Yung Google Sheet.
I'll paste the code
to start the server.
Sorry. Sa zoom po, yung Google
nito. Sa...
Sa...
Sa zoom po,
I send them a link.
I see
two people already joined.
Ayun Google Numbs po.
Yes po.
Okay.
So, lahat na po ba? Na-update na natin
yung hostname natin.
Now, we need to start
using the command
lsnrctl
space start.
You... Nakita mo pa,
Sir Jerry, yung lsnrctl
space start.
There you go.
lsnrctl
start.
It's like shorter
for listener control.
ctl
Ito po yung
itatipe.
lsnrctl
start.
Space po.
Sir
Joseph.
Space start.
Okay. So,
good thing yan na nakita natin yung error.
So,
ibig sabihin yan, kailangan natin
irstart yung computer.
So, pag na change yun na yung
hostname, we have to
restart your computer.
Tapos, iraran natin ulit yung
command na lsnrctl
space start. Yes po?
Ano pang name mo po?
Yun nag-speak?
Miguel Miguel. Okay.
Unable to open.
lsnrctl
That's it. Okay po.
So, lahat po nung may ganong error,
please restart your computer po.
We need to restart the computer
para magtake effect yung hostname
na inedit natin.
Yes, please restart.
Thank you.
Okay. So, while waiting,
while restarting, if you can still
see my screen,
so, itatari natin
itong ecopy paste.
So, since this is sa presentation,
ipipaste ko yung
dun sa
interactive coding natin na
slides.
So, line 87.
Let me check your computer.
Google Chrome.
Okay, nanggulis
start pa din.
So, let's wait for it.
So, yun. So, while waiting
for the computer to restart,
so, in PLSQL,
the SELECT statement is used
to retrieve data from database
table. So,
yun. This statement can be used in
different ways depending on the requirement.
So, selecting data
into variables.
So, yung simple SELECT natin
pag may SQL lang,
SELECT into FROM,
while kapag sa PLSQL,
we again yung
naaral natin, DECLARE,
BEGIN, tapos END.
So, we declare variable,
we begin
where we transact,
where we query, then we can
output the
variable.
Okay.
So, let's try.
Marami pa naman tayong code nito try, pero we can
proceed muna
while we restart the computer.
So,
eto naman is handling
kapag no data found
or too many errors.
Pero maganda ma-try din talaga natin.                

on 2024-12-10

Visit the ORACLE PL/SQL Fundamentals course recordings page

United Arab Emirates - ORACLE PL/SQL Fundamentals