0% found this document useful (0 votes)
95 views20 pages

Oracle NetCA Guide by Manish Sharma

The document provides a 9 step guide to creating a TNS service using Oracle Net Configuration Assistant (NetCA). The steps are: 1) choose Net Service Name Configuration, 2) select "Add", 3) enter the service name, 4) select the network protocol, 5) enter hostname and port number, 6) test the connection, 7) name the TNS entry, 8) choose to configure another entry or not, and 9) NetCA configuration is complete. NetCA is a graphical tool that makes it easy to configure connect descriptors in tnsnames.ora by gathering the required information like service name, hostname, and port number.

Uploaded by

Peter Asan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views20 pages

Oracle NetCA Guide by Manish Sharma

The document provides a 9 step guide to creating a TNS service using Oracle Net Configuration Assistant (NetCA). The steps are: 1) choose Net Service Name Configuration, 2) select "Add", 3) enter the service name, 4) select the network protocol, 5) enter hostname and port number, 6) test the connection, 7) name the TNS entry, 8) choose to configure another entry or not, and 9) NetCA configuration is complete. NetCA is a graphical tool that makes it easy to configure connect descriptors in tnsnames.ora by gathering the required information like service name, hostname, and port number.

Uploaded by

Peter Asan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

REBELLIONRIDER.

COM

HOW TO CREATE A
TNS SERVICE
using Net Configuration Assistant (NetCA)

BY MANISH SHARMA
YouTube.com/RebellionRIder
INTRODUCTION
what you need to create a TNS service
Thanks to Oracle Net Configuration Assistant, configuring a

connect descriptor in tnsnames.ora file is a very easy task.

In order to configure a TNS entry you will need some information,

such as –

Service Name: A service is a logical representation of a

database. Every Database which you have configured on your

server must have a corresponding service. You will need the

name of the service of the database for which you are creating

the entry in your tnsnames.ora file.

Hostname:   Hostname will be the name of the machine where

your Oracle Database Server is installed and configured.

Port Number: Port number is where the listener of your Oracle

Database is listening or addressing the requests.

Suggested Reading

How To FInd Out All This Information

Blog | Video
NetCA
Oracle Net Configuration Assistant is a wizard based graphical

user interface (GUI). This tool comes bundled with Oracle

Database. Using it you can configure almost all the Network

settings of your Oracle Database Server.

Here I will show you how to use Oracle Net Assistant to create a

TNS entry in tnsnames.ora file in an easy step-by-step manner.

www.RebellionRIder.com
LAUNCH THE ORACLE NET
CONFIGURATION ASSISTANT.
Have a productive vacation.

As Net Configuration Assistant is going to modify tnsnames.ora file

by adding an entry into it thus it is important that you launch your

NetCA with administrator privileges.

To launch the Oracle Net Configuration Assistant, we will use a

Windows Dos/Linux command. That command is ‘ netca’.

www.RebellionRIder.com
Run As Administrator

Run your command prompt with administrator privileges or shell

with ‘SUDO’ rights.

www.RebellionRIder.com
The  NetCA Command

After that simply write netca on the prompt. This will start the
Oracle Net Configuration Assistant.

www.RebellionRIder.com
STEP 1: CHOOSE THE
CONFIGURATION.
On the first screen of the net configuration assistant you will be

provided with four options. To make a TNS entry in the tnsnames.ora file

you have to choose the third option which is ‘ Oracle Net Service Name
Configuration’.

www.RebellionRIder.com
STEP 2: SELECT THE ACTION.
In this step you need to select the action from the list which you want to

perform. As we want to add a TNS entry thus we will select the first

add’.
option ‘

www.RebellionRIder.com
STEP 3: THE SERVICE NAME
In the third step you will have to specify the service name for which you

want to create this entry. Read this blog to learn how to find out the

service name of a database.

www.RebellionRIder.com
BEFORE THE NEXT STEP 
In next three steps we will be configuring protocol address of the

connect descriptor. The protocol address will be comprised of

information like Network Protocol, hostname and the port number. You

need to be very careful while specifying these information.

To find out the correct network protocol, hostname and the port number

you can take help from the listener.ora file. As, in most cases the

protocol address portion of the connect descriptor of the tnsnames.ora

file is the same as that of the protocol address of the listener.ora file.

www.RebellionRIder.com
STEP 4: THE NETWORK
PROTOCOL
You need to select a protocol using which the client will communicate

with your database on the network. In my machine the server-client

communication is using TCP network protocol. Thus, here select TCP


and move ahead.

www.RebellionRIder.com
STEP 5: THE HOSTNAME & THE
PORT NUMBER
Here you have to specify the name or the IP Address of the computer
where your Oracle Database server is installed and configured.

On this same screen you will also have to specify the port number which

your Oracle Server is using for establishing the communication between

Client and server. By default, Oracle Server uses the port number
1521.

www.RebellionRIder.com
STEP 6: TEST THE TNS
Once you are done creating your TNS entry, next you have to test it.

Although it’s not necessary but it is a good practice. Testing your TNS

entry will let you know whether you have done the settings correctly or

not.

Yes, perform a test’ and press the ‘next’ button.


Here Select ‘

www.RebellionRIder.com
STEP 6: TEST THE TNS

On the following screen press the change login button.

www.RebellionRIder.com
STEP 6: TEST THE TNS

Here enter ‘ system’ as your username and the password of your

‘system’ user. The password of your system user is the one which you

specified during the installation of your Oracle Database.

After that just press ok and the Oracle Net Configuration Assistant will

show you the result. If everything is ok, then you will get a success

message otherwise the NetCA will show you the error.

www.RebellionRIder.com
STEP 7: THE SERVICE NAME
In this step you have to specify a name for your TNS entry. You can

name your net service whatever you want. But it is always recommended

to specify a logical name for your TNS service which could help you in

recognizing it easily.

By default, the Oracle Net Configuration Assistant will name your TNS

entry after the name of the service for which you are creating this

connect descriptor. I suggest you not to change it.

www.RebellionRIder.com
STEP 8: ANOTHER NET SERVICE
NAME
In this step you will be asked whether you want to configure another

TNS entry or not. If you want to then select ‘Yes’ otherwise select ‘No’.

www.RebellionRIder.com
STEP 9: NET CONFIGURATION
DONE!
Congratulations you have created your connect descriptor/TNS service

for your database.

www.RebellionRIder.com
THANKS
This is a

quick graphical guide on how to create a TNS service name in Oracle

Database.

Hope you enjoyed reading.

Suggested Readings

Your Ultimate Guide to Oracle TNS.

How to connect with database using TNS Service.

Thanks RebellionRider.com
SCAN TO CONNECT

FACEBOOK

TWITTER

INSTAGRAM

You might also like