SSRS : Oracle Query taking more time when compare in BIDS with PL/SQL developer + solution

I just want to explain one of the issue we faced when we are using SSRS connecting to oracle  and how we solved that issue

Issue :
we have a report which connects to Oracle DB . the Query in the dataset is running in 9 Secs  in PL/sql developer  but the same query is taking more than 150 secs in SSRS. we are using Oracleclient type provider.

Solution:

we tried with different providers . we tried with Mirosoft OLEDB provider also but it is also taking same time . what we observed is the query designer is formating the query structure so that it is removing Index hints.

even when we use the query hint the SSRS is removing those hints while executing . to solve this issue we did a workaround.

there is a work around to keep the index Hints . once you have created the dataset ,later open the same datset in Expression mode which is formated by the query designer and write your query which contains Hints. It is working for me .

Ref : https://social.msdn.microsoft.com/Forums/sqlserver/en-US/102e831a-7873-41c8-93ff-6373196a9a57/oracle-query-taking-more-time-in-ssrs?forum=sqlreportingservices
 

Comments

Popular posts from this blog

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces