Forum Discussion

RSPPBI's avatar
RSPPBI
Regular Visitor
8 years ago
Solved

connecting to the same oracle database with different user accounts

Hello,

 

I am running into a power BI issue and maybe you can tell me if there is a solution for it by using Power query.

I am trying to connect to an oracle database with the name database 1 and I am using username 1 and password 1.

Now I want to repeat this several times.


So basicly I want to have 4 connections like this:

 

Connection 1: oracle database 1, username 1, password 1
Connection 2: oracle database 1, username 2, password 2
Connection 3: oracle database 1, username 3, password 3
Connection 4: oracle database 1, username 4, password 4

 

But Power Bi refuses this because it says there is already a connection to this database...

 

That is true, but for each connection I want to get different tables out of the database so I can combine them in an overall datamodel....


Is there a solution for this?

Preferably all 4 connections should work via the on premise data gateway.


It is possible in PowerPivot, but apparently not in Power BI?

 

  • v-frfei-msft's avatar
    v-frfei-msft
    8 years ago

    Hi RSPPBI,

     

    Does that make sense? If so , kindly mark the answer as a solution to close the case, thanks in advance.

     

    Regards,

    Frank

6 Replies

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

    Hi RSPPBI,

     

    Based on my test, we can use different server names to connect to the same Oracle database using different usernames. So In your scenario, you can use four kinds of server names to meet your requirement. Here I make a test using IP address, servername and FQDN.

     

     

    Regards,
    Frank

    • RSPPBI's avatar
      RSPPBI
      Regular Visitor

      I am not sure what you mean...

       

      How do you make 4 times connection to the same Oracle database

       

      I try to do this in the Gateway, via Add Source, which method(s) do you use?

       

      Someone also sugested to use different aliases in  the tnsnames.ora file.

       

      Have you experience with that and what should I fill in iin this file, can you give me an example?

       

       

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

        Hi RSPPBI,

         

        Based on my test, all the four kinds of server names could be added in the gateway. Please notice, only the gateway is installed on the same machine with Oracle, the localhost could be used.

         

        Please refer to the pictures as below.

         

         

        Regards,

        Frank