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
ReplyDeleteI 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