![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, In my VB 6.0 code, I have tried to connect to oracle-database, but program just hang (even there is no exception !!!) Code is : In alert.log there is a massage (it sometimes occurs when the above hang, but not always when the program hangs) : SMON: Parallel transaction recovery tried The code in brief: -------------------- Public OraCon As New ADODB.Connection Public mainConnectionStr As String ... public sub connectToDB * On Error GoTo connectToDB_err * mainConnectionStr = ... * OraCon.ConnectionString = mainConnectionStr * Call OraCon.Open ' ***** here programs hang sometimes ****** * * * * * * * * * * * * * * * * ' ***** also, when hang - not always there is a line on alert.log, but sometimes there is. ****** * goto end_proc connectToDB_err: ' ****** when the above error, this code is never reachable ******* * msgBox "" & err.number & "," & err.description end_proc: end sub What may be the cause for the above problem ? Thanks ![]() |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
David Fitzjarrell wrote : ----------------------- You'll need to post the connection string details and the Oracle release (all four numbers) *before anyone can assist you. *What you've posted is of little use in diagnosing your problem. ------------------------ O.K connection string is : Provider=OraOLEDB.Oracle;Data Source=***;User ID=***;Password=*** And the oracle version is Oracle 9i. Oracle9i Release 9.2.0.6.0 JServer Release 9.2.0.6.0 |
#5
| |||
| |||
|
|
Hello, In my VB 6.0 code, I have tried to connect to oracle-database, but program just hang (even there is no exception !!!) Code is : In alert.log there is a massage (it sometimes occurs when the above hang, but not always when the program hangs) : SMON: Parallel transaction recovery tried The code in brief: -------------------- Public OraCon As New ADODB.Connection Public mainConnectionStr As String ... public sub connectToDB * On Error GoTo connectToDB_err * mainConnectionStr = ... * OraCon.ConnectionString = mainConnectionStr * Call OraCon.Open ' ***** here programs hang sometimes ****** * * * * * * * * * * * * * * * * ' ***** also, when hang - not always there is a line on alert.log, but sometimes there is. ****** * goto end_proc connectToDB_err: ' ****** when the above error, this code is never reachable ******* * msgBox "" & err.number & "," & err.description end_proc: end sub What may be the cause for the above problem ? Thanks ![]() |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Thanks. As david said : connection 'sometimes hang', but it isn't a regular occurrence (He just explained what I have written, in simplier English). So I don't think there is mistake on tnsnames.ora, since the problem isn'ta regular occurence. But I would add the code, as you suggested, with timeout = 30 * (The current situation is as I did : OraCon.CursorLocation = adUseClient, but after OraCon.Open * (maybe mistakenly, but I suppose, adUseClient is the default ... ). ) I don't know if it is Oracle or not (maybe, network), and BTW, the server and the client are at the same machine (the process is on the server). It may be problem if I do tracing, because the problem may happens not so so often (once a day, and sometimes there is not a problem for several days ...) Please give me briefly what should I do in advanced. Thanks ![]() |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Thanks ... Some things : I am sorry for my bad English, so in some cases I may be understood : Client <-> Server : I didn't mean that there is a user that running a specific application on the server. I call for the Server : Oracle, and the Client : my program, that runs by a windows-schedule. (On the machine : Windows 2000). Also, the only message I have seen on listener.ora is TNS-12514: TNS:listener does not currently know of service requested in connect descriptor (and I see it occured when running sql-plus, once for some debugging , and the schedule-programs don't hang at that time...) In Sqlnet.ora I have messages that related to the programs of my schedules, the same as you described. (long time ago, and not when my programs hang last time) - that seems to be weird - is that related to the problem I have describe on first time ? (the programs still hang once for 1-3 days generally - like lottery - I don't know exactly when and which of my schedules ...). Thanks ![]() |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |