Dead conection detection and sqlnet.ora
Hello,
I´m having some doubts regarding the sqlnet.ora.
I´m configuring the sqlnet.expire_time=10 parameter in sqlnet.ora, restarted the listener and then I connected via a web conection and turned off my computer (client connection)
Sometimes in 18 or 20 minutes the connection closes, sometimes it remains connected for hours. I turned the trace on and I see a message that the net service read the sqlnet.expire_time = 10 parameter.
What could be wrong ? Anybody here had this kind of problems configuring dead conections detection ?
Another doubt. How can I set a inactivity time ? for example , if the user don´t make a query in 30 minutes he´s disconected... I already tried it configuring in Enterprise manager but it also failed.
SQLNET.EXPIRE_TIME
Purpose:
Determines time interval to send a probe to verify the session is alive
Default: None
Minimum Value: 0 minutes
Recommended Value: 10 minutes
Example:
sqlnet.expire_time=10
Thank you in advance,
Felipe
looking at the trace files we can see that the expire time is configured to 5 minutes . But making tests (like disconecting the net cable) I see a user conected and the 20 after 20 minutes it still conected ...
--- TRACE CONFIGURATION INFORMATION FOLLOWS ---
[13-SEP-2005 13:58:50:591] New trace stream is /oracle/db/9.2.0.4/network/admin/trace/svr_22551.trc
[13-SEP-2005 13:58:50:591] New trace level is 6
[13-SEP-2005 13:58:50:591] --- TRACE CONFIGURATION INFORMATION ENDS ---
[13-SEP-2005 13:58:50:591]
--- PARAMETER SOURCE INFORMATION FOLLOWS ---
[13-SEP-2005 13:58:50:591] Attempted load of system pfile source /oracle/db/9.2.0.4/network/admin/sqlnet.ora
[13-SEP-2005 13:58:50:591] Parameter source loaded successfully
[13-SEP-2005 13:58:50:591]
[13-SEP-2005 13:58:50:591] -> PARAMETER TABLE LOAD RESULTS FOLLOW <-
[13-SEP-2005 13:58:50:591] Successful parameter table load
[13-SEP-2005 13:58:50:591] -> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
[13-SEP-2005 13:58:50:591] SQLNET.EXPIRE_TIME = 5
[13-SEP-2005 13:58:50:591] TRACE_DIRECTORY_SERVER = /oracle/db/9.2.0.4/network/admin/trace
[13-SEP-2005 13:58:50:591] SQLNET.ENCRYPTION_TYPES_SERVER = (RC4_128)
[13-SEP-2005 13:58:50:591] SSL_CIPHER_SUITES = (SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_4
0_MD5)
[13-SEP-2005 13:58:50:592] SQLNET.ENCRYPTION_TYPES_CLIENT = (RC4_128)
[13-SEP-2005 13:58:50:592] WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = /oracle/d
b/9.2.0.4/network/admin)))
[13-SEP-2005 13:58:50:592] TRACE_LEVEL_SERVER = admin
[13-SEP-2005 13:58:50:592] NAMES.DIRECTORY_PATH = (TNSNAMES, ONAMES, HOSTNAME)
[13-SEP-2005 13:58:50:592] sqlnet.crypto_seed = fewkpfrepgomrepogmropegjerpogjpejvvmmrpm
[13-SEP-2005 13:58:50:592] SQLNET.CRYPTO_CHECKSUM_TYPES_CLIENT = (MD5)
[13-SEP-2005 13:58:50:592] SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = (MD5)
[13-SEP-2005 13:58:50:592] SSL_VERSION = 3.0
[13-SEP-2005 13:58:50:592] SQLNET.CRYPTO_CHECKSUM_SERVER = accepted
[13-SEP-2005 13:58:50:592] SQLNET.ENCRYPTION_CLIENT = accepted
[13-SEP-2005 13:58:50:592] SSL_CLIENT_AUTHENTICATION = TRUE
[13-SEP-2005 13:58:50:592] NAMES.DEFAULT_DOMAIN = sids.mg.gov.br
[13-SEP-2005 13:58:50:592] --- PARAMETER SOURCE INFORMATION ENDS ---
[13-SEP-2005 13:58:50:592]
--- LOG CONFIGURATION INFORMATION FOLLOWS ---
[13-SEP-2005 13:58:50:592] Log stream will be "/oracle/db/9.2.0.4/network/log/sqlnet.log"
[13-SEP-2005 13:58:50:592] Log stream validation not requested
[13-SEP-2005 13:58:50:592] --- LOG CONFIGURATION INFORMATION ENDS ---
If anybody here experienced this same problem please let me know..
Similar Messages
-
Connect with ldap.ora and sqlnet.ora
Hi
I am trying to connect Raptor to 9i oracle server. Our server connects using ldap.ora and sqlnet.ora files. I looked at some threads about this issue but do not understand how to connect. Is there a step by step instruction for connecting this way?
Thanks
DHHi VRamirez,
That's a pretty cool workaround. I'm sorry to hear it didn't work perfectly.
Here is the "low tech" workaround anyone can use -
From the %ORACLE_HOME% where your sqlnet.ora is, run %ORACLE_HOME%\bin\tnsping eg.
C:\> tnsping oracle.world
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-APR-2006 22:56:31
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
c:\oracle\oracli92\network\admin\sqlnet.ora
Used LDAP adapter to resolve the alias
Attempting to contact (DESCRIPTION=(SOURCE_ROUTE=OFF)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.xxxx.xx)(
PORT=xxxx)))(CONNECT_DATA=(SID=ORCL))(SRVR=SHARED))
OK (200 msec)
C:\>
Now copy the (DESCRIPTION=...) and paste it into the advanced TNS info tab in the Connections dialog. This works for me for everything but RAC TNS aliases which have load balancing and failover configured -- the advanced TNS info tab chokes on those. For such connections, I was able to use the JDBC string.
-Natalka
http://toolkit.rdbms-insight.com -
Listener.ora and tnsnames.ora and sqlnet.ora
Hello newbie here, trying to look into simple RAC setup with 2 nodes (A.this.com, B.this.com), one service (PROD.this.com), one listener and one instance on each node (listener PRODlist1 using instance PRODinstance1 on node A, listener PRODlist2 using instance PRODinstance2 on node B), one database (ORCL).
db global db name = orcl.this.com
I would like loadbalancing=on, with TAF basic (no preconnect, retries 10, delay 5.)
With dynamic service registration.
What should the tnsnames.ora and listener.ora and sqlnet.ora look like?
Have read all sorts of literature, getting confused...I post my sample configuration here:
DBA1.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER=ON)
(LOAD_BALANCE=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))
(CONNECT_DATA =
(BACKUP=DBA2)
(SERVICE_NAME = DBA.WORLD)
DBA2.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER=ON)
(LOAD_BALANCE=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
(CONNECT_DATA =
(BACKUP=DBA1)
(SERVICE_NAME = DBA.WORLD)
) -
TNSNAME.ORA and SQLNET.ORA
Hi there!
My problems is regarding connection to Ora Frms/reports which for so many days I am trying but to no avail.
Some are suggesting to copy TNSNAME.ORA AND SQLNET.ORA for in order to work better connection on FORMS/REPORT.
Kindly advice on how to do it.
thnaks
nullIf you use 8i, form and report use TNS
config from sqlplus. If you can get in sqlplus does not mean you can log in
form ad report. You need to Config the TNS in an option called something like
'Network Config Assistant'or similar. You should find it from the list.
Another is to edit the TNSname.ora in the admin directory under you form and report initial path with the command from the previous mail -
We have a new datasource that I need to write a report against. In order to access the db, I have to install an Oracle wallet on my pc that contains a certificate. I then have an entry in the sqlnet.ora file that references this wallet, and I have an entry in my tnsnames file. I wrote a report successfully on my pc. We then have our Business Objects installation on a Sun Solaris machine with Unix. We installed the wallet, added the sqlnet.ora entry, and the tnsnames.ora entry. I am able to connect to the db from the unix command prompt by typing sqlplus username@dbname successfully. However, when I place my Crystal Report in Bus. Obj. I cannot get it to work. I go to the CMC, select the report, choose Process, Database. I am entering Use custom database logon info and choosing Oracle as my database driver. I then enter the tnsnames entry into the server and enter my username and password and check the use use same database logon as when report is run. I get the error The database logon information for this report is either incomplete or incorrect. I'm guessing the report is not using the certificate in the wallet when it is trying to log on, but I'm not sure. Does anyone have any suggestions or experience with this? Thanks in advance for any help.
Hi Angie,
you should install the 32bit Oracle driver on your Solaris machine and adjust the LD_LIBRARY_PATH environment variable (in the profile of the BOBJ installation user) to point to the path of the 32bit libraries of your Oracle driver.
BOBJ is not a native 64bit software and can therefore work only with the 32bit versions of the database drivers.
Regards,
Stratos
Edited by: Efstratios Karaivazoglou on Jul 15, 2009 4:49 PM -
JDBC, Oracle and sqlnet.ora
Our DBA's have recently decided to play musical ports with our database servers. They keep changing the ports to our Oracle database servers without telling us first. They're justification in not telling us is that we should be using the name server specified in the sqlnet.ora config.
Is it possible to use a name server with JDBC to determine the DSN info? I can't seem to find much info on it.That is a lousy predicament. I think you may be able
to work around it if you use the oci8 driver. See for
details:
http://download-west.oracle.com/otndoc/oracle9i/901_doc
java.901/a90211/connpoca.htm#1071294Yep, looks like oracle.jdbc.pool.OracleDataSource has support for it. Here's the OCI driver's javadoc:
public void setTNSEntryName(java.lang.String dbname)
Set the TNS entry name. Works only for JDBC OCI driver. Assumed that client side Oracle in installed and TNS_ADMIN env variable is set. If URL is set, this property will be ignored.
I swore I must have read this javadoc like 10 times before. Maybe I read the thin client one by mistake. shrug -
Sessions were still active eventhough Dead lock detected
Hi all,
Yesterday I saw very odd oracle behaviour.When oracle finds Dead lock it should kill those sessions automatically.In my case those two sessions were still trying to run the same update command and were casuing dead locks again and again for 1 Hour.I had to kill those sessions manually to avoid these dea lock.
How can those sessions were still trying eventhough dead lock detected and causing deadlocks.My logfile filled with this dead lock error.When I killed those sesions it end up with snap shot too old error.
Please suggest me
Thankshi
just ROLLBACK or COMMIT any one session. you will out of dead lock.
and one more thing is in dead lock situation the sessions were not terminated
and session wating for releasing locks aquire by another session
try this one if not work plz reply
have a nice time
best luck -
Tnsnames.ora, sqlnet.ora & listener.ora files are not exit
DB version: 10.2
Hello All,
I just joined the project and notice tnsnames.ora, sqlnet.ora & listener.ora files are not exit under $ORACLE_HOME/network/admin.
But still we can connect to the database,
From command prompt or via enterprise manager studio from client site.
Any idea?
OR
what is the best way to create above files in the existing database?
DNtnsnames.ora and sqlnet.ora are client side files, listener.ora and sqlnet.ora are server side files.
Listener.ora need not exist if using defaults and dynamic registration of services. It may be possible to cope without all those files, depending on the environment.
Is the database on the local or remote computer and how are you connecting (from sqlplus)?
Maybe you have a tnsnames.ora somwhere else? (Try using find command) Maybe TNS_ADMIN is set? -
If client-side and server-side software are located in different machines, basically, init.ora and listener.ora are located in the server-side, and tnsnames.ora and sqlnet.ora are located in the client-side, am I right?
The confusion comes because, as stated earlier by Sanjay, a server could also be a client...
Here a very simple example on one and only one Windows machine with the same user :
---here it is a connection as from client
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:36:38
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = phoenix)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEMO111P)))
OK (10 msec)
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:02 2009
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Personal Oracle Database 11g Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> quit
Disconnected from Personal Oracle Database 11g Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
--- we remove the sqlnet.ora
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>rename sqlnet.ora _sqlnet.ora
---here it is a connection as from client
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:37:30
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
TNS-03505: Failed to resolve name
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:11 2009
Copyright (c) 1982, 2008, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name:
---here it is a connection as from server, still working, in that case it does not use tnsnames/sqlnet
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>set ORACLE_SID=demo111p
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111
SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:37 2009
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Personal Oracle Database 11g Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>So, we are on server, the behaviour change depending what we are connecting with (client or server method).
Nicolas. -
ORA-06519: active autonomous transaction detected and rolled back
I am getting this error. when i am doing insert from my package Any solution to reslove this issue
ORA-06519: active autonomous transaction detected and rolled back . thanks
I am doing select - insert...Also, if you have any exception handler sections in the code,
then you have to add a commit or rollback statement for
every exception that is handled. -
Path of Sqlnet.ora and Tnsnames.ora
Hi all
Why I have one
Sqlnet.ora
in
C:\ORAWIN95\NETWORK\ADMIN
and
one in
C:\ORAWIN95\NET80\ADMIN
and
Tnsnames.ora
in
C:\ORAWIN95\NET80\ADMIN
and
C:\ORAWIN95\NETWORK\ADMIN
and
C:\ORAWIN95\NET80\TNSAPI
why they are duplicated?
thanks
SobrinhoIt looks like you have (or had) multiple versions of SQL*Net.
Oracle 8 put everything in %oracle_home%\net80 while Oracle 7 and 9 use %oracle_home%\network -
Disadvantages of SQLNET.EXPIRE_TIME in SQLNET.ORA
Hi,
Could any body tell me please what would be side effects and disadvantages of using SQLNET.EXPIRE_TIME parameter in the sqlnet.ora file when there are frequent network timeouts?
Does Oracle recommends network problems should be resolves or SQLNET.EXPIRE_TIME parameter is harmless to keep connectivity between clients and server?
ThanksHi,
it has affects on pmon, which maybe cleans up resources which are held by the "dead" shadow process. PMON will clean up after the expire_time, when there is no connection.
"Negative" effects... i don't have seen really negative affects... the network traffic maybe increase (depends on your amount of connections).. but this should not be a problem.
Regards
Stefan -
The documentation that I have states that SQLNET.EXPIRE_TIME is an obsolete option. What has taken its place?
And if you wish to get more suggestation then please read below links too :
1.Details in Metalink note as Anand provided.
How does Dead connection detection work?
2.How does Dead connection detection work?
3. Short and an interview reply :
http://yogeedba.blogspot.com/2008/02/oracle-dead-connection-detection.html
HTH
Girish Sharma -
Sqlnet.ora doesn't seem to be read since oci8 1.3.4
Hello,
I used to use oci8 version 1.2.3 and I wanted to update to last version (1.3.4). Everything works fine except the fact that "sqlnet.ora" does not seems to be read anymore.
I use the following string to describe my database in oci_connect: "MEN1PRD".
In sqlnet.ora there is the parameter NAMES.DEFAULT_DOMAIN which is set to "WORLD".
In the tnsname.ora I have a full definition for "MEN1PRD.WORLD".
With oci8 1.2.3, it worked but since I upgraded to 1.3.4 this is not the case anymore. I have to use the same ID in oci_connect and tnsname.org. The sqlnet.ora NAMES.DEFAULT_DOMAIN does not seem to be used anymore.
The version of php (5.2.3) is still the same, the configure options are the sames, the oracle lib is the same (9.2) and the php.ini parameters are the same too. I just changed the oci8 version.
Has anyone the same problem ? Is this a normal behaviour ? If yes, why
and is there a workaround ?
Thanks for your answers.
++ Jerome
Reproduce code:
Piece of code which used to work (version 1.2.3) and doesn't work
anymore (version 1.3.4):
$conn = oci_connect('EDUCATION', 'manager', 'MEN1PRD');
Piece of code which works (version 1.3.4):
$conn = oci_connect('EDUCATION', 'manager', 'MEN1PRD.WORLD');
Content of sqlnet.ora (which is in the same directory as tnsname.ora):
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
NAMES.DEFAULT_DOMAIN = WORLD
LOG_DIRECTORY_SERVER = /var/tmp
Contenat of tnsname.ora
MEN1PRD_RAC =
( DESCRIPTION =
( ADDRESS = ( PROTOCOL = TCP )( HOST = host1 )( PORT = 1521 ) )
( ADDRESS = ( PROTOCOL = TCP )( HOST = host2 )( PORT = 1521 ) )
( LOAD_BALANCE = yes )
( CONNECT_DATA =
( SERVER = DEDICATED )
( SERVICE_NAME = SN_MEN1PRD )
Init script:
export ORACLE_HOME=/usr/local/oracle/VERSIONS/Linux/CL.9.2.0
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/network/admin:$ORACLE_HOME/lib:/usr/local/bin
export ORACLE_SID=MEN1PRD
export HOSTNAME=`hostname`
export NLS_LANG=FRENCH_FRANCE.WE8ISO8859P15
export LC_ALL=fr_FR
export LANG=fr_FR
Expected result:
The connexion is made to the database
Actual result:
[Mon Feb 16 18:05:14 2009] [error] [client 127.0.0.1] PHP Warning:
oci_connect() [function.oci-connect]:
ORA-12154: TNS:could not resolve service name in /var/www/docs/test1.php
on line 2See http://pecl.php.net/bugs/bug.php?id=15988 It's a problem with 9.2 - 10.2.0.3, fixed in 10.2.0.4
Discussions about best solution is ongoing; currently centering around not using session pooling code path in PHP OCI8 when using Oracle prior to 11. -
Dead lock detected in alert log for HTMLDB application
We have a HTMLDB application newly impletemented in our database. One day, I found a ORA-000060 deadlock detected message in database alert log. Our developer said that the application is only for users to query something and will not insert, update or delete anything. I have created a tar but still not found any problem cause this. Can anyone tell why this occur?
Thanks in advance,
Antony
*** SESSION ID:(289.143) 2005-11-17 10:35:48.976
DEADLOCK DETECTED
Current SQL statement for this session:
DELETE FROM WWV_FLOW_DATA WHERE FLOW_INSTANCE = :B1 AND ITEM_ID IN (SELECT ID FROM WWV_FLOW_PAGE_PLUGS WHERE FLOW_ID = :B3 AND PAGE_ID = :B2 AND PLUG_SOURCE_TYPE IN ( 'SIMPLE_CHART', 'UPDATABLE_SQL_QUERY', 'DBMSSQL_CURSOR', 'FUNCTION_RETURNING_DBMSSQL_CURSOR', 'FUNCTION_RETURNING_SQL_QUERY_CACHED', 'FUNCTION_RETURNING_SQL_QUERY', 'STRUCTURED_QUERY', 'SQL_QUERY'))
----- PL/SQL Call Stack -----
object line object
handle number name
7000000bb989300 228 package body FLOWS_020000.WWV_FLOW_DISP_PAGE_PLUGS
7000000bbc922c8 8961 package body FLOWS_020000.WWV_FLOW
7000000bbd00000 236 procedure FLOWS_020000.F
7000000bdf1baa0 8 anonymous block
The following deadlock is not an ORACLE error. It is a
deadlock due to user error in the design of an application
or from issuing incorrect ad-hoc SQL. The following
information may aid in determining the deadlock:
Deadlock graph:
---------Blocker(s)-------- ---------Waiter(s)---------
Resource Name process session holds waits process session holds waits
TX-00050005-00756507 308 289 X 295 276 X
TX-0002000f-006fc0df 295 276 X 308 289 X
session 289: DID 0001-0134-00000005 session 276: DID 0001-0127-00000002
session 276: DID 0001-0127-00000002 session 289: DID 0001-0134-00000005Rakesh,
Please see if (ora-600 [12333] / ora-3137 [12333] Troubleshooting [ID 828123.1]) and/or (ORA-600 [12333] "Fatal Two-Task Protocol Violation" [ID 35928.1]) is applicable.
Did you try to bounce the database and see if you can reproduce the issue?
If you still encounter the same error, please log a SR.
Thanks,
Hussein
Maybe you are looking for
-
MacBook beeping and no longer booting OS X after Boot Camp
So yesterday I used Boot Camp (under 10.5.3) to install Windows XP onto my Mac. I installed it following the exact instructions from Apple. However I was having problems installing the drivers. The install would always hang and never go anywhere. So
-
PHP external authentication issue
Trying to login to AFCS connection using external authentication. PHP file generates a key correctly and everything seems to fine up until i get to using the key inside flex. at the login stage i get the following error in the console trace from the
-
Automatic screenshot to file using Snipping Tool?
Is it possible to use the Snipping Tool to automatically save a screenshot to file on regular intervals? Are there command line parameters that can be used to launch the executable that will take a screenshot and save it to a file? If so, I believe
-
CFHTTP with https not working after server IP change (CF 10, Windows Server 2008 R2)
Hi, We noticed that a call to https://www.googleapis.com/ via CFHTTP stopped working after our sysadmin switched the IP of our web server. The error from ColdFusion is: JSON parsing failure at character 1:'C' in Connection Failure After researching,
-
I cannot update my aps because I keep getting an old invalid email address to sign in although I deleted it and replaced it months ago. It is not mentioned anymore in my account . So why does it still come up and interfere?