Oracle Networks - Listeners

Oracle clients communicate with the database using the Transparent Network Substrate (TNS) protocol. When the listener receives a connection request (tcp port 1521, by default), it starts up a new database process and establishes a connection between the client and the database.The server side will have listener.The client side will have TNSThe default path of the files “$ORACLE_home/network/admin”
We can generate the file using NETCA method

Step 1 : Check if the files are already available

    ora-tns-lis-1

Step 2 : Type “netca” , a drop up appears, choose listener configuration

    ora-tns-lis-2

Step 3 : Click on “add”

    ora-tns-lis-3

Step 4 : Give the “listener” name

    ora-tns-lis-4

Step 5 : Choose the TCP protocol

    ora-tns-lis-5

Step 6 : We can se the standard port nmber of oracle 1521 or specify any other port number

    ora-tns-lis-6

Step 7 : If we do not want to specify another port number click on yes

    ora-tns-lis-7

Step 8 : Click no if we do not want to create another listener

    ora-tns-lis-8

    ora-tns-lis-9

Step 9 : Choose “local net service name configuration” for creating tns file

    ora-tns-lis-10

Step 10 : Click on add

    ora-tns-lis-11

Step 11 : Enter the database name we want to connect

    ora-tns-lis-12

Step 12 : Choose TCP configuration

    ora-tns-lis-13

Step 13 : Enter the IP address

    ora-tns-lis-14

Step 14 : Choose option not to test

    ora-tns-lis-15

Step 15 : Specify database name

    ora-tns-lis-16

Step 16 : Click on no and finish configuration

    ora-tns-lis-17

    ora-tns-lis-18

Step 17 : We can see that the two files has been created

    ora-tns-lis-19

Step 18 : Enter the below configuration details in the listener.ora file and TNS file respectively

    ora-tns-lis-20

    ora-tns-lis-21

Step 19 : Start the listener

    ora-tns-lis-22

    ora-tns-lis-23

Step 20 : Check if TNS is working properly

    ora-tns-lis-24


(Oracle Networks - Client Installation)