Kettle connection failure solution for Oracle database reporting ora-12505

Source: Internet
Author: User

Kettle was used due to the Informatica bug.

I used it for the first time today. I found it to know the master of kettle.ProgramStartup method: run data-integration \ spoon. bat.

After the startup, it is found that the database cannot be connected when the database is configured, and an error is always reported. So I checked the driver and found that kettle does not contain the Oracle driver by default. So I put the oracle JDBC driver ojdbc5.jar/ojdbc6.jar to the kettle directory data-integration \ libext \ JDBC, and logged on to the database with the PL/SQL account to confirm that the account is correct. Restart kettle configuration or report an error.

Org. pentaho. Di. Core. Exception. kettledatabaseexception: Error occured while trying to connect to the databaseerror connecting to database: (using class oracle. JDBC. Driver. oracledriver)

After searching on the internet, we found that kettle used the database name "sid_name" instead of "SERVICE_NAME" of PL/SQL, So we connected the database using PL/SQL:

Select instance_name from V $ instance;

We found that this name and the "SERVICE_NAME" I wrote are only case sensitive.

Enter this name in kettle's "Database Name" and the test will be OK. It turns out that.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.