Q

ORA-28500 with database link

I created a database link from Oracle 10g to MS SQL Server. In one table there is a column name larger than 30 characters. I don't select this column but I get this error: "ORA-28500: Attempt to access a column Address_OutputMedium_Caption_ID with unsupported name length (greater than 30 characters)." I can't change the name of this column. What can I do?

I created a database link from Oracle 10g to MS SQL Server. It works. I can select from tables on SQL Server. In one table there is a column name larger than 30 characters. I don't select this column but I get this error: "ORA-28500: Attempt to access a column Address_OutputMedium_Caption_ID with unsupported name length (greater than 30 characters)." I can't change the name of this column. What can I do? Thank you very much for your help.
You cannot force Oracle to query any table that has a column name longer than 30 characters, even if that table is stored in a database system that allows longer column names, like SQL Server. About the best you can do is to create a view in SQL Server that queries the table. This view would change the column name.
CREATE VIEW my_table_view (column1,column2,
   column3_less_than_30)
AS SELECT column1,column2,column3_is_much_much_much
   _much_much_longer_than_30_characters
FROM my_table;
In Oracle, you query the view, which pulls data from the table.
This was last published in August 2006

Dig Deeper on Oracle database design and architecture

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close