dbTalk Databases Forums  

Problem with SQL10 and Microsoft ODBC for Oracle

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Problem with SQL10 and Microsoft ODBC for Oracle in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jc
 
Posts: n/a

Default Problem with SQL10 and Microsoft ODBC for Oracle - 11-16-2007 , 06:02 AM






i 'd like create a proxy server with SQL 10 but the connexion failed.

First test:
one DB sql9 with proxy server using the Microsoft ODBC for Oracle (PC
windows 2000). test OK.

Second test
one DB sql9 with proxy server using the Microsoft ODBC for oracle (PC
Windows XP pro Service pack 2); Tets OK

Last test
ON DB sql10 with proxy server using the same Microsoft ODBC for Oracle (PC
Windows XP pro Service Pack 2). No OK.

I receive this message
[Microsoft][ODBC fdriver for Oracle][Oracle]ORA-12154: TNS:could not
resolve service name

Why it's OK into second test and not into Last test?

Problem with SqlAnywhere 10?

Thank's

JCC



Reply With Quote
  #2  
Old   
Stephen Rice
 
Posts: n/a

Default Re: Problem with SQL10 and Microsoft ODBC for Oracle - 11-16-2007 , 09:50 AM






Two traces that might help:
1) and ODBC trace from the ODBC Driver manager
2) set the option CIS_OPTION to 7 in SQL10. This dumps a bunch of tracing
information when you access the proxy

--
/steve
Stephen Rice
Sybase iAnywhere

"jc" <jc.cuppens (AT) mouscron (DOT) be> wrote

Quote:
i 'd like create a proxy server with SQL 10 but the connexion failed.

First test:
one DB sql9 with proxy server using the Microsoft ODBC for Oracle (PC
windows 2000). test OK.

Second test
one DB sql9 with proxy server using the Microsoft ODBC for oracle (PC
Windows XP pro Service pack 2); Tets OK

Last test
ON DB sql10 with proxy server using the same Microsoft ODBC for Oracle (PC
Windows XP pro Service Pack 2). No OK.

I receive this message
[Microsoft][ODBC fdriver for Oracle][Oracle]ORA-12154: TNS:could not
resolve service name

Why it's OK into second test and not into Last test?

Problem with SqlAnywhere 10?

Thank's

JCC




Reply With Quote
  #3  
Old   
jc
 
Posts: n/a

Default Re: Problem with SQL10 and Microsoft ODBC for Oracle - 11-19-2007 , 03:21 AM



Hello

i receive this message into sql AnyWhere 10 console:

Connect to 'tintin 172.30.0.241 2007-11-19 09:48:58.783' class 'oraodbc'
using 'persora'
ODBC error (01000). [Microsoft][Gestionnaire de pilotes ODBC] Le pilote ne
gère pas la version du comportement ODBC demandé par l'application (voir
SQLSetEnvAttr).
ODBC error (08001). [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154:
TNS:could not resolve service name

Sorry, but one part of this message in french.

Thank's

JCC

"Stephen Rice" <srice[at]sybase[dot]com> a écrit dans le message de news:
473dbc32$1 (AT) forums-1-dub (DOT) ..
Quote:
Two traces that might help:
1) and ODBC trace from the ODBC Driver manager
2) set the option CIS_OPTION to 7 in SQL10. This dumps a bunch of tracing
information when you access the proxy

--
/steve
Stephen Rice
Sybase iAnywhere

"jc" <jc.cuppens (AT) mouscron (DOT) be> wrote in message
news:473d86ba (AT) forums-1-dub (DOT) ..
i 'd like create a proxy server with SQL 10 but the connexion failed.

First test:
one DB sql9 with proxy server using the Microsoft ODBC for Oracle (PC
windows 2000). test OK.

Second test
one DB sql9 with proxy server using the Microsoft ODBC for oracle (PC
Windows XP pro Service pack 2); Tets OK

Last test
ON DB sql10 with proxy server using the same Microsoft ODBC for Oracle
(PC Windows XP pro Service Pack 2). No OK.

I receive this message
[Microsoft][ODBC fdriver for Oracle][Oracle]ORA-12154: TNS:could not
resolve service name

Why it's OK into second test and not into Last test?

Problem with SqlAnywhere 10?

Thank's

JCC






Reply With Quote
  #4  
Old   
Chris Keating (Sybase iAnywhere)
 
Posts: n/a

Default Re: Problem with SQL10 and Microsoft ODBC for Oracle - 11-19-2007 , 07:00 AM



