Access the Oracle Database Exadata Express Cloud Service using Java Developer tools such as JDeveloper, NetBeans, Eclipse, and Intellij. This page describes changing the path of JDK, passing location of tnsnames.ora, and passing location and password for JKS Files as system properties in each one of these development tools. Refer to this page for steps to establish a successful connection when using JDeveloper, NetBeans, Eclipse, and Intellij.
[Linux]
-Doracle.net.tns_admin=/home/myuser/cloud
-Doracle.net.ssl_server_dn_match=true
-Doracle.net.ssl_version=1.2 (Only for 12.1.0.2 JDBC driver)
-Djavax.net.ssl.trustStore=/home/myuser/cloud/truststore.jks
-Djavax.net.ssl.trustStorePassword=welcome1
-Djavax.net.ssl.keyStore=/home/myuser/cloud/keystore.jks
-Djavax.net.ssl.keyStorePassword=welcome1
-Doracle.net.ssl_cipher_suites=(TLS_RSA_WITH_AES_256_CBC_SHA256)(Only for JDK7)
[Windows]
-Doracle.net.tns_admin=c:\home\myuser\cloud
-Doracle.net.ssl_server_dn_match=true
-Doracle.net.ssl_version=1.2 (Only for 12.1.0.2 JDBC driver)
-Djavax.net.ssl.trustStore=C:\home\myuser\cloud\truststore.jks
-Djavax.net.ssl.trustStorePassword=welcome1
-Djavax.net.ssl.keyStore=C:\home\myuser\cloud\keystore.jks
-Djavax.net.ssl.keyStorePassword=welcome1
-Doracle.net.ssl_cipher_suites=(TLS_RSA_WITH_AES_256_CBC_SHA256) (Only for JDK7)
product.conf
file. It should be located at $HOME/.jdeveloper/12.2.1.1.0
product.conf
and update the following with the required JDK path.
SetJavaHome /usr/jdk_1.8.0_91
product.conf
file. It should be located at %USERPROFILE%\AppData\Roaming\JDeveloper\<product-version>\
Edit product.conf and update the following with the required JDK path.
SetJavaHome D:\java\jdk1.8.0_91
File --> New --> Application --> Choose "Database Tier"--> Database Connection
and follow all the steps to create a "Database Connection" Check "Enter Custom JDBC URL" and add the connection URL.
Append the contents of tnsnames.ora
to the connection URL. tnsnames.ora
is part of the network configuration files downloaded from the service console.
(b) click on "JDBC parameters"
and add the required connection properties.
(c) click on "Test Connection"
and make sure that the connection is established.
UCPSample.java.
Update the code to use the Oracle Database Exadata Express Cloud specific connection URL, Username, and Password. Add a few SQL statements to test the connection.
Application --> Project Properties --> Add JAR/Directory --> Choose the patched 12.1.0.2 JDBC Thin driver (ojdbc7.jar) and ucp.jar.
Run --> Choose Active Run Configuration --> Manage Run Configurations Click on "Choose Custom Settings" --> Customize Settings
Run Configurations --> Click on 'Add' button --> Create a Run configuration --> Choose a name for the configuration
Run Configurations --> Click on 'Edit' button --> Java Options --> Pass all the
netbeans.conf
file. It should be located at /etc/netbeans.conf
netbeans.conf
and update the following with the required JDK path.
netbeans_jdkhome="/usr/jdk_1.8.0_91"
UCPSample.java.
Update the code to use the Oracle Database Exadata Express Cloud specific connection URL, Username, and Password. Add a few SQL statements to test the connection.
Libraries --> Add JAR/Folder --> Choose the patched 12.1.0.2
JDBC Thin driver (ojdbc7.jar) and ucp.jar.
Libraries --> Properties --> Check the Java Platform and Make sure it is pointing to the correct JDK.
Run --> Set Project Configuration --> Customize --> VM Options --> Pass the
required properties
window --> Preferences --> Installed JREs --> Add.
Add a JDK home that is latest and also has the required JCE files. UCPSample.java.
Update the code to use the Oracle Database Exadata Express Cloud specific connection URL, Username, and Password. Add a few SQL statements to test the connection.
Right click on Project --> Properties --> Libraries -->
Choose the patched 12.1.0.2 JDBC Thin driver (ojdbc7.jar) and ucp.jar. Run --> Run Configurations --> Main --> Check if the UCPSample.java is the Main class.
Go to 'Arguments' tab --> VM arguments --> Pass the
required properties
choose a JDK home that is latest and also has the required JCE files. UCPSample.java.
Update the code to use the Oracle Database Exadata Express Cloud specific connection URL, Username, and Password. Add a few SQL statements to test the connection.
External Libraries --> Select JDK 1.8 --> Open Library Settings --> Global Libraries
(under Platform Settings) --> Click on + -->
Choose the patched 12.1.0.2 JDBC Thin driver (ojdbc7.jar) and ucp.jar.Run --> Run Configurations --> Configuration --> Check if the UCPSample.java is the Main class.
Under 'VM Options' --> Pass the
required properties