我正在尝试使用Power BI与Oracle 12c数据源连接,我寻找了多种解决方案,并按照Microsoft文档中的说明进行操作
但是我认为工作中缺少一些东西。
我要在同一台笔记本电脑上安装新的Oracle和powerbi,服务器应采用文档所述的“ ServerName / SID”格式,因此我的将是:
本地主机/ testdb
I have just installed Oracle 12c 64 bit on my laptop to test the connection
also I am using Power Bi 64 bit on also I am on windows 10 64 bit
I have also installed "64-bit Oracle Data Access Components (ODAC)" from Oracle website: http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
where I have added my database to DSN using both "OraDB12Home1" and "OraClient12Home2"
and also for both DSN I have tested the connection and it was successful
then inserting username and password for database
and when I connect with OraDB12Home1 I get this error:
I have also clear all data source connections on power bi because sometime it just display the error without sending me to next screen to enter user and password
These are the details of tnsnames.ora :
# tnsnames.ora Network Configuration File:
C:\app\Ahmadssb\virtual\product\12.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_TESTDB =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
TESTDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = testdb)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.babader.com)
)
)
I don't know what am I missing I even have exported the data from oracle as dump file and convert it as sql but it seems like this is not supported now on power bit and this is another situation.
I need to get my database data into PowerBi the data what, am I missing and what should I do to make it connect successfully?
as suggested on comments to change localhost/testdb to only testdb (also tested in capital TESTDB) since it should be typed on server. But this also didn't work with me and still getting the same error check the following pictures:
it seems like the connection to oracle is not working, is there something I should do in oracle to make this work?
I have formatted windows, reinstall everything from beginning and connected via ODBC and it works (yet I get the normal error DataSource.Error: ODBC: ERROR [07006] [Oracle][ODBC]Restricted data type attribute violation)
but with select query for each table needed, I get it work
downloaded Oracle Database 12c Release 2
install normally
from start menu -> Windows Administrative Tools > ODBC Data Sources (64-bit)
in user DSN tap, follow the next pictures:
since connection was successful, then click "OK" to save it
next on Power BI select get source:
in case you didn't type a select query and clicked OK then you added your username and password
https://community.powerbi.com/t5/Integrations-with-Files-and/ODBC-Connection-error-07006/td-p/278165
这就是我最终要如何连接的方式,仍然有一个与该主题无关的小问题,我将其放在另一个问题上,但希望此答案将有助于其他人建立连接
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句