14 videos 📅 2024-12-10 08:00:00 Asia/Brunei
12:04
2024-12-10 13:02:57
6:53
2024-12-10 13:18:23
3:49:58
2024-12-10 13:29:28
9:46
2024-12-11 07:45:15
5:40:21
2024-12-11 09:08:49
5:22
2024-12-11 17:54:14
1:42
2024-12-11 18:04:44
2:05:58
2024-12-12 09:00:08
1:01:06
2024-12-12 12:26:38
3:59
2024-12-12 15:09:36
51:24
2024-12-12 15:24:00
8:06
2024-12-12 16:34:52
2:35
2024-12-12 17:17:14
3:05
2024-12-12 17:26:54

Visit the ORACLE PL/SQL Fundamentals course recordings page

                WEBVTT

00:00:10.240 --> 00:00:20.000
Please confirm if all have access to their desktop because we will start decoding.

00:00:27.500 --> 00:00:35.480
I see Miguel has access, Joseph have access, and open the Oracle SQL Developer.

00:00:54.560 --> 00:00:56.400
Okay. Awesome.

00:00:57.520 --> 00:01:00.740
And to verify, you can see my screen, right?

00:01:01.880 --> 00:01:02.600
Select a statement.

00:01:03.400 --> 00:01:08.420
Yeah, so you want to try this?

00:01:09.140 --> 00:01:17.180
I already prepared an employee's table in the database there.

00:01:18.120 --> 00:01:22.540
All of you, can you open the SQL Developer tools?

00:01:23.380 --> 00:01:27.900
I already put a shortcut in your desktop if it's not already open.

00:01:32.200 --> 00:01:33.280
Yeah, just click run.

00:01:34.060 --> 00:01:34.900
Thank you, Christine.

00:01:35.580 --> 00:01:37.620
How about Jeremiah?

00:01:37.620 --> 00:01:52.620
I see Joseph, are you accessing individual desktop or you prefer to access one desktop in your conference or something?

00:01:55.740 --> 00:01:56.420
Individual.

00:01:57.060 --> 00:02:00.200
Yeah, yeah. And I think you have access, right?

00:02:00.640 --> 00:02:03.760
How about Miguel? Do you have access right now?

00:02:04.880 --> 00:02:05.220
Apo.

00:02:05.220 --> 00:02:09.440
Yeah, can you open the SQL Developer right now?

00:02:14.880 --> 00:02:16.720
It's the middle icon.

00:02:18.160 --> 00:02:19.220
Nakabukas na, sir.

00:02:20.340 --> 00:02:22.000
Yung sayo po, sir Miguel?

00:02:23.340 --> 00:02:26.040
Ayos po. Nakabukas na ko yung...

00:02:28.820 --> 00:02:36.380
Ang nakikita ko right now sayo, sir Miguel, is yung command prompt. Yung CMD, yung terminal.

00:02:38.900 --> 00:02:39.500
Okay.

00:02:40.480 --> 00:02:43.160
So can you click local? See if it is loading.

00:02:43.720 --> 00:02:47.520
For our password, please type ashblue.

00:02:49.580 --> 00:02:50.440
Jeremias.

00:02:50.440 --> 00:02:55.440
What is your nickname, Jer?

00:02:57.200 --> 00:02:57.860
Jerry.

00:03:01.040 --> 00:03:03.580
Yeah, can you type ashblue as password?

00:03:04.400 --> 00:03:06.440
Yeah, ashblue. A-S-H-B-L-U-E.

00:03:07.380 --> 00:03:13.340
A-S-H-B-L-U-E.

00:03:13.540 --> 00:03:13.660
Blue.

00:03:17.560 --> 00:03:22.900
Okay. So that's, oops, you closed the error, sir Jerry.

00:03:25.420 --> 00:03:29.680
So for example, in that case, so we're trying to debug here.

00:03:30.940 --> 00:03:36.860
How can I share...

00:03:36.860 --> 00:03:42.000
Yeah, for sir Jerry, how can I share...

00:03:42.000 --> 00:03:43.300
Let me share, okay.

00:03:48.520 --> 00:03:51.680
I'll reshare my screen, one moment.

00:03:58.060 --> 00:03:59.440
Let me know if you can see my desktop.

00:04:01.140 --> 00:04:01.740
Ayos po.

00:04:02.420 --> 00:04:07.220
Right now I'm looking at sir Jerry account.

00:04:07.220 --> 00:04:20.460
As you can see, the error is ora-12541, meaning the server is not running.

00:04:20.920 --> 00:04:21.560
Okay.

00:04:22.420 --> 00:04:26.140
To fix that, can you open the terminal, sir Jerry?

00:04:27.800 --> 00:04:28.380
Yes, sir.

00:04:30.020 --> 00:04:31.440
Yeah, command prompt, yep.

00:04:33.100 --> 00:04:35.320
Then let's check your hostname.

00:04:35.320 --> 00:04:37.980
Type hostname, enter.

00:04:39.280 --> 00:04:42.500
Okay. So we need to match the hostname.

00:04:43.860 --> 00:04:45.860
Can you open a folder, please?

00:04:47.740 --> 00:04:56.620
Okay. You see on the right side, the tnsnames.ora, can you open that file? Right click on that.

00:04:57.560 --> 00:04:59.900
Then let's open that in with code.

00:05:02.500 --> 00:05:03.840
With Visual Studio Code.

00:05:03.840 --> 00:05:05.840
There you go.

00:05:07.200 --> 00:05:18.100
As you can see, the reason why it's not running, first is the server, the database server is not running. It is stopped.

00:05:19.820 --> 00:05:22.680
One moment. Let me grab the code.

00:05:31.820 --> 00:05:37.020
So we have a few ways to fix that.

00:05:37.320 --> 00:05:46.060
So we're gonna replace, you see on the line 6, the ray-lhnw-resize.

00:05:46.060 --> 00:05:54.620
We have to replace every instant of that with your hostname, jeremias-93dn.

00:05:59.880 --> 00:06:03.460
Okay, perfect. Now click save.

00:06:05.040 --> 00:06:07.120
Control S, please.

00:06:08.820 --> 00:06:13.720
Sir Jerry. Okay, awesome. We can close that now.

00:06:19.480 --> 00:06:23.400
Then we need to, sorry, go back again to the folder, please.

00:06:23.780 --> 00:06:26.940
Let's edit the other one, the listener.ora.

00:06:27.520 --> 00:06:34.740
Okay. Yeah, let's edit that. That's the last piece we need. Right click and edit in Visual Studio Code.

00:06:42.200 --> 00:06:45.680
Okay, you see, yeah, there you go. Thank you.

00:06:48.140 --> 00:06:50.700
Then I send, how can I send? One moment.

00:06:51.420 --> 00:06:57.280
On the, on the, dun po sa zoom, may send ako na Google Sheet.

00:06:57.800 --> 00:07:01.340
Can you click that po, yung Google Sheet?

00:07:02.040 --> 00:07:05.040
I'll paste the code to start the server.

00:07:18.040 --> 00:07:28.060
Sorry, sir. Sa zoom po, I send them a link.

00:07:29.380 --> 00:07:31.840
I see two people already joined.

00:07:35.340 --> 00:07:36.860
Yes po.

00:07:39.340 --> 00:07:45.140
Okay, so lahat na po ba na update na natin yung hostname natin?

00:07:47.980 --> 00:07:55.160
Now we need to start using the command lsnrctl start.

00:07:56.160 --> 00:08:02.520
You, nakita mo pa, sir Jerry, yung lsnrctl space start.

00:08:03.220 --> 00:08:04.520
There you go.

00:08:09.180 --> 00:08:10.780
lsnrctl start.

00:08:12.720 --> 00:08:15.460
It's like shorter for listener control.

00:08:20.380 --> 00:08:21.360
ctl.

00:08:21.360 --> 00:08:27.440
Ito po yung ito type. lsnrctl start.

00:08:39.360 --> 00:08:43.380
Space po. Sir Joseph.

00:08:45.220 --> 00:08:50.680
Space start. Okay. So, good thing yan na nakita natin yung error.

00:08:51.720 --> 00:08:55.280
So, ibig sabihin yan, kailangan natin i-restart yung computer.

00:08:56.120 --> 00:09:01.380
So, pag na change na yung hostname, we have to restart your computer.

00:09:01.860 --> 00:09:07.520
Tapos iraran natin ulit yung command na lsnrctl space start. Yes po.

00:09:08.620 --> 00:09:12.940
Ano po ang name mo po, yung nag-speak? Miguel. Miguel, okay.

00:09:13.540 --> 00:09:14.820
Unable to open.

00:09:18.820 --> 00:09:24.280
Yan po, okay po. So lahat po nung may ganung error, please restart your computer po.

00:09:24.780 --> 00:09:28.920
We need to restart the computer para magtake effect yung hostname na inedit natin.

00:09:38.400 --> 00:09:44.780
Yes, please restart. Thank you.

00:09:53.560 --> 00:09:59.060
Okay, so while waiting, while restarting, if you can still see my screen.

00:10:00.200 --> 00:10:03.160
So, itatari natin itong copy-paste.

00:10:03.840 --> 00:10:08.480
So, since this is a presentation, ipipaste ko yung

00:10:08.480 --> 00:10:18.020
dun sa interactive coding natin na slides.

00:10:18.820 --> 00:10:20.120
So, line 87.

00:10:20.120 --> 00:10:26.120
Let me check your computer.

00:10:29.920 --> 00:10:30.980
Okay, nag-restart pa din.

00:10:32.240 --> 00:10:34.960
So, let's wait for it.

00:10:40.420 --> 00:10:43.700
So, while waiting for the computer to restart,

00:10:43.700 --> 00:10:50.720
So, in PLSQL, the SELECT statement is used to retrieve data from database table.

00:10:51.880 --> 00:10:56.380
So, yan, this statement can be used in different ways depending on the requirement.

00:10:56.980 --> 00:10:58.840
So, selecting data into variables.

00:11:00.060 --> 00:11:05.440
So, yung simple SELECT natin, pag may SQL lang, SELECT into FROM.

00:11:05.440 --> 00:11:14.200
While in kapag sa PLSQL, we again yung naaral natin, DECLARE, BEGIN, tapos END.

00:11:14.520 --> 00:11:26.140
So, we declare variable, we begin where we transact, where we query, then we can output the variable.

00:11:40.780 --> 00:11:41.380
Okay.

00:11:42.400 --> 00:11:49.720
So, let's try. Marami pa naman tayong code na natatry, pero we can proceed muna while we restart the computer.

00:11:51.580 --> 00:11:57.780
So, eto naman is handling kapag no data found or too many errors.

00:12:00.060 --> 00:12:02.180
Pero maganda ma-try din talaga natin.

00:12:02.180 --> 00:12:02.240
Okay.

00:12:02.240 --> 00:12:02.460
Okay.

00:12:04.000 --> 00:12:04.400
Okay.

00:12:04.400 --> 00:12:04.420
Okay.

00:12:04.420 --> 00:12:04.440
Okay.

00:12:04.440 --> 00:12:04.460
Okay.

00:12:04.460 --> 00:12:04.740
Okay.