PC Review


Reply
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average.

Oracle dbid length exceed maximum (>16)

 
 
Delphine Han
Guest
Posts: n/a
 
      16th Mar 2004
I need to access an Oracle database from VS.NET. I
established a Microsoft OLE DB Connection for Oracle as
suggested by VS.NET, and the Test Connection works (Test
connection succeeded). However, I couldn't establish an
oracleDataAdapter. The error message in Microsoft
Development Environment says:

The connection could not be opened because of the
following error:
ORA-00162: external dbid length 30 is greater than maximum
(16).

It is true that the Server Name is 30 characters which is
something I can't change. What can I do to overcome the
problem?
 
Reply With Quote
 
 
 
 
Kevin Yu [MSFT]
Guest
Posts: n/a
 
      17th Mar 2004
Hi Delphine,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you got an exception says that
"external dbid length 30 is greater than maximum (16)." when try in to open
a connection in the DataAdapter for an Oracle server. If there is any
misunderstanding, please feel free to let me know.

I have checked it and found this is a known issue with our support for
distributed transactions feature and names larger than 16bits. Because we
have to prepare a connection to be enlisted even if there is no transaction
context when we open the connection this is affecting all connections, not
only dtc enabled connections.

For workarounds, I think using an alias shorter than 16bits on the
tnsnames.ora file does fix the problem.

HTH. If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

 
Reply With Quote
 
Delphine Han
Guest
Posts: n/a
 
      18th Mar 2004
Thanks for your response. Your understanding of my issue
is accurate. Just for future reference, it's 16 bytes,
instead of 16 bits.

I was able to make things work by defining an alias,
except it's done in C:\WINDOWS\system32\drivers\etc\hosts
file, instead of tnsnames.ora file.
>-----Original Message-----
>Hi Delphine,
>
>First of all, I would like to confirm my understanding of

your issue. From
>your description, I understand that you got an exception

says that
>"external dbid length 30 is greater than maximum (16)."

when try in to open
>a connection in the DataAdapter for an Oracle server. If

there is any
>misunderstanding, please feel free to let me know.
>
>I have checked it and found this is a known issue with

our support for
>distributed transactions feature and names larger than

16bits. Because we
>have to prepare a connection to be enlisted even if there

is no transaction
>context when we open the connection this is affecting all

connections, not
>only dtc enabled connections.
>
>For workarounds, I think using an alias shorter than

16bits on the
>tnsnames.ora file does fix the problem.
>
>HTH. If anything is unclear, please feel free to reply to

the post.
>
>Kevin Yu
>=======
>"This posting is provided "AS IS" with no warranties, and

confers no
>rights."
>
>.
>

 
Reply With Quote
 
Kevin Yu [MSFT]
Guest
Posts: n/a
 
      18th Mar 2004
Hi Delphine,

Sorry, it was my mistake. It has to be byte.

It was nice to know that you have had the problem resolved. Thanks for
sharing your experience with all the people here. If you have any
questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
oracle fields exceed 255 Les Microsoft Access External Data 3 20th Apr 2009 04:02 PM
Chart Title - exceed maximum length? =?Utf-8?B?R2VvZmYgQw==?= Microsoft Excel Charting 2 11th Oct 2007 03:33 PM
Re: Oracle Provider 1.1 Error; dbid length too long Leigh Kendall Microsoft ADO .NET 11 8th Apr 2005 04:07 PM
ERROR: ORA-00162: external dbid length 17 is greater than maximum (16) Anonieko Ramos Microsoft ADO .NET 0 23rd Jul 2004 05:32 PM
Maximum Length of Oracle Variable Names =?Utf-8?B?UGFydmVlbg==?= Microsoft ADO .NET 1 4th Apr 2004 01:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:20 PM.