Oracle Database 12c Tutorial 3:Connect HR/SYS user with SQL Developer in Oracle12c Using TNS Service
Key Takeaways
This video tutorial demonstrates how to connect HR and SYS users of Oracle database 12c with SQL Developer using TNS service, covering the concepts of container database, pluggable database, and TNS service name configuration.
Full Transcript
What's up internet? I'm Manish from rebellionrider.com and I'm back once again with another Oracle database tutorial. Since I have done my last video on how to unlock HR user in Oracle database 12C, it seems like you people are having some problem in making a HR connection using SQL developer. So I have decided to do a quick video tutorial on how to connect Oracle database 12c with SQL developer. As this video is in the continuation of my last tutorial, thus I would request you to watch my previous tutorial first for the better understanding of the topic. You can find the link in the description box. Having said that, let's move ahead and start the tutorial. As I told you guys in my previous tutorial that in Oracle database 12c we have the concept of container database and pluggable database. Every container database has one root container which contains system meta data to manage all the pluggable databases that belong to this root container. When we try to connect to the database either using sid or without specifying the tns service name then by default Oracle 12c connect us to the root container. However, since our HR user or any other sample user is placed inside the PDB container rather than the root container, therefore, in order to make a successful HR user or any sample user connection in SQL developer, we have to connect to the PDB container instead of the root container. And to connect with the pluggable database container, we have to use the DNS service. If you remember in the previous tutorial, we edited the tns name.ora file and add the tns service entry by the name of PDBL. Thus to connect with HR user we will use this PDB OCS service name while making the new connection in SQL developer. Let's jump ahead and make a new connection in SQL developer using HR user. Before making connection make sure your pluggable database which contains HR user must be open to perform read and write operation. Let's check as you can see right now my pluggable database is mounted. So first I have to open it. Okay, everything is set. Now let's jump to the SQL developer and make a new connection. To make a new connection, you need this connection panel. If you don't have it, you can get it from the view menu. And here it is. Okay. Now click this green plus button. This will open up a new connection window. Here in connection name field, you can give whatever connection name you want. I will name my connection as HR-PDB2LC. Next is the username which is obviously HR as we are making an HR connection. In the password field, you have to give the valid password of your HR user. In my case, the password is HR. Next, check this save password box. And if you want, you can designate color to your connection here. Next is role. As it's HR user, so let this role be default. Now, there are two ways to make an HR connection in SQL developer. First, let this connection type be basic and enter your host name and port number accordingly. In my case, my host name is local host and I'm using my default port which is 1521. Next field is SID. If we will enter our SID in field and try to connect then we will get an error. Let me show you how. Click test. See I got this error. This is because when we use SID to make a connection the Oracle database 12c tries to connect us with the root container and as I said HR user is not in root container. Beside root container does not even contain any user data. Thus to make a HR connection we have to connect to the pluggable database which has a user. For that we will use a tns service which we created by updating the tns name.ora aura file in previous tutorial by the name of PDB OCL. So click and select the service name box and enter the name of your service. Click test. Connection is successful. Next and relatively easy way is by using TNS connection type. Choose DNS in connection type and from the network alias drop-own list choose the name of the pluggable database service. Select TNS service which is PDB OCL in our case. Now click test. As you can see connection is successful. Hit save and connect. And here we are. Let's check the container name. As you can see, right now we are in the pluggable database container which is PDB OCL. Next, I will make another connection just to show you the difference between the connection using TNS service and that using SID. This time I will use SIS user and SID OCL to make the connection. Again, hit that green plus button. Now on new connection window, I will name my connection as SIS- CDB12C and username will be SIS. And next will be the valid password. Check save password box and connection type let it be on basic and in the role choose cis dba as the user is sis which is highly privileged user. Next you have to enter your host name and port number. Enter them accordingly. For valid host name and port number you can check your listener. file. In my case I will let them be on default. Next unlike the last time this time I will use my SID which is OCL instead of the service name. Though you can use your service name also but that will again connect your SIS user to your pluggable database. Let's enter the SID. Check the connection. Hit test. As you can see connection is success. Now hit save and then connect. And here we are. Let me quickly show you the user. As you can see the user is SIS. Now let's check the container name. As you can see unlike the last time this time we are connected to the root container. Always remember only common user such as CIS or system can connect to the root container as well as to the pluggable database container but a normal user can only connect with the pluggable container. With this I will wind up today's tutorial. Hope you enjoyed watching and learned something. If you like this tutorial, please hit the thumbs up button. You can also help me in reaching out to more people by sharing my video with your friends on your social networking. And more importantly, don't forget to hit that big red button and subscribe to my channel. We'll see you soon with another tutorial. Till then, take care. This is Vanish from Rebellion Rider.
Original Description
Learn how to connect HR and Sys User of Oracle database 12c With SQL Developer using TNS service. Connect HR user which is in pluggable database to SQL Developer
------------------------------------------------------------------------
►►►LINKS◄◄◄
Blog :
Previous Tutorial
► Tut 61: How To Unlock HR schema in Oracle Database 12c
http://youtu.be/F81gfUnznZY
-------------------------------------------------------------------------
►►►Help Me In Getting A Job◄◄◄
►Help Me In Getting A Good Job By Connecting With Me on My LinkedIn and Endorsing My Skills. All My Contact Info is Down Below. You Can Also Refer Me To Your Company
Thanks
-------------------------------------------------------------------------
Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage
https://copy.com?r=kb4rc1
--------------------------------------------------------------------------
►Make sure you SUBSCRIBE and be the 1st one to see my videos!
--------------------------------------------------------------------------
Amazon Wishlist: http://bit.ly/wishlist-amazon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
►►►Find me on Social Media◄◄◄
Follow What I am up to as it happens on
https://twitter.com/rebellionrider
https://www.facebook.com/imthebhardwaj
http://instagram.com/rebellionrider
https://plus.google.com/+Rebellionrider
http://in.linkedin.com/in/mannbhardwaj/
http://rebellionrider.tumblr.com/
http://www.pinterest.com/rebellionrider/
You can also Email me at
RebellionRiderYT@gmail.com
Please please LIKE and SHARE my videos it makes me happy.
Thanks for liking, commenting, sharing and watching more of our videos
This is Manish from RebellionRider.com
♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Playlist
Uploads from Manish Sharma · Manish Sharma · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Oracle Database tutorials 1: How to install Oracle Database 11g on windows 7
Manish Sharma
Oracle Database tutorials 2:How To install SQL Developer on windows 7
Manish Sharma
Oracle Database tutorials 3:How to enable Line numbers in SQL Developer.
Manish Sharma
Oracle Database tutorials 4: database connectivity using SQL developer and command prompt
Manish Sharma
Oracle Database tutorials 5: how to Fetch Data using SELECT - SQL statement by Manish Sharma
Manish Sharma
Oracle Database11g tutorials 6 | | How to use Concatenation operator, character String
Manish Sharma
Oracle Database11g tutorials 7 | |SQL DISTINCT keyword || SQL tutorials
Manish Sharma
Canon EOS 600D 2 lens kit/Canon rebell EOS T3i 2 lens kit Unboxing
Manish Sharma
First look: ORACLE CERTIFIED ASSOCIATE (OCA) CERTIFICATE - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Oracle Database11g tutorials 8 || SQL DISTINCT with multiple columns |SQL Distinct with Two columns
Manish Sharma
Oracle Database11g tutorials 9 || What is archive log mode and how to enable archive log mode
Manish Sharma
Oracle Database11g tutorials 10 || SQL Single Row Function (SQL Functions )
Manish Sharma
Oracle Database11g tutorials 11: SQL case manipulation function in Oracle Database
Manish Sharma
how to add channel trailer and section on your youtube channel 2014
Manish Sharma
Oracle Database11g tutorials 12 || SQL Concat Function - SQL character manipulation function
Manish Sharma
Oracle Database11g tutorials 13 || SQL substr function / SQL substring function
Manish Sharma
Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt
Manish Sharma
SQL tutorials 15 || How To CREATE TABLE using enterprise manager 11g
Manish Sharma
Oracle Database11g tutorials 16: How to uninstall oracle 11g from windows 7 64 bit
Manish Sharma
ORACLE CERTIFIED PROFESSIONAL(OCP) CERTIFICATE First look - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Plantronics audio 655 USB headset with Mic Unboxing and Review and Plantronics audio 655 Mic test
Manish Sharma
SQL tutorials 17: SQL Primary Key constraint, Drop primary Key
Manish Sharma
SQL tutorials 18: SQL Foreign Key Constraint By Manish Sharma
Manish Sharma
SQL tutorial 19: ON DELETE SET NULL clause of Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorials 20: On Delete Cascade Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 21: How To Rename Table in SQL using ALTER TABLE statement By Manish Sharma
Manish Sharma
SQL tutorial 22: How to Add / Delete column from an existing table using alter table
Manish Sharma
SQL tutorial 23: Rename and Modify Column Using Alter Table By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 24 :SQLJoins- Natural Join With ON and USING clause By Manish/Rebellionrider
Manish Sharma
Oracle Database11g tutorials 25: How to install Oracle Database 11g Express Edition R2 on Windows 7
Manish Sharma
SQL tutorial 26: Introduction to SQL Joins in Oracle Database
Manish Sharma
Vidcon 2014 YouTube Fan Funding: How to enable fan funding on YouTube Channel
Manish Sharma
SQL tutorial 27: Right Outer Join in SQL by Manish Sharma for RebellionRider
Manish Sharma
SQL tutorial 28: Left Outer Join By Manish Sharma / RebellionRider
Manish Sharma
SQL tutorial 29: Full Outer Join with example By Manish Sharma/ RebellionRider
Manish Sharma
SQL tutorial 30: Inner Join In SQL by Manish Sharma/RebellionRider
Manish Sharma
SQL tutorial 31 : SQL Cross Join In Oracle Database By Manish Sharma from RebellionRider
Manish Sharma
SQL tutorial 32: How To Insert Data into a Table Using SQL Developer
Manish Sharma
SQL tutorial 33:How To Insert Data into a Table Using SQL INSERT INTO dml statement
Manish Sharma
SQL tutorial 34: How to copy /Insert data into a table from another table using INSERT INTO SELECT
Manish Sharma
SQL tutorial 35: DELETE and TRUNCATE how to delete data from a table
Manish Sharma
SQL tutorial 36: how to create database using database configuration assistant DBCA
Manish Sharma
SQL tutorial 37: How to create NEW USER account using Create User statement in Oracle database
Manish Sharma
SQL tutorial 38: How to create user using SQL Developer in Oracle database
Manish Sharma
SQL tutorial 39: How to create user in oracle using Enterprise Manager
Manish Sharma
SQL tutorial 40: DBA Trick, How to drop a user when it is connected to the database
Manish Sharma
Motorola Moto G 2nd Generation / G2 Unboxing and Review
Manish Sharma
SQL tutorial 41: How to UNLOCK USER in oracle Database
Manish Sharma
SQL tutorial 42: How to Unlock user using SQL Developer By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 43: How to create an EXTERNAL USER in oracle database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 44: How to import data from Microsoft Excel to Oracle Database using SQL Developer
Manish Sharma
SQL tutorial 45: Introduction to user Privileges in Oracle Database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 46: What are System Privileges & How To Grant them using Data Control Language
Manish Sharma
SQL tutorial 47: How to Grant Object Privileges With Grant Option in Oracle Database
Manish Sharma
SQL tutorial 48: How to create Roles in Oracle Database
Manish Sharma
SQL tutorial 49: CASE - Simple Case Expression in Oracle Database (1/2)
Manish Sharma
SQL tutorial 50: CASE - Searched Case Expression In Oracle (2/2)
Manish Sharma
SQL tutorial 51: DECODE function in Oracle Database By Manish Sharma (RebellionRider)
Manish Sharma
Oracle Database Tutorial 52 : Data Pump expdp - How to Export full database using expdp
Manish Sharma
Oracle Database Tutorial 53 : Data pump expdp - How to Export tablespace in Oracle Database
Manish Sharma
More on: Database Integration
View skill →Related Reads
📰
📰
📰
📰
The Data Scientist’s Guide to Animated Ternary Diagrams
Medium · Data Science
O custo invisível do seu clique: como a sua rotina virou a mercadoria mais valiosa (e perigosa) do…
Medium · Data Science
Beyond the Outrage: What 100 News Headlines Reveal About Nigeria’s Fuel Price Story.
Medium · Python
Analyzing a U.S. Dealership Network's Sales Performance (2022 to 2023)
Medium · Data Science
🎓
Tutor Explanation
DeepCamp AI