[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ODBC --call failed: [Oracle][ODBC][Ora]ORA-03114: Not connected to ORACLE (#3114)

Posted on 2006-06-26
13
Medium Priority
?
2,818 Views
Last Modified: 2012-05-05
We have an application with an Access 2002 Front end, linked via Oracle's ODBC driver to Oracle 8.1.5 databases running on 2 IBM RS6000's under UNIX.  Much of the coding of the application is done using Oracle triggers.

With the application is an Access "Comprehensive" report that retrieves data from 2 RS6000's, as well as documents stored on Windows 2000 servers and prepares a PDF of every form and document pertaining to the report using Adobe Acrobat 6.0 with Adobe SDK.  At the beginning of its run, using Oracle triggers, the report loads all data from the RS6000 into temporary tables in the microsoft access database.

Too often, when one instance of the report and multiple instances of the application are running, all will terminate with the error "ODBC --call failed: [Oracle][ODBC][Ora]ORA-03114: Not connected to ORACLE (#3114)".

How do I rectify this problem as Comprehensive reports must be run throughout the day?  Are there any settings on the Oracle ODBC driver than can rectify this?   Both the Application and the Comprehensive report are mde files.

sjl
0
Comment
Question by:sjlevine34
  • 7
  • 6
13 Comments
 
LVL 54

Expert Comment

by:nico5038
ID: 16987745
Guess you need to set the timeout parameter "higher".
Open your query and select the properties, the timeout is by default 60, but I use 600 in general.

Nic;o)
0
 
LVL 1

Author Comment

by:sjlevine34
ID: 16987788
Is there a way to set this globally and for tables?  The application generally writes information to one or several fields in an Oracle table, which then uses Oracle Triggers to complete the remainder of the data pull, either to that or other tables.  Access then pulls the data from the linked tables into its own.

sjl
0
 
LVL 54

Expert Comment

by:nico5038
ID: 16987881
Not that I know of, but are you using "PassThrough" queries ?

Nic;o)
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 1

Author Comment

by:sjlevine34
ID: 16987932
I am not using passthrough queries.

I am writing to fields in Oracle tables, and using PL/SQL triggers to retrieve the data from the Oracle database into those tables.   However, in the report, I am using queries to transfer data from the Oracle tables to the local Access temporary tables and those queries have the ODBC timeout property of which you speak.  The application does not use Access queries for its main functions, depending instead on Oracle triggers activated when data written to fields.

sjl
0
 
LVL 54

Expert Comment

by:nico5038
ID: 16987970
Just check the helpfile for the Passthrough queries.
They save time as they are in Oracle SQL written and the query will be executed by the Oracle database engine and inly return the resulting rows. An Access query will first grab all tablerows and then apply the where part, thus putting a lot of unnecessary data over your connection...

Nic;o)
0
 
LVL 1

Author Comment

by:sjlevine34
ID: 16988122
The only problem I now am running into is that I have my search criteria in an access table.  Is there any way to work it into the query without having to create an oracle table for it?  If I do an Oracle table, I have to distinguish records by session ids to allow for multuser use.

sjl
0
 
LVL 54

Accepted Solution

by:
nico5038 earned 2000 total points
ID: 16988197
You can manipulate the passthrough query by code, as long as you make sure the syntax is OK for Oracle.
Code would look like:

dim qd as DAO.querydef

set qd = currentdb.querydefs("PassThroughQueryName")
qd.SQL = "select a, b, c from tblX where ....."

after the assign statement the query can be used directly.

Nic;o)
0
 
LVL 1

Author Comment

by:sjlevine34
ID: 16992198
Thank you very much.
0
 
LVL 54

Expert Comment

by:nico5038
ID: 16994087
Glad I could help, when this is answering your question than you can close the question by accepting the appropriate comment :-)

Nic;o)
0
 
LVL 1

Author Comment

by:sjlevine34
ID: 16994139
I just need to try your solution out first, which I have scheduled to do late this week and early next week.  If it works, I will close it out and award points.  If I run into some issues, I would like to be able to ask further questions.

I apologize for not being able to get to try your solution sooner, but management wants me to complete another project they need in order to meet a timetable involving the whole organization.  But then they definitely want me to try this solution, and I already told them I think it will work.

Again, appreciate your help, tremendously.

sjl
0
 
LVL 54

Expert Comment

by:nico5038
ID: 16994293
No problem, keep me posted :-)

Nic;o)
0
 
LVL 1

Author Comment

by:sjlevine34
ID: 17072673
The passthru printing worked very nicely.

sjl
0
 
LVL 54

Expert Comment

by:nico5038
ID: 17073423
Glad I could help, success with the application !

Nic;o)
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question