Pro C program fails with [message #683471] |
Wed, 20 January 2021 03:29 |
|
brown_zzz
Messages: 39 Registered: August 2012 Location: United Kingdom
|
Member |
|
|
We have a pro*c process continually running that every 5 minutes reads from a materialised view 132,000 rows, does some processing and writes to another table. Approximately once a day (at different times) this is crashing with "ora-3114 not connected to oracle".
The Oracle documentation is very vague (network issue, Oracle shared pool size etc) but our other similar processes do not suffer the same issue apart from one which happens very rarely about once every few months.
Can anyone suggest a way forward please.
|
|
|
|
|
|
Re: Pro C program fails with [message #683475 is a reply to message #683474] |
Wed, 20 January 2021 07:24 |
|
Michel Cadot
Messages: 68728 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
So you connect with just username and password without any connection string?
Is there any idle time or connect time set to the profile of the user?
(Replace MICHEL by the list of your users.)
select u.username, p1.resource_name, decode(p1.limit, 'DEFAULT',p2.limit, p1.limit) limit
from dba_users u, dba_profiles p1, dba_profiles p2
where u.username in ('MICHEL')
and p1.profile = u.profile
and p1.resource_type = 'KERNEL'
and p2.profile = 'DEFAULT'
and p2.resource_name = p1.resource_name
order by 1, 2
/
[Updated on: Wed, 20 January 2021 07:48] Report message to a moderator
|
|
|
Re: Pro C program fails with [message #683485 is a reply to message #683475] |
Sat, 23 January 2021 00:37 |
|
NevemTeve
Messages: 25 Registered: November 2017
|
Junior Member |
|
|
Network connections can be lost for different reasons, this fact cannot be solved programmatically.
Nonetheless, you can start every periodic run with an `EXEC SQL COMMIT WORK` just to check the connection. It it fails (sqlca.sqlcode!=0), perform a disconnect+connect sequence. [And if that fails, too, then go back to sleep.]
[Updated on: Sat, 23 January 2021 00:39] Report message to a moderator
|
|
|
|
|