SOLVED

ORA-12502 TNS-12502 TNS:listener received no CONNECT_DATA from client

Asked by OracleDba10 viewsoracle

#oracle#error

Solutions(1)

Accepted Solution
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
ORA-12502 TNS-12502 TNS:LISTENER RECEIVED NO CONNECT_DATA FROM CLIENT

TNS:listener received no CONNECT_DATA from client

Cause:No CONNECT_DATA was passed to the listener.

Action: Check that the service name resolved from TNSNAMES.ORA has the CONNECT_DATA component of the connect descriptor.

Below is the sample entry of tnsnames.ora:-

#When using SERVICE_NAME in CONNECT_DATA component

orcl.example.com =

   (DESCRIPTION =

     (ADDRESS_LIST =

       (ADDRESS = (PROTOCOL = TCP)(HOST = myserver.example.com)(PORT = 1521))

     )

     (CONNECT_DATA =

       (SERVICE_NAME = orcl)

     )

   )

#When using SID in CONNECT_DATA component 

orcl.example.com =

   (DESCRIPTION =

     (ADDRESS_LIST =

       (ADDRESS = (PROTOCOL = TCP)(HOST = myserver.example.com)(PORT = 1521))

     )

     (CONNECT_DATA =

       (SID = orcl)

     )

   )

So for the service name please ensure you have the CONNECT_DATA clause in the 

tnsnames.ora, if you don’t have one please choose a SERVICE_NAME or SID clause.
OracleDba

Post Your Solution