Scala 2.9.3 postgres driver - database

I'm using Scala 2.9.3 because that's the latest version Spark Project requires. However I cannot find a database driver for Postgres that supports 2.9.3. All of them support up to 2.9.2 and then jump to 2.10.0.
Does such a thing exist?

Related

What are the difference between SQL jdbc driver versions 7.4 and 8.2 in terms of features?

I have only found out the differences in system compatibility between the two versions.
https://learn.microsoft.com/en-us/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server-support-matrix?view=sql-server-ver15#sql-version-compatibility
I am looking for the difference in features between the two JDBC driver versions.
In the download page of 8.4 JDBC driver, Microsoft mentioned that,
Version 8.4 is the latest general availability (GA) version. It
supports Java 8, 11, and 14. If you need to run on a Java runtime
older than that, see the Java and JDBC specification support matrix to
see if there is a supported driver version you can use. We are
continually improving Java connectivity support. As such we highly
recommend that you work with the latest version of Microsoft JDBC
driver.
So the version upgrade should be for improving the java connectivity support which should be the performance improvement between 7.4 & 8.2 drivers.

Can we connect to any version of oracle using cx_oracle library python?

I am trying to write a script to connect to all version's of oracle database starting from the latest to the oldest version of database.
I tried myself with cx_oracle library found like it needs a client library in the local to connect to remote database like if I download the latest version then it will work up to latest few versions not all.
Also tried with Sqlalchemy connection which is also using cx_oracle libraries.
Please do guide me if am doing anything wrong? I would also like to hear if there are any other ways to connect to the database using PYTHON
cx_Oracle 6 and higher already support connecting to any Oracle database from 9i all the way up to 18c depending on the client that you are using. cx_Oracle requires Oracle Client libraries at least at 11.2. You can see the interoperability notes here. Since anything earlier than 11.2 is no longer supported anyway, that should be adequate in almost all circumstances.
You can also use ODBC to connect to the database but that won't perform as well as cx_Oracle does.
I have an 11.2 Oracle database client on my corporate Windows 7 laptop and use cx_Oracle to connect to databases from version 9.2 to 12.2 without any difficulty.
The other way I connect to databases of all versions is to wrap Python around the Linux version of Oracle's sqlplus utility. This way I do not need to install cx_Oracle and can run with an older Oracle client and the version of Python that comes with the Linux distribution. In my case I am running on Redhat 6 which comes with Python 2.6. I connect to databases from version 8.1 to 12.2 in this way.
I have a blog post about how I run sqlplus from Python on Linux: https://www.bobbydurrettdba.com/2016/11/04/running-sqlplus-from-a-python-script/
Bobby

Configure Liferay 7.0 and WIldfly with Oracle

I have a doubt regarding LIferay 7.0 and Wildfly. I recently found a method to integrate Oracle DB with Liferay but, at least in the example and on my attempts to try it, when I start Wildfly with Liferay it keeps telling me "Unsupported Database Oracle".
The tutorial I followed was this one: https://www.dontesta.it/blog/en/2016/04/13/liferay-7-ce-how-to-add-support-for-oracle-db/
Is that only supported for Tomact? (Like in the example in that tutorial).
Thanks in advance.
The Oracle driver for Liferay 7 CE also works for the bundle with wildfly.
The procedure is very simple:
Build the Oracle Driver for Liferay (by following the guide liferay-portal-oracledb-support)
Download JDBC Oracle driver
Copy JDBC Driver in $LIFERA_HOME/wildfly-10.0.0/modules/com/liferay/portal/main/
Add JDBC Driver ojdbc7.jar as resource in module.xml ($LIFERA_HOME/wildfly-10.0.0/modules/com/liferay/portal/main/)
Copy jar (liferay-portal-oracledb-support-1.0-SNAPSHOT.jar) of the Oracle Driver for Liferay in $LIFERAY_HOME/wildfly-10.0.0/standalone/deployments/ROOT.war/WEB-INF/lib/
Start Liferay
By following the above steps you should be able to install successfully Liferay 7, also you can see this tutorial Liferay 7 Wildfly: How to add support for Oracle DB
I point out the project https://github.com/amusarra/liferay-portal-database-all-in-one-support which groups the support for the three commercial databases for versions 7.0, 7.1 and 7.2 of Liferay.
This project add support to the Oracle Database, SQL Server and IBM DB2 database. Liferay has performed refactorting the code so that it is possible and easy to add support for databases no longer supported OOTB (out-of-the-box). The last version (1.1.4) of the driver works with the Liferay 7.2.1 CE GA2.
You can download the latest version binary jar from Maven Central Repository liferay-portal-database-all-in-one-support (https://search.maven.org/#search%7Cga%7C1%7Cit.dontesta), by doing so you can avoid doing the build.
I invite you to read the article How to build a Docker Liferay 7.2 image with the Oracle Database support (https://www.dontesta.it/en/2019/08/21/how-to-build-a-docker-liferay-7-2-image-with-the-oracle-database-support/) which may be interesting for you.

How do you connect WSO2 IS to SQL Server 2012

Following the instructions from WSO2 IS on setting it up with Microsoft SQL Server (https://docs.wso2.com/display/ML111/Setting+up+Microsoft+SQL), I continue to get the following error when running WSO2 IS:
ERROR (com.microsoft.sqlserver.jdbc.SQLServerConnection) - Java
Runtime Environment (JRE) version 1.7 is not supported by this driver.
Use the sqljdbc4.jar class library, which provides support for JDBC
4.0. ERROR (org.wso2.carbon.user.core.util.DatabaseUtil) - Database Error - Java Runtime Environment (JRE) version 1.7 is not
supported by this driver. Use the sqljdbc4.jar class library, which
provides support for JDBC 4.0.
I made sure that there were no extra sqljdbc libraries in the paths (to rule out ambiguity). I followed the instructions exactly, but did note that they referenced SQL Server 2005 (yikes!).
I am working on a Windows 7 machine, JRE 8, JDK 1.7, SQL Server 2012/2014, and WSO2 IS 5.1.0.
Any help would be greatly appreciated.
I assume you are using the JDK 1.7, so according to the documentation from microsoft you need to have Sqljdbc41.jar. Can you check you have the correct version in the lib folder?
Sqljdbc41.jar requires a JRE of 7 and supports the JDBC 4.1 API
Also make sure that the dropins folder don't have any mssql libs before restarting the server (Jars from lib are copied to dropins at the startup, so there is a chance you have mssql jars copied from an earlier startup).
Also note that WSO2 IS has a separate page for setting up databases. Please follow that doc instead which contains the documentation specific to IS.

Postgres Version

I have been asked to develop my new application with Postgres 10.0. Before this, I have been developing applications with MsSql and was quite easy even. I searched for the Version 10.0 but didn't find any downloadable link. The latest version that i came across was Postgres 9.2 and 9.3 beta
Can anyone help me to find the right version. I had read few posts on Stackoverflow such as this one Postgres 10.0 -Arcgis but don't know Arcgis is postgres database or is it the other DB engine same as Postgres and SQL Server.
What i want is to know whether Postgres version 10.0 ( free or paid) is available or not?
There is no PostGre - there is PostgreSQL which is also sometimes called Postgres.
There is no version 10. The current version is 9.2.4 with 9.3 being the next version planned (due some time in 2013).
ArcSDE/Arcgis seems to be a GIS system that can work on top of PostgreSQL.

Resources