"TNS:could not resolve service name" indicates that you have not
provided the correct information in the DSN to reference the service
(the Oracle database) that you want to use. Please post the content of
the DSN and the ORACLE server information (IIRC there is an TNS file
that holds this information ). Someone may be able to suggest what is
incorrect.



jc wrote:
Quote:
Hello

i receive this message into sql AnyWhere 10 console:

Connect to 'tintin 172.30.0.241 2007-11-19 09:48:58.783' class 'oraodbc'
using 'persora'
ODBC error (01000). [Microsoft][Gestionnaire de pilotes ODBC] Le pilote ne
gère pas la version du comportement ODBC demandé par l'application (voir
SQLSetEnvAttr).
ODBC error (08001). [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154:
TNS:could not resolve service name

Sorry, but one part of this message in french.

Thank's

JCC

"Stephen Rice" <srice[at]sybase[dot]com> a écrit dans le message de news:
473dbc32$1 (AT) forums-1-dub (DOT) ..
Two traces that might help:
1) and ODBC trace from the ODBC Driver manager
2) set the option CIS_OPTION to 7 in SQL10. This dumps a bunch of tracing
information when you access the proxy

--
/steve
Stephen Rice
Sybase iAnywhere

"jc" <jc.cuppens (AT) mouscron (DOT) be> wrote in message
news:473d86ba (AT) forums-1-dub (DOT) ..
i 'd like create a proxy server with SQL 10 but the connexion failed.

First test:
one DB sql9 with proxy server using the Microsoft ODBC for Oracle (PC
windows 2000). test OK.

Second test
one DB sql9 with proxy server using the Microsoft ODBC for oracle (PC
Windows XP pro Service pack 2); Tets OK

Last test
ON DB sql10 with proxy server using the same Microsoft ODBC for Oracle
(PC Windows XP pro Service Pack 2). No OK.

I receive this message
[Microsoft][ODBC fdriver for Oracle][Oracle]ORA-12154: TNS:could not
resolve service name

Why it's OK into second test and not into Last test?

Problem with SqlAnywhere 10?

Thank's

JCC





Reply With Quote
  #5  
Old   
jc
 
Posts: n/a

Default Re: Problem with SQL10 and Microsoft ODBC for Oracle - 11-19-2007 , 09:36 AM



with iAnywehere ODBC for Oracle outside ASA10 the connexion test is OK but
failed inside ASA10.


"Chris Keating (Sybase iAnywhere)" <keating_spam_free (AT) ianywhere (DOT) com> a écrit
dans le message de news: 474188ea$1 (AT) forums-1-dub (DOT) ..
Quote:
"TNS:could not resolve service name" indicates that you have not provided
the correct information in the DSN to reference the service (the Oracle
database) that you want to use. Please post the content of the DSN and the
ORACLE server information (IIRC there is an TNS file that holds this
information ). Someone may be able to suggest what is incorrect.



jc wrote:
Hello

i receive this message into sql AnyWhere 10 console:

Connect to 'tintin 172.30.0.241 2007-11-19 09:48:58.783' class 'oraodbc'
using 'persora'
ODBC error (01000). [Microsoft][Gestionnaire de pilotes ODBC] Le pilote
ne gère pas la version du comportement ODBC demandé par l'application
(voir SQLSetEnvAttr).
ODBC error (08001). [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154:
TNS:could not resolve service name

Sorry, but one part of this message in french.

Thank's

JCC

"Stephen Rice" <srice[at]sybase[dot]com> a écrit dans le message de news:
473dbc32$1 (AT) forums-1-dub (DOT) ..
Two traces that might help:
1) and ODBC trace from the ODBC Driver manager
2) set the option CIS_OPTION to 7 in SQL10. This dumps a bunch of
tracing information when you access the proxy

--
/steve
Stephen Rice
Sybase iAnywhere

"jc" <jc.cuppens (AT) mouscron (DOT) be> wrote in message
news:473d86ba (AT) forums-1-dub (DOT) ..
i 'd like create a proxy server with SQL 10 but the connexion failed.

First test:
one DB sql9 with proxy server using the Microsoft ODBC for Oracle (PC
windows 2000). test OK.

Second test
one DB sql9 with proxy server using the Microsoft ODBC for oracle (PC
Windows XP pro Service pack 2); Tets OK

Last test
ON DB sql10 with proxy server using the same Microsoft ODBC for Oracle
(PC Windows XP pro Service Pack 2). No OK.

