Client Side Application Hanging when connecting to Database [message #274196] |
Mon, 15 October 2007 01:10 |
sarfraz_attari
Messages: 123 Registered: July 2005
|
Senior Member |
|
|
Dear All
We are having Oracle database 10g Installed.
Sometimes when we are connecting to Server from Client the Client side application hangs,even when we are trying through SQL Plus , it hangs but when we use SQL PLUS directly from Database Server it is working fine , Our Network is working fine during this problem.
Can anyone suggest what is this Problem
Thanks
Sarfraz
|
|
|
|
|
|
Re: Client Side Application Hanging when connecting to Database [message #274257 is a reply to message #274252] |
Mon, 15 October 2007 04:26 |
sarfraz_attari
Messages: 123 Registered: July 2005
|
Senior Member |
|
|
Dear Michel
Thanks once again
Yes, you are right we are using login.sql and it has &. But I want to know that what is the problem if we are using & in login.sql and secondly I think this script will run only when we logged in through SQL PLUS , but when we are trying to run any of our Application from client which is connecting through database , Application is also hanging
Thanks
Sarfraz
|
|
|
|
|
|
Re: Client Side Application Hanging when connecting to Database [message #274394 is a reply to message #274385] |
Mon, 15 October 2007 22:59 |
alantany
Messages: 115 Registered: July 2007
|
Senior Member |
|
|
Hi,Ana:
db:10.2.0.0
server:win2003
client os :winxp
client db: 10.2.0.0
When we do sqlplus uid/pwd@string,It hangs,never success,but sqlplus uid/pwd at server local,it is ok.
Here are some mesages and configuration:
tns:
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = scn4699)(PORT = 1521))
)
(CONNECT_DATA =
(SID = orcl)
)
)
sqlnet :
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
listener.ora
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = SCN4699)(PORT = 1521))
)
C:\Documents and Settings\wangfan>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-OCT-2007 10:44:44
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = scn4699)(PORT = 1521))) (CONNECT_DATA = (SID = orcl)))
OK (60 msec)
C:\Documents and Settings\wangfan>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-OCT-2007 10:45:19
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SCN4699)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 16-OCT-2007 10:21:49
Uptime 0 days 0 hr. 23 min. 30 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SCN4699.xxx.net)(PORT=1521)))
Services Summary...
Service "orcl" has 2 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\Documents and Settings\wangfan>lsnrctl service
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-OCT-2007 10:45:36
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SCN4699)(PORT=1521)))
Services Summary...
Service "orcl" has 2 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER
(ADDRESS=(PROTOCOL=tcp)(HOST=SCN4699.xxx.net)(PORT=1363))
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1 refused:0 state:ready
LOCAL SERVER
The command completed successfully
--ARCHIVE LOG disabled:
SQL> conn sys/admin as sysdba;
Connected.
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 1
Current log sequence 2
SQL>
|
|
|
|
|
|
|
|
|
|
Re: Client Side Application Hanging when connecting to Database [message #274508 is a reply to message #274456] |
Tue, 16 October 2007 04:42 |
mson77
Messages: 208 Registered: August 2007 Location: Brazil
|
Senior Member |
|
|
Hello alantany,
alantany wrote: | When we do sqlplus uid/pwd@string,It hangs,never success,but sqlplus uid/pwd at server local,it is ok.
|
You have presented:
- listener.ora
- sqlnet.ora
- lsnrctl status
- tnsping orcl
My questions are: (from your clients)
- Did you issue "tnsping orcl" from client desktop? (Or at local server?)
- Did you setup service name on your client? And are you able to TNSPING using the name you have created?
- Can you PING the server by name from your clients? ("ping scn4699")
Regards,
mson77
|
|
|
|
|