Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Oracle: ORA-604: error occurred at recursive SQL level %s

I am attempting to setup a Gateway to Oracle 11gR2. I have installed the 64 bit client and 64bit ODAC on the server running the Gateway, but I get this error on powerbi.com : 

 

 

Underlying error code: -2147467259
Underlying error message: Oracle: ORA-604: error occurred at recursive SQL level %s
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.ValueError.DataSourceKind: Oracle

Microsoft.Data.Mashup.ValueError.ErrorCode: -2147467259
Microsoft.Data.Mashup.ValueError.Message: ORA-604: error occurred at recursive SQL level %s
Microsoft.Data.Mashup.ValueError.Reason: DataSource.Error

  • Hi Anonymous 

    Does this error happen when adding the Oracle data source under the on-premise gateway?

     

    Once 64 bit client and 64bit ODAC are installed, please verify that the tnsnames.ora file is properly configured and you are using the proper net_service_name.

    Also make sure that the net_service_name is the same between the machine using Power BI Desktop and the machine that is running the gateway.

    https://docs.microsoft.com/en-us/power-bi/service-gateway-onprem-manage-oracle

     

    Besides, there is a link how to troubleshoot "ORA-00604: error occurred at recursive SQL level 1"

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

  • v-juanli-msft's avatar
    v-juanli-msft
    Community Support

    Hi Anonymous 

    Does this error happen when adding the Oracle data source under the on-premise gateway?

     

    Once 64 bit client and 64bit ODAC are installed, please verify that the tnsnames.ora file is properly configured and you are using the proper net_service_name.

    Also make sure that the net_service_name is the same between the machine using Power BI Desktop and the machine that is running the gateway.

    https://docs.microsoft.com/en-us/power-bi/service-gateway-onprem-manage-oracle

     

    Besides, there is a link how to troubleshoot "ORA-00604: error occurred at recursive SQL level 1"

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello, i have just encountered this problem when trying to add a data source with on premise data gateway, have you found the solution for this problem?

    Regards

    • Anonymous's avatar
      Anonymous
      Not applicable

      I ended up just having to capitalize the net service name, even thought it was lower case in my TNS file. For example, originally my net service name in Power BI desktop was abc-prd, I changed it to ABC-PRD and everything started working.