简体   繁体   中英

How to connect Pentaho Data Integration with Oracle and TNS?

I want to make a connection to Oracle with Pentaho Data Integration, but I only find material with Pentaho Server on the internet.

In Data Integration I have two possibilities to connect to Oracle:

插入图像描述

I am lost using the "Connection Type" of the TNS type and there is this option. In addition, there is "Network Alias".

How do I create an Oracle connection in Data Integration with these settings?

插入图像描述

Pentaho

在此处输入图像描述

You must go to your tnsnames.ora file which is located on

%ORACLE_HOME%\network\admin\tnsnames.ora 

If you are using the default TNS_ADMIN location, the file should be there. There will be an alias entry like this

 ICXPRO=
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = yourhost)(PORT = yourport))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = yourservicename)
    )
  )

Sometimes instead of SERVICE_NAME you might have SID. Once you got all these details, fill up the Pentaho details as follows:

Host Name --> your host

Database Name -->  (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=yourhost)(PORT=yourport)))(CONNECT_DATA=(SERVICE_NAME=yourservicename)))

Port --> Your port

Tablespace Data and Tablespace Index --> leave the fields empty, just for the purpose of press TESTING 

User --> your user
password --> your password

Sometimes, depending of the Pentaho version, the TNS string does not work for the field database name, then replace it with the Database SID.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM