mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Add deprecation notice for Oracle to logs, dspace database info
, READMEs and configs.
This commit is contained in:
@@ -35,7 +35,7 @@ Documentation for each release may be viewed online or downloaded via our [Docum
|
||||
The latest DSpace Installation instructions are available at:
|
||||
https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace
|
||||
|
||||
Please be aware that, as a Java web application, DSpace requires a database (PostgreSQL or Oracle)
|
||||
Please be aware that, as a Java web application, DSpace requires a database (PostgreSQL)
|
||||
and a servlet container (usually Tomcat) in order to function.
|
||||
More information about these and all other prerequisites can be found in the Installation instructions above.
|
||||
|
||||
|
@@ -406,6 +406,12 @@ public class DatabaseUtils {
|
||||
DatabaseMetaData meta = connection.getMetaData();
|
||||
String dbType = getDbType(connection);
|
||||
System.out.println("\nDatabase Type: " + dbType);
|
||||
if (dbType.equals(DBMS_ORACLE)) {
|
||||
System.out.println("====================================");
|
||||
System.out.println("WARNING: Oracle support is deprecated!");
|
||||
System.out.println("See https://github.com/DSpace/DSpace/issues/8214");
|
||||
System.out.println("=====================================");
|
||||
}
|
||||
System.out.println("Database URL: " + meta.getURL());
|
||||
System.out.println("Database Schema: " + getSchemaName(connection));
|
||||
System.out.println("Database Username: " + meta.getUserName());
|
||||
@@ -539,6 +545,10 @@ public class DatabaseUtils {
|
||||
String dbType = getDbType(connection);
|
||||
connection.close();
|
||||
|
||||
if (dbType.equals(DBMS_ORACLE)) {
|
||||
log.warn("ORACLE SUPPORT IS DEPRECATED! See https://github.com/DSpace/DSpace/issues/8214");
|
||||
}
|
||||
|
||||
// Determine location(s) where Flyway will load all DB migrations
|
||||
ArrayList<String> scriptLocations = new ArrayList<>();
|
||||
|
||||
|
@@ -1,5 +1,10 @@
|
||||
# Oracle Flyway Database Migrations (i.e. Upgrades)
|
||||
|
||||
---
|
||||
WARNING: Oracle Support is deprecated.
|
||||
See https://github.com/DSpace/DSpace/issues/8214
|
||||
---
|
||||
|
||||
The SQL scripts in this directory are Oracle-specific database migrations. They are
|
||||
used to automatically upgrade your DSpace database using [Flyway](http://flywaydb.org/).
|
||||
As such, these scripts are automatically called by Flyway when the DSpace
|
||||
|
@@ -68,20 +68,22 @@ solr.multicorePrefix =
|
||||
|
||||
##### Database settings #####
|
||||
# DSpace only supports two database types: PostgreSQL or Oracle
|
||||
# PostgreSQL is highly recommended.
|
||||
# Oracle support is DEPRECATED. See https://github.com/DSpace/DSpace/issues/8214
|
||||
|
||||
# URL for connecting to database
|
||||
# * Postgres template: jdbc:postgresql://localhost:5432/dspace
|
||||
# * Oracle template: jdbc:oracle:thin:@//localhost:1521/xe
|
||||
# * Oracle template (DEPRECATED): jdbc:oracle:thin:@//localhost:1521/xe
|
||||
db.url = jdbc:postgresql://localhost:5432/dspace
|
||||
|
||||
# JDBC Driver
|
||||
# * For Postgres: org.postgresql.Driver
|
||||
# * For Oracle: oracle.jdbc.OracleDriver
|
||||
# * For Oracle (DEPRECATED): oracle.jdbc.OracleDriver
|
||||
db.driver = org.postgresql.Driver
|
||||
|
||||
# Database Dialect (for Hibernate)
|
||||
# * For Postgres: org.hibernate.dialect.PostgreSQL94Dialect
|
||||
# * For Oracle: org.hibernate.dialect.Oracle10gDialect
|
||||
# * For Oracle (DEPRECATED): org.hibernate.dialect.Oracle10gDialect
|
||||
db.dialect = org.hibernate.dialect.PostgreSQL94Dialect
|
||||
|
||||
# Database username and password
|
||||
@@ -90,7 +92,7 @@ db.password = dspace
|
||||
|
||||
# Database Schema name
|
||||
# * For Postgres, this is often "public" (default schema)
|
||||
# * For Oracle, schema is equivalent to the username of your database account,
|
||||
# * For Oracle (DEPRECATED), schema is equivalent to the username of your database account,
|
||||
# so this may be set to ${db.username} in most scenarios.
|
||||
db.schema = public
|
||||
|
||||
|
@@ -68,20 +68,22 @@ dspace.name = DSpace at My University
|
||||
# DATABASE CONFIGURATION #
|
||||
##########################
|
||||
# DSpace only supports two database types: PostgreSQL or Oracle
|
||||
# PostgreSQL is highly recommended.
|
||||
# Oracle support is DEPRECATED. See https://github.com/DSpace/DSpace/issues/8214
|
||||
|
||||
# URL for connecting to database
|
||||
# * Postgres template: jdbc:postgresql://localhost:5432/dspace
|
||||
# * Oracle template: jdbc:oracle:thin:@//localhost:1521/xe
|
||||
# * Oracle template (DEPRECATED): jdbc:oracle:thin:@//localhost:1521/xe
|
||||
db.url = jdbc:postgresql://localhost:5432/dspace
|
||||
|
||||
# JDBC Driver
|
||||
# * For Postgres: org.postgresql.Driver
|
||||
# * For Oracle: oracle.jdbc.OracleDriver
|
||||
# * For Oracle (DEPRECATED): oracle.jdbc.OracleDriver
|
||||
db.driver = org.postgresql.Driver
|
||||
|
||||
# Database Dialect (for Hibernate)
|
||||
# * For Postgres: org.hibernate.dialect.PostgreSQL94Dialect
|
||||
# * For Oracle: org.hibernate.dialect.Oracle10gDialect
|
||||
# * For Oracle (DEPRECATED): org.hibernate.dialect.Oracle10gDialect
|
||||
db.dialect = org.hibernate.dialect.PostgreSQL94Dialect
|
||||
|
||||
# Database username and password
|
||||
@@ -90,7 +92,7 @@ db.password = dspace
|
||||
|
||||
# Database Schema name
|
||||
# * For Postgres, this is often "public" (default schema)
|
||||
# * For Oracle, schema is equivalent to the username of your database account,
|
||||
# * For Oracle (DEPRECATED), schema is equivalent to the username of your database account,
|
||||
# so this may be set to ${db.username} in most scenarios.
|
||||
db.schema = public
|
||||
|
||||
|
Reference in New Issue
Block a user