I receive this message
[Microsoft][ODBC fdriver for Oracle][Oracle]ORA-12154: TNS:could not
resolve service name

Why it's OK into second test and not into Last test?

Problem with SqlAnywhere 10?

Thank's

JCC





Reply With Quote
  #6  
Old   
Chris Keating (Sybase iAnywhere)
 
Posts: n/a

Default Re: Problem with SQL10 and Microsoft ODBC for Oracle - 11-19-2007 , 12:54 PM



it is helpful to get the messages that you are seeing when the problem
occurs. The message can help determine the issue for a problem that can
be manifested in many ways...

jc wrote:
Quote:
with iAnywehere ODBC for Oracle outside ASA10 the connexion test is OK but
failed inside ASA10.


"Chris Keating (Sybase iAnywhere)" <keating_spam_free (AT) ianywhere (DOT) com> a écrit
dans le message de news: 474188ea$1 (AT) forums-1-dub (DOT) ..
"TNS:could not resolve service name" indicates that you have not provided
the correct information in the DSN to reference the service (the Oracle
database) that you want to use. Please post the content of the DSN and the
ORACLE server information (IIRC there is an TNS file that holds this
information ). Someone may be able to suggest what is incorrect.



jc wrote:
Hello

i receive this message into sql AnyWhere 10 console:

Connect to 'tintin 172.30.0.241 2007-11-19 09:48:58.783' class 'oraodbc'
using 'persora'
ODBC error (01000). [Microsoft][Gestionnaire de pilotes ODBC] Le pilote
ne gère pas la version du comportement ODBC demandé par l'application
(voir SQLSetEnvAttr).
ODBC error (08001). [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154:
TNS:could not resolve service name

Sorry, but one part of this message in french.

Thank's

JCC

"Stephen Rice" <srice[at]sybase[dot]com> a écrit dans le message de news:
473dbc32$1 (AT) forums-1-dub (DOT) ..
Two traces that might help:
1) and ODBC trace from the ODBC Driver manager
2) set the option CIS_OPTION to 7 in SQL10. This dumps a bunch of
tracing information when you access the proxy

--
/steve
Stephen Rice
Sybase iAnywhere

"jc" <jc.cuppens (AT) mouscron (DOT) be> wrote in message
news:473d86ba (AT) forums-1-dub (DOT) ..
i 'd like create a proxy server with SQL 10 but the connexion failed.

First test:
one DB sql9 with proxy server using the Microsoft ODBC for Oracle (PC
windows 2000). test OK.

Second test
one DB sql9 with proxy server using the Microsoft ODBC for oracle (PC
Windows XP pro Service pack 2); Tets OK

Last test
ON DB sql10 with proxy server using the same Microsoft ODBC for Oracle
(PC Windows XP pro Service Pack 2). No OK.

I receive this message
[Microsoft][ODBC fdriver for Oracle][Oracle]ORA-12154: TNS:could not
resolve service name

Why it's OK into second test and not into Last test?

Problem with SqlAnywhere 10?

Thank's

JCC



Reply With Quote
  #7  
Old   
Chris Keating (Sybase iAnywhere)
 
Posts: n/a

Default Re: Problem with SQL10 and Microsoft ODBC for Oracle - 11-19-2007 , 01:13 PM



Drop .world in the ODBC service name. .world only has context in the TNS
file AFAIK and I am somewhat surprised that it was able to work in 9.x
with that option. In my tests, I get a different error than you but both
errors basically indicate that the service name in the DSN is incorrect.

jc wrote:
Quote:
Content of tsnames.ora

pers.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SPERSEE)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = pers.world)
)
)

Into ASA 9
I create one proxy server perso with DSN "perso" and UID and PASS et Read
only access. Test connexion OK. i can create proxy tables

Into ASA10
I use the same procedure into ASA 10, same DSN, same UID and PASS. test
connexion failed.

JCC


"Chris Keating (Sybase iAnywhere)" <keating_spam_free (AT) ianywhere (DOT) com> a écrit
dans le message de news: 474188ea$1 (AT) forums-1-dub (DOT) ..
"TNS:could not resolve service name" indicates that you have not
provided the correct information in the DSN to reference the service
(the Oracle database) that you want to use. Please post the content of
the DSN and the ORACLE server information (IIRC there is an TNS file
that holds this information ). Someone may be able to suggest what is
incorrect.



jc wrote:
Hello

i receive this message into sql AnyWhere 10 console:

Connect to 'tintin 172.30.0.241 2007-11-19 09:48:58.783' class 'oraodbc'
using 'persora'
ODBC error (01000). [Microsoft][Gestionnaire de pilotes ODBC] Le pilote
ne
gère pas la version du comportement ODBC demandé par l'application (voir
SQLSetEnvAttr).
ODBC error (08001). [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154:
TNS:could not resolve service name

Sorry, but one part of this message in french.

Thank's

JCC

"Stephen Rice" <srice[at]sybase[dot]com> a écrit dans le message de news:
473dbc32$1 (AT) forums-1-dub (DOT) ..
Two traces that might help:
1) and ODBC trace from the ODBC Driver manager
2) set the option CIS_OPTION to 7 in SQL10. This dumps a bunch of
tracing
information when you access the proxy

--
/steve
Stephen Rice
Sybase iAnywhere

"jc" <jc.cuppens (AT) mouscron (DOT) be> wrote in message
news:473d86ba (AT) forums-1-dub (DOT) ..
i 'd like create a proxy server with SQL 10 but the connexion failed.

First test:
one DB sql9 with proxy server using the Microsoft ODBC for Oracle (PC
windows 2000). test OK.

Second test
one DB sql9 with proxy server using the Microsoft ODBC for oracle (PC
Windows XP pro Service pack 2); Tets OK

Last test
ON DB sql10 with proxy server using the same Microsoft ODBC for Oracle
(PC Windows XP pro Service Pack 2). No OK.

I receive this message
[Microsoft][ODBC fdriver for Oracle][Oracle]ORA-12154: TNS:could not
resolve service name

Why it's OK into second test and not into Last test?

Problem with SqlAnywhere 10?

Thank's

JCC





Reply With Quote
  #8  
Old   
jc
 
Posts: n/a

Default Re: Problem with SQL10 and Microsoft ODBC for Oracle - 11-20-2007 , 03:36 AM



i have dropped .world in ODBC service name but no change. Always the same
error. (Oracle 8i)

"Chris Keating (Sybase iAnywhere)" <keating_spam_free (AT) ianywhere (DOT) com> a écrit
dans le message de news: 4741e050$1 (AT) forums-1-dub (DOT) ..
Quote:
Drop .world in the ODBC service name. .world only has context in the TNS
file AFAIK and I am somewhat surprised that it was able to work in 9.x
with that option. In my tests, I get a different error than you but both
errors basically indicate that the service name in the DSN is incorrect.

jc wrote:
Content of tsnames.ora

pers.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SPERSEE)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = pers.world)
)
)

Into ASA 9
I create one proxy server perso with DSN "perso" and UID and PASS et Read
only access. Test connexion OK. i can create proxy tables

Into ASA10
I use the same procedure into ASA 10, same DSN, same UID and PASS. test
connexion failed.

JCC


"Chris Keating (Sybase iAnywhere)" <keating_spam_free (AT) ianywhere (DOT) com> a
écrit dans le message de news: 474188ea$1 (AT) forums-1-dub (DOT) ..
"TNS:could not resolve service name" indicates that you have not
provided the correct information in the DSN to reference the service
(the Oracle database) that you want to use. Please post the content of
the DSN and the ORACLE server information (IIRC there is an TNS file
that holds this information ). Someone may be able to suggest what is
incorrect.



jc wrote:
Hello

i receive this message into sql AnyWhere 10 console:

Connect to 'tintin 172.30.0.241 2007-11-19 09:48:58.783' class
'oraodbc'
using 'persora'
ODBC error (01000). [Microsoft][Gestionnaire de pilotes ODBC] Le pilote
ne
gère pas la version du comportement ODBC demandé par l'application
(voir
SQLSetEnvAttr).
ODBC error (08001). [Microsoft][ODBC driver for
Oracle][Oracle]ORA-12154:
TNS:could not resolve service name

Sorry, but one part of this message in french.

Thank's

JCC

"Stephen Rice" <srice[at]sybase[dot]com> a écrit dans le message de
news:
473dbc32$1 (AT) forums-1-dub (DOT) ..
Two traces that might help:
1) and ODBC trace from the ODBC Driver manager
2) set the option CIS_OPTION to 7 in SQL10. This dumps a bunch of
tracing
information when you access the proxy

--
/steve
Stephen Rice
Sybase iAnywhere

"jc" <jc.cuppens (AT) mouscron (DOT) be> wrote in message
news:473d86ba (AT) forums-1-dub (DOT) ..
i 'd like create a proxy server with SQL 10 but the connexion failed.

