Solved

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

Posted on 2006-06-26
13
2,656 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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…

770 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