Connect Oracle cloud Database using JDBC java -


i have database username , password access oracle db , have service url https://x-x.x.x.oraclecloudapps.com/apex/.

can know how connect db using jdbc connection.

i tried using oracle thin driver somehow failes. sample java code:

connection conn = drivermanager.getconnection("jdbc:oracle:thin:@//x.x.x.x.oraclecloudapps.com:1521/sid", "username", "****"); 

it throws

exception in thread "main" java.sql.sqlrecoverableexception: io exception: network adapter not establish connection 

i don't know sid here, helpful if give steps find sid/servicename oracle cloud dashboard.

you can't use jdbc connect database schema service. can connect using api or tools utilize rest api. data upload oracle database schema service, use oracle sql developer, oracle application express sql workshop data upload utility or oracle application express data load utility. read more here: http://docs.oracle.com/cloud/latest/dbcs_schema/csdbu/guid-3b14cf7a-637b-4019-aaa7-a6dc5ff3d2ae.htm#csdbu177


Comments


  1. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.

    Oracle Fusion Financials Online Training

    ReplyDelete

Post a Comment

Popular posts from this blog

xslt - Substring before throwing error -

oracle - Changing start date for system jobs related to automatic statistics collections in 11g -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -