Installing SQL Developer and connecting to Oracle Database

11 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€64.63
List Price:  €92.34
You save:  €27.70
£55.44
List Price:  £79.20
You save:  £23.76
CA$95.39
List Price:  CA$136.28
You save:  CA$40.89
A$105.31
List Price:  A$150.46
You save:  A$45.14
S$94.41
List Price:  S$134.88
You save:  S$40.47
HK$546.48
List Price:  HK$780.72
You save:  HK$234.24
CHF 63.35
List Price:  CHF 90.51
You save:  CHF 27.15
NOK kr752.35
List Price:  NOK kr1,074.83
You save:  NOK kr322.48
DKK kr482.29
List Price:  DKK kr689.02
You save:  DKK kr206.72
NZ$115.40
List Price:  NZ$164.87
You save:  NZ$49.46
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,188.09
List Price:  ৳11,697.78
You save:  ৳3,509.68
₹5,844.32
List Price:  ₹8,349.40
You save:  ₹2,505.07
RM329.44
List Price:  RM470.65
You save:  RM141.21
₦106,069.84
List Price:  ₦151,534.84
You save:  ₦45,465
₨19,432.66
List Price:  ₨27,762.13
You save:  ₨8,329.47
฿2,557.57
List Price:  ฿3,653.83
You save:  ฿1,096.26
₺2,258.73
List Price:  ₺3,226.90
You save:  ₺968.16
B$359
List Price:  B$512.88
You save:  B$153.88
R1,287.23
List Price:  R1,838.99
You save:  R551.75
Лв126.41
List Price:  Лв180.60
You save:  Лв54.18
₩95,083
List Price:  ₩135,838.68
You save:  ₩40,755.68
₪258.36
List Price:  ₪369.10
You save:  ₪110.74
₱4,027.01
List Price:  ₱5,753.12
You save:  ₱1,726.10
¥10,906.36
List Price:  ¥15,581.18
You save:  ¥4,674.82
MX$1,179.09
List Price:  MX$1,684.49
You save:  MX$505.39
QR254.79
List Price:  QR364
You save:  QR109.21
P949.80
List Price:  P1,356.91
You save:  P407.11
KSh9,116.19
List Price:  KSh13,023.69
You save:  KSh3,907.50
E£3,278.15
List Price:  E£4,683.28
You save:  E£1,405.12
ብር4,011.90
List Price:  ብር5,731.54
You save:  ብር1,719.63
Kz58,559.69
List Price:  Kz83,660.29
You save:  Kz25,100.60
CLP$64,011.45
List Price:  CLP$91,448.85
You save:  CLP$27,437.40
CN¥505.41
List Price:  CN¥722.04
You save:  CN¥216.63
RD$4,086.68
List Price:  RD$5,838.37
You save:  RD$1,751.68
DA9,422.44
List Price:  DA13,461.21
You save:  DA4,038.76
FJ$156.72
List Price:  FJ$223.89
You save:  FJ$67.17
Q543.77
List Price:  Q776.85
You save:  Q233.07
GY$14,641.02
List Price:  GY$20,916.64
You save:  GY$6,275.62
ISK kr9,728.61
List Price:  ISK kr13,898.61
You save:  ISK kr4,170
DH700.19
List Price:  DH1,000.32
You save:  DH300.12
L1,241.04
List Price:  L1,772.99
You save:  L531.95
ден3,982.98
List Price:  ден5,690.21
You save:  ден1,707.23
MOP$563.11
List Price:  MOP$804.48
You save:  MOP$241.36
N$1,285.34
List Price:  N$1,836.29
You save:  N$550.94
C$2,571.34
List Price:  C$3,673.51
You save:  C$1,102.16
रु9,351.07
List Price:  रु13,359.25
You save:  रु4,008.17
S/260.45
List Price:  S/372.09
You save:  S/111.64
K271.10
List Price:  K387.31
You save:  K116.20
SAR262.46
List Price:  SAR374.97
You save:  SAR112.50
ZK1,748.19
List Price:  ZK2,497.53
You save:  ZK749.33
L321.68
List Price:  L459.56
You save:  L137.88
Kč1,601.24
List Price:  Kč2,287.58
You save:  Kč686.34
Ft24,952.05
List Price:  Ft35,647.32
You save:  Ft10,695.26
SEK kr754.74
List Price:  SEK kr1,078.25
You save:  SEK kr323.50
ARS$61,957.22
List Price:  ARS$88,514.10
You save:  ARS$26,556.88
Bs483.55
List Price:  Bs690.82
You save:  Bs207.26
COP$271,364.95
List Price:  COP$387,680.83
You save:  COP$116,315.88
₡35,852.12
List Price:  ₡51,219.51
You save:  ₡15,367.39
L1,726.61
List Price:  L2,466.70
You save:  L740.08
₲524,366.82
List Price:  ₲749,127.57
You save:  ₲224,760.74
$U2,698.07
List Price:  $U3,854.56
You save:  $U1,156.48
zł275.81
List Price:  zł394.04
You save:  zł118.22
Already have an account? Log In

Transcript

Now, let's understand how to use SQL Developer, which is a tool to interact with Oracle. It is more user friendly than other tools provided like SQL plus, to start with go to as usual oracle.com and go to downloads. And you're looking for a developer tool. So select developer tools here. I hope you already got your database up and running. If not, go back and watch the previous video, check out how you can set up your database.

And now go to developer tools. And there you find something called SQL Developer. So here we are, and click on SQL Developer and it's going to show you what to download. So here we have three options. You Also got option for Mac because Mac cannot have Oracle server running. But you can run this on Mac and connect it to Oracle server running on some other system.

So we are interested now in Windows 64 bit, you can either go with the JDK included or without JDK, the choice is yours. In case you don't have a Java already installed in your system, I suggest you go with this. But if you already have Java installed, then you can go with this because it will use Java that is already installed in your system. But you need to have JDK eight or above. So if you don't have that, just go with this. It's all in one.

But if you have JDK installed go with this. I'm going with this because in my system JDK is already installed And as usual, it's asking me to accept license and then download. And it's going to start the download, of course, after you log in, and this is where you sign in, and then the download will start. In case you don't have an account in Oracle, just register, it's free. Well, I don't need to download this because in my system, I already downloaded this. Okay, so I'm canceling it.

I'm going to the folder. And here is the download a little while ago, I already downloaded that, and this is around 400 Mb, that's what it is. And I'm downloaded the one which is without JRE. So just a double click on that, and it'll ask you to extract and you just need to extract that. So this is what it is going to create SQL Developer So I suggest you go to extract and say you want to extract this into some D drive or C drive anything. I prefer this to be in the root directory.

In fact, I have already done it. And here is my SQL Developer in D drive. I already extracted that. But in your case, you have to proceed with this step and extract. So once you extracted that, you get a folder like this in D drive, because in my case, I extracted that into D drive. So here we are.

Having this extracted into the drive and SQL Developer folder, just go there and double click on the SQL Developer. This is the application double click, it'll start and if you install the one without JDK, eight will ask you to provide a JDK First time when he starts, it'll ask you where is your JDK? You have to just select that. In my system. I just started that. So it's not asking me, but in your case, it'll ask you where is your JDK?

Just select your JDK folder, it'll automatically pick up required Java code from that. I mean, it needs JRE to run this application, because this is built with Java. So once you start SQL Developer by simply double clicking on this, if JDK is not included with the software, it will ask you to provide the folder for JDK. And once you provide the folder, it is going to start while it takes a little while to start. So let's wait until it starts. Well, this is how you get your SQL Developer Actually, you get the welcome screen and I just closed it because it's not relevant for us.

Now all that you need to do is go to Oracle connections and click on Place to create a new connection. So on the left, you see the connections and you need to go to Oracle connections, click on plus, and it's going to open a window where you need to give the details. So I just give the name as headshot. And then I'm talking about the user name head. char password is also Hey, char, I want the password to be saved so that I don't need to enter it again and again. And this is where you need to give the details.

And this is where you give 192 dot 168 dot one dot 34 I guess that's what we have seen. Am I right? Yeah. And then 1521 And this is going to be Exede PDB one and with those details you can test you can ask it to check whether it can connect. This is the hostname, this is the port, this is the SSID and click on test it is going to check okay well that is actually this. So, we are talking about service name not aside please remember, it is service name, okay.

So x EP DB one, the port is same, the host name is the IP address, which we found out in the previous step. And this is the username password and please say password so that it won't bother you to enter it again and again. That's it, you got it. You save this you can see a connection and you can just click on Connect. Okay, and then once you Enter the connection details, you got a connection created, you can expand the connection, it's going to show you what the connection is having. And we are more interested in what are the tables that are present.

So these are the tables. And you have a lot of stuff here. But the most important part of it is this. Right now we are working with the HR. This is the connection. And here you can give commands.

For example, I want to know what are the rows we have in a table called jobs, no need to give semicolon here because it knows the end of the command, just click on this green button, which is to execute and eight runs and displays the result just below that. This is an awesome tool. And we'll be using this a lot because this is easy to use. And you can also type multiple commands for example, select Start from departments. I can select this and then click on that. And it is going to execute only what is selected, not the other one.

So you can have multiple commands and you can select whichever you want to execute, click on that you get the result. So this is the tool I strongly suggest to use, it's free. So download from oracle.com extracted. And if you include the JDK along with that, no need to do anything else it will start automatically. But if you are downloading the one without JDK, then you need to select where JDK is present in your system. That's it, then create a new connection.

This is the way it is done. Just go to connections. Click on this and here you need to give some name for that. And then you are talking about the user name and password. And then here, you should select service name, not this SSID. And there you need to give our service name SC, p DB one.

And also this is where you should change to the port number 192 dot 168 dot one dot 34. That's what we need to give. And then username and password you can also connect it to your system and then you can give the password of the system again say save password not a good idea to save system password because it's powerful account. But if you're not sharing your system with anybody else, that's fine. Okay. So I say system password, and I say the name of this account a system.

Okay, just test to be sure it is fine. And look at this. This is where you get the message success. Okay. And once you're done, you You can save and you can close this or you can even connect. And when you say Connect, it's asking you for password.

Right this so you are now connecting to system. So you have two tabs. This is about system account. This is about HR. You can see them here also. So whichever you want to use, you can go with that.

Let's close both. And it's saying Do you want to save changes? No. And then you can go back to this and you can open what is called as the sheet the SQL worksheet. Okay, anytime if you want to create the worksheet, just go and say open SQL worksheet, you get that and you can start giving commands. That's it.

That's how you get started with SQL Developer. And this is with the assumption you already have a racquel 18 c Express Edition setup. If not watch my previous video where I explained how you get started with that. That's it

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.