472,949 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,949 software developers and data experts.

Oracle 10g RC2 ODBC Access - odbc failed - where xyz <> "S"


We have Problems with Access query on Oracle 10g Database with ODBC
Connection.

The Query_1 is such as
select *
from xtable
where ycolumn <"S"

Result = ODBC Faild
----------------------------------------------------
The Query_2
select *
from xtable
where ycolumn = "S"

is working.
The query_1 had worked even last month. But now it doesn't work any
more.
In mdb files where i don't link the oracle table new it just work too.
But we have much passthrough and the down work any more :(

Someone any ideas?

(With MS ORACLE ODBC Driver it works fine - but we have performance
problems with it.
Clients that dont work.

Client 1
Windows Server 2003
Oracle ODBC 9.2

Client 2
Windows XP
Oracle ODBC 10.2.0.1.0

Client 3
Windows XP
Oracle ODBC 10.2.0.3.0

Client 4
Windows XP
Oracle ODBC 10.2.0.2.0

Mar 17 '07 #1
16 9095
On Mar 17, 7:54 am, "network-admin" <Armin.Kra...@gmail.comwrote:
We have Problems with Access query on Oracle 10g Database with ODBC
Connection.

The Query_1 is such as
select *
from xtable
where ycolumn <"S"

Result = ODBC Faild
----------------------------------------------------
The Query_2
select *
from xtable
where ycolumn = "S"

is working.

The query_1 had worked even last month. But now it doesn't work any
more.
In mdb files where i don't link the oracle table new it just work too.
But we have much passthrough and the down work any more :(

Someone any ideas?

(With MS ORACLE ODBC Driver it works fine - but we have performance
problems with it.

Clients that dont work.

Client 1
Windows Server 2003
Oracle ODBC 9.2

Client 2
Windows XP
Oracle ODBC 10.2.0.1.0

Client 3
Windows XP
Oracle ODBC 10.2.0.3.0

Client 4
Windows XP
Oracle ODBC 10.2.0.2.0
I dunno, both of the following queries work for me (Oracle ODBC
10.2.0.1)...
1. Select query on linked Oracle table:

SELECT GDT_xtable.*
FROM GDT_xtable
WHERE (((GDT_xtable.ycolumn)<>"S"));
2. Pass-through query using Oracle ODBC:

select * from "xtable" where "ycolumn"<>'S'
Does the error message give you any other information in addition to
"ODBC -- Call failed"?

Mar 17 '07 #2
No, there is no more error code.

Its really strangely.
Old mdb files work fine until I relink Oracle table or link a new
Table that wasn't link before.

Mar 17 '07 #3
On Mar 17, 12:08 pm, "network-admin" <Armin.Kra...@gmail.comwrote:
No, there is no more error code.

Its really strangely.
Old mdb files work fine until I relink Oracle table or link a new
Table that wasn't link before.
Try checking the connection information that is saved when Access
links a table. Make a copy of one of the old mdb files where the
linked table still works. Open the database file, hit [Alt-F11] to
enter the VBA editor, hit [Ctrl-G] to open the Immediate Window (if it
isn't open already). Type

?CurrentDB.TableDefs("GDT_xtable").Connect

(substituting your linked table for "GDT_xtable") and hit [Enter].
Access should return a string like this:

ODBC;DSN=Oracle ODBC local
GDT;DBQ=XE ;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T ;RST=T;BTD=F;BAM=IfAllSuccessful;NUM=NLS;DPM=F;MTS =T;MDI=F;CSR=F;FWC=F;FBS=64000;TLO=O;

Re-link the table, verify that it doesn't work, then run the above
command again. How are the .Connect strings different, if at all?

BTW, if you're curious as to what those parameters mean, look here

http://download-east.oracle.com/docs...8/app_odbc.htm

Mar 17 '07 #4
You need to get at the Errors object for more detail whenever you get
an ODBC error.
Put this in your code and call it as soon as you trap an error:

Function ExpandedErrorMessage() As String
'Called when an ODBC type error is detected
'Looks through the Errors collection and documents all the errors
encountered
Dim MyErr
If Err.Number <0 Then
ExpandedErrorMessage = ExpandedErrorMessage & Err.Number & " " &
Err.Description & vbCrLf
End If
ExpandedErrorMessage = ExpandedErrorMessage & "Error Object:" & vbCrLf
For Each MyErr In Errors
ExpandedErrorMessage = ExpandedErrorMessage & MyErr.Number & ":" &
MyErr.Description & vbCrLf & " Source:" & MyErr.Source & vbCrLf
Next
End Function

Cheers

Terry Bell

Mar 18 '07 #5

:(
It is only working on few mdb files and if enter the code "?
CurrentDB.TableDefs("GDT_xtable").Connect"
It says Microsoft Oracle Driver.
Mar 19 '07 #6

okay i will test it.

I used Microsoft ODBC source trapping
i got following errors

[Oracle][ODBC][Ora]ORA-00942: Tabelle oder View nicht vorhanden
[Oracle][ODBC][Ora]ORA-01722: Ungültige Zahl

But if i use a "normal" sql it works and i don't get ORA-00942 code.
I don't select a number field so i don't understand how i can get
ORA-01722.

Mar 19 '07 #7
>if enter the code
>"?CurrentDB.TableDefs("GDT_xtable").Connect"
It says Microsoft Oracle Driver.
It sounds like the old files used Microsoft's driver. Perhaps your
queries never did work with Oracle's driver.
>But if i use a "normal" sql it works and i don't get ORA-00942 code.
What do you mean by "a 'normal' sql"?
>I don't select a number field so i don't understand how i can get
ORA-01722.
That error is often associated with implicit type conversions. What is
the DDL of the table you are using? Mine was

CREATE TABLE "xtable"
( "ycolumn" VARCHAR2(1),
"zcolumn" VARCHAR2(3)
)
/
On Mar 19, 10:40 am, "network-admin" <Armin.Kra...@gmail.comwrote:
okay i will test it.

I used Microsoft ODBC source trapping
i got following errors

[Oracle][ODBC][Ora]ORA-00942: Tabelle oder View nicht vorhanden
[Oracle][ODBC][Ora]ORA-01722: Ungültige Zahl

But if i use a "normal" sql it works and i don't get ORA-00942 code.
I don't select a number field so i don't understand how i can get
ORA-01722.

Mar 19 '07 #8
This i mean with "normal sql".
SELECT
SCHEMA.xtable.yolumn,
SCHEMA.xtable.acolumn
FROM
SCHEMA.FA
WHERE
SCHEMA.xtable.ycolumn = 'S' AND
SCHEMA.xtable.acolumn = 'IAB'

And this is the "problem sql"
SELECT
SCHEMA.xtable.yolumn,
SCHEMA.xtable.acolumn
FROM
SCHEMA.FA
WHERE
SCHEMA.xtable.ycolumn <'S' AND
SCHEMA.xtable.acolumn = 'IAB'

Its a big ddl i just insert the specific field or do you need all ?
CREATE TABLE "schema"."xtable" ( "acolumn" VARCHAR2(4), "num"
NUMBER(7), "FAKT_STATUS" VARCHAR2(1) DEFAULT 'A' ,
CONSTRAINT "KEY_FA" PRIMARY KEY ("acolumn", "num") VALIDATE )
TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255
STORAGE ( INITIAL 65536K BUFFER_POOL DEFAULT) LOGGING

I wanted to use an workaround, but i just have the same problem when i
use the following sql:
......WHERE
schema.ycolumn in ('R','K','A','B','F','G') AND schema.acolumn = 'IAB'

Mar 19 '07 #9
>Its a big ddl i just insert the specific field or do you need all ?

Try to recreate the error using a simplified table like the DDL you
posted.

Also, I notice that:

1. The DDL you posted does not include "ycolumn".

2. Your queries refer to "FA", which was not previously mentioned. Is
that a view?
On Mar 19, 1:24 pm, "network-admin" <Armin.Kra...@gmail.comwrote:
This i mean with "normal sql".
SELECT
SCHEMA.xtable.yolumn,
SCHEMA.xtable.acolumn
FROM
SCHEMA.FA
WHERE
SCHEMA.xtable.ycolumn = 'S' AND
SCHEMA.xtable.acolumn = 'IAB'

And this is the "problem sql"
SELECT
SCHEMA.xtable.yolumn,
SCHEMA.xtable.acolumn
FROM
SCHEMA.FA
WHERE
SCHEMA.xtable.ycolumn <'S' AND
SCHEMA.xtable.acolumn = 'IAB'

Its a big ddl i just insert the specific field or do you need all ?
CREATE TABLE "schema"."xtable" ( "acolumn" VARCHAR2(4), "num"
NUMBER(7), "FAKT_STATUS" VARCHAR2(1) DEFAULT 'A' ,
CONSTRAINT "KEY_FA" PRIMARY KEY ("acolumn", "num") VALIDATE )
TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255
STORAGE ( INITIAL 65536K BUFFER_POOL DEFAULT) LOGGING

I wanted to use an workaround, but i just have the same problem when i
use the following sql:
.....WHERE
schema.ycolumn in ('R','K','A','B','F','G') AND schema.acolumn = 'IAB'

Mar 19 '07 #10
FAKT_STATUS = ycolumn

FA = xtable

sorry my mistake

Mar 20 '07 #11
network-admin wrote:
And this is the "problem sql"
SELECT
SCHEMA.xtable.yolumn,
SCHEMA.xtable.acolumn
FROM
SCHEMA.FA
WHERE
SCHEMA.xtable.ycolumn <'S' AND
SCHEMA.xtable.acolumn = 'IAB'
Gord's suggestions on ddl issues notwithstanding, try using =! (or is it
!= - I'm at home right now, away from my Oracle DB).

I know in my particular user community (for a specific Oracle
application) that there were some problems with ODBC connection to
version 10g. I believe (going by memory) that the actual Oracle ODBC
driver had to be replaced with the MS driver!!! We are on 9i right now
and I am positively dreading the eventual move to 10g.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Mar 20 '07 #12
On 18 Mrz., 06:11, dreadnoug...@hotmail.com wrote:
You need to get at the Errors object for more detail whenever you get
an ODBC error.
Put this in your code and call it as soon as you trap an error:

Function ExpandedErrorMessage() As String
'Called when an ODBC type error is detected
'Looks through the Errors collection and documents all the errors
encountered
Dim MyErr
If Err.Number <0 Then
ExpandedErrorMessage = ExpandedErrorMessage & Err.Number & " " &
Err.Description & vbCrLf
End If
ExpandedErrorMessage = ExpandedErrorMessage & "Error Object:" & vbCrLf
For Each MyErr In Errors
ExpandedErrorMessage = ExpandedErrorMessage & MyErr.Number & ":" &
MyErr.Description & vbCrLf & " Source:" & MyErr.Source & vbCrLf
Next
End Function

Cheers

Terry Bell
okay i got it :)

3146 odbc aufruf fehlgeschlagen

error object
[oracle][odbc]restricted data type attribute violation
[oracle][odbc]s1c00driver not capable

source odbc.field
3146 odbc aufruf fehlgeschlagen

source dao.field
Mar 20 '07 #13
On 18 Mrz., 06:11, dreadnoug...@hotmail.com wrote:
You need to get at the Errors object for more detail whenever you get
an ODBC error.
Put this in your code and call it as soon as you trap an error:

Function ExpandedErrorMessage() As String
'Called when an ODBC type error is detected
'Looks through the Errors collection and documents all the errors
encountered
Dim MyErr
If Err.Number <0 Then
ExpandedErrorMessage = ExpandedErrorMessage & Err.Number & " " &
Err.Description & vbCrLf
End If
ExpandedErrorMessage = ExpandedErrorMessage & "Error Object:" & vbCrLf
For Each MyErr In Errors
ExpandedErrorMessage = ExpandedErrorMessage & MyErr.Number & ":" &
MyErr.Description & vbCrLf & " Source:" & MyErr.Source & vbCrLf
Next
End Function

Cheers

Terry Bell
I got but i don't understand the code

3265 elemnt in der auflistung nicht gefunden

error objects
3265:
element in dieser auflistung nicht gefunden
source: dao.fields

in english: element in the listing not found or better cell in the
listing not found

Mar 20 '07 #14
okay

mini table works fine.

but odbc connect is different

work:
Leerzeichen
BNF=F;
qto=T ( T implies that query timeout is to be enabled.)
TLO=O (Letter 0)

don't work
QTO=F (F implies that query timeout is to be disabled.)
TLO=0 (Number 0)

i don't find in internet what tlo is!

Mar 20 '07 #15
On Mar 20, 2:33 pm, "network-admin" <Armin.Kra...@gmail.comwrote:
okay

mini table works fine.

but odbc connect is different

work:
Leerzeichen
BNF=F;
qto=T ( T implies that query timeout is to be enabled.)
TLO=O (Letter 0)

don't work
QTO=F (F implies that query timeout is to be disabled.)
TLO=0 (Number 0)

i don't find in internet what tlo is!
According to...

http://www.oracle.com/technology/sof...cs/ODBCFAQ.pdf

....TLO refers to the "Translation Option". It apparently relates to
National Language Support (NLS). More info here:

http://www.oracle.com/technology/tec...lang%20faq.htm

Mar 20 '07 #16

I made a mistake - the odbc connect is the same.

With a new table it works :( but with the orginal not.

ddl of the test table

CREATE TABLE "schema"."ARMIN_TEST" ( "ART" VARCHAR2(4), "NR"
NUMBER(7), "STATUS" VARCHAR2(1) DEFAULT 'A' , CONSTRAINT
"KEY_ARMIN_TEST" PRIMARY KEY ("ART", "NR") VALIDATE ) TABLESPACE
"USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 64K
BUFFER_POOL DEFAULT) LOGGING

Mar 21 '07 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Robert Zierhofer | last post by:
Hi all, I currently face a problem with htmlentities and german "umlaute". After moving my scripts to a new box (from Linux to FreeBSD) I had to see that htmlentities is not working anymore....
18
by: Tuckers | last post by:
My question is, if I have created my own library which lives in its own install directory, to refer to its header file is it better to use #include "MyLibrary.h" or #include <MyLibrary.h> ...
1
by: bonnie.tangyn | last post by:
Hello all I get Too few parameters expected 2 error and "The MS Jet Database engine cannot find the input table or query "myTempTablename". Make sure it exists and that its name is spelled...
4
by: thaytu888888 | last post by:
Here is my codes in aspx page: <td colspan="2" class="main_menu" runat="server" onclick='toggleDisplay(<%#Eval("description")%>);'><%#Eval("description")%></td> Here is in "View source": ...
1
by: silverachilles | last post by:
Hello, I have php code which takes an rss feed and outputs it on a page of my website. For each item it shows the link, title and description. My problem is the description element contains a lot...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.