First test:
one DB sql9 with proxy server using the Microsoft ODBC for Oracle (PC
windows 2000). test OK.

Second test
one DB sql9 with proxy server using the Microsoft ODBC for oracle (PC
Windows XP pro Service pack 2); Tets OK

Last test
ON DB sql10 with proxy server using the same Microsoft ODBC for
Oracle
(PC Windows XP pro Service Pack 2). No OK.

I receive this message
[Microsoft][ODBC fdriver for Oracle][Oracle]ORA-12154: TNS:could not
resolve service name

Why it's OK into second test and not into Last test?

Problem with SqlAnywhere 10?

Thank's

JCC





Reply With Quote
  #9  
Old   
jc
 
Posts: n/a

Default Re: Problem with SQL10 and Microsoft ODBC for Oracle - 11-20-2007 , 03:38 AM



Message with Ianywhere for oracle: (oracle 8i)

La connexion a échoué
La connexion au serveur 'perso 172.30.0.241 2007-11-20 10:38:00.580' n'a pas
pu être établie : [Microsoft][Gestionnaire de pilotes ODBC] Échec
SQLAllocHandle du pilote sur SQL_HANDLE_ENV
[Sybase][ODBC Driver][SQL Anywhere]La connexion au serveur 'perso
172.30.0.241 2007-11-20 10:38:00.580' n'a pas pu être établie :
[Microsoft][Gestionnaire de pilotes ODBC] Échec SQLAllocHandle du pilote sur
SQL_HANDLE_ENV
SQLCODE: -656
SQLSTATE: HY000
SQL Statement: DROP SERVER "perso 172.30.0.241 2007-11-20 10:38:00.580"

No problem with ASA9, only with ASA10


"Chris Keating (Sybase iAnywhere)" <keating_spam_free (AT) ianywhere (DOT) com> a écrit
dans le message de news: 4741dbc9$4 (AT) forums-1-dub (DOT) ..
Quote:
it is helpful to get the messages that you are seeing when the problem
occurs. The message can help determine the issue for a problem that can be
manifested in many ways...

jc wrote:
with iAnywehere ODBC for Oracle outside ASA10 the connexion test is OK
but failed inside ASA10.


"Chris Keating (Sybase iAnywhere)" <keating_spam_free (AT) ianywhere (DOT) com> a
écrit dans le message de news: 474188ea$1 (AT) forums-1-dub (DOT) ..
"TNS:could not resolve service name" indicates that you have not
provided the correct information in the DSN to reference the service
(the Oracle database) that you want to use. Please post the content of
the DSN and the ORACLE server information (IIRC there is an TNS file
that holds this information ). Someone may be able to suggest what is
incorrect.



jc wrote:
Hello

i receive this message into sql AnyWhere 10 console:

Connect to 'tintin 172.30.0.241 2007-11-19 09:48:58.783' class
'oraodbc' using 'persora'
ODBC error (01000). [Microsoft][Gestionnaire de pilotes ODBC] Le pilote
ne gère pas la version du comportement ODBC demandé par l'application
(voir SQLSetEnvAttr).
ODBC error (08001). [Microsoft][ODBC driver for
Oracle][Oracle]ORA-12154: TNS:could not resolve service name

Sorry, but one part of this message in french.

Thank's

JCC

"Stephen Rice" <srice[at]sybase[dot]com> a écrit dans le message de
news: 473dbc32$1 (AT) forums-1-dub (DOT) ..
Two traces that might help:
1) and ODBC trace from the ODBC Driver manager
2) set the option CIS_OPTION to 7 in SQL10. This dumps a bunch of
tracing information when you access the proxy

--
/steve
Stephen Rice
Sybase iAnywhere

"jc" <jc.cuppens (AT) mouscron (DOT) be> wrote in message
news:473d86ba (AT) forums-1-dub (DOT) ..
i 'd like create a proxy server with SQL 10 but the connexion failed.

First test:
one DB sql9 with proxy server using the Microsoft ODBC for Oracle (PC
windows 2000). test OK.

Second test
one DB sql9 with proxy server using the Microsoft ODBC for oracle (PC
Windows XP pro Service pack 2); Tets OK

Last test
ON DB sql10 with proxy server using the same Microsoft ODBC for
Oracle (PC Windows XP pro Service Pack 2). No OK.

I receive this message
[Microsoft][ODBC fdriver for Oracle][Oracle]ORA-12154: TNS:could not
resolve service name

Why it's OK into second test and not into Last test?

Problem with SqlAnywhere 10?

Thank's

JCC





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.