Forum Discussion
Power BI report server points to Old database when automatic refresh kicks in
Hi,Mithraveer .Thank you for your reply.
Given that your situation is unique and your repot server version is May 2020. So I have found the following relevant documentation which I hope will help you.
URL:
Change data source connection strings with PowerShell - Power BI Report Server pre-October 2020 - Power BI | Microsoft Learn
The reportserver version is very important, while changing your report server version is generally not recommended.
For your question: does the report server support editing your tnsnames so that it can also pick up hostnames.
The report server itself has a lot of limitations, so it is best to operate according to the official documentation itself to avoid data loss and other accidents. As for the report server's ability to recognize tnsnames, I suggest you contact your team's IT department and ask them to let you know if they are skilled in the use of power shells to avoid accidents.
You can try to modify the connection string of some databases to see if it works.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian
Hi Anonymous ,
Thanks a milion for your response,
I checked the link you provided. It has a note stating that this only works for DirectQuery. But whenever I add the Oracle database in my PBI Desktop it only enables the Import options in the Data Connectivity mode and not the DirectQuery as shown below. So will this cause any issues ? Kindly advice.
Kind regards,
Mithra
- Anonymous1 year agoNot applicable
Hi,Mithraveer .Thank you for your reply.
Thank you for your reply.
According to the documentation, the way I provided is currently only applicable to direct query, while for import connection mode, Microsoft is under development (in the process of launching).
For the data source connection mode, I do not recommend you to change it directly, because the change of data connection mode will lead to a lot of functionality limitations, in short, this document does not seem to be suitable for you at the moment, and I recommend you not to try to change the data source connection mode either. This is likely to cause unexpected situations.
I will continue to follow up with you on this current issue and will keep you informed of any suitable developments.
Thank you for your understanding.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian- Mithraveer1 year agoFrequent Visitor
Hi Anonymous ,
Based on one of your above response, I tried couple of items and one solution worked but with a little change in the format. I gave my server name in below shown format and the refresh worked both in my PBI Desktop and PBI report server. By this way the scheduled refresh works fine.
Host_name:Port_number/Service_name
One small issue with this is, we have two host names as a failover service and quiet often we do site switches between the two host name. So whenever we do a site switch, I need to manually update the server name refresh the report and upload the updated file into the report server.
Is there a way to include two hostnames to the above format, so that it picks up the anyone one server which is available, I tried a couple of combinations but still did not get it right. Any suggestions will be very helpful.
Also thanks a million for all your suggestions.
Kind Regards,
Mithra
- JPM1 year agoFrequent Visitor
Host_name:Port_number/Service_name is oracle ezconnect , depending on your oracle version you may be able to use ezconnect plus Oracle Database Easy Connect Plus
You may also have more than one tnsnames file on your report server if you have installed both 32 and 64 bit drivers so worth checking out enviromental variables on the server to make sure you are pointing at the correct one