Skip to main content
1-Visitor
Jul 6, 2016 6:04 PM UTC
Question

Connecting to oracle database

Hi All,

I want to connect to oracle 10g database and am using the below connection string and driver class name, I know i am missing something here. Can you please advise me on this.

JDBC Driver Class Name- oracle.jdbc.driver.OracleDriver

JDBC Connection String - jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=LENOVOUSER.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))

connectionValidationString- SELECT NOW()


Thanks for the help..


4 replies

5-Regular Member
Jul 6, 2016 8:57 PM UTC

Hello,

I believe if you follow this documentation from KCS, you will have greater success connecting.

Hope this helps!

Tori

Translate
1-Visitor
Jul 7, 2016 8:13 PM UTC

Thanks a lot for the reference documentation. I could connect to the database now.

Appreciate your help.

Translate
5-Regular Member
Jul 7, 2016 7:59 PM UTC

Ashok, do you get a specific error message? Have you tried setting the connectionValidationString to SELECT SYSDATE from DUAL?

Translate
1-Visitor
Jul 7, 2016 8:13 PM UTC

Thanks Aaanjan. The issue is resolve now.

Translate