Solved

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

Posted on 2006-06-26
13
2,616 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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 54

Accepted Solution

by:
nico5038 earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now