Connect Oracle cloud Database using JDBC java - oracle

I have database username and password to access oracle db and also have service url like https://X-X.X.X.oraclecloudapps.com/apex/.
Can anybody know how to connect this db using JDBC connection.
I tried using oracle thin driver but somehow it 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: The Network Adapter could not establish the connection
I don't know SID here, it would be helpful if anybody give steps to find SID/ServiceName from Oracle Cloud dashboard.

You can't use JDBC to connect to the Database Schema Service. You can connect using the API or tools that utilize the REST API. For data upload to Oracle Database Schema Service, use Oracle SQL Developer, the Oracle Application Express SQL Workshop Data Upload Utility or the 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

There is only three way to connect Database Schema Service.
From an Oracle Application Express application running in Database Schema Service
From a Java application running in an Oracle Java Cloud Service
Through RESTful Web services

Try the following JDBC URL to resolve the issue
"jdbc:oracle:thin:#host-address:1521/sid";
Note / is used after port and Not :

Related

Azure Data Factory LDAP Connection

Using a self-hosted integration runtime, I would like to use Azure Data Factory to connect to an on-premise Oracle database. Using the provided Oracle linked service, I can specify Host and Port, which works fine. Now I need to make a connection using an LDAP server, and I cannot find a way to do this using any connector in Azure Data Factory. Is this even possible?
You can use Teradata connector to authenticate LDAP.
Create Teradata linked service in Azure Data Factory.
Browse to the Manage tab on the left panel in your Azure Data Factory and select Linked Services, then click + New.
Search for Teradata and select the Teradata connector.
Configure the service details, select Authentication type as LDAP and test the connection, and create the new linked service.

Database connection failed with JDBC to SAP Hana

I'm currently trying to test a JDBC connection to SAP Hana with AWS Glue.
Testing the connection results in the following error message:
com.amazonaws.glue.jobexecutor.commands.exception.CommandExecutorException: java.lang.IllegalArgumentException: No enum constant com.amazonaws.glue.jobexecutor.commands.jdbc.SupportedDriver.SAP
My JDBC URL looks like that jdbc:sap://ip:port/?databaseName=tdb
After looking in the developer guide from AWS for the JDBC Connection Properties, it looks like that required protocol for hana is not a supported right now.
So is this the case that you currently can't connect to a SAP Hana database with AWS Glue or am I missing something in my connection configuration?
The HANA JDBC driver seems not to be supported at the moment. AWS describes a way via S3, that, depending on your requirements might be enough for you:
https://aws.amazon.com/de/blogs/awsforsap/extracting-data-from-sap-hana-using-aws-glue-and-jdbc/

Connect Pentaho Data Integration with Oracle Autonomous Data Warehouse

I'm starting with this database, up to now i get works the following cases:
Connect using Sql developer and import data from a csv
Connect by JDBC into a Java file
The problem now is that I need Pentaho DI connect with Oracle Autonomous dataWarehouse
Does any body knows how to do it? Maybe using JDBC connections?

Connecting to Oracle12C database using standalone java client Vs Connecting through Websphere

Connection to Oracle 12c from a standalone java application succeeds when ojdbc6.jar or ojdbc5.jar is used.
Connection String : jdbc:oracle:thin:#serverName:port:sid
Whereas the same connection string fails when connecting through Websphere with the following exception.
java.sql.SQLException: ORA-28040: No matching authentication protocol
DSRA0010E: SQL State = 99999, Error Code = 28,040
Note : Tried ojdbc8.jar and ojdbc6.jar
The ORA-28040: No matching authentication protocol error generally indicates that you are using an older JDBC driver with a newer database. You should either update your JDBC driver so that it is the same version as the database or update your sqlnet.ora file with the appropriate SQLNET.ALLOWED_LOGON_VERSION_SERVER/SQLNET.ALLOWED_LOGON_VERSION_CLIENT values. See Oracle's SQLNET documentation for more information.
Note that if you think you are using the same version JDBC driver as the database it is possible that a different JDBC driver is being picked up in the WebSphere environment. If that is the case:
Check that there are no additional JDBC drivers packaged with your application.
Check if there are other Oracle JDBC Providers configured in WebSphere using an older JDBC driver. If so either modify your configuration so all of your providers are using the same version Oracle JDBC driver or you will need to Isolate your JDBC Providers.

Does Apache Olingo support Oracle database

I want to expose Oracle database data with an Odata endpoint.I tried using JayData server on node.js but it currently supports only mongo db but not oracle.So before I start trying connecting Oracle with Apache Olingo I would like to know if someone has already been this path.Please advise
I have successfully used Oracle with Olingo from java JPA and EclipseLink

Resources