Kettle connects data sources in Oracle rac environment

Recently, Kettle is used  for data integration in the Oracle Rac environment. However, when using kettle's database connection for configuration, I found that I could not connect to the database. After querying the data, it was found that when jdbc connected to the rac data source, it seemed that because the sid and the database service name were inconsistent, the correct connection could only be made by connecting through a flexible Url.

The specific method is as follows:

When configuring the Kettle database connection information, follow the steps below to access the rac data source normally.

For example, the IP of the database server I want to connect to is 192.168.2.238, the port number is 1521, and the sid is dci, so I can configure it like this.

1. Do not fill in the host name


2. Write the following connection string for the database name:


(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.238)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = dci)))


3. Write the port number: -1

Ok, after this configuration, the data source in the rac environment connected to oracle is finally correctly connected.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326353434&siteId=291194637