Home » RDBMS Server » Networking and Gateways » Unable to connect to database through client (11g, 11.2.0.1, Window server 2008)
Unable to connect to database through client [message #630488] Mon, 29 December 2014 04:37 Go to next message
ashishkumarmahanta80
Messages: 231
Registered: October 2006
Location: kolkatta
Senior Member
DeaR All,

In an installed client on windows server, one database is connecting through client but other is not connecting. It gives error

ORA-12523: TNS:listener could not find instance appropriate for the client
connection




C:\Users\Administrator>sqlplus

SQL*Plus: Release 11.1.0.6.0 - Production on Mon Dec 29 15:55:48 2014

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

Enter user-name: sys@tagicthm as sysdba
Enter password:
ERROR:
ORA-12523: TNS:listener could not find instance appropriate for the client
connection


Enter user-name: system@tagicthm
Enter password:
ERROR:
ORA-12523: TNS:listener could not find instance appropriate for the client
connection


Enter user-name: SYSTEM@uicuintg
Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64
bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

C:\Users\Administrator>lsnrctl

LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 29-DEC-2014 15:57
:48

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=UAT-PV-MERG.cmcindia.com
)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date                29-DEC-2014 15:19:42
Uptime                    0 days 0 hr. 38 min. 12 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   F:\app\Administrator\product\11.2.0\dbhome_1\network\a
dmin\listener.ora
Listener Log File         f:\app\administrator\diag\tnslsnr\UAT-PV-MERG\listener
\alert\log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=UAT-PV-MERG.cmcindia.com)(PORT=1521)
))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.140.128)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 3 handler(s) for this service...
Service "TAGICTHMXDB" has 1 instance(s).
  Instance "tagicthm", status READY, has 1 handler(s) for this service...
Service "UICUINTGXDB" has 1 instance(s).
  Instance "uicuintg", status READY, has 1 handler(s) for this service...
Service "tagicthm" has 1 instance(s).
  Instance "tagicthm", status READY, has 1 handler(s) for this service...
Service "uicuintg" has 1 instance(s).
  Instance "uicuintg", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>



C:\Users\Administrator>tnsping tagicthm

TNS Ping Utility for 64-bit Windows: Version 11.1.0.6.0 - Production on 29-DEC-2
014 15:59:44

Copyright (c) 1997, 2007, Oracle.  All rights reserved.

Used parameter files:
D:\app\Administrator\product\11.1.0\client_1\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.140.128)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = tagicthm
)))
OK (0 msec)

C:\Users\Administrator>tnsping uicuintg

TNS Ping Utility for 64-bit Windows: Version 11.1.0.6.0 - Production on 29-DEC-2
014 15:59:52

Copyright (c) 1997, 2007, Oracle.  All rights reserved.

Used parameter files:
D:\app\Administrator\product\11.1.0\client_1\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.140.128)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = UICUINTG
)))
OK (10 msec)

C:\Users\Administrator>


but same database was connecting through command prompt -

C:\Users\Administrator>path
PATH=D:\app\Administrator\product\11.1.0\client_1\bin;F:\app\Administrator\produ
ct\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C
:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\Windows System Re
source Manager\bin;;C:\Windows\idmu\common

C:\Users\Administrator>path=F:\app\Administrator\product\11.2.0\dbhome_1\bin

C:\Users\Administrator>set oracle_sid=tagicthm

C:\Users\Administrator>sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 29 16:04:42 2014

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Enter user-name: system@tagicthm
Enter password:
ERROR:
ORA-12523: TNS:listener could not find instance appropriate for the client
connection


Enter user-name: system@conf
Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

SQL> select name from v$database;

NAME
---------
TAGICTHM


Please assist me why it is not connecting through client. Same thing was check with 10g client but got same error.

Regards,
Ashish

[Updated on: Mon, 29 December 2014 04:40]

Report message to a moderator

Re: Unable to connect to database through client [message #630502 is a reply to message #630488] Mon, 29 December 2014 06:40 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

ORA-12523: TNS:listener could not find instance appropriate for the client connection
 *Cause:  The listener could not find any available (database) instances,
 that are appropriate for the client connection.
 *Action: Run "lsnrctl services" to ensure that the instance(s) are
 registered with the listener, and have status READY.
Re: Unable to connect to database through client [message #630503 is a reply to message #630502] Mon, 29 December 2014 07:19 Go to previous messageGo to next message
ashishkumarmahanta80
Messages: 231
Registered: October 2006
Location: kolkatta
Senior Member
Dear Michel,


C:\Users\Administrator>lsnrctl services

LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 29-DEC-2014 18:50:17

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=UAT-PV-MERG.cmcindia.com)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 5 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
      "ORACLE SERVER" established:0 refused:0 current:0 max:25 state:ready
         CLRExtProc
         (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_123C_EEFB7AA.ORA))
      "ORACLE SERVER" established:0 refused:0 current:0 max:25 state:ready
         CLRExtProc
         (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_123C_EEFB7AA.ORA))
Service "TAGICTHMXDB" has 1 instance(s).
  Instance "tagicthm", status READY, has 1 handler(s) for this service...
    Handler(s):
      "D000" established:0 refused:0 current:0 max:1022 state:ready
         DISPATCHER <machine: UAT-PV-MERG, pid: 1752>
         (ADDRESS=(PROTOCOL=tcp)(HOST=UAT-PV-MERG.cmcindia.com)(PORT=51354))
Service "UICUINTGXDB" has 1 instance(s).
  Instance "uicuintg", status READY, has 1 handler(s) for this service...
    Handler(s):
      "D000" established:0 refused:0 current:0 max:1022 state:ready
         DISPATCHER <machine: UAT-PV-MERG, pid: 2328>
         (ADDRESS=(PROTOCOL=tcp)(HOST=UAT-PV-MERG.cmcindia.com)(PORT=49222))
Service "tagicthm" has 1 instance(s).
  Instance "tagicthm", status READY, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0 state:ready
         LOCAL SERVER
Service "uicuintg" has 1 instance(s).
  Instance "uicuintg", status READY, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0 state:ready
         LOCAL SERVER
The command completed successfully




Services & database is up and running...
Even though, unable to connect to database through client...

[Updated on: Mon, 29 December 2014 07:21]

Report message to a moderator

Re: Unable to connect to database through client [message #630505 is a reply to message #630503] Mon, 29 December 2014 07:57 Go to previous messageGo to next message
ashishkumarmahanta80
Messages: 231
Registered: October 2006
Location: kolkatta
Senior Member
Dear Al,

I found one issue at tns entry of database/ When I use host name as ip address, it gives error. When I use host name as server name, it proceeded without error. Below is the error and tns entry at database. But what ever use in host name at client side, it gives same error.

May be it would help you to assist me to rectify the problem..

Enter user-name: system@tagicthm
Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

C:\Users\Administrator>SQLPLUS

SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 29 19:12:16 2014

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Enter user-name: system@conf
Enter password:
ERROR:
ORA-12523: TNS:listener could not find instance appropriate for the client
connection


Below is the tns entry at database ---

TAGICTHM =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = UAT-PV-MERG)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = TAGICTHM)
    )
  )

conf =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.140.128)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = TAGICTHM)
    )
  )

Re: Unable to connect to database through client [message #630506 is a reply to message #630505] Mon, 29 December 2014 08:18 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

ping UAT-PV-MERG
tnsping TAGICTHM 
tnsping conf 


Re: Unable to connect to database through client [message #630531 is a reply to message #630506] Mon, 29 December 2014 22:17 Go to previous messageGo to next message
ashishkumarmahanta80
Messages: 231
Registered: October 2006
Location: kolkatta
Senior Member
Dear Michel,

Below are the output -

C:\Users\Administrator>ping UAT-PV-MERG

Pinging UAT-PV-MERG.cmcindia.com [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Users\Administrator>tnsping TAGICTHM

TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 30-DEC-2014 09:46:21

Copyright (c) 1997, 2006, Oracle.  All rights reserved.

Used parameter files:
D:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = UAT-PV-MERG)(PORT = 1521))) (CONNECT_DATA = (SERVICE
_NAME = tagicthm)))
OK (50 msec)

C:\Users\Administrator>tnsping conf

TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 30-DEC-2014 09:46:32

Copyright (c) 1997, 2006, Oracle.  All rights reserved.

Used parameter files:
D:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.140.128)(PORT = 1521))) (CONNECT_DATA = (SER
VICE_NAME = tagicthm)))
OK (0 msec)

[Updated on: Mon, 29 December 2014 22:19]

Report message to a moderator

Re: Unable to connect to database through client [message #630532 is a reply to message #630531] Mon, 29 December 2014 22:35 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>Connected to:
>Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

more than one ORACLE_HOME must exist to support V11 above along with V10 below
Problem Exists Between Keyboard And Chair.

Do you have error of omission or error of commission?


>C:\Users\Administrator>tnsping conf
>TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 30-DEC-2014 09:46:32

We have met the enemy & they is US!


Re: Unable to connect to database through client [message #630533 is a reply to message #630532] Mon, 29 December 2014 23:18 Go to previous messageGo to next message
ashishkumarmahanta80
Messages: 231
Registered: October 2006
Location: kolkatta
Senior Member
Dear BlackSwan,

There is only one oracle home 2 databases at server.

I have installed 10g client again to check, whether same problem is persisting or not? Still, the same error persist.
Below is the path-

C:\Users\Administrator>path
PATH=D:\oracle\product\10.2.0\client_1\bin;F:\app\Administrator\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System
32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\Windows System Resource Manager\bin;;C:\Windows\idmu\common


Request you to elaborate your view. May be your valuable inputs may come out with great results.

Regards,
Ashish Kumar Mahanta
Re: Unable to connect to database through client [message #630545 is a reply to message #630531] Tue, 30 December 2014 01:21 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Quote:
C:\Users\Administrator>ping UAT-PV-MERG

Pinging UAT-PV-MERG.cmcindia.com [::1] with 32 bytes of data:


So UAT-PV-MERG != 192.168.140.128

Re: Unable to connect to database through client [message #630550 is a reply to message #630545] Tue, 30 December 2014 02:48 Go to previous messageGo to next message
ashishkumarmahanta80
Messages: 231
Registered: October 2006
Location: kolkatta
Senior Member
Dear Michel,

Thanks !!!

I will check with system admin team regarding ip and host name conflict.
Re: Unable to connect to database through client [message #630556 is a reply to message #630550] Tue, 30 December 2014 03:06 Go to previous messageGo to next message
ashishkumarmahanta80
Messages: 231
Registered: October 2006
Location: kolkatta
Senior Member
Dear Michel,

It is happening for only one database. Because, client is able to connect to other database with ip address.

C:\Users\Administrator>SQLPLUS

SQL*Plus: Release 10.2.0.3.0 - Production on Tue Dec 30 14:31:49 2014

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.

Enter user-name: sys@uicuintg as sysdba
Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options


Tns-entry at both database & client is same -

UICUINTG =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.140.128)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = UICUINTG)
    )
  )


Parallely, I am taking help of network team to find out the conflict of ip address and host name.

Regards,
Ashish
Re: Unable to connect to database through client [message #630560 is a reply to message #630556] Tue, 30 December 2014 03:19 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Quote:
Because, client is able to connect to other database with ip address.


Other database on the same server?
With the same client, program and so on?

Re: Unable to connect to database through client [message #630561 is a reply to message #630560] Tue, 30 December 2014 03:26 Go to previous messageGo to next message
ashishkumarmahanta80
Messages: 231
Registered: October 2006
Location: kolkatta
Senior Member
Dear Michel,

Yes !!! On same server. Same client.
Re: Unable to connect to database through client [message #630571 is a reply to message #630561] Tue, 30 December 2014 05:15 Go to previous messageGo to next message
ashishkumarmahanta80
Messages: 231
Registered: October 2006
Location: kolkatta
Senior Member
Dear Michel,

You are correct !!!

After requesting network team to check the issue. Problem is resolved. They check and rectified.

Below are the response of host name

C:\Users\Administrator>ping UAT-PV-MERG

Pinging UAT-PV-Merg [192.168.140.128] with 32 bytes of data:
Reply from 192.168.140.128: bytes=32 time<1ms TTL=128
Reply from 192.168.140.128: bytes=32 time<1ms TTL=128
Reply from 192.168.140.128: bytes=32 time<1ms TTL=128
Reply from 192.168.140.128: bytes=32 time=1ms TTL=128

Ping statistics for 192.168.140.128:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 1ms, Average = 0ms

C:\Users\Administrator>sqlplus

SQL*Plus: Release 10.2.0.3.0 - Production on Tue Dec 30 16:43:29 2014

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.

Enter user-name: system@conf
Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

SQL> host
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Administrator>tnsping conf

TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 30-DEC-2014 16:43:49

Copyright (c) 1997, 2006, Oracle.  All rights reserved.

Used parameter files:
D:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.140.128)(PORT = 1521))) (CONNECT_DATA = (SER
VICE_NAME = tagicthm)))
OK (0 msec)

C:\Users\Administrator>

Re: Unable to connect to database through client [message #630572 is a reply to message #630571] Tue, 30 December 2014 05:53 Go to previous message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Thanks for the feedback.

Previous Topic: ORA-12535: TNS:operation timed out
Next Topic: ORA: 24324 encountered on client installed on vmWare Citrix servers
Goto Forum:
  


Current Time: Thu Apr 18 18:57:35 CDT 2024