Configuring Oracle
Database creation
Section titled “Database creation”Create tablespace
Section titled “Create tablespace”create tablespace OPENKMDATA datafile '/u01/app/oracle/oradata/XE/openkmdata.dbf' size 100M;Create a database and user
Section titled “Create a database and user”create user OPENKM identified by *secret* default tablespace OPENKMDATA quota unlimited on OPENKMDATA;grant all privileges to OPENKM;grant create any context, create cluster, create dimension, create indextype, create job, create materialized view, create operator, create procedure, create sequence, create session, create synonym, create table, create trigger, create type, create view to OPENKM;Configure your openkm.properties
Section titled “Configure your openkm.properties”Edit the file $TOMCAT_HOME/openkm.properties
spring.jpa.properties.hibernate.dialect=com.openkm.db.dialect.Oracle10gDialectspring.jpa.hibernate.ddl-auto=create-onlyConfigure Tomcat data sources
Section titled “Configure Tomcat data sources”Edit the file $TOMCAT_HOME/openkm.properties and enable the resource named jdbc/OpenKMDS.
spring.datasource.driver-class-name=oracle.jdbc.OracleDriverspring.datasource.url=jdbc:oracle:thin:@localhost:1521:XEspring.datasource.username=OPENKMspring.datasource.password=*secret*spring.datasource.validationQuery=select 1 from dualSample using a service name instead of SID:
spring.datasource.driver-class-name=oracle.jdbc.OracleDriverspring.datasource.url=jdbc:oracle:thin:@localhost:1521/ServiceNamespring.datasource.username=OPENKMspring.datasource.password=*secret*spring.datasource.validationQuery=select 1 from dualAnother sample:
spring.datasource.driver-class-name=oracle.jdbc.OracleDriverspring.datasource.url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(HOST=localhost)(PROTOCOL=TCP)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE)(SERVER=DEDICATED)))spring.datasource.username=OPENKMspring.datasource.password=*secret*spring.datasource.validationQuery=select 1 from dualConfigure application login
Section titled “Configure application login”Edit the file $TOMCAT_HOME/openkm.properties
authentication.openkm.database=trueRun the application
Section titled “Run the application”During OpenKM startup, the application will automatically create an empty database structure.