Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
MONA4980
Frequent Visitor

VIEW COMMENTS THAT ARE STORED AS LONG IN AN ORACLE DATABASE

Needing some help. When I get new source, from an oracle database, and select the table I want it is not showing the data for the results column. I searched that table structure and it is a data type of LONG and a lenght of 0. is this like a blob?

Anyway how do I convert that column into Power BI to be able to view the results in my new query? 

1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

@MONA4980 To view a LONG column in Power BI, you can create an Oracle view that casts the column to a CLOB or VARCHAR2. Alternatively, use the TO_LOB function in your query to convert the LONG data. Ensure you use the OLE DB or ODBC connector for better handling of LONG data types. Another option is extracting and converting the data in SQL Server before importing to Power BI.

View solution in original post

3 REPLIES 3
v-kathullac
Community Support
Community Support

Hi @MONA4980 ,

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.

If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

Regards,

Chaithanya

Akash_Varuna
Super User
Super User

@MONA4980 To view a LONG column in Power BI, you can create an Oracle view that casts the column to a CLOB or VARCHAR2. Alternatively, use the TO_LOB function in your query to convert the LONG data. Ensure you use the OLE DB or ODBC connector for better handling of LONG data types. Another option is extracting and converting the data in SQL Server before importing to Power BI.

Hello Akash,

I have oracle sql editor and I tried cast(comments as varchar2 (100)) and it says it is incompatible data type. So after I get that into Power BI as a long data type how would I do a to_lob? I do not have full rights to create a view in the Oracle database so I will have to do something within Power BI to make it work. Sorry for the questions but I am very very green to PowerBI and learning on the fly